Skip to content

perf(livecodebench): keep unit tests compressed until verification - #2806

Merged
bxyu-nvidia merged 2 commits into
mainfrom
perf/lcb-compressed-unit-tests
Sep 10, 2026
Merged

bxyu-nvidia merged 2 commits into
mainfrom
perf/lcb-compressed-unit-tests

Conversation

@jubick1337

@jubick1337 jubick1337 commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

LiveCodeBench ships its hidden tests base64+zlib+pickle compressed. prepare decoded them and embedded the plaintext in every materialized row, which made the materialized-inputs file 12.1 GB against 4-6 MB for every other benchmark.

That file is read in full and stored for the duration of the whole run.

Store the tests packed and decode them in the verifier, immediately before use, so the plaintext exists for one verification rather than for the whole run. Measured 12.1 GB -> 5.8 GB per task.

LiveCodeBench ships its hidden tests base64+zlib+pickle compressed.
prepare decoded them and embedded the plaintext in every materialized
row, which made the materialized-inputs file 12.1 GB against 4-6 MB for
every other benchmark (p50 70 KB, p90 20 MB, max 189 MB per row).

That file is read in full and held for the duration of the run, so it
dominated eval-client footprint and slowed every tool that walks
rollouts. Across a 22-checkpoint sweep it cost roughly 139 GB.

Store the tests packed and decode them in the verifier, immediately
before use, so the plaintext exists for one verification rather than for
the whole run. Measured 12.1 GB -> 5.8 GB per task.

Score-neutral by construction: the verifier decodes the same bytes back
before validating, so the tests it runs are identical. Verified on the
real v6 set -- all 1362 rows round-trip to non-empty tests with matching
input/output counts (median 42 tests per problem). The verifier also
still accepts the old plaintext shape, so artifacts prepared before this
change continue to verify.

Signed-off-by: Matvei Novikov <mnovikov@nvidia.com>
@bxyu-nvidia
bxyu-nvidia merged commit ee43955 into main Sep 10, 2026
30 checks passed
@bxyu-nvidia
bxyu-nvidia deleted the perf/lcb-compressed-unit-tests branch September 10, 2026 17:03
jkyi-nvidia pushed a commit that referenced this pull request Sep 11, 2026
…2806)

LiveCodeBench ships its hidden tests base64+zlib+pickle compressed.
prepare decoded them and embedded the plaintext in every materialized
row, which made the materialized-inputs file 12.1 GB against 4-6 MB for
every other benchmark.

That file is read in full and stored for the duration of the whole run.

Store the tests packed and decode them in the verifier, immediately
before use, so the plaintext exists for one verification rather than for
the whole run. Measured 12.1 GB -> 5.8 GB per task.

Signed-off-by: Matvei Novikov <mnovikov@nvidia.com>
Signed-off-by: Junkeun Yi <jkyi@nvidia.com>

This branch was previously deployed

1 inactive deployment
public β€” 83bb51d8 Deployed Aug 26, 2026 by copy-pr-bot[bot] via release / finalize / notify #2060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants