Deep Reinforcement Learning that Matters

Peter Henderson, Riashat Islam, Philip Bachman, Joelle Pineau, Doina Precup, David Meger

Abstract

In recent years, significant progress has been made in solving challenging problems across various domains using deep reinforcement learning (RL). Reproducing existing work and accurately judging the improvements offered by novel methods is vital to sustaining this progress. Unfortunately, reproducing results for state-of-the-art deep RL methods is seldom straightforward. In particular, non-determinism in standard benchmark environments, combined with variance intrinsic to the methods, can make reported results tough to interpret. Without significance metrics and tighter standardization of experimental reporting, it is difficult to determine whether improvements over the prior state-of-the-art are meaningful. In this paper, we investigate challenges posed by reproducibility, proper experimental techniques, and reporting procedures. We illustrate the variability in reported metrics and results when comparing against common baselines and suggest guidelines to make future results in deep RL more reproducible. We aim to spur discussion about how to ensure continued progress in the field by minimizing wasted effort stemming from results that are non-reproducible and easily misinterpreted.

Introduction

Deep reinforcement learning (RL) has achieved remarkable successes in domains ranging from robotics to complex games. However, this rapid progress has masked a severe reproducibility problem. When researchers propose a new "state-of-the-art" (SOTA) algorithm, they typically compare it against baseline methods. The problem is that reproducing these baseline results is notoriously difficult. This paper investigates whether reported improvements in the literature are due to actual algorithmic innovations or are simply the result of extrinsic factors like hyperparameter tuning, codebase differences, and intrinsic variance from random seeds.

Experimental Methodology

We conduct a systematic empirical evaluation of four popular policy gradient algorithms: TRPO, DDPG, PPO, and ACKTR. Instead of proposing a new algorithm, we stress-test existing ones by isolating and varying specific experimental factors across continuous control tasks from the OpenAI Gym MuJoCo benchmark suite (e.g., Hopper-v1, HalfCheetah-v1).

Our evaluation focuses on:

  • Hyperparameters: Network architectures, activation functions, and reward scaling.
  • Random Seeds: Measuring intrinsic variance across identical setups.
  • Codebases: Comparing different open-source implementations of the same algorithm.

We employ statistical tools such as bootstrap confidence intervals and significance testing (t-tests) to evaluate whether performance differences are statistically meaningful.

The Impact of Hyperparameters

Network architecture and activation functions can drastically alter performance. For instance, in PPO, moving from a standard (64, 64) network to a larger (400, 300) architecture can cause the KL divergence of updates to spike, leading to catastrophic performance failure unless other hyperparameters are adjusted.

Performance variability across different network structures and activation functions for PPO, TRPO, and DDPG.

As shown in the figure above, the choice of activation function (ReLU, Tanh, Leaky ReLU) also introduces significant variance in learning trajectories across different algorithms.

Sensitivity to Reward Scaling and Normalization

Algorithms like DDPG are highly sensitive to the scale of rewards. We found that DDPG can completely fail to learn in the HalfCheetah environment if the reward scaling factor is too small (e.g., below 0.01). Furthermore, the inclusion of techniques like Layer Normalization can interact with reward scaling to either stabilize or destabilize the learning process.

Impact of reward scaling and layer normalization on DDPG performance in the HalfCheetah environment.

The Random Seed Lottery and Codebase Variance

Our results highlight the danger of relying on a small number of trials. A 2-sample t-test comparing two sets of 5 random seeds for TRPO on HalfCheetah showed statistically significant differences ($p = 0.0016$) purely due to the seeds. This suggests that 5 trials are often insufficient for stable reporting.

Additionally, codebase discrepancies are significant. On the Hopper environment, the OpenAI Baselines implementation of TRPO achieved an average return of ~2965, while the rllab implementation achieved only ~2021 under identical hyperparameter configurations. Such gaps make comparisons against "baselines" in the literature difficult to interpret without knowing the specific implementation used.

Conclusion and Recommendations

To ensure continued progress in deep RL, the community must adopt more rigorous experimental standards. We advocate for:

  1. Reporting all hyperparameters and using hyperparameter-agnostic algorithms where possible.
  2. Increasing the number of trials and using proper statistical significance metrics.
  3. Standardizing codebases to ensure baseline comparisons are fair and reproducible.

By minimizing wasted effort on non-reproducible results, we can focus on meaningful algorithmic advancements.

Summary updated

BibTeX
@inproceedings{henderson2018deep,
  author = {Peter Henderson and Riashat Islam and Philip Bachman and Joelle Pineau and Doina Precup and David Meger},
  title = {{Deep Reinforcement Learning that Matters}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11694},
}
Figure