Quantity vs. Quality: On Hyperparameter Optimization for Deep Reinforcement Learning

Lars Hertel, Pierre Baldi, Daniel L. GillenarXiv 2020

Introduction

Deep Reinforcement Learning (RL) is notoriously sensitive to random seeds, making hyperparameter optimization (HPO) a significant challenge. A single seed can determine whether an agent masters a task or fails entirely. This paper investigates the trade-off between "quantity" (exploring many configurations) and "quality" (evaluating fewer configurations more thoroughly) under a fixed computational budget.

The Challenge of Noisy Evaluations

In standard machine learning, hyperparameters that perform well once are likely to be stable. In RL, every evaluation is a noisy sample. Researchers often face a dilemma: should they repeat runs to average out noise, or use those resources to explore more of the search space? Common strategies like early pruning (e.g., Successive Halving) assume that early performance correlates strongly with final performance, an assumption that often fails in the volatile early stages of RL training.

Experimental Methodology

The authors benchmarked several HPO strategies using the Proximal Policy Optimization (PPO2) algorithm on two OpenAI Gym environments: Cartpole and Inverted Pendulum.

The Cartpole balancing task, one of the environments used to benchmark HPO strategies.

The strategies compared include:

  • Random Search: Baseline uniform sampling with 1, 3, and 5 repetitions per configuration.
  • ASHA (Asynchronous Successive Halving): An aggressive pruning strategy that allocates more resources to top-performing runs.
  • Bayesian Optimization (BO): A model-based approach using Gaussian Processes. Three acquisition functions were tested: Expected Improvement (EI), Lower Confidence Bound (LCB), and Noisy Expected Improvement (qNEI).

Key Results and Insights

The experiments revealed that Bayesian Optimization, specifically using the Noisy Expected Improvement (qNEI) acquisition function, consistently outperformed other methods across different budget levels.

Comparison of HPO strategies across budgets of 25, 50, and 100 evaluations. BoTorch-qNEI consistently achieves higher mean rewards.

The Failure of Repetition

A significant finding was the "repetition trap." While repeating a configuration multiple times (e.g., Random Search x5) provides a more certain estimate of its performance, the opportunity cost is too high. Under a fixed budget, the reduction in unique configurations explored leads to poorer overall results compared to single-evaluation strategies or model-based search.

Pruning Risks

ASHA, while effective in supervised learning, proved risky in RL. The high variance of RL agents early in training can lead ASHA to prematurely prune high-potential hyperparameter sets that simply started with a "bad" random seed.

Bayesian Optimization succeeds because it explicitly models observation noise. Instead of trying to average away noise manually, BO treats it as a signal, allowing for more principled exploration of the search space. In the Cartpole task with a 100-evaluation budget, BoTorch-qNEI achieved a mean reward of 158.3, significantly higher than Random Search (139.1) and ASHA (134.4).

Conclusion

For hyperparameter optimization in Deep RL, the most efficient strategy is to prioritize exploration through noise-robust model-based methods. Bayesian Optimization with qNEI provides a principled way to handle the inherent volatility of RL environments, outperforming both simple repetition and aggressive pruning strategies. Future work may involve extending these findings to high-dimensional tasks and exploring multi-fidelity model-based optimization.

Summary updated

BibTeX
@misc{hertel2020quantity,
  author = {Lars Hertel and Pierre Baldi and Daniel L. Gillen},
  title = {{Quantity vs. Quality: On Hyperparameter Optimization for Deep Reinforcement Learning}},
  year = {2020},
  eprint = {2007.14604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.14604},
}
Figure