Foundations to Frontier
Tests
O. Research Skills › O1 Reading Research

Critical Review: Spotting Flaws

Many reported improvements in machine learning come partly or wholly from the protocol rather than the method: a baseline tuned less carefully, hyperparameters chosen on the test set, the best seed reported, or test data that leaked into training. Critical reading means knowing how large each of these effects can be and checking the paper for them. The exercises simulate the comparison of two methods and measure the gain each flaw manufactures for a method with no true improvement, then simulate 1,000 submissions and compare reviewers who read only the headline number, check the stated protocol, discount what is not stated, or ask the authors. Practice problems cover tuning budgets, why seeds alone understate variance, leakage through random splits of grouped data, highlighting the best of many benchmarks, and truncated axes.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Where a gain comes from

A reported gain is the difference between two numbers, each produced by a protocol: how hyperparameters were searched, which data chose them, how many runs were averaged, and which data the test set shares with training. If the two methods were not treated alike, part of the gain belongs to the protocol. A critical reader asks, for each claim, what else could have produced this number.

🎮 Research lab

A method with no true improvement, 400 simulated papers per protocol. Mean reported gain:

honest protocol
+0.06 points
weak baseline tuning
+0.95 points
selection on the test set
+1.00 points
best seed reported
+0.45 points
test data leakage
+2.08 points

1,000 submissions, 60% with no true gain, 66.3% with at least one flaw. The headline reviewer (accept a reported gain of 1 point or more) accepts 512 papers; 49.4% of them have no true gain, and 88.1% of the real gains of 1 point or more are accepted.

Why engineers care

In Exercise 1, a method with no true improvement gained +0.95 points from a weakly tuned baseline, +1.00 from choosing hyperparameters on the test set, +0.45 from reporting the best of five seeds, and +2.08 from 10% test leakage.

📝 Quick check (Level 0)
0/3 answered
  1. 1. A baseline tuned with fewer settings than the new method…
  2. 2. Choosing hyperparameters on the test set makes the test score…
  3. 3. Reporting the best of five seeds instead of the mean…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Weak baselines: baselines run with default or lightly tuned hyperparameters, or old numbers copied from other papers under different settings.
  • Selection on the test set: choosing hyperparameters, checkpoints or model variants by test performance; the reported test score is then a maximum of noisy estimates.
  • Cherry-picked seeds or runs: reporting the best run, or too few runs to see the spread.
  • Leakage: test information reaching training, through duplicates, preprocessing fitted on all data, future data in time series, or random splits of grouped data (same patient, same site, same scene).
  • Multiple comparisons: many datasets, metrics or variants tried, the best highlighted.
  • Misleading presentation: truncated axes, missing error bars, bold entries that are not the best.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Fitting a normaliser on all data before splitting is…
  2. 2. Trying 20 metrics and highlighting the best is…
  3. 3. Copying a baseline's number from an older paper with a different setup risks…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Measuring how flaws inflate gains

Exercise 1.

  • The baseline reaches 80% accuracy with ideal hyperparameters; a random setting loses up to 10 points (10 × squared distance to the best).
  • Each method tries settings, keeps the best on validation, and reports the mean of 5 seeded runs on the test set; validation and test estimates have error 0.6 points, seeds 0.5.
  • Flaws: baseline tried with 3 settings instead of 50; ours selected on the test set; best seed reported; 10% of the test set leaked and memorised.

Practice.

  • Check that baselines had the same tuning budget and the same data, preprocessing and compute.
  • Find where hyperparameters were chosen: a validation set, or the test set.
  • Count runs and look for spreads: mean ± standard deviation over several seeds, ideally repeating the tuning.
  • Look for leakage: duplicates, preprocessing fitted on all data, time order, grouped data split at random.
  • Distrust highlighted maxima from many benchmarks, and read axes before bars.
_, b = tuned(PEAK, k=3 if weak else 50)            # baseline
_, o = tuned(PEAK + delta, 50, on_test=test_select)  # ours
ro = o + SEED_SD * randn(5); rb = b + SEED_SD * randn(5)
ours = ro.max() if best_seed else ro.mean()
if leak: ours = 0.9 * ours + 0.1 * 100
gain = ours - rb.mean()
🐍 Exercise 1: gains from nothing
Simulate the comparison of a method with no true improvement against a baseline, honestly and with each of four flaws, and measure the mean reported gain.
📝 Quick check (Level 2)
0/3 answered
  1. 1. The largest inflation in Exercise 1 came from…
  2. 2. A t-test on 5 seeds with hyperparameters tuned once called no-difference comparisons significant…
  3. 3. A random split of data from 30 sites gave accuracy…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Best of k settings. If the loss of a random setting is S·u² with u uniform on [0, 1], the best of k settings (judged by true accuracy) has expected loss S·E[min u²] = 2S/((k+1)(k+2)): 3.33 points for one setting, 1.0 for three and 0.008 for fifty, with S = 10. A baseline with 3 settings against a method with 50 starts about one point behind.

Maximum of noisy estimates. Selecting the best of k test estimates, each with error σ, reports a value whose expected error is positive, up to σ times the expected maximum of k standard normals (1.16 for 5, 2.25 for 50). The same applies to seeds: the best of 5 seeds with σ = 0.5 is about 0.58 points above their mean.

Multiple comparisons. With m independent tests of true null hypotheses at level α, the chance that at least one is significant is 1 − (1 − α)^m: 64% for m = 20 at 5%. Testing each at α/m (Bonferroni) keeps it at most α.

Truncated axes. Bars of a and b drawn from L show a relative difference (b − a)/(a − L), while the data’s is (b − a)/a; the lie factor is a/(a − L): 80 for a = 80 and an axis starting at 79.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Expected loss of the best of 3 random settings with S = 10 is…
  2. 2. Chance that at least one of 20 null tests is significant at 5% is about…
  3. 3. Lie factor of bars of 80 and 81 with the axis starting at 79 is…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

How large a gain can protocol flaws manufacture, and how well do reviewers who read the protocol separate real gains from manufactured ones?

History.

  • J. Ioannidis’s “Why most published research findings are false” (2005) showed how bias and many tested hypotheses fill the literature with false positives.
  • In machine learning, G. Melis, C. Dyer and P. Blunsom (2018) found that carefully tuned LSTMs beat more recent language models, and P. Henderson and colleagues (2018) showed that results in deep reinforcement learning varied widely between seeds.
  • Z. Lipton and J. Steinhardt (2018) described troubling trends in machine learning scholarship; X. Bouthillier and colleagues (2021) measured the variance of benchmarks; S. Kapoor and A. Narayanan (2023) catalogued leakage in machine-learning-based science.
  • E. Tufte defined the lie factor of graphics (1983); D. Roberts and colleagues (2017) showed that random cross-validation of spatial data overstates accuracy.

Exercise 2.

  • 1,000 submissions: true gain 0 with probability 0.6, else exponential with mean 1 point; flaws occur with probabilities 0.3 (weak baseline), 0.2 (test-set selection), 0.3 (best seed) and 0.1 (leakage).
  • A flawed paper states its practice 60% of the time; a sound paper states it 70% of the time; otherwise the item is not stated.
  • Reviewers: headline (accept a reported gain of 1 point or more); checklist (also reject a stated flaw); sceptical (also subtract the Exercise 1 inflation of each item not stated); questions (the authors answer every item, then the checklist applies).

Seed 0 (66.3% of submissions have a flaw):

reviewer accepted accepted with no true gain real gains (1 point or more) accepted
headline 512 49.4% 88.1%
checklist 219 44.7% 41.3%
sceptical 74 29.7% 22.4%
questions 93 31.2% 30.1%

Exercise 1 inflations, seeds 1 and 2: weak baseline +0.96 and +0.91; test-set selection +0.91 and +1.00; best seed +0.50 and +0.61; leakage +2.01 and +1.91.

Seeds 1 and 2, share of accepted with no true gain: headline 47.9% and 53.1%; sceptical 35.1% and 34.8%; questions 34.7% and 31.8%.

Findings.

  • Each flaw alone manufactured a gain of half a point to two points, in all seeds.
  • Half of the papers a headline reader accepts have no true gain.
  • Reading the protocol cuts that share to about a third, but rejects real gains reported with flawed protocols; asking the authors keeps more real gains than discounting silently.
  • Even with every question answered, about a third of accepted gains are noise: one comparison on one test set is not enough (topic O2-5).
🐍 Exercise 2 (research): how large a gain can protocol flaws manufacture, and how well do reviewers who read the protocol separate real gains from manufactured ones?
Simulate the effect of four protocol flaws on reported gains, then 1,000 submissions judged by four reviewers.

Critical review in practice

  • Reviewers check baselines (tuning, versions, numbers copied from elsewhere), where hyperparameters were chosen, the number of runs and error bars, and possible leakage.
  • Reproducibility checklists at NeurIPS, ICML and other venues ask authors to state these items, which is what the checklist and questions reviewers rely on.
  • Remote sensing and medical imaging need spatial or patient-level splits: tiles from one scene or slices from one patient in both training and test inflate accuracy, as in Practice 3.
  • Readers reproduce key results when they matter (topic O2-6).

References

  1. J. P. A. Ioannidis (2005). “Why most published research findings are false.” PLOS Medicine.
  2. G. Melis, C. Dyer and P. Blunsom (2018). “On the state of the art of evaluation in neural language models.” ICLR.
  3. P. Henderson, R. Islam, P. Bachman, J. Pineau, D. Precup and D. Meger (2018). “Deep reinforcement learning that matters.” AAAI.
  4. S. Kapoor and A. Narayanan (2023). “Leakage and the reproducibility crisis in machine-learning-based science.” Patterns.
  5. D. R. Roberts and colleagues (2017). “Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure.” Ecography.