A reported algorithmic breakthrough in deep reinforcement learning can vanish or invert when you change the random seed, swap the baseline codebase, or adjust a network layer width without retuning anything else.
- Same algorithm, 9.5x codebase swing: With identical default hyperparameters on
HalfCheetah-v1, TRPO averages 1,939 return in the original Schulman (2015) codebase, 834 inrllab, and just 205 in OpenAI Baselines. - Five seeds can fool a t-test: Splitting 10 identical TRPO runs on
HalfCheetah-v1into two groups of 5 seeds yields two average learning curves that differ significantly (t = -9.0916, p = 0.0016) despite zero algorithmic differences. - Architecture changes break step limits: Switching PPO’s policy MLP on
HalfCheetah-v1from(64, 64)tanh to(400, 300)tanh drops return from 2,201 to -1,180 because update KL divergence jumps 33.52x higher. - Bootstrap CIs expose false wins: On
Walker2d-v1, ACKTR beats DDPG in mean return (2,285 vs. 1,582, +44.5%), yet the 95% bootstrap confidence interval spans -80.6% to +111.7% (p = 0.334), meaning 5 trials cannot separate them.
Four hidden levers that shift learning curves
Henderson and colleagues audited four widely used policy-gradient methods (TRPO, PPO, DDPG, and ACKTR) across OpenAI Gym MuJoCo continuous-control benchmarks (HalfCheetah-v1, Hopper-v1, Walker2d-v1, and Swimmer-v1), training each configuration for 2 million timesteps across five preset random seeds. Because an RL policy generates its own future training trajectories, early exploration noise compounds into diverging data distributions rather than averaging out like i.i.d. supervised batches.
Four experimental choices routinely omitted from paper comparisons produced swings larger than typical algorithmic gains:
- Codebase defaults: Different reference implementations of the “same” baseline vary in value-function optimizers, advantage normalization, or rollout evaluation windows. Running the exact same
(64, 64)tanh configuration of TRPO onHalfCheetah-v1dropped from 1,939 (original TRPO) to 834 (rllab) to 205 (OpenAI Baselines), while DDPG(64, 64)ReLU ranged from 4,198 (OpenAI Baselines) down to 1,573 (rllab). - Network width and activations: Changing the policy MLP on
HalfCheetah-v1flipped winners across algorithms. Enlarging PPO from(64, 64)to(400, 300)crashed returns from 2,201 to -1,180 onHalfCheetah-v1and from 2,790 to 61 onHopper-v1without retuning clipping or learning rates. Switching TRPO’s activation from tanh to ReLU in OpenAI Baselines jumpedHalfCheetah-v1return from 205 to 1,045. - Reward scaling: Multiplying environment rewards by a scalar changes Q-target magnitudes and gradient saturation in off-policy critics. On
HalfCheetah-v1, DDPG failed to learn whenever reward scale dropped below 0.01, and adding LayerNorm shifted which scale performed best. - Random seed selection: Literature surveys in the paper found papers reporting as few as 3 trials or cherry-picking the top-2 or top-3 seeds. With 10 TRPO runs on
HalfCheetah-v1, partitioning the seeds into two 5-run averages produced a falsep = 0.0016separation.
Why no benchmark winner holds across environments
Choosing which environments to report can bias conclusions as strongly as tuning hyperparameters. Using 10,000-iteration bootstrap confidence intervals on default configurations, the authors show that rankings flip across tasks with different stability dynamics:
On stable HalfCheetah-v1, off-policy DDPG leads at 5,037. On unstable Hopper-v1, exploration noise triggers early falls that cut episodes short, trapping DDPG near the survival-bonus local optimum (1,632 mean, 607 lower bound) while trust-region TRPO reaches 2,965 with a tight CI. Even high returns can mask failure: on Swimmer-v1, policies scoring roughly 130 learn to curl and flail rather than swim smoothly, which numeric curves never reveal without video replays.
To stop chasing noise, the authors apply bootstrap power analysis for a 25% performance lift. With five trials, 100% of simulated DDPG lifts on HalfCheetah-v1 and 79.5% of TRPO lifts fail to reach statistical significance, whereas stable Hopper-v1 runs with TRPO or PPO pass 100% of the time.
Caveats and builder takeaway
This study only audited four model-free continuous-control algorithms on MuJoCo, where episode termination amplifies variance differently from discrete Atari or modern language-model RL. Even so, the same seed sensitivity and underspecification show up in BERT fine-tuning seed variance and modern RLHF pipelines.
In practice, never compare a new RL run against a single-seed baseline or numbers copied from another codebase. Pin implementations, publish the full hyperparameter and tuning budget, report bootstrap confidence intervals alongside means across at least five seeds (more when variance is wide), and inspect actual rollouts before trusting a higher reward curve.


