Evidence and experiments / 4 of 6

Experiment reproducibility

8 minOpening your notebook…

What you’ll learn

  • Explain the main idea of “Experiment reproducibility” in your own words.
  • Trace a concrete example and identify the assumptions behind it.
  • Apply the principle in a practice problem and recognize a common failure.

The idea, intuitively

Reproducibility means another person can inspect the procedure and obtain consistent findings under stated conditions. Exact numeric equality is not always possible across hardware, but undocumented conditions make even approximate reproduction difficult.

Research literacy is the ability to connect a claim with its assumptions, method, and evidence. You can practice this without large compute by reading carefully and reproducing small mechanisms. Distinguish what a paper demonstrates from what it suggests, and be explicit about the scope of any conclusion.

Under the hood

Record data hashes, preprocessing, code revision, package versions, seeds, hardware, precision, and selection rules. Report multiple runs where stochastic variation matters. Retain failures rather than publishing only the best seed.

A useful caution

A random seed is necessary for many records but insufficient by itself.

A worked example

Two runs with the same seed may differ if kernels or distributed reduction order are nondeterministic.

How to use this way of thinking

Write the claim and a possible disconfirming result before examining headline scores. Trace one mechanism with small shapes, compare against a controlled baseline, and record uncertainty. A well-documented negative result can teach more than an impressive result with unknown comparison conditions.

Try it yourself

Why report mean and spread across runs rather than the best result only?

Key takeaways

  • A content hash or immutable version identifier
  • A random seed is necessary for many records but insufficient by itself.
  • Check the assumptions with a small example before applying this idea to a larger system.

Check your understanding

0/2 checked

Use feedback to learn. Quiz scores and lesson completion are tracked separately.

1Which record makes a dataset version unambiguous?
2True or false: A random seed alone guarantees identical results across all hardware.
Go to lesson completion

Further reading

Original papers and reference material for this school. External resources may be in English and require internet access.

Pineau et al.: Improving Reproducibility in ML Research (opens a new tab)Attention Is All You Need (opens a new tab)

Finish this lesson

Mark this lesson complete when you’re ready to continue.

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close