Skip to content

7.4 Reproducing a paper

ready≈ 12 hoursNeeds: 7.1, 7.2
  1. 1 Learn
  2. 2 Bridge & derive
  3. 3 Explore (Reproduction tracker)
  4. 4 Do
  5. 5 Check

Claims first. A reproduction checks a paper’s claims, so start by listing them: each with the figure, table or section it comes from, and what would count as agreement. Write that down before the first run, so you cannot quietly redefine success afterwards. The ML Reproducibility Challenge asks reports to state up front which claims they test, and its accepted reports are good models to copy.

Deviations next. Your setup will differ: less compute, a smaller dataset, a different framework or optimizer, details the paper leaves out. List every difference you know of, and for each say whether it could change the conclusion. When the paper’s code is released, read it for the settings the text omits (the reproducibility checklist in Pineau et al. 2021 lists what a paper should state), and treat the code as the reference when the two disagree.

Judging a number. A paper’s number has seed noise, and so does yours. If both are averages over seeds, their difference has a standard error of √(se_yours² + se_paper²), and a faithful reproduction lands within 2 of those about 95% of the time. That assumes the standard errors are known; estimated from 3–5 seeds they are noisy, and closer to 1 in 10 faithful reproductions fails the check. Ignoring the paper’s uncertainty calls good reproductions failures far too often. A number reported without any uncertainty needs a tolerance, chosen in advance. When the absolute numbers cannot match (a smaller model, another dataset), the conclusion may still reproduce: check that methods or settings come out in the same order, with Kendall’s τ, the fraction of pairs ordered the same way minus the fraction ordered oppositely.

The report. Claims, setup and deviations, a results table with a verdict per claim, and a discussion of what did not reproduce and why it might not have. A failed reproduction, carefully done, is a useful result. The notebook works through one: the random-label experiments of Zhang et al. 2017, scaled down to a CPU.

Why the paper's uncertainty belongs in the comparisonstep 1 of 5
  1. yˉpaper∼N(μ,σ2/m),yˉours∼N(μ,σ2/n)\bar y_{\text{paper}} \sim \mathcal N(\mu, \sigma^2/m), \quad \bar y_{\text{ours}} \sim \mathcal N(\mu, \sigma^2/n)

Reproduction tracker

Systematic reproduction

Static view on small screens. Open this page on a laptop to interact.

claimverdictzmean ± se (n)paper± setoleranceyour runsremove
reproduced–100.00 ± 0.00 (3)
reproduced–100.00 ± 0.00 (3)
reproduced-0.29.88 ± 0.59 (3)
A number with an uncertainty is reproduced when your mean is within 2 combined standard errors, √(se² + se_paper²). A claim stated without one (100% training accuracy) needs a tolerance you choose and write down. Rows are kept in this browser only.

Does the ordering reproduce?

Kendall's τ = 1.00: every pair is ordered the same way, so the conclusion reproduces even where the numbers differ.

The example rows are from the 7.4 notebook's scaled-down reproduction of Zhang et al. 2017; the ordering example is the test error at 0 to 100% label corruption, which their figure 1c shows rising steadily, against the notebook's test errors. Paste your own runs to replace them.

An editable reproduction table. Each row has a claim, then the computed verdict, z-score against the paper (using both uncertainties) and your mean and standard error, then the fields you edit: the paper’s value and its standard error, an optional tolerance, and your runs as comma-separated numbers. Buttons add a claim, reload the example rows from the 7.4 notebook, and copy the table as Markdown; rows are kept in this browser. Below, two boxes take the paper’s and your scores for the same items and report Kendall’s tau between their orderings. Keyboard: Tab through the table's fields and the buttons.
A reproduction tracker stubs/m7_4_repro.py

Loading starter file…

Prefer your own editor? Edit exercises/stubs/m7_4_repro.py and run mlc check 7.4. The tests are identical; import the results on the progress page.

Hints · agreement 0/3 revealed
Hints · kendall_tau 0/3 revealed

Then run the lab. Open notebooks/7.4-reproduction.ipynb (about 2 minutes on a CPU) and paste in your 7.4 file. It writes down six claims of Zhang et al. and the deviations of a scaled-down setup, trains MLPs on 5,000 MNIST digits with true, random and partly corrupted labels and with Gaussian-noise images, and fills in the tracker. Then choose the paper for your own reproduction from the Capstone 7 list, and write its claims and deviations before you run anything.

1. Why write the claims down before running anything?
2. A paper reports 82.0 ± 0.6 (standard deviation over 4 seeds). You get 81.1, 81.5 and 80.9. Does it reproduce at 2 standard errors?
3. Your numbers are all 5 points below the paper's, on a smaller dataset, but the methods come out in the same order. What has reproduced?
4. What belongs in the deviations list?
  • not yet: All tests pass (0/?)
  • not yet: Checkpoint quiz ≥ 80%
Finish the items above first.
Learner log: time spent and points of confusion

Every confusion you note becomes a fix before the module is marked stable. Export it from the progress page and attach it to an issue.