Variance, Power, and Validity in LLM Evaluation
Evaluating a multi-turn language-model agent means running expensive experiments on small task sets with near all-or-nothing outcomes. A single benchmark score is one draw across token sampling, tool outputs, and GPU batch scheduling, while most real engineering changes (a prompt edit, a tool schema, a decoding flag, a cache threshold) move true accuracy by 1 to 2 percentage points, less than the run-to-run spread of identical code. Comparing two single-run scores settles almost nothing. Telling real gains from noise requires sizing runs to the smallest effect worth shipping and fixing the decision rule before looking at the numbers.
Even an adequately powered local comparison still faces external validity: once engineers inspect a development suite repeatedly to diagnose failures and choose fixes, local wins routinely stop transferring to unseen workloads, a benchmark counterpart to the product launch gap in A/B testing. The examples below come from evaluating two long-horizon ARC Prize systems across fast local suites and sealed holdouts costing ~10 GPU-hours per pass: a Python program-synthesis solver tested on 120 public tasks and a sealed 240-task holdout, and an interactive multi-stage game agent tested on a 25-game public suite (scored 0 to 100 across stage clears and action efficiency) and a sealed out-of-distribution holdout.
Three sources of variance in agent benchmarks
In single-turn evaluations, per-example noise averages down quickly across hundreds of independent prompts. In an agent loop, small early token differences change tool calls, return different observations, and branch into distinct trajectories. Seed sensitivity of this kind was documented early in deep reinforcement learning, where two five-seed groups of identical code produced learning curves that looked statistically distinct,1 and benchmark rankings routinely flip depending on which nuisance factors (data splits, initialization, host jitter) are randomized versus held fixed.2
Because multi-step tasks often resolve as binary clears or stalls, single-task variance is wide. Across repeated passes on the 25-game interactive dev suite, half the environments flipped between full clear and partial stall from one run to the next, and one candidate’s apparent 6-point gain traced entirely to three early stalls in a single control pass. Averaging over a full suite narrows that spread without eliminating it: six identical passes on the 25-game dev suite spanned 51.6 to 65.3 points (standard deviation ~5 points), while repeated passes on the larger sealed holdouts still carried a run-to-run standard deviation (SD) of 2 to 3 points, with two healthy runs of the exact same synthesis build landing nearly 9 percentage points apart (65.0% and 73.9%).
Part of that spread persists even at low temperature or matched random seeds. Under concurrent GPU serving, floating-point reduction order shifts with co-scheduled batch shapes unless kernels enforce batch invariance, and dynamic KV-cache admission gates grant or refuse context extensions based on millisecond-level peer occupancy.
Benchmark spread separates into three distinct components. Persistent task difficulty divides easy tasks from hard ones and cancels out whenever both builds run on the exact same task list. Run-wide shifts (server load, host CPU or storage throughput, batch-reduction jitter, shared-cache contention) move every task in a pass together. Trajectory noise adds residual per-episode sampling and branching variance on top.
A standard paired bootstrap resamples tasks while treating the observed runs as fixed, implicitly assuming run-wide shifts are zero. Even when overall synthesis accuracy showed modest run-to-run drift, shared-server sub-metrics moved together strongly across passes. Resampling across both tasks and runs (a two-way bootstrap34) widened primary confidence intervals by 10% to 70% and pushed three apparent wins across zero.
Sizing comparisons and blocking drift
Cluster correlated units, match budgets, and fork checkpoints
Resampling units have to match correlation boundaries: stages inside one multi-stage game and multiple test inputs scored by one synthesized program move together, so treating sub-units as independent produces falsely narrow error bars (clustered standard errors and leave-one-run-out checks guard against this). Builds also have to be compared at matched compute budgets: evaluating serving changes at equal wall-clock time and agent changes in equal-token runs prevents a candidate that simply spends 20% more tokens from passing as a better algorithm.
When testing a targeted mid-run change (such as a context-compaction rule or a stuck-turn prompt intervention), full end-to-end runs spend most of their compute replaying identical early turns while accumulating early-turn branching noise. A paired checkpoint-fork test isolates the post-intervention effect directly:
- Freeze mid-run snapshots at the first turn per task where the target condition fires, saving exact prompt token IDs, live environment state, persisted subprocess helpers, and random-number-generator state.
- Fork control and treatment from the identical snapshot under equal remaining token and action budgets, charging any injected prompt tokens against treatment’s budget.
- Measure both immediate mechanism (for instance, whether the agent runs a diagnostic check within its next three tool calls) and downstream task completion, clustering all forks from the same task together.
Cancel host and time drift with a 2x2 AB/BA crossover
On shared or rented GPU machines whose storage speed, thermals, and background load drift across the day, running two hosts across two time periods with opposite arm order on each host (AB on Host 1, BA on Host 2) cancels additive machine and period offsets, provided model servers, KV caches, and worker processes restart clean between periods.
Entering a multi-step program-induction workflow that had scored +32% on the small task subset used to design it into a sealed 4-run AB/BA crossover on the 25 public games shrank its lead to +0.5 points (95% CI -4.3 to +5.4), with opposite signs on the two hosts (-1.7 and +2.6) and a -2.2-point period shift canceled by the design. Four structured runs caught design-set overfitting that a single sequential comparison would have chased for weeks.
Compute required runs and winner’s-curse bias upfront
With per-run standard deviation , detecting a true gain of points at two-sided significance and power requires
runs per arm. Plugging in a realistic holdout SD of points quantifies both how many passes small deltas require and how much post-hoc seed picking inflates scores:
import math
import random
from statistics import NormalDist
SIGMA = 2.0 # run-to-run SD (points) of one suite pass
z = NormalDist().inv_cdf
Z_ALPHA, Z_POWER = z(0.975), z(0.80) # two-sided 5% test, 80% power
for delta in (1, 2, 3, 4):
n = 2 * ((Z_ALPHA + Z_POWER) * SIGMA / delta) ** 2
print(f"delta {delta}: {math.ceil(n):2d} runs per arm")
mde = (Z_ALPHA + Z_POWER) * SIGMA * math.sqrt(1 + 1 / 3)
print(f"1 run vs 3-run baseline: MDE {mde:.1f} points")
random.seed(1)
for k in (2, 3, 5):
best = sum(max(random.gauss(0, SIGMA) for _ in range(k))
for _ in range(100_000)) / 100_000
print(f"best of {k}: +{best:.2f} points above true mean")
delta 1: 63 runs per arm
delta 2: 16 runs per arm
delta 3: 7 runs per arm
delta 4: 4 runs per arm
1 run vs 3-run baseline: MDE 6.5 points
best of 2: +1.13 points above true mean
best of 3: +1.69 points above true mean
best of 5: +2.33 points above true mean
Even with a relatively tight 2-point suite SD, reliably resolving a 2-point gain takes 16 runs per arm (and on the noisier 5-point local game suite, resolving a 6-point gain takes 11 runs per arm). Comparing a single candidate pass against a 3-run baseline resolves only jumps of ~6.5 points or larger, matching broader NLP findings where published wins routinely sit below benchmark minimum detectable effects (MDE).5
Without pre-committed rules, three everyday habits manufacture phantom gains: reporting the best of five runs (+2.33 points of pure noise), stopping early when an ablation looks hot at three or four seeds, and sweeping post-hoc candidate-voting heuristics on logged runs (~40 selector variants gained +1.0 point in-sample and +0.0 under two-fold cross-validation). Pre-committing minimum seed counts, mean-rather-than-max reporting, and explicit crash-exclusion thresholds keeps readouts honest.
External validity and adaptive overfitting
Repeatedly inspecting a development set erodes external validity through benchmark contamination,6 adaptive overfitting as prompts and heuristics condition on the same tasks,7 and distribution shift between public examples and hidden tests. Once the design tasks guided the +32% workflow above, their local score stopped predicting unseen tasks altogether.
Why cumulative releases track while single-commit diffs look flat
Across ten major releases of the interactive agent, cumulative progress on the local suite (+35%) tracked cumulative progress on the sealed holdout (+37%) along a steady ~0.57x score ratio, echoing ImageNet replication studies where absolute accuracy shifted while broad rankings held.8 Yet plotting individual version-to-version holdout diffs against version-to-version local diffs produced a flat regression line (slope -0.03).
Errors-in-variables attenuation explains both charts at once. When a typical commit moves true score by 1 to 2 points and a two-pass local diff carries ~5 points of noise, per-step measurement variance on the horizontal axis is more than ten times larger than per-step signal variance, washing out any single-step regression slope. Summed across ten releases, true gains accumulate to +15 to +20 points while independent step errors average out, recovering the macro trend. Two practical rules follow: do not conclude a dev suite is broken just because underpowered single-commit diffs fail to correlate, and do not revert a clean architectural simplification over a noisy 1-point step dip.
Protecting a sealed out-of-distribution holdout
Guarding against adaptive overfitting requires maintaining at least one sealed out-of-distribution (OOD) holdout verified for determinism, replayable reference solutions, and resistance to random action spam. Custom holdouts also need scorer audits before trusting small differences: six diagnostic games initially shipped with placeholder baseline_actions = 1 in an efficiency-weighted scorer, penalizing every cleared stage by 1 / agent_actions and compressing scores by ~19 points until caught. Above all, holdout validity depends on strict transcript quarantine. As soon as engineers read transcripts from an OOD holdout to categorize failures, its predictive edge begins decaying toward the public dev set.
Calibrating fast proxies along an evaluation ladder
Because repeated holdout passes cost dozens of GPU-hours, day-to-day iteration relies on cheaper proxies: offline trace simulators, third-party API endpoints, teacher-forced log-likelihood screens, and automated LLM rubric graders. Each proxy buys speed by holding part of the deployment system fixed, and misleads whenever a change moves the exact mechanism held fixed.
Offline queue and cache simulators eliminate sampling noise by replaying recorded traces, at the price of omitting live feedback loops. Replaying synthesis tasks in a fixed ID order inflated an adaptive retry rule that vanished under randomized arrival order. Simulating mid-run budget cutoffs without crediting the fallback code a stopped run had already written made continuing look twice as valuable as it was. And modeling GPU KV-cache occupancy without tracking paused tool-running sessions whose prefixes were about to return endorsed a 300-second wait policy that multiplied live hardware stalls fivefold.
Third-party API endpoints serving identical model weights tracked self-hosted GPUs well (r = 0.77 per game) until prompt wrappers and thinking caps changed, at which point an update read +3.5 points on the external API and -8.3 points on self-hosted GPUs. External endpoints work as fast smoke tests rather than ship gates.
Teacher-forced negative log-likelihood (NLL) screens require task-aligned aggregation and dead-pipeline checks. When screening test-time fine-tuning via ground-truth solution NLL, the minimum NLL across symmetry-augmented prompts tracked task solvability even when mean NLL worsened, because solving any one orientation suffices at test time. In another pass, a library upgrade silently masked every training label with PyTorch’s ignore_index = -100, producing zero-gradient updates and bit-identical NLLs across three learning rates; bit-identical outputs across distinct treatment doses indicate a disconnected pipeline before they indicate a null result.
Local scorers and LLM rubric judges need parity checks of their own. Diff local scoring scripts to 100% agreement against the reference evaluator before trusting small deltas (catching an uncapped per-stage efficiency bonus removed a 1.9-point phantom lead). For open-ended transcript failure coding, blinded dual-LLM grading with an independent adjudicator9 tests rubric consistency (whether two graders apply the written codebook the same way), which still requires executable checks or human spot audits to verify ground-truth accuracy.
Matching engineering decisions to what each test tier can actually support keeps fast iteration aligned with production reality:
| Evaluation tier | Minimum setup | What it still cannot prove |
|---|---|---|
| Repeated sealed holdout | Multiple runs per build, mean comparison, pre-set crash filter | Which change inside a multi-commit release caused the lift |
| Paired local suite, 2x2 crossover, or checkpoint fork | Identical tasks or snapshots, pre-set run count, two-way or task-clustered resampling, clean server restarts | Transfer to unseen tasks once the suite guided design |
| Offline queue or budget simulator | Randomized arrival order and true cutoff fallback harvests on paired traces | Effects driven by KV-cache eviction, concurrency, or changed output lengths |
| Cheap API proxy or NLL screen | Fresh calibration on current prompt wrappers, task-aligned aggregation (min vs mean), dose-response sanity check | Direction or size of lift after wrapper, adapter, or runtime changes |
| Blinded dual-LLM rubric audit | Written codebook, two blind passes plus adjudication, spot check on top swings | True population error rates without executable or human verification |
Most evaluation rigor happens before and after the model call: sizing run counts to the noise floor, blocking host and trajectory drift with crossovers and checkpoint forks, keeping one holdout sealed from debugging, and marking sub-MDE diffs undecided instead of building architecture on top of noise.
References
Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, and David Meger. 2018. Deep reinforcement learning that matters. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence (AAAI-18), 2018. 3207–3214. ↩︎
Xavier Bouthillier, Pierre Delaunay, Mirko Bronzi, Assya Trofimov, Brennan Nichyporuk, Justin Szeto, Nazanin Mohammadi Sepahvand, Edward Raff, Kanika Madan, Vikram Voleti, Samira Ebrahimi Kahou, Vincent Michalski, Tal Arbel, Chris Pal, Gael Varoquaux, and Pascal Vincent. 2021. Accounting for variance in machine learning benchmarks. In Proceedings of Machine Learning and Systems (MLSys 2021), 2021. 747–769. ↩︎
Rotem Dror, Gili Baumer, Segev Shlomov, and Roi Reichart. 2018. The hitchhiker’s guide to testing statistical significance in natural language processing. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2018. 1383–1392. ↩︎
Rishabh Agarwal, Max Schwarzer, Pablo Samuel Castro, Aaron Courville, and Marc Bellemare. 2021. Deep reinforcement learning at the edge of the statistical precipice. In Advances in Neural Information Processing Systems 34 (NeurIPS 2021), 2021. 29304–29320. ↩︎
Dallas Card, Peter Henderson, Urvashi Khandelwal, Robin Jia, Kyle Mahowald, and Dan Jurafsky. 2020. With little power comes great responsibility. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2020. 9263–9274. ↩︎
Oscar Sainz, Jon Campos, Iker García-Ferrero, Julen Etxaniz, Oier Lopez de Lacalle, and Eneko Agirre. 2023. NLP evaluation in trouble: On the need to measure LLM data contamination for each benchmark. In Findings of the Association for Computational Linguistics: EMNLP 2023, 2023. 10776–10787. ↩︎
Cynthia Dwork, Vitaly Feldman, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Aaron Roth. 2015. The reusable holdout: Preserving validity in adaptive data analysis. Science 349, 6248 (2015), 636–638. ↩︎
Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. 2019. Do ImageNet classifiers generalize to ImageNet? In Proceedings of the 36th International Conference on Machine Learning (ICML 2019), 2019. 5389–5400. ↩︎
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023. Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. In Advances in Neural Information Processing Systems 36 (NeurIPS 2023), 2023. 46595–46623. ↩︎