Skip to main content
QUICK REVIEW

[Paper Review] Empirical Design in Reinforcement Learning

Andrew D. Patterson, Samuel Neumann|arXiv (Cornell University)|Apr 3, 2023
Software Engineering ResearchComputer Science7 citations
TL;DR

This paper provides a comprehensive guide to rigorous empirical design in reinforcement learning, addressing critical flaws in experimental methodology such as poor statistical practices, hyperparameter sensitivity, and inadequate baselines. It advocates for systematic hypothesis testing, proper performance evaluation, and reproducible experimentation to ensure scientific validity in RL research.

ABSTRACT

Empirical design in reinforcement learning is no small task. Running good experiments requires attention to detail and at times significant computational resources. While compute resources available per dollar have continued to grow rapidly, so have the scale of typical experiments in reinforcement learning. It is now common to benchmark agents with millions of parameters against dozens of tasks, each using the equivalent of 30 days of experience. The scale of these experiments often conflict with the need for proper statistical evidence, especially when comparing algorithms. Recent studies have highlighted how popular algorithms are sensitive to hyper-parameter settings and implementation details, and that common empirical practice leads to weak statistical evidence (Machado et al., 2018; Henderson et al., 2018). Here we take this one step further. This manuscript represents both a call to action, and a comprehensive resource for how to do good experiments in reinforcement learning. In particular, we cover: the statistical assumptions underlying common performance measures, how to properly characterize performance variation and stability, hypothesis testing, special considerations for comparing multiple agents, baseline and illustrative example construction, and how to deal with hyper-parameters and experimenter bias. Throughout we highlight common mistakes found in the literature and the statistical consequences of those in example experiments. The objective of this document is to provide answers on how we can use our unprecedented compute to do good science in reinforcement learning, as well as stay alert to potential pitfalls in our empirical design.

Motivation & Objective

  • To address the growing crisis in reproducibility and weak statistical evidence in reinforcement learning experiments.
  • To distinguish between scientific studies and engineering demonstrations in RL, emphasizing the need for falsifiable hypotheses and controlled experiments.
  • To provide a practical, evidence-based framework for designing experiments that yield reliable, generalizable results.
  • To highlight common methodological errors—such as invalid error bars, poor baseline selection, and computational inefficiency—that undermine scientific credibility.
  • To advocate for responsible use of computational resources, including avoiding underpowered experiments due to budget constraints

Proposed method

  • Proposes a systematic framework for evaluating RL agents using appropriate performance metrics, including online vs. offline evaluation and discounting strategies.
  • Emphasizes the importance of statistical rigor, including proper hypothesis testing, confidence intervals, and awareness of assumptions underlying performance variation.
  • Recommends systematic hyperparameter search and reporting of implementation details to ensure reproducibility and reduce experimenter bias.
  • Introduces guidelines for constructing meaningful baselines, including simple and random policies, to avoid overestimating algorithmic performance.
  • Advocates for code optimization and computational efficiency to enable systematic experimentation within feasible resource constraints.
  • Recommends avoiding benchmark gatekeeping and instead focusing on knowledge generation over winner-takes-all results

Experimental results

Research questions

  • RQ1How can researchers ensure statistical validity when comparing reinforcement learning algorithms under high variance and limited runs?
  • RQ2What are the consequences of using inappropriate performance metrics, such as offline returns or misleading error bars, in RL evaluation?
  • RQ3How can researchers avoid experimenter bias and hyperparameter overfitting when designing RL experiments?
  • RQ4Why is it scientifically unsound to rely on a single run or insufficient trials, even with limited computational resources?
  • RQ5What constitutes a proper baseline in RL, and why are simple or random policies essential for fair comparison?

Key findings

  • Many commonly used performance metrics—such as offline returns or tightly shaded error regions—can mislead due to incorrect assumptions about data distribution and variance.
  • Experiments with fewer than 5–10 independent runs often lack sufficient statistical power to draw reliable conclusions, even with high computational budgets.
  • Failure to report implementation details, such as reward shaping or exploration schedules, undermines reproducibility and can lead to inflated performance claims.
  • Using random or trivial baselines (e.g., random policy) often reveals that proposed algorithms do not outperform simple heuristics, exposing overfitting to specific environments.
  • Computational inefficiency forces researchers to compromise on experimental design, such as reducing runs or hyperparameter sweeps, which invalidates scientific conclusions.
  • The paper demonstrates that even well-known results can be reinterpreted as misleading when evaluated under proper statistical standards, highlighting the need for methodological rigor

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.