7.4 Reproducing a paper
1. Learn
Section titled “1. Learn”- Pineau et al., Improving Reproducibility in Machine Learning Researchthe ML reproducibility checklist it introduces, and the report on the NeurIPS 2019 reproducibility program
- Zhang et al., Understanding Deep Learning Requires Rethinking Generalizationsection 2, table 1 and figure 1 (the paper the notebook reproduces)
- ML Reproducibility Challengea few accepted reports, for the shape of a write-up
- The paper you choosechosen from the Capstone 7 list with the paper reading guide in 7.1
2. Bridge
Section titled “2. Bridge”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.
3. Explore
Section titled “3. Explore”stubs/m7_4_repro.pyLoading 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.
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.
5. Check
Section titled “5. Check”- not yet: All tests pass (0/?)
- not yet: Checkpoint quiz ≥ 80%
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.