making things. thinking out loud.

← Back to notes

Ideas

p-values in LLM evals are mostly theatre

How surprised should we be by a 7-point gap? Paired comparisons, small benchmarks, and the uncertainty behind a bold score.

A pattern I see constantly: model A scores 60%, model B scores 53%, A goes in bold, and the paper moves on. Sometimes there's a p-value. Rarely an interval.

The data scientist in me wants to ask one boring question: how surprised should we be by a 7-point gap?

A tiny benchmark

Say the benchmark has 30 questions, which isn't unusual for competition-maths sets. A gets 18 right, B gets 16.

import numpy as np

n = 30
a = np.array([1]*18 + [0]*12)              # model A: 18/30 = 60%
b = a.copy(); b[[0, 1, 2]] = 0; b[18] = 1  # model B: 16/30, disagrees on 4 questions

se = lambda x: np.sqrt(x.var(ddof=1) / len(x))
print(f"A: {a.mean():.3f} ± {1.96*se(a):.3f}")           # 0.600 ± 0.178
print(f"A-B unpaired SE: {np.sqrt(se(a)**2 + se(b)**2):.3f}")  # 0.130
print(f"A-B paired SE:   {se(a - b):.3f}")                     # 0.067

rng = np.random.default_rng(0)
idx = rng.integers(0, n, size=(10_000, n))   # resample questions, keep the pairs
print(np.percentile((a[idx] - b[idx]).mean(axis=1), [2.5, 97.5]))  # [-0.067, 0.2]

Three things fall out of that.

First, A's own score is 60% ± 18 points. Thirty outcomes don't pin much down.

Second, pair your comparisons. Both models answered the same questions and mostly agree on which ones are hard, so look at per-question differences. That halves the standard error here (0.130 → 0.067). Evan Miller makes this point in Adding Error Bars to Evals: because question scores tend to be positively correlated, even across unrelated models, pairing is a "free" reduction in variance. He recommends reporting pairwise differences, pairwise standard errors and score correlations.

Third, even paired, the bootstrap interval for A − B runs from −6.7 to +20 points. It includes zero. The bold font is doing more work than the data.

Small benchmarks break the usual maths

That ± 1.96 × SE line leans on the central limit theorem. Bowyer, Aitchison and Ivanova (2025) argue that it works when you have thousands of examples. On smaller, specialised benchmarks, CLT intervals usually underestimate uncertainty: the error bars come out too small. In their simulations, Wilson score intervals and Bayesian credible intervals keep close to nominal coverage at small N, where CLT intervals don't. For our 18/30, a Wilson interval is roughly 42% to 75%. That's lopsided, and wider on the low side than the CLT version.

Questions come in clumps

Many benchmarks group questions: several per passage, or per problem. Those aren't independent draws. Miller shows how to use clustered standard errors for this. On two real evals he reports clustered errors more than three times the naive ones. If ten questions share one passage, you have closer to one observation than ten.

The other dice

The question sample isn't the only randomness. Madaan et al. (2024) measured seed variance, retraining otherwise identical 7B models with different seeds. They found it's usually well below the bootstrapped 95% interval, though the ratio between the two varies a lot by benchmark. Then there's prompt format. Sclar et al. found differences of up to 76 accuracy points on LLaMA-2-13B from meaning-preserving formatting changes alone.

And if you compare ten models on twelve benchmarks, some "wins" are just multiple comparisons. Correct for them, or at least say how many comparisons you made.

Decide what you can detect before you run it

My favourite habit borrowed from experiment design is the minimum detectable effect. With our paired standard error of about 0.067, a test at α = 0.05 with 80% power can only reliably detect a gap of roughly 19 points. Miller gives the sample-size formula. Run it before the eval, and you'll know whether a 30-question set can answer your question at all.

This isn't me pointing fingers. The HALT-CoT write-up reports accuracy "within roughly ±0.4 points" of full chain-of-thought, and that's exactly the kind of claim I now want an interval on.

What I'm still unsure about

  • What should the default be for a small benchmark: Wilson, Bayesian, or paired bootstrap? And does it matter much once you pair?
  • How should seed, prompt and question variance be combined into one honest interval?
  • Should leaderboards publish minimum detectable effects, so readers know which gaps are noise?