Skip to main content
QUICK REVIEW

[Paper Review] How Many Random Seeds? Statistical Power Analysis in Deep Reinforcement Learning Experiments

Cédric Colas, Olivier Sigaud|arXiv (Cornell University)|Jun 21, 2018
Reinforcement Learning in RoboticsComputer Science10 references59 citations
TL;DR

The paper analyzes how random seeds affect statistical errors in deep RL experiments and provides guidelines for choosing seed counts using t-tests and bootstrap confidence intervals, plus empirical evaluation of assumptions.

ABSTRACT

Consistently checking the statistical significance of experimental results is one of the mandatory methodological steps to address the so-called "reproducibility crisis" in deep reinforcement learning. In this tutorial paper, we explain how the number of random seeds relates to the probabilities of statistical errors. For both the t-test and the bootstrap confidence interval test, we recall theoretical guidelines to determine the number of random seeds one should use to provide a statistically significant comparison of the performance of two algorithms. Finally, we discuss the influence of deviations from the assumptions usually made by statistical tests. We show that they can lead to inaccurate evaluations of statistical errors and provide guidelines to counter these negative effects. We make our code available to perform the tests.

Motivation & Objective

  • Explain how random seeds influence type-I and type-II errors in deep RL experimental comparisons.
  • Provide practical guidelines to determine the number of seeds needed to detect a meaningful performance difference.
  • Compare Welch’s t-test and bootstrap confidence intervals for difference testing in RL settings.”
  • Discuss deviations from test assumptions and how they affect error rates, with empirical evaluation and mitigation strategies.”],
  • method
  • research_questions
  • key_findings
  • table_headers
  • table_rows

Proposed method

  • Model the performance of RL algorithms as random variables and study differences via X1, X2, and Xdiff.
  • Propose two statistical tests: Welch’s t-test for unequal variances and bootstrap confidence intervals for difference testing.
  • Describe how to compute sample size N to control type-II error beta given significance alpha and desired effect size epsilon.
  • Offer guidance on susceptibility to assumption deviations and empirical estimation of type-I error.
  • Provide step-by-step procedure to pilot study, choose N, and run tests with real RL data.

Experimental results

Research questions

  • RQ1How many random seeds are required to reliably detect differences in two RL algorithms at a given significance level?
  • RQ2How do t-test and bootstrap CI compare in detecting differences in RL algorithm performance?
  • RQ3How do deviations from statistical assumptions affect error rates in RL seed-based testing?
  • RQ4What practical workflow can researchers follow to plan seed counts and validate results?

Key findings

  • Welch’s t-test and bootstrap CI can detect differences, but small samples may yield type-I errors or understate them depending on method.
  • Sample size N should be increased to reduce type-II error beta for a given effect size and alpha.
  • Bootstrap CI may be unreliable with small samples (<10) due to empirical distribution issues, while Welch’s t-test may under- or over-estimate error rates under non-normal data.
  • Pilot studies provide s1 and s2 estimates to compute beta as a function of N and epsilon.
  • Empirical evaluation shows that underestimation of standard deviations from small pilots can bias required N upward or downward.
  • The authors provide code and emphasize not blindly trusting statistical tests without checking assumptions.

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.