Statistical Foundations · 4 min read
Fine-tune the same model twice with different seeds and you will usually get two different scores. If your new recipe beats the old one by a point, was that the recipe or the dice?
Measure the spread first
Run the baseline recipe with several seeds and compute the standard deviation of the final metric across runs. That number, not the standard error of the test set, describes how much a single training run can move.
Test-set uncertainty and seed uncertainty add. A large test set shrinks one but does nothing about the other.
How many seeds a comparison needs
For two recipes with s seeds each and a seed standard deviation of σ, the standard error of the difference in means is σ times the square root of 2/s. If σ is 0.8 points and s is 5, the standard error is about 0.5 points, and a 95% interval is roughly ±1.2 points once you account for estimating σ from few runs.
A one-point improvement is not resolved at that budget. Either run more seeds or accept that the comparison cannot tell the recipes apart yet.
Make the comparison fair
- Use the same data order and evaluation set across recipes, so seeds are the only difference you are averaging over.
- Decide the number of seeds and the success rule before seeing results.
- Do not report the best seed. Report the mean and the spread.
- If runs are expensive, pilot the spread on a smaller configuration and verify it carries over.
