Token LabSearch

← Paper library
Evaluation & reproducible research / 2017

Deep RL that Matters: a score is a distribution

Separate seed variation, implementation choices and model selection before declaring an improvement.

Deep Reinforcement Learning that Matters · Henderson et al. · arXiv:1709.06560

Original editorial analysis by Token Lab · Source checked 2026-10-25 · Paper claims and synthetic examples are separated.

01 · What the paper establishes

The paper investigates variability and reproducibility in deep reinforcement learning and recommends more careful experimental reporting. It demonstrates why baselines and uncertainty matter. Its numerical RL findings should not be transplanted directly into LLM experiments.

Primary source: paper abstract ↗
Study guide & lesson outlineLEARNING CONTRACT

Understand → implement → investigate

Goal: explain the mechanism in this lesson, reproduce one example and test a failure case. Reading alone does not mark mastery.

  • Understand: state assumptions, shapes/units and a counterexample.
  • Implement: reproduce a numerical example and inspect boundaries.
  • Investigate: compare one alternative under a matched budget.

02 · The mechanism

Text / 原始公式
Mean effect = mean(Bᵢ−Aᵢ)
SE ≈ s/√n for independent observations
Var(B−A)=Var(B)+Var(A)−2Cov(A,B)
Pairing is a study-design decision, not a file-format trick.

Randomness is not a nuisance that disappears when one seed is fixed. It is part of the population over which a claim may need to generalize. More independent runs reduce uncertainty about a mean, but cannot repair a biased evaluation protocol. Pairing can reduce variance when the pairing has a defensible scientific meaning.

Notation and intuition are teaching explanations. Consult the original method for complete assumptions and implementation details.

Mechanism map & worked derivation

Predeclare comparison → Collect independent runs → Estimate effect and uncertainty → Audit failures and selection
Original schematic; read the steps from top to bottom. SVG ↓
Symbols and assumptions
SymbolMeaning
Scientifically matched pair difference
s_dSample standard deviation of differences
nIndependent pairs, not repeated calls on one item
  1. Use differences [1,2,3]. Their mean is 2 and sample standard deviation is 1. The estimated standard error is 1/√3≈0.577350.
  2. Multiplying by 1.96 gives an illustrative normal half-width 1.131607. With only three pairs and unknown variance, that normal approximation is weak; do not report it as a reliable small-sample interval.
  3. Bootstrapping should resample whole independent units. If several rows belong to one task or user, consider cluster-level resampling rather than pretending rows are independent.
Experiment checkpoint

A small interval can coexist with a biased experiment. Check leakage, selection and tuning budgets separately.

LOCAL / SYNTHETIC / INTERACTIVE

Change one variable. Explain what moves.

Original teaching calculation, not a reproduction of the paper’s benchmark. Bars are relative within this panel; numeric values and units are authoritative.

04 · Work through an example

Original illustration: assume independent normally distributed run scores with observed standard deviation 10. The rough normal 95% half-width 1.96s/√n is 9.8 at and 3.92 at For small n and unknown variance, a t-based interval is more appropriate; heavy tails may require another analysis. The slider is an approximation lesson, not an inferential tool for your data.

05 · Design your experiment

Predeclare the metric, run budget and stopping rule. Keep code, environment, dataset and evaluation horizon fixed across methods. Run multiple seeds and preserve raw per-run results, failures and exclusions. Compare an effect-size interval against a practical threshold, and audit whether tuning effort favored one baseline.

Research deliverable

State one hypothesis; save the configuration and raw results; identify a competing explanation; report the narrowest supported conclusion. Use the linked lab as a local starting point, not a full paper reproduction.

Open related lesson / lab →

06 · Limits & reviewer questions

Editorial caution: more seeds do not correct data leakage, environment bugs or cherry-picked tasks. Repeatedly checking significance and stopping on a favorable result changes the procedure. A reproducible negative result can be more useful than an unexplained winning seed.

What is wrong with reporting only the best of ten seeds for both methods?

It describes a selected extreme rather than typical performance. Variance itself affects the selected maximum, and the selection cost is hidden unless the full distribution and budget are reported.

07 · Read the original

Sources of variation, baseline comparisons and reporting recommendations.

Year is the first arXiv submission year. Unversioned links follow revisions; record the exact version in your reproduction report. DeepSeek-R1 here is explicitly pinned to v1.

Continue this topic

MATHEMATICAL REVIEW · 2026-10-26

Assumptions, implementation & acceptance

s/√n assumes IID independent experimental units with finite variance. A normal 1.96 interval is approximate and fragile at small n; compare a Student-t interval. Episodes from one training seed are not independent training runs.

Displayed formula, bilingual explanation and declared slider range. This code reproduces the scalar teaching calculation, not the paper training system.

Before running: predict a boundary case

Predeclare the metric, run budget and stopping rule. Keep code, environment, dataset and evaluation horizon fixed across methods. Run multiple seeds and preserve raw per-run results, failures and exclusions. Compare an effect-size interval against a practical threshold, and audit whether tuning effort favored one baseline.

Hint: isolate the assumption

Keep the baseline input fixed, change one parameter or boundary, and compare both the numerical result and the claimed units. A passing example verifies this fixture only.

Minimal executable example

Save the example and linked modules in one folder. Use Node.js 22 or newer, then run node deep-rl-reproducibility.mjs. No third-party runtime dependencies.

import {paperCalc} from './paper-core.mjs';
const result=paperCalc("uncertainty",25);
console.log(result);
Reference output — reveal after predicting
{
  "labels": [
    "Approximate normal 95% half-width"
  ],
  "values": [
    3.9200000000000004
  ],
  "unit": "score units"
}

Test and transfer

Predeclare the metric, run budget and stopping rule. Keep code, environment, dataset and evaluation horizon fixed across methods. Run multiple seeds and preserve raw per-run results, failures and exclusions. Compare an effect-size interval against a practical threshold, and audit whether tuning effort favored one baseline.

Record input, code version, expected result and observed result in the notebook below. Then construct a counterexample that violates the assumption above and explain why the original conclusion no longer follows.

Download complete kit (.tar.gz) · Complete reference kit and regression checks

Predict, test and keep evidence

Before revealing an answer, predict one result. After the exercise, record the discrepancy and a transfer test. Saved locally across language editions.

Open notebook / export / clear →

The mathematical review scope is recorded per lesson. It does not establish empirical paper reproduction; report suspected errors in your notes. Review scope