Unit 4 of 11 · about 5 hours · implement

Clean-room reproduction and the discrepancy log

A clean attempt exposes assumptions that the author's working directory hides. A useful reproduction ends with a bounded explanation of agreement or disagreement, not just a pass label.

You'll be able to

  • Rebuild a bounded result from documented inputs without relying on notebook state or hidden generated artifacts.
  • Diagnose discrepancies by environment, data, implementation, tuning, randomness and reporting ambiguity.
  • Preserve partial reproduction and distinguish a clean self-rerun, an independent operator and an independent reimplementation.

Covers

Clean-room reproduction from documented artifactsDiscrepancy log and unresolved-difference boundary
1

Read

In this order, only the parts listed

0 of 3 done

  1. The executable research compendiumThe Turing Way - Reproducible Research

    Structure of a Research Compendium, Executable Compendium, Separating Methods, Data, Output, Using a Compendium and Checklist (page read 2026-10-19)

    Skip publication services and remote execution. Build a local bundle using your existing environment tooling.

  2. A reproduction that narrows the claim[Re] Hierarchical Shrinkage: Improving the Accuracy and Interpretability of Tree-Based Methods

    ReScience C 9(2), article 19 (2023), Sections 3.2 to 3.5, 4.2 and 5 including 5.2 (printed pp. 3 to 4, 6 and 8 to 9)

    Audit the discrepancies and unsupported RF superiority claim. Do not rerun the report's full suite, adopt its historical dependency stack or treat its inferential model as an oracle.

  3. Code reuse and independence are different evidenceImproving Reproducibility in Machine Learning Research

    JMLR 22 (2021), Section 2.1 and Section 3's Replication of mistakes objection (printed pp. 4 and 7)

2

Focus on

  • Separate read-only inputs, human-authored methods and generated outputs. A clean run must regenerate outputs from identified inputs; recording a package list is not an evaluator check.
  • A discrepancy entry needs expected and observed behavior, affected claim, manifest identifiers, competing explanations, one discriminating check, status and unresolved boundary. Repairs get new attempts, never overwritten evidence.
  • The shrinkage report records unspecified RF tuning and a leaf-count terminology mismatch. Treat those as explicit fidelity limits; do not infer the original authors' intent or blame the mechanism without a discriminating test.
  • A fresh directory with the same implementation tests packaging. Another operator tests the instructions; a separately written central mechanism tests additional implementation assumptions. Name which independence you achieved.
Common mistakes · 3
  • Fixing several discrepancies in one rerun. You may recover the score without learning which change mattered.
  • Equating failure to reproduce with proof that the paper is false. Underspecification and resource limits may leave the original claim untested.
  • Calling a new checkout independent reimplementation when it imports the same mechanism code.
3

Try it yourself

Closed-book, before checking anything

Closed-book, draw a discrepancy decision tree for a shrinkage comparison whose data distributions differ and whose RF tuning range is unspecified, as in Sections 3.2 and 5.2. Separate a data identity check, a fixed-tree equation check and a matched-tuning check. For each, state what an agreeing or disagreeing outcome would rule out. End with the narrower claim that could survive even if exact historical reproduction remains unresolved.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.A clean rerun works only after copying an unlisted generated artifact. What failed?Answer

    The documented input or build contract. Record the missing dependency and make its generation or permitted acquisition explicit before claiming a clean run.

  2. 2.Does the report's RF comparison establish that shrinkage can never help RF?Answer

    No. It does not confirm superiority over the compared regularizers in its tested setup. That is narrower than a universal negative claim.

  3. 3.A changed tuning range resolves a score difference. Is historical reproduction complete?Answer

    Only if that range is verified as part of the historical protocol. Otherwise it is a sensitivity result and the original tuning discrepancy remains unresolved.

You're done when

Your documented clean attempt regenerates the bounded result or a discrepancy report, with no silent repairs and an honest statement of implementation and operator independence.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 20 more in the section
  • The Turing Way - Reproducible ResearchThe Turing Way · primary

    Read Research Compendia (separating methods, data and output; the executable compendium; the checklist), Reproducible Environments with its package-management, container and resources pages, Testing, and Version Control for Data. Build one clean bundle with code, read-only raw data, configuration, environment, a separate host, GPU and driver manifest, raw outputs, failures and the analysis version. "DVC guarantees reproducibility" and "containers reproduce the entire system" overstate: neither freezes the kernel, driver or arithmetic backend, nor checks the evaluator. Skip the sudo docker examples.

  • Improving Reproducibility in Machine Learning ResearchPineau et al., JMLR 2021 · support

    Read Section 2.1 (terminology, where same-data different-analysis work is called robust), Section 3's objections (code is "not a guarantee that this code is correct") and Section 4 (the NeurIPS 2019 challenge: 173 papers claimed and 84 reports reviewed, not 173 reproductions). State which level of independence your reproduction claims and record partial fidelity rather than a pass or fail.

  • [Re] Hierarchical Shrinkage: Improving the Accuracy and Interpretability of Tree-Based MethodsMohorcic and Ocepek, ReScience C 9(2) 2023 · support

    A real partial reproduction on CPU tabular data: Section 2 (four enumerated claims), 3.2 to 3.5 (data, tuning, implementation, compute), 4.2 ("do not confirm that HS is a better regularizer for RF") and Section 5 (discrepancies, including terminology and unspecified tuning). Decide which mismatch changes the claim and which only blocks exact reproduction. Code: https://github.com/do8572/MLDS

Also in this section

  • Deep Learning Tuning Playbook - Experiment DesignGoogle Research · required

    At the pinned commit use Identifying scientific, nuisance, and fixed hyperparameters, Creating a set of studies, Striking a balance between informative and affordable experiments, Extracting insight from experimental results, Evaluating model performance and Setting up experiment tracking. Fixing a strongly interacting nuisance factor (model size with weight decay) distorts the comparison. State whether an ablation measures a component at fixed settings or the best retuned pipeline with and without it, and which interactions you leave untested. Quasi-random trials are not independent draws.

  • NIST/SEMATECH e-Handbook: Two-level Full Factorial and Fractional Factorial DesignsNIST · required

    Read 5.3.3.3.1 (two-level full factorials: three binary factors need eight runs, sixteen with two replicates) and 5.3.3.4.3 (confounding: "we have lost the ability to estimate some effects and/or interactions"; generator and alias pattern at https://www.itl.nist.gov/div898/handbook/pri/section3/pri3343.htm). For two mechanism toggles keep all four cells and estimate the difference of differences; in the half fraction the C main effect is aliased with AB. Seeds are replicates, and run order should be randomized.

  • Implementation Matters in Deep RL: A Case Study on PPO and TRPOEngstrom et al., ICLR 2020 · required

    A worked mechanism audit: Table 1 (algorithm definitions), Section 5 with Table 2 (core algorithm crossed with code-level optimizations; Humanoid-v2 PPO 806, PPO-M 674, TRPO 586, TRPO+ 1030) and Table 3 (PPO-NoClip removes the supposedly central clipping). Compute the conditional effect yourself: the optimization bundle adds 132 for PPO and 444 for TRPO, a difference of differences of -312. The bundles were tuned per algorithm, so this is descriptive, and NoClip is not equivalent on every task (Walker2d). Translate the four-cell design to your own small model; no RL training is needed.

  • Show Your Work: Improved Reporting of Experimental ResultsDodge et al., EMNLP 2019 · required

    Read Section 3.1 (Eqs. 3 to 8, expected maximum validation score versus number of trials) and Section 5 with Text Box 1. For sorted scores the expected best of draws is ; check your code by brute-force enumeration on five scores. It needs independent draws from a stated search distribution and makes no claims beyond the observed budget. Plot both trial count and measured cost.

  • Benchmarking Neural Network Robustness to Common Corruptions and PerturbationsHendrycks and Dietterich, ICLR 2019 · required

    Benchmark design, not a download: 4.1 (15 corruption types in noise, blur, weather and digital families, five severities each, never trained on) and 4.2 (corruption error normalized by a reference model, mean CE, relative mCE). Build a small fixed stress grid for your domain with paired example IDs, a label-preservation check and stated aggregation weights, kept out of tuning; call it mCE only with the reference denominator. For a text investigation use CheckList instead.

  • NeurIPS Paper ChecklistNeurIPS · required

    Audit items 4 to 8 only: reproducibility, open access (the exact command and environment, for methods and baselines), settings and selection, statistical significance (name the variability source and whether a bar is a standard deviation or a standard error) and compute (per run, total, and preliminary or failed experiments). Link each answer to an artifact or limitation. Item 7's "2-sigma error bar" rather than a "96% CI" is not an interval rule. The checklist permits withheld code; this track requires a free local clean run.

  • Speeding up Automatic Hyperparameter Optimization of Deep Neural Networks by Extrapolation of Learning CurvesDomhan, Springenberg and Hutter, IJCAI 2015 · support

    Read 2.2 (training-iteration versus dataset-size curves), 3.1 with Figure 1 (eleven parametric families; "no single model can describe all learning curves") and 3.2 (predictive termination). Then fit an offset power law to your own small-budget curve, resample whole independent curves, and test the forecast on withheld larger budgets with a second fit window. A forecast that misses every withheld point is evidence to keep, and a fitted floor above the last observation invalidates an asymptote claim.

  • Beyond Accuracy: Behavioral Testing of NLP Models with CheckListRibeiro et al., ACL 2020 · support

    The text alternative to ImageNet-C: Sections 2.1 to 2.3 (capabilities, minimum functionality, invariance and directional tests, templates). Each transformation needs a task-specific oracle, and filled templates from one base are not independent evidence. Not the NeurIPS submission checklist.

  • OODRobustBench: A Benchmark and Large-Scale Analysis of Adversarial Robustness under Distribution ShiftLi et al., ICML 2024 · support

    Read 3.1 with Table 1 and 4.1: dataset shift and threat shift are separate axes, the corruption and natural groups are averaged separately so 75 corruption cells do not outweigh four natural variants, and a cheaper evaluator must be validated against a stronger one. Omit adversarial claims unless you test a stated attack budget.

  • PyTorch Reproducibility NotesPyTorch · support

    For neural investigations: Controlling sources of randomness (Python, NumPy generators, torch.manual_seed), Avoiding nondeterministic algorithms (torch.use_deterministic_algorithms(True), with warn_only=True still allowing nondeterministic SDPA paths), CUDA convolution determinism and DataLoader worker seeding. "Completely reproducible results are not guaranteed across PyTorch releases, individual commits, or different platforms." The workspace setting CUBLAS_WORKSPACE_CONFIG=:4096:8 is in the cuBLAS manual, Results reproducibility (https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility), not on this page. Bitwise replay on one stack is not agreement of a scientific effect across seeds.

  • Applied Science Investigation - Reproduction and AblationRoadmap-Final · support

    Carry forward Milestones A and B (correct baseline, instrumentation) before C to F, using the correctness and failure-injection requirements as the contract: a predeclared reproduction tolerance, the ablation matrix, a negative control, one stress or scale boundary, every failed and censored run, and independent regeneration. Architecture constraints require naming the matched resource (tokens, examples, parameters, FLOPs, wall time or inference cost). A rerun in the same environment is not an independent reimplementation.

  • Deep Reinforcement Learning that MattersHenderson et al., AAAI 2018 · optional

    A case study when environment stochasticity and codebases matter: Random Seeds (two groups of five runs from one algorithm differ significantly in Figure 5) and Codebases. Five seeds was their choice, not a sufficiency rule, and correlated checkpoints are not independent replicates.

  • On the State of the Art of Evaluation in Neural Language ModelsMelis, Dyer and Blunsom · optional

    A baseline-fidelity case: v2 Sections 5 and 7 with Tables 1 and 4. Retuned baselines reverse contribution claims, and evaluating at the training batch size worsened word-level perplexity by 0.3. It ablates single features only, not combinations, and parameter matching is not compute matching.

  • Are GANs Created Equal? A Large-Scale StudyLucic et al., NeurIPS 2018 · optional

    Section 4 (five controlled dimensions of a fair comparison) and Figure 3 (best attainable FID at each budget from bootstrap resamples of 100 runs): no evidence of consistent superiority under equal tuning. Use the Dodge estimator for the same budget curve on your own scores.

  • [Re] Badder Seeds: Reproducing the Evaluation of Lexical Methods for Bias Measurementvan der Togt et al., ReScience C 8(2) 2022 · optional

    Reading only: Sections 1, 3, 4.4 and 6 with Tables A.1 and A.3. Numerical and preprocessing discrepancies, yet the broad conclusion held; seeds define the measured construct. A full rerun peaks above 19 GB of memory and the corpus rights are unresolved.

  • MLflow 3.5 TrackingMLflow · optional

    Only if searching many runs helps: a local file:// tracking store with mlflow-skinny==3.5.0, no server or account, raw manifests logged as artifacts. A plain per-attempt JSON ledger in Git is the default; neither is write-once storage, so hash raw artifacts and keep failures.

  • Hydra 1.3 - Working Directory and Multi-runHydra · optional

    Only when composed configurations become hard to track: @hydra.main(version_base="1.3", ...) writes the effective config and overrides under .hydra/; since 1.2 the job no longer changes directory by default. It records configuration, not results or environment.

  • How to Scale Your ModelJAX ML · depth

    Accounting only: Part 1 (arithmetic intensity as FLOPs per byte, the roofline), Part 4 counting dots and parameters, Part 5 memory, Part 7 inference memory and Part 12 What Is a GPU?; sharding and JAX chapters only when a claim needs them. The chapter paths are transformers/ and jax-stuff/. Its 10 bytes per parameter counts bf16 weights and two fp32 Adam moments, not activations or allocator overhead. Use it to explain why equal FLOPs are not equal time, never for accuracy-scaling fits.

  • Scaling Laws for Neural Language ModelsKaplan et al. · depth

    Optional worked example of a fitted empirical law: v1 Section 1.2 (Eqs. 1.1 to 1.5, parameter exponent about 0.076), 2.1 with Table 1 (parameter and FLOP definitions) and Section 6. Inventory what is held fixed before interpreting a slope; the exponents are historical fits, not constants.

  • Training Compute-Optimal Large Language ModelsHoffmann et al. · depth

    Pair with Kaplan: v1 Sections 3.1 to 3.4 and Table 2 (three estimation approaches; Approach 2 parameter exponent 0.49 with 10th to 90th percentiles 0.462 to 0.534 from 100 resamples of 80% of the data, not a 95% interval). The Huber fit weights high-compute points; fit-window and objective choices change the extrapolated allocation.