Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations
llm-evalsstatisticsstandard-errorspower-analysisbenchmarks
Abstraction: Evan Miller (Anthropic) imports experiment-analysis statistics into LLM evals: questions as draws from a super-population
Key points:
- Core assumption: eval questions are a random sample from an unseen super-population — you care about the skill, not these questions. Unlocks CLT standard errors (no bootstrap needed).
- Clustered SEs where questions come in groups (DROP passages, MGSM translations): on DROP the clustered SE is 3x the naive one — uncorrected comparisons run at triple confidence. Llama 3 report intervals both too wide (wrong Bernoulli formula) and too narrow (unclustered).
- Variance reduction: resample answers K times (2/3 of achievable gain by K=6) or read next-token probabilities (full gain, one pass). Never lower temperature for variance — it shifts variance into the irreducible component or injects bias ("don't touch the thermostat").
- Compare models with question-level paired differences: subtracts 2*Cov, free precision; flips the paper's worked Galleon/Dreadnought verdict (only the MATH gap is significant; HumanEval at n=164 can't resolve <~5 points).
- Power analysis: detecting a 3-point difference at alpha=.05, power .80 needs ~1,000 independent questions. Small evals cannot support the claims routinely cited on them.
Connections: Clustered Standard Errors · Power Analysis · Paired Differences
Source: https://arxiv.org/abs/2411.00640