Comparing experiments fairly
A favorable run can reflect luck or budget differences. Controlled repeats separate those effects from a method. Inspect uncertainty and learning curves before ranking architectures from a small experiment.
#Section 24Experimental noise
Train Finch-24 twice with the same configuration, but change the initialization and sampled windows. The resulting validation losses need not match. Early gradients differ, Adam’s histories differ, and later updates follow those earlier choices. One scalar score contains both the effect of the method and the outcome of a particular trajectory.
Experimental noise is variation in a reported result caused by random choices or uncontrolled conditions rather than the treatment we intend to compare. Here a seed initializes a pseudorandom generator. Different generators can separately control weight initialization, training data, dropout and sampling. A seed value does not identify an experiment without the code, configuration, data and environment that interpret it.
The earlier reproducibility section distinguishes repeatable runs from general results. Section 19 explains how to restore a particular trajectory. Here the question changes: would a claimed improvement persist if we repeated the experiment under other valid random choices?
Where variation enters
Random initialization changes the initial feature directions. Data-order randomness changes which evidence the optimizer receives first, and moment estimates make that history matter. Dropout or stochastic preprocessing adds further draws where those mechanisms are enabled. Nondeterministic floating-point reductions can create small differences that later optimization amplifies. Validation sampling itself can add measurement variation even when the checkpoint is fixed.
The figure shows variation among unchanged baseline runs. Picking one favorable baseline and one favorable variant can make ordinary run variation look like an architectural improvement.
To isolate training variance, evaluate every checkpoint on the same fixed validation targets. To study sensitivity to initialization, hold the data schedule fixed while varying only initialization. To estimate ordinary deployment-of-the-training-recipe variation, vary the intended random components together. These are different experiments and should be named differently.
#Section 25Seed spread and fair comparisons
Our proposed change gets illustrative losses 2.09, 2.11, 2.07, 2.10 and 2.13. Every value looks plausible beside the baseline. To compare them, we need the central result, the spread, and the relationship between runs rather than just the lowest number.
The sample mean estimates average performance over the tested run distribution. Sample variance measures squared deviations from that mean, using a denominator of one less than the sample count for the usual unbiased variance estimate. Its square root is the sample standard deviation, the run-to-run spread in the original metric units. A standard error instead estimates uncertainty in a mean under stated sampling assumptions.
Read this as averaging the run scores , then averaging their squared deviations with denominator . The symbol denotes the mean, the sample variance, and the number of independently sampled runs. Treating dependent reruns as independent makes uncertainty look smaller than it is.
A paired worked example
Suppose each row uses a shared data schedule and a declared matched initialization policy. Record variant minus baseline within each row. Lower NLL is better, so negative differences favor the variant. The losses and their differences are illustrative values generated in numbers.py.
| Pair | Baseline NLL | Variant NLL | Variant minus baseline |
|---|---|---|---|
| 1 | 2.10 | 2.09 | -0.01 |
| 2 | 2.14 | 2.11 | -0.03 |
| 3 | 2.08 | 2.07 | -0.01 |
| 4 | 2.12 | 2.10 | -0.02 |
| 5 | 2.16 | 2.13 | -0.03 |
Analyze paired run differences where pairing is valid. Report their variation and the uncertainty of the average improvement, not just two means.
Read this as computing the variant score minus baseline score within each pair, averaging those differences, and dividing their sample standard deviation by the square root of the pair count. Pairing can reduce nuisance variation when the matched conditions move both methods similarly. It is not an excuse to claim a distribution-free guarantee from a small set of runs.
A noise floor is a measurement limit
A noise floor in this context is the size of changes our current experiment can reliably distinguish. It depends on run variance, evaluation-set size, independence, the number of runs and the analysis policy. It is not always equal to one standard deviation. A small average effect can be distinguishable after many well-controlled independent repeats; a large best-run effect can disappear under honest repetition.
Report what an error bar represents: standard deviation, standard error or a confidence interval. Show the sample count and whether the comparison is paired. Small-sample uncertainty, skewed scores, cherry-picked seeds and many unreported trials all weaken the claim. Validation improvements should survive an independent held-out assessment rather than just additional tuning on the same split.
The controlled experiment
A controlled experiment changes the treatment of interest while keeping other relevant choices fixed or explicitly accounting for them. For an architecture comparison, keep tokenizer, data splits, training mixture, evaluation targets, context policy and loss definition fixed. Declare whether the resource constraint is equal parameters, equal tokens, equal estimated FLOPs or equal wall-clock time. These budgets answer different questions.
An FFN variant that expands more channels may improve loss simply by adding parameters and computation. A faster attention kernel can fit more tokens into a fixed time budget without changing the mathematical architecture. Both can be useful results, but the causal claim should match the comparison. Record the matched baseline, the actual resource use and the uncertainty, not only the winning checkpoint.
#Section 26Undertraining
A brief run can leave a large model far from its useful performance. Training exposure helps describe the budget but does not by itself prove convergence or failure.
Undertraining means stopping before the model has received enough optimization and data exposure for the comparison or intended objective. It differs from insufficient capacity: a larger model may look worse simply because its training trajectory is less developed at the measured budget. It also differs from an optimizer bug. We first need a correct training procedure before asking whether it has run long enough.
Model size, data size and steps
Distinguish unique data tokens from tokens presented during training. Repeating a small corpus increases presentations but adds no new documents; it can reduce training loss while increasing overfitting. A step count by itself is incomplete because batch size, sequence length, masks and accumulation change how many targets a step contains. Log both successful updates and token presentations, with the data-reuse policy.
Track data consumed separately from successful updates when batches are masked, rejected, or skipped after overflow. State which counter drives the schedule.
Scaling intuition without a universal recipe
Hoffmann and colleagues' 2022 Chinchilla study showed that a compute-optimal allocation under its tested conditions balances model size with more training tokens, rather than spending nearly all the budget on a larger model. The familiar roughly 20-token-per-parameter heuristic belongs to that fitted regime. It is not a law for every dataset, tokenizer, architecture, training stage or deployment objective.
Inference cost changes the optimum. Training a smaller model for longer may cost more once during pretraining and save repeated serving cost later. Data quality, limited unique data and context-dependent attention costs also change the trade-off. The Llama 3 report is a dated example of a recipe chosen for broader constraints than the historical pretraining-compute optimum.
Read this as an approximate dense-model training compute ledger: is floating-point operations, is the parameter count used in the approximation, and is presented training tokens. The factor 6 summarizes dense projection forward and backward work; this estimate omits sequence-length-dependent attention work and many systems costs. Sparse activation, tied lookup details, rematerialization and optimizer overhead can change the accounting.
What a fair conclusion sounds like
“I found a lower held-out NLL at equal token budget with matched data and multiple seeds” is a useful result. “This architecture is always better” is a different claim and needs evidence across budgets, datasets and tuning policies. If the curves are still moving, disclose that the comparison measures performance at that budget. Learning speed is an outcome; final attainable quality is another outcome.