Why Benchmark Leaderboards Need Statistical Error Bars

CMU Advanced NLP · Lecture 13: Evaluation and Benchmarks

NLP
Evaluation
Benchmarks
Statistics
Confidence Intervals
Why lower cross-entropy loss does not guarantee higher downstream task performance, how six benchmark properties govern evaluation validity, and why clustered and paired standard errors overturn naive leaderboard rankings.
Author

Chao Ma

Published

November 29, 2026

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:

  1. 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).
  2. 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).
  3. 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).

Two-panel chart titled Error Bars Overturn Naive Leaderboard Rankings with bold green subtitle Only MATH (+2.5 pp) Excludes Zero; Clustering Widens Real Evals Up to 3.05x. Panel A shows hypothetical paired 95% confidence intervals for Galleon minus Dreadnought: MATH at +2.5 pp (+1.2 to +3.8 pp, significant), HumanEval at -3.1 pp (-7.2 to +1.0 pp, crosses zero), and MGSM at -2.7 pp (-6.1 to +0.7 pp, crosses zero). Panel B shows empirical zero-baseline bars comparing Naive SE_CLT against SE_clustered: DROP rises from 0.44 to 1.34 F1 pts (3.05x), MGSM from 0.86 to 1.62 pp (1.88x), and RACE-H from 0.46 to 0.51 pp (1.10x).

Hypothetical paired 95% confidence intervals (left, Miller Table 5 / Slide 40) and empirical clustered standard errors on Anthropic evaluations (right, Miller Table 4 / Slide 36). Left: For the hypothetical Galleon minus Dreadnought comparison, only MATH (+2.5 pp, 95% CI (+1.2, +3.8) pp) excludes zero; HumanEval (-3.1 pp, 95% CI (-7.2, +1.0) pp) and MGSM (-2.7 pp, 95% CI (-6.1, +0.7) pp) cross zero. Right: On empirical evaluations, naive i.i.d. SE_CLT underestimates SE_clustered by 3.05x on DROP (F1 pts), 1.88x on MGSM (pp), and 1.10x as printed on RACE-H (pp).

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. SIQA accuracy (slides, pp. 4–5): Near 1,000 billion pretraining tokens on Slide 4, LLaMA 33B maintains visibly lower training loss than LLaMA 13B (read visually around 1.67 vs. 1.73). Yet on downstream SIQA accuracy, the 13B and 33B curves cross repeatedly near 49%–51%, undermining the simple claim that lower pretraining loss makes 33B uniformly better on every task.
  • AlphaCode fine-tuning (Li et al. 2022; slide 6): After roughly 50k fine-tuning steps out to 800k, validation loss trends upward with local fluctuations from ~0.455 toward ~0.495, while the dashed Solve rate (fit) curve (10@1024 in 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).

Three-row pipeline diagram titled Evaluation Choices Trade Speed Against Validity and Leakage. Left System and Task box feeds three rows: Verifiable Match or Exec (MMLU exact match, HumanEval pass@K) leading to Score Gap and Edge Cases (GSM8k > GSM1k, Llemma, GSM-Plus, HumanEval+) and miniCTX temporal split plus practice safeguards; Automated Text Proxy (ROUGE, LLM Judge) leading to Surface and Order Bias (paraphrase zeros, GPT-4 position flip) and practice order swapping; Human Preference Vote (Chatbot Arena Elo) leading to Cost and Prompt Skew and practice prompt stratification plus paired SEs with defined estimand.

Three downstream evaluation pathways, concrete metrics, lecture failure modes, and mitigations. Columns 1–2 and miniCTX come from CMU ANLP Lecture 13 (Slides 4–28); Column 3 entries marked Practice summarize author-noted evaluation safeguards rather than explicit slide prescriptions.

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 across 57 subjects where the model outputs A, B, C, or D, 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):

  1. 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.
  2. Depth and difficulty (slide 16): Questions must stay hard enough to separate strong from weak models. As TriviaQA, MMLU, GSM8K, and MATH climbed above 90% between 2020 and 2025, evaluation shifted toward harder suites (GPQA, SWE-bench Verified, AIME, and Humanity's Last Exam).
  3. 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?”).
  4. Robustness (slide 18):
    • Input robustness (GSM-Plus): Changing "increased his speed" to "had to return and increased his speed" flips distance from 8 + 5 = 13 miles to 8 - 5 = 3 miles, breaking models that match surface templates.
    • Metric robustness (HumanEval-Plus): Adding edge-case input [6, 8, 1], [6, 8, 1] catches return list(set(common_elements)) returning [8, 1, 6] (unsorted) after passing the three original HumanEval tests.
  5. Data uncontamination (slides, pp. 19–21):
    • On GSM8k vs. held-out GSM1k (Zhang et al. 2024, v1 Fig. 6; slide 19), every one of the 24 plotted models with 40%–70% GSM8k accuracy drops below the \(y = x\) parity line on unseen GSM1k (for example, on Slide 19 / v1 Fig. 6, Xwin-Math-13B-V1.0 drops -10.2 pp from 63.1% to 52.9%, Phi-2 drops -7.4 pp from 56.9% to 49.5%, and Mixtral-8x7B-Instruct-v0.1 drops -4.7 pp from 64.1% to 59.4%; note that later paper revisions such as v4 report 66.0% -> 59.6% for Xwin-Math-13B-V1.0 under 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 dated Feb 28, 2018 contains a verbatim MATH triangle problem and its -120 answer.
    • 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).
  6. 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 the 250 original source problems rather than applying the i.i.d. paired formula to all 2,500 translations.

(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).

Two-panel chart titled Halving Standard Error Needs 4x Questions; Held-Out GSM1k Drops. Left log10-log10 panel plots Slide 43 analytic Bernoulli SE at p=0.86 across n=100 (0.0347), 156 (0.0278), 500 (0.0155), 1,000 (0.0110), 2,000 (0.0078), and 5,000 (0.0049), noting that 4x independent questions halves SE. Right scatter panel plots seven named models from Slide 19 (Zhang et al. v1 Fig. 6) on GSM8k versus GSM1k (axis range 38% to 68%): all points fall below the y=x diagonal, including Mistral-7B-Inst-v0.2 (-2.7 pp), Llama-3-8B (-5.7 pp), Xwin-Math-7B (-10.1 pp), Llama-2-70b (-2.2 pp), Phi-2 (-7.4 pp), Xwin-Math-13B (-10.2 pp), and Mixtral-8x7B-Inst (-4.7 pp).

Analytic Bernoulli standard error scaling (Slide 43) and GSM8k vs. GSM1k held-out score drops (Slide 19). Left: On log10 axes at p = 0.86, quadrupling independent n from 500 to 2,000 cuts SE in half from 0.0155 to 0.0078. Right: Seven named models from Slide 19 (Zhang et al. 2024 v1 Fig. 6) all score below the y = x parity line on held-out GSM1k, dropping by 2.2 to 10.2 percentage points.

Sources and verified checks