Chapter 3 · Research-to-production

Read a research paper as an executable specification

Turn a research paper into a testable claim map, implementation contract, and prioritized reading plan before writing code.

65–90 min6 key conceptsReviewed 26 Aug 2026
01 · Production proposition

A team starts porting a promising ranking paper before noticing that its headline gain depends on a different split, compute budget, and baseline.

This chapter moves from extract the claim to price the unknowns. We will make the idea concrete in a small code example before placing it back inside a production system with one reading session before any implementation sprint.

Decision

Decide whether the paper is relevant, reproducible enough, and valuable enough to implement.

Evidence

Coverage of claims by comparable evidence, with unresolved assumptions and estimated reproduction cost.

Failure consequence

Reading linearly and coding the architecture diagram first hides a changed evaluation protocol, stronger data augmentation, and an under-tuned baseline. An unsafe release must degrade to a named baseline or the last known-good version.

02 · Guided chapter

Build the idea one layer at a time.

A paper is persuasive prose wrapped around a set of testable claims. Read it as a specification by connecting every claimed gain to the exact evidence and protocol that produced it.

Begin with a structural pass: abstract, figures, tables, conclusion, and limitations. This reveals the contribution, comparison, and likely evidence before detailed notation consumes attention.

Then create a claim–evidence map. A two-point gain is not yet attributable to the method if the baseline used less compute, another split, or different augmentation; those conditions belong beside the number as executable requirements.

Keep in view
  • three-pass reading
  • claim-evidence maps
  • baseline contracts
  • ablation logic
  • benchmark validity
  • assumption ledgers
WORKED PATH

Follow the reasoning before touching the code.

  1. 01

    Extract the claim

    Write the direction, magnitude, dataset, metric, baseline, and scope of each headline statement in one sentence.

  2. 02

    Trace its evidence

    Link the claim to a table row, figure, ablation, uncertainty estimate, and protocol details that could falsify it.

  3. 03

    Price the unknowns

    Mark missing seeds, preprocessing, assets, compute, or licenses and decide which unknown blocks implementation.

jsonclaim-map.json
{
  "claim": "method improves accuracy by 2 points",
  "method_score": 0.84,
  "baseline_score": 0.82,
  "dataset": "benchmark-v2",
  "split": "official-test",
  "metric": "top-1 accuracy",
  "evidence": "Table 2, row 4",
  "controls": {
    "parameter_budget_matched": true,
    "training_compute_matched": false,
    "seeds_reported": 1
  },
  "decision": "resolve compute confound before implementation"
}

Represent one research claim as a reviewable contract.

READ THE EXAMPLE

What to notice

  • The arithmetic improvement is explicit, but attribution remains blocked by unmatched training compute.
  • A single reported seed prevents estimating whether the two-point gap is larger than run-to-run variation.
YOUR TURN Pause and predict before revealing the answer.

Suppose an ablation removes the novel loss but also halves training steps. Can it isolate the loss contribution?

Need a hint?

A valid ablation changes one relevant factor under an otherwise comparable protocol.

Check your reasoning

No. Loss removal and compute reduction are confounded; rerun both variants with matched training steps.

Bring forward

Lessons 1, 2, 3, 4, 5 in this course.

03 · Formal treatment

Connect the chapter to the course’s quantitative spine.

Do not implement a diagram until you can state exactly which controlled claim it is meant to test. The claimed improvement over the named baseline below is the shared course-level lens that helps quantify the surrounding system. Name each symbol, check its units or shape, and use only values that were available at the production cutoff.

Formal treatment
Δ=mmethod−mbaseline\Delta = m_{\mathrm{method}} - m_{\mathrm{baseline}}

Claimed improvement over the named baseline

Symbol, shape or unit contract
SymbolMeaning / shape / unit
m_methodreported metric for the proposed method
m_baselinereported metric for the comparable baseline
Δeffect the paper asks the evidence to support
Open derivation and numerical substitution

Start from the production quantity being optimized, substitute the observed values with their declared units, then isolate the model-controlled term. Preserve shape annotations at each step so broadcasting or aggregation cannot silently change the result.

  1. Write the named inputs: m_method, m_baseline, Δ.
  2. Substitute one small, hand-checkable batch before vectorizing.
  3. Calculate an independent reference value and compare within a declared tolerance.
# equation → code contract
inputs = validate_shapes_and_units(batch)
value = compute_c01(inputs)
assert is_finite(value)
04 · Selection field guide

Choose from the task contract, not a favorite default.

A paper is a claim–evidence system, not an implementation specification.

Your reproduction must make every hidden protocol choice explicit. Any production adaptation creates a new claim that needs new evidence.

  1. 1

    Triage

    Read title, abstract, figures, tables, conclusion, limitations, and references. Decide relevance and record the headline claims.

  2. 2

    Map claims to evidence

    For every claim, name dataset, split, baseline, metric, seeds, compute, ablation, table/figure, and unresolved assumption.

  3. 3

    Reconstruct the method

    Translate notation into tensor shapes, pseudocode, invariants, masking, initialization, state, and numerical constraints.

  4. 4

    Lock the protocol

    Hash data and splits; pin environment and hardware; define tolerance, seed budget, baseline parity, and stop/go gates.

  5. 5

    Build the harness first

    Validate metric code and reproduce the strongest comparable baseline before adding the paper’s novel component.

  6. 6

    Implement minimally

    Use hand fixtures, golden intermediates, shape assertions, finite differences where useful, and a tiny-batch overfit test.

  7. 7

    Reproduce and falsify

    Run paired seeds and ablations; report every run, uncertainty, discrepancies, negative results, and paper/code differences.

  8. 8

    Create a new production claim

    Test own-data validity, latency, memory, cost, robustness, licenses, and security; then canary with fallback and rollback.

Claim–evidence ledger

  • Claim and expected effect size
  • Dataset, split, preprocessing, and availability
  • Baseline tuning and resource parity
  • Metric implementation and aggregation
  • Seeds, uncertainty, and ablations
  • Code, data, weights, and license provenance

Equation-to-code ledger

  • Input, state, and output tensor shapes
  • Units, dtypes, devices, and valid ranges
  • Reference operation and hand fixture
  • Initialization, masking, and reduction
  • Numerical tolerances and gradient checks
  • Golden intermediates at every boundary
05 · Deterministic lab

Change one assumption and make the tradeoff visible.

Use the worked chapter as your prediction, then change one input in the lab and explain why the output moves. The lab runs predefined TypeScript and never executes learner code, so the focus stays on the concept rather than setup.

Simplified simulation

Reproduction readiness ledger

Resolve undocumented assumptions and watch evidence coverage and mismatch risk move in opposite directions.

of 10
Primary40.0%
Secondary60.0%
DiagnosisDo not implement novelty yet

Assumption: Ten equally weighted protocol assumptions across data, preprocessing, baseline, metric, seeds, compute, code, assets, hardware, and tolerance.

Open nonvisual data table
ItemComputed stateInterpretation
data + splitresolvedrecord evidence
preprocessingresolvedrecord evidence
baseline parityresolvedrecord evidence
metric harnessresolvedrecord evidence
seeds + uncertaintyunknownblocks claim
compute budgetunknownblocks claim
paper/code deltaunknownblocks claim
assets + licensesunknownblocks claim
hardware/workloadunknownblocks claim
acceptance toleranceunknownblocks claim
06 · Production implications

Trace the complete operating path.

Carry the chapter’s central idea into the system: Do not implement a diagram until you can state exactly which controlled claim it is meant to test. The path below shows where that reasoning needs an artifact, a test, an owner, or a fallback.

  1. 01

    Turn “Extract the claim” into a written invariant and a failing test.

  2. 02

    Promote claim-map.json from illustration to a versioned implementation with representative fixtures.

  3. 03

    Use “Price the unknowns” as the release checkpoint: Mark missing seeds, preprocessing, assets, compute, or licenses and decide which unknown blocks implementation.

  4. 04

    Serve or materialize behind explicit one reading session before any implementation sprint.

  5. 05

    Join telemetry to mature outcomes and retain a rollback path.

Observability

Join service health, input quality, prediction distributions, slice behavior, and mature outcomes by exact version.

Cost

Measure storage, preprocessing, compute, queueing, and human review under a representative arrival pattern.

Failure modes

Reading linearly and coding the architecture diagram first hides a changed evaluation protocol, stronger data augmentation, and an under-tuned baseline. Add a detector, owner, mitigation, and stop condition for this class of failure.

Alternatives

Compare a rule, a simpler statistical baseline, and a different system boundary before adding model complexity.

07 · Check understanding

Explain the contract, not just the vocabulary.

Browser-graded checkpointPass ≥ 80%
01What should the first reading pass produce?
02What makes an ablation useful?
03A method beats a baseline trained with less compute. What is the correct conclusion?
08 · Apply in production

Paper claim–evidence brief

Select one primary ML paper and produce a go/no-go implementation brief before touching the novel method.

  • One-page problem and contribution brief
  • Claim–evidence matrix with tables, baselines, and uncertainty
  • Equation, tensor-shape, and assumption sheet
  • Dataset, compute, asset, and license feasibility audit
  • Prioritized unknowns and reproduction recommendation
Production self-review0/100

Staged hints

Failure diagnosis

  • If offline numbers look impossible, audit prediction-time availability before model code.
  • If quality is sound but the contract fails, measure the exact serialized and served path.
  • If one slice regresses, preserve that slice as a permanent release gate.

Record an honest attempt to unlock the reference solution.

09 · Sources & next depth

Read primary material with a purpose.

10 · Production resolution

Return to the opening failure.

The team approves implementation only after each claim has an evidence location, a comparable baseline, a data/evaluation contract, and an explicit unknowns ledger.

For this lesson, the release evidence is the worked code example, a hand-checked formal result, deterministic simulation output, a ≥80% checkpoint, the production rubric, and a named fallback. The course resolves when the system can produce a seeded, tested, packaged, versioned training workflow with a model card.