Why Benchmark Leaderboards Need Statistical Error Bars
CMU Advanced NLP · Lecture 13: Evaluation and Benchmarks
Training loss tells us how closely a language model \(p_\theta\) fits a token distribution, not whether it solves downstream tasks reliably. Yet once we evaluate models on finite benchmark suites, bare percentage leaderboards introduce a second trap: treating noisy sample averages as deterministic rankings.
Sean Welleck’s Lecture 13 on the CMU Advanced NLP Fall 2025 schedule (slides PDF, 45 pp.; code link 13_evaluation) connects benchmark design to statistical inference in three stages:
- From loss to downstream evaluation: Why lower training or validation negative log-likelihood can diverge from task metrics, and how a benchmark \((D, m)\) approximates expected downstream performance (slides, pp. 3–14).
- Six properties of reliable benchmarks: Breadth, difficulty, utility, robustness, data uncontamination, and evaluation efficiency—comparing exact match,
ROUGE,LLM-as-a-judge, and human preference arenas (slides, pp. 15–28). - Statistical error bars and hypothesis tests (Miller 2024): Why naive independent standard errors underestimate uncertainty on empirical clustered benchmarks by up to
3.05x, how paired comparisons isolate true gaps in hypothetical and real evaluations, and how independent sample size scales standard error as \(1/\sqrt{n}\) (slides, pp. 29–44; Miller 2024).
Why loss is not enough for downstream evaluation
Given a language model \(p_\theta\) and dataset \(\mathcal{D} = \{(x_i, y_i)\}_{i=1}^n\), the per-example negative log-likelihood is \(-\log p_\theta(y_i \mid x_i)\) (slide 3), giving dataset average loss \(\mathcal{L}(\theta; \mathcal{D}) = -\frac{1}{n}\sum_{i=1}^n \log p_\theta(y_i \mid x_i)\) (or token-normalized cross-entropy). Two empirical plots in the lecture show why lower loss does not automatically imply higher task accuracy:
- LLaMA training loss vs.
SIQAaccuracy (slides, pp. 4–5): Near1,000billion pretraining tokens on Slide 4,LLaMA 33Bmaintains visibly lower training loss thanLLaMA 13B(read visually around1.67vs.1.73). Yet on downstreamSIQAaccuracy, the13Band33Bcurves cross repeatedly near49%–51%, undermining the simple claim that lower pretraining loss makes33Buniformly better on every task. - AlphaCode fine-tuning (Li et al. 2022; slide 6): After roughly
50kfine-tuning steps out to800k, validation loss trends upward with local fluctuations from ~0.455toward ~0.495, while the dashedSolve rate (fit)curve (10@1024in Li et al. 2022, §6.5 & Fig. 13) climbs from<6%toward~9.5%. Loss tracks full-sequence token likelihood across all tokens, whereas code solve rate rewards producing passing programs within the sampling budget.
To evaluate real task behavior, we introduce an inference algorithm \(g(p_\theta, x)\) (such as greedy decoding, chain-of-thought sampling, or best-of-\(K\)), a task metric \(m(y, \hat{y}) \to \mathbb{R}\), and a distribution \(p(D)\) over task datasets (slide 8):
\[ \mathbb{E}_{D \sim p(D)}\,\mathbb{E}_{x, y \sim D}\,\mathbb{E}_{\hat{y} \sim g(p_\theta, x)}\!\big[m(y, \hat{y})\big]. \]
Because \(p(D)\) is unobserved, we approximate this expectation with a finite suite of benchmarks \((D, m)\)—for example, Table 2 of the Llama 3 report spanning General (MMLU, MMLU-Pro, IFEval), Code (HumanEval, MBPP EvalPlus), Math (GSM8K, MATH), Reasoning (ARC Challenge, GPQA), Tool use (BFCL, Nexus), Long context (ZeroSCROLLS/QuALITY, InfiniteBench/En.MC, NIH/Multi-needle), and Multilingual (MGSM) (slides, pp. 9–11).
Task metrics and the six properties of good benchmarks
The lecture illustrates exact-match and execution metrics across three flagship benchmarks (slides, pp. 12–14):
MMLU(slide 12): Multiple-choice questions across57subjects where the model outputsA,B,C, orD, scored by exact match \(m(y, \hat{y}) = \mathbf{1}[y = \hat{y}]\).HumanEval(slide 13): LeetCode-style Python problems where a sample passes only if it clears every unit test, and \(\text{pass@}K\) checks whether any of \(K\) candidates passes: \[ m(y, \hat{y}) = \prod_{j=1}^{\text{numtests}} \mathbf{1}[\hat{y}\text{ passes test } j], \qquad \text{pass@}K(y, \{y_1, \dots, y_K\}) = \max\big(m(y, y_1), \dots, m(y, y_K)\big). \] (Constructed worked check, not lecture data: Slide 13 writes \(\text{pass@}K\) directly as the sample maximum over \(K\) generated candidates. In Chen et al. 2021, when \(n \ge K\) samples are drawn and \(c\) pass, the unbiased estimator is \(1 - \binom{n-c}{K}/\binom{n}{K}\). For \(n = 5\) samples with \(c = 1\) passing solution, the sample maximum over all \(5\) is \(1\), whereas unbiased \(\text{pass@}1 = 1 - \binom{4}{1}/\binom{5}{1} = 0.20\) and \(\text{pass@}2 = 1 - \binom{4}{2}/\binom{5}{2} = 0.40\).)GSM8K(slide 14): Grade-school math word problems where the model generates a chain-of-thought and final numerical answer matched against the ground-truth answer.
Welleck then organizes benchmark quality around six properties (slides, pp. 15–28):
- Breadth and diversity (slide 15): Benchmarks should cover the technical and non-technical prompt distribution users actually send (Ni et al. 2024), from coding and physical sciences to law, daily life, and social dynamics.
- Depth and difficulty (slide 16): Questions must stay hard enough to separate strong from weak models. As
TriviaQA,MMLU,GSM8K, andMATHclimbed above90%between 2020 and 2025, evaluation shifted toward harder suites (GPQA,SWE-bench Verified,AIME, andHumanity's Last Exam). - Utility (slide 17): A benchmark task is a proxy—worth solving because it provides a foundation for complex applications (e.g., financial analysis), mirrors real user queries (tutoring), or isolates a scientific question (“Can an AI model reason?”).
- Robustness (slide 18):
- Input robustness (
GSM-Plus): Changing"increased his speed"to"had to return and increased his speed"flips distance from8 + 5 = 13miles to8 - 5 = 3miles, breaking models that match surface templates. - Metric robustness (
HumanEval-Plus): Adding edge-case input[6, 8, 1], [6, 8, 1]catchesreturn list(set(common_elements))returning[8, 1, 6](unsorted) after passing the three originalHumanEvaltests.
- Input robustness (
- Data uncontamination (slides, pp. 19–21):
- On
GSM8kvs. held-outGSM1k(Zhang et al. 2024, v1 Fig. 6; slide 19), every one of the 24 plotted models with40%–70%GSM8kaccuracy drops below the \(y = x\) parity line on unseenGSM1k(for example, on Slide 19 /v1 Fig. 6,Xwin-Math-13B-V1.0drops-10.2pp from63.1%to52.9%,Phi-2drops-7.4pp from56.9%to49.5%, andMixtral-8x7B-Instruct-v0.1drops-4.7pp from64.1%to59.4%; note that later paper revisions such asv4report66.0% -> 59.6%forXwin-Math-13B-V1.0under their standard-prompt table). While consistent drops below \(y = x\) flag systematic overfitting or memorization concerns, a score gap alone does not identify how much of a model’s drop came from training-data exposure versus distribution differences. - In
OpenWebMath(Azerbayev et al.,Llemma), a web document datedFeb 28, 2018contains a verbatimMATHtriangle problem and its-120answer. miniCTX(Hu et al.) mitigates contamination via a rolling temporal split, compiling new benchmark releases (miniCTX,miniCTX-v2) strictly from Lean theorems published after the evaluated models’ training cutoffs (GPT-4o/DeepSeek, then subsequent future LLMs).
- On
- Efficiency vs. open-ended text judges (slides, pp. 22–27): Exact integer checks are fast and cheap, whereas hiring human experts to grade long chats is slow, expensive, and error-prone. Three options illustrate the open-ended text tradeoffs:
| Method | Mechanism (Slides, pp. 24–27) | Concrete Lecture Evidence | Primary Pitfall |
|---|---|---|---|
Word overlap (ROUGE) |
Counts \(n\)-gram or LCS overlap against reference | "Exercise improves mood and health." (5 words) vs. "Regular exercise benefits health and mood." (6 words): ROUGE-1 \(P=4/5, R=4/6, F_1=0.727\); ROUGE-2 \(F_1=0.0\); ROUGE-L \(F_1=0.364\) |
Penalizes valid paraphrases with altered word order |
LLM-as-a-judge |
Pairwise preference \(z \sim \text{LLM}(x, y_A, y_B; \text{prompt})\) | On Japanese business etiquette (slides, pp. 23, 26), GPT-4 chooses Assistant A when A is first and flips to Assistant B when B is first |
Position, verbosity, and self-preference biases |
Human preference (Chatbot Arena) |
Crowdsourced blind A/B votes aggregated into Elo scores | Live lmarena.ai leaderboard (slide 27) |
Expensive, slow, and skewed by arena prompt mix and formatting style |
(Note on Slide 24: For ROUGE-2, a 5-word prediction has 4 adjacent bigrams and a 6-word reference has 5, though the slide prints Precision: 0/5, Recall: 0/6 using word counts as denominators—either way \(F_1 = 0.0\). For ROUGE-L, because and precedes health in the prediction while health precedes and in the reference, the longest common subsequence truly has length 2 (["exercise", "mood"] or ["exercise", "and"]), confirming Slide 24’s \(P=2/5, R=2/6, F_1=4/11 \approx 0.364\).)
Statistical inference: turning scores into conclusions
With benchmark validity in place, slides 29–44 adapt Evan Miller (2024) to ask what a score table actually proves. Suppose a leaderboard compares two hypothetical models, "Galleon" and "Dreadnought" (Miller Tables 1–2; slides 30, 33):
| Benchmark | \(N\) | "Galleon" (SE) |
"Dreadnought" (SE) |
Raw Difference |
|---|---|---|---|---|
MATH |
5,000 |
65.5% (0.7 pp) |
63.0% (0.7 pp) |
+2.5 pp |
HumanEval |
164 |
83.6% (3.2 pp) |
86.7% (3.0 pp) |
-3.1 pp |
MGSM |
2,500 |
75.3% (0.9 pp) |
78.0% (0.9 pp) |
-2.7 pp |
(Note on a slide typo: Slide 30 prints 87.7% for Dreadnought on HumanEval alongside difference -3.1%, whereas Slide 33 prints 86.7%, matching 83.6% - 86.7% = -3.1 pp and Slide 40.)
At first glance, Dreadnought leads on two of three benchmarks. Adding standard errors changes the conclusion completely.
Independent questions, CLT, and Bernoulli standard errors
Model a benchmark of \(N\) (written \(n\) in the sums below) independently drawn questions \(q_1, \dots, q_N\) from an unseen super-population with true mean \(\mu = \mathbb{E}[s]\) and observed sample mean \(\bar{s} = \frac{1}{n}\sum_{i=1}^n s_i\) (slides, pp. 31–33). Using the unbiased sample variance estimator \(\widehat{\operatorname{Var}}(s) = \frac{1}{n-1}\sum_{i=1}^n (s_i - \bar{s})^2\), the central limit theorem gives the standard error and large-sample normal \(95\%\) confidence interval:
\[ \text{SE}_{\text{CLT}} = \sqrt{\frac{\widehat{\operatorname{Var}}(s)}{n}} = \sqrt{\frac{\frac{1}{n-1}\sum_{i=1}^n (s_i - \bar{s})^2}{n}}, \qquad \text{CI}_{95\%} = \bar{s} \pm 1.96 \times \text{SE}. \]
(Slide 32 writes \(\operatorname{Var}(s)\) for the sample variance \(\widehat{\operatorname{Var}}(s)\) and uses the plug-in denominator \(n\) in \(\text{SE}_{\text{Bernoulli}} = \sqrt{\bar{s}(1 - \bar{s})/n}\), whereas substituting binary \(s_i \in \{0, 1\}\) into the \((n-1)\) sample-variance formula gives \(\sqrt{\bar{s}(1 - \bar{s})/(n-1)}\).) For MATH (\(N = 5{,}000\)), the Bernoulli plug-in gives \(\sqrt{0.655 \times 0.345 / 5000} = 0.67\text{ pp} \approx 0.7\text{ pp}\), matching the table; for HumanEval (\(N = 164\)), binary plug-in SEs are 2.89 pp (Galleon) and 2.65 pp (Dreadnought)—note that \(p(1-p)\) is an upper bound on variance for any i.i.d. score in \([0, 1]\) with mean \(p\), so Slide 33’s 3.2 pp and 3.0 pp come from Miller’s illustrative table rather than strict single-sample binary scoring.
Clustered questions inflate naive standard errors
Independence fails whenever multiple questions share a passage, template, or source problem—such as empirical Anthropic evaluations on DROP reading comprehension (9,622 questions across 588 clusters), RACE-H (3,498 questions across 1,045 clusters), or MGSM (250 math problems each translated into 10 languages for 2,500 questions; Miller Tables 3–4, slides, pp. 35–36). Because scores \(s_{i,c}\) and \(s_{j,c}\) for questions \(i, j\) within the same cluster \(c\) are positively correlated, cross-terms add directly to the variance:
\[ \text{SE}_{\text{clustered}} = \left(\text{SE}_{\text{CLT}}^2 + \frac{1}{n^2}\sum_{c}\sum_{i \in c}\sum_{j \in c,\, j \neq i}(s_{i,c} - \bar{s})(s_{j,c} - \bar{s})\right)^{1/2}. \]
On Slide 36, accounting for clusters widens DROP’s standard error from 0.44 to 1.34 F1 points (3.05x), MGSM’s from 0.86 pp to 1.62 pp (1.88x), and RACE-H’s from 0.46 pp to 0.51 pp (1.10x as printed on Slide 36; recomputing directly from the displayed 2-decimal values gives \(0.51/0.46 = 1.11\text{x}\)). On MGSM, Galleon (75.3% ± 1.6 pp) and Dreadnought (78.0% ± 1.5 pp) now overlap well inside two standard errors.
Unpaired vs. paired model comparisons
To test the null hypothesis \(H_0: \mu_A - \mu_B = 0\) with estimate \(\hat{\mu}_{A-B} = \hat{\mu}_A - \hat{\mu}_B\):
- Unpaired test (slide 37): Treats the two evaluations as independent, yielding \(\text{SE}_{A-B} = \sqrt{\text{SE}_A^2 + \text{SE}_B^2}\), \(z_{A-B} = \hat{\mu}_{A-B}/\text{SE}_{A-B}\), and \(\text{CI}_{A-B,95\%} = \hat{\mu}_{A-B} \pm 1.96 \times \text{SE}_{A-B}\).
- Paired test (slides, pp. 39–40): When both systems run on the same questions \((x_i, y_{A,i}, y_{B,i})\), compute the per-question difference \(s_{A-B,i} = s_{A,i} - s_{B,i}\) first and estimate its sample variance: \[
\text{SE}_{A-B,\text{paired}} = \sqrt{\frac{\widehat{\operatorname{Var}}(s_{A-B})}{n}} = \sqrt{\frac{\frac{1}{n-1}\sum_{i=1}^n (s_{A-B,i} - \bar{s}_{A-B})^2}{n}}.
\] Because \(\operatorname{Var}(s_A - s_B) = \operatorname{Var}(s_A) + \operatorname{Var}(s_B) - 2\operatorname{Cov}(s_A, s_B)\), positive correlation between models cancels shared question-difficulty noise. Crucially, when questions are clustered—as in
MGSM—one must first form the paired differences \(s_{A-B, i}\) and then apply the clustered SE formula across the250original source problems rather than applying the i.i.d. paired formula to all2,500translations.
(Constructed worked check, not lecture data: Suppose \(n = 4\) independent binary questions yield \(s_A = (1, 1, 0, 0)\) with \(\bar{s}_A = 0.50\) and \(s_B = (1, 0, 0, 0)\) with \(\bar{s}_B = 0.25\). Treating them as unpaired gives \(\text{SE}_A = \sqrt{(1/3)/4} \approx 0.2887\), \(\text{SE}_B = \sqrt{0.25/4} = 0.2500\), and \(\text{SE}_{A-B,\text{unpaired}} = \sqrt{1/12 + 1/16} \approx 0.3819\). Pairing question-by-question gives \(s_{A-B} = (0, 1, 0, 0)\), sample variance \(0.25\), and \(\text{SE}_{A-B,\text{paired}} = \sqrt{0.25/4} = 0.2500\)—a 34.5% smaller standard error.)
Applying the paired analysis (with clustering on MGSM) to the hypothetical Galleon minus Dreadnought comparison on Slide 40 (Miller Table 5) flips the naive leaderboard reading:
| Benchmark | Unpaired SE (derived from Slide 33/36) | Paired SE (Slide 40) | Correlation \(\rho\) | Paired Difference & 95% CI | Conclusion |
|---|---|---|---|---|---|
MATH |
0.99 pp |
0.7 pp |
0.50 |
+2.5 pp (+1.2 to +3.8 pp) |
Significant (Galleon wins) |
HumanEval |
4.39 pp |
2.1 pp (see note) |
0.64 |
-3.1 pp (-7.2 to +1.0 pp) |
Includes 0 (not significant) |
MGSM |
2.19 pp (clustered) |
1.7 pp |
0.37 |
-2.7 pp (-6.1 to +0.7 pp) |
Includes 0 (not significant) |
(Note on HumanEval paired SE consistency: Using Slide 33’s marginal SEs 3.2 pp and 3.0 pp with Slide 40’s \(\rho = 0.64\), \(\sqrt{3.2^2 + 3.0^2 - 2(0.64)(3.2)(3.0)} = 2.64\text{ pp}\), whereas Slide 40 / Miller Table 5 prints 2.1 pp alongside CI (-7.2, +1.0) pp, which aligns with 1.96 × 2.1 ≈ 4.1 pp. We retain (-7.2, +1.0) pp as quoted from the slide; under either 2.1 pp or 2.64 pp, the interval crosses zero.) Out of three hypothetical benchmarks where Dreadnought appeared ahead 2-to-1, only Galleon’s +2.5 pp advantage on MATH is statistically distinguishable from sampling noise.
Variance reduction and sample-size scaling
Finally, for \(n\) independent questions, \(\operatorname{Var}(\hat{\mu}) = \operatorname{Var}(s)/n\), so standard error decays as \(1/\sqrt{n}\) (slides, pp. 42–43). Halving an error bar at fixed accuracy \(p\) requires four times as many independent questions (as shown by Slide 43’s analytic Bernoulli curve at \(p = 0.86\)). By contrast, averaging multiple stochastic decodes on a fixed set of \(n\) questions reduces only within-question decoding variance—the between-question sampling variance remains governed by \(n\) (and cluster structure).
Sources and verified checks
- Primary lecture materials: CMU CS11-711 Advanced NLP Fall 2025 schedule (Lecture 13, Evaluation Techniques, Oct 7, 2025, Sean Welleck), slides PDF (45 pp.), and syllabus code link
13_evaluation(no public lecture recording link is listed on the official Fall 2025 schedule). - Statistical framework: Evan Miller (2024), Adding Error Bars to Evals: A Statistical Approach to Language Model Evaluations (
arXiv:2411.00640). - Benchmark & empirical sources cited on slides:
AlphaCode(Li et al. 2022),GSM1k(Zhang et al. 2024 v1),Llemma / OpenWebMath(Azerbayev et al., slide 20),miniCTX(Hu et al., slide 21),GSM-PlusandHumanEval-Plus(slide 18), andChatbot Arena(lmarena.ai, slide 27). - Figure provenance and arithmetic checks: Original figures and numerical checks live in
ML/NLP/anlp13-assets/create_figures.pyandML/NLP/anlp13-assets/manifest.json. Constructed checks (the 5-samplepass@Kexample and 4-question paired SE example) are explicitly labeled and separated from slide-reported measurements.


