Skip to content
mlmentorship

Reproducibility and fair model comparison

Compare models with matched resources, repeated runs, complete records, and tests that another person can reproduce.

Published · 9 min read ·Core ·Intermediate

Visual quick review

Distinguish a best-run leaderboard from a fair comparison that predeclares matched opportunities, retains every repeated run, and reports an effect with uncertainty.

Learning objective

Unequal tuning opportunities prevent the best observed scores from isolating method effects

Best-run leaderboard

The methods receive different opportunities, then only each winner survives reporting.

evidence choicebaselinenew method
data and tokenssmaller setlarger set
compute and capacitylowerhigher
tuning opportunityfew trialsmany trials
selection rulebest observedbest observed
failuresomittedomitted

conclusion allowed: one selected setup scored higher

Matched, complete evidence

Predeclare one comparison contract, then retain every planned outcome under it.

recordbaselinenew method
data · tokens · evaluationmatchedmatched
capacity · compute · tuningmatchedmatched
selection rulepredeclaredsame rule
run 1recordedrecorded
run 2recordedrecorded
run 3recordedfailed, retained

conclusion allowed: effect size + uncertainty + disclosed cost

compare the resource rows before the scores. Unequal data, compute or search can explain a win. The right panel declares the comparison before training and retains every planned run, including failures. Report the complete set's effect size, uncertainty and cost.
Check: Why does the best observed score alone not isolate a method effect when tuning opportunities differ?
Full explanation 9 min read
Reading depth

Summary

A model comparison needs complete runs and a declared resource budget. A reproducible record lets another person rebuild those runs from code, data, configuration and environment.

Problem

A candidate has a better best accuracy than the baseline. Should you recommend it? Compare three hypothetical paired runs with equal tokens, tuning opportunity and evaluation settings. The pair mapping was specified before scores were observed. None of these planned runs failed.

Picture

Give every planned run a row before training begins. Put the baseline and candidate side by side. Compare within each row, then summarize all rows. Keep a failed run in its row with its status.

Learning objective

Unequal tuning opportunities prevent the best observed scores from isolating method effects

Unequal tuning opportunities confound the method comparisonMethod B received ten times the search trials. Its best score cannot isolate the method effect without a matched tuning comparison.The downstream decision sees only itsavailable identitiesMethod A: ten trials10 available identities; one mark 1Method B: one hundred trials100 available identities; one mark 1
Read it this way: Method B received ten times the search trials. Its best score cannot isolate the method effect without a matched tuning comparison. Which missing matched search would isolate method benefit?
Reference drawing

Learning objective

Unequal tuning opportunities prevent the best observed scores from isolating method effects

Unequal tuning opportunities confound the method comparisonMethod B received ten times the search trials. Its best score cannot isolate the method effect without a matched tuning comparison.The downstream decision sees only itsavailable identitiesMethod A: ten trials10 available identities; one mark 1Method B: one hundred trials100 available identities; one mark 1
Derivation

Best-run leaderboard

The methods receive different opportunities, then only each winner survives reporting.

evidence choicebaselinenew method
data and tokenssmaller setlarger set
compute and capacitylowerhigher
tuning opportunityfew trialsmany trials
selection rulebest observedbest observed
failuresomittedomitted

conclusion allowed: one selected setup scored higher

Matched, complete evidence

Predeclare one comparison contract, then retain every planned outcome under it.

recordbaselinenew method
data · tokens · evaluationmatchedmatched
capacity · compute · tuningmatchedmatched
selection rulepredeclaredsame rule
run 1recordedrecorded
run 2recordedrecorded
run 3recordedfailed, retained

conclusion allowed: effect size + uncertainty + disclosed cost

compare the resource rows before the scores. Unequal data, compute or search can explain a win. The right panel declares the comparison before training and retains every planned run, including failures. Report the complete set's effect size, uncertainty and cost.
Check: Why does the best observed score alone not isolate a method effect when tuning opportunities differ?
Read it this way: Method B received ten times the search trials. Its best score cannot isolate the method effect without a matched tuning comparison. Which missing matched search would isolate method benefit?

Original synthesis informed by the benchmark-variance study, experimental-reporting study, and NeurIPS reproducibility report.

Repeat the sources of variation

Repeat the variation relevant to the claim: initialization, data order, training stochasticity or evaluation sampling. Pairing means a declared correspondence between runs. Equal seed numbers alone do not guarantee useful pairing across different programs. For this example, each row is one paired training repeat evaluated on the same held-out set. Evaluation-sample uncertainty is a separate quantity.

Small example

Planned pairBaseline accuracyCandidate accuracyCandidate minus baseline
10.800.830.03
20.820.81-0.01
30.780.790.01

The baseline mean is and the candidate mean is . The mean paired difference is : one percentage point. One pair regresses. The best candidate’s three-point paired gain is not the average gain.

Let be the difference in row , and let be their mean. The centered differences are . Their sample standard deviation is

Report the complete ledger, mean difference, declared uncertainty method and costs. Three rows describe this fixture; they are insufficient evidence for a general reliability claim. If a fourth planned run fails, retain it and define how failures enter the comparison’s outcome.

Change the comparison

1. The candidate uses twice the compute

New task: isolate the method’s gain at equal compute.

Picture and change: add a compute-matched baseline. Keep the larger-system comparison separately labeled. Match tuning opportunity too.

Check: one versus two GPU-hours on the same hardware is unequal compute, even with identical seed labels.

Use when: architecture or training duration changes resource use.

2. Replay a failed training step

New task: reproduce a NaN in one distributed transition.

Picture and change: save the pre-failure checkpoint, next batch, optimizer, schedule, data position and random-number state. Record rank mapping, world size, software, kernels and precision.

Check: loading the weights with a different batch does not replay the same transition.

Use when: the target is a failure mechanism. Keep this replay separate from representative performance repeats.

Selection can survive repetition

Suppose the baseline receives two tuning trials and the candidate receives fifty. Rerunning their selected winners leaves that unequal selection opportunity unchanged. Define the tuning and selection rules before comparing the methods.

Try a different claim

Does an exactly repeated result prove a useful performance gain?

Check your answer

It demonstrates repeatability of that setup. A useful comparative gain needs matched opportunities, relevant variation and an outcome worth its cost.

Sources of variation

Initialization, data sampling, cleaning, tuning, training duration, hardware, precision, evaluation and code changes can explain a score change. Control or record each factor relevant to the claim.

Three useful terms

  • Repeatability: rerun the same setup and obtain a compatible result.
  • Reproducibility: rebuild the result from supplied records and artifacts.
  • Replicability: test the claim with an independent implementation or dataset.

Terminology conventions differ. State the evidence your chosen term requires.

Match the comparison

ResourceRecorded comparison
DataExamples, tokens and cleaning
CapacityModel size and parameter use
ComputeWork, hardware, time and precision
TuningSearch budget and selection rule
ImplementationBaseline correctness and optimization
EvaluationPrompts, decoding, scorer and held-out set

If exact matching is impossible, report the difference and narrow the claim.

Keep an experiment record

Use immutable run IDs. Retain code, data/mixture, model configuration, optimizer, schedule, seeds, hardware, precision and dependency/kernel versions. Include checkpoint lineage, evaluator, decoding, status, failure reason, logs and artifact locations.

Reproducing a training failure

Keep logs on both sides of the first bad transition. For expensive runs, repeat affordable scale tests or replay critical ranges. Report which full-run variation remains unmeasured. Deterministic replay helps debugging; representative repeats measure variability.

In an interview

State the claim, its alternative explanation, the matched comparison and a result that would reject your explanation.

Common mistakes

Do not tune on the final test set or omit failed attempts. Changing data and model together needs additional controls to isolate their effects.

Related: ML data lineage and versioning, design an ablation study, debug a frontier LLM training run, and loss spikes at scale.