Topic 4 of 5 · 5 min read
Averaging repeated runs to cut noise
Goal: Decide how many runs per case are worth the cost for a given eval and explain the noise each removes.
A model can pass the same case on one run and fail it on the next, so running each case several times removes that sampling noise, but not the noise from having only a few cases. These are two different kinds of error, and each has its own fix.
Check yourself · 1 of 3
What does running each eval case 5 times mainly reduce?
Why it matters
At any temperature above zero, and even at zero on many hosted models, the same prompt can return different answers. A single run per case measures one random draw per case. Your score then moves between runs even when nothing changed, and you may chase a 2 point "regression" that is a re-roll.
The two sources of noise
- Between cases. Which questions you happened to pick. More cases reduce this.
- Within a case. What the model did on this particular draw. More runs per case reduce this.
For one case with a true pass probability of 0.6, a single run is a coin weighted 0.6 and has a standard deviation of about 0.49. The average of 5 runs has a standard deviation of about 0.22. Within-case noise falls with the square root of the number of runs k: 4 runs halve it.
Averaging does not change how many distinct questions you tested. If the real problem is that you have 60 cases, 5 runs of 60 is still 60 questions.
How to decide the number of runs
- Run a pilot: 3 to 5 runs per case, then look at how much the score for a case varies across runs.
- If most cases pass every time or fail every time, extra runs add little. Spend the money on new cases.
- If many cases flip between runs, the model is unstable on those cases. Use more runs, and note the instability as a finding.
- Count the cost: a judge call per run multiplies your bill by
k.
For a quick split, report pass^k or "passed at least once in k" when your feature cares about reliability or about best-of-k, not just the mean.
Before and after
Before: "We ran the eval once and it dropped from 78 to 75 percent. Revert."
After: "We ran each of 100 cases 5 times. Mean score 77.2 percent (run range 74 to 80). The previous version ranged 75 to 80. The runs overlap fully, so the drop is within run-to-run noise."
What goes wrong
- Using extra runs as a substitute for more cases. They fix a different noise.
- Treating the 5 runs of one case as 5 independent cases when computing intervals.
- Comparing a single run of one version with the best of several for another.
Examples
Re-roll regression
A prompt tweak seems to drop the score from 78 to 75 percent on a single run. Re-running the old prompt five times gives 74, 77, 78, 79, 80. The 'regression' is inside the old version's own spread.
Where runs stop paying
In a pilot, 90 of 100 cases give the same result on all 5 runs. The 10 unstable cases hold most of the noise. The team adds 3 runs only for those 10 and spends the rest of the budget on 100 new cases.
Key points
- There are two noise sources: which cases you chose, and what the model did on each draw.
- More runs per case cut within-case noise by about the square root of the number of runs; they do not widen the set of questions.
- Run a pilot of 3 to 5 runs per case to see how unstable each case is before paying for more.
- If cases are almost always all-pass or all-fail, extra runs add little; add new cases instead.
- Never treat repeated runs of one case as independent cases when computing error bars.
Common mistakes
- Running every case once and trusting a 2 point change.
- Running 10 times on 20 cases and believing the set is large.
- Pooling all runs as if each were an independent case in the interval.
- Comparing one version's mean of several runs to another version's single run.
Check yourself · 2 of 3
A pilot with 5 runs per case shows 95 of 100 cases give the same result every time. What is the best use of more budget?
Check yourself · 3 of 3
You run 20 cases 5 times each. How many independent questions does the eval have?
Practice items, not counted towards your mastery.
Start here
- A statistical approach to model evaluations (Anthropic) (opens in a new tab)ArticleFree
Standard errors, paired differences, clustering and power analysis applied to model evals, in plain terms.
- Adding Error Bars to Evals (Miller, 2024) (opens in a new tab)PaperFree
The paper behind the article: formulas for clustered errors, paired tests, resampling and power.
- A/B test sample size calculator (Evan Miller) (opens in a new tab)ToolFree
Enter a baseline rate and the smallest difference you care about, and read off the sample size.