The Cross-environment Hyperparameter Setting Benchmark for Reinforcement Learning

Andrew Patterson, Samuel Neumann, Raksha Kumaraswamy, Martha White, Adam M White · DOI

In the field of Reinforcement Learning (RL), "State-of-the-Art" results often rely on massive compute budgets and meticulous per-task tuning. However, a fundamental question remains: does an algorithm requiring a bespoke hyperparameter configuration for every environment truly represent progress toward general intelligence? Research from the University of Alberta, presented at RLC 2024, argues that current evaluation standards may be incentivizing "environment overfitting" rather than algorithmic robustness.

The Problem with Per-Environment Tuning

Standard RL practice typically involves finding the optimal hyperparameters for each individual task and reporting the aggregated results. This "per-environment tuning" approach is problematic for several reasons:

  1. Overfitting: It masks an algorithm's sensitivity or potential for catastrophic failure when settings are not perfectly tuned.
  2. Statistical Noise: With a limited number of experimental runs (seeds), reported rankings can often be the result of chance rather than algorithmic superiority.
  3. Infeasibility: The computational cost of tuning every parameter for every task favors well-resourced labs and creates a "statistical precipice" that hinders reproducibility.

The CHS Methodology

To address these issues, the authors propose the Cross-environment Hyperparameter Setting (CHS) Benchmark. This methodology evaluates RL algorithms using a single, fixed hyperparameter setting across an entire suite of tasks, rewarding generality over the ability to be meticulously hand-tuned.

The four-step CHS methodology: preliminary sweep, normalization, hyperparameter selection, and high-confidence re-evaluation.

The CHS process follows four distinct steps:

  1. Preliminary Sweep: Run the algorithm across all environments and hyperparameter settings using a small number of seeds (e.g., 3).
  2. Normalization: Convert raw scores into a standardized format using Cumulative Distribution Function (CDF) normalization, mapping performance to a [0, 1] scale relative to all tested agents.
  3. Hyperparameter Selection: Identify the single hyperparameter configuration that yields the highest average normalized score across the entire suite.
  4. Re-evaluation: Run the selected "champion" setting with a high number of seeds (e.g., 100+) to obtain a statistically confident estimate of true performance.

Benchmarking Suites

The authors validated the CHS on two primary benchmarks:

  • SC-CHS (Small Control): Six classic environments (Acrobot, Cartpole, Cliff World, Lunar Lander, Mountain Car, and Puddle World) used to verify the benchmark's reliability through massive sampling.
  • DMC-CHS (DM Control): A suite of 28 continuous control environments from the DeepMind Control Suite, serving as a modern testbed for deep RL algorithms like DDPG.

Key Insights: Generality vs. Overfitting

One of the most significant findings is the "Catastrophic Failure" reveal. While algorithms like DeepQ appear reliable under per-environment tuning, the CHS methodology exposes their failure on specific tasks like Cliff World and Lunar Lander when forced to use a general setting. This highlights that CHS measures an algorithm's performance "floor" rather than just its "ceiling."

Comparison of per-environment tuning (top) vs. across-environment tuning (bottom). CHS reveals performance drops in algorithms that lack generality, such as DeepQ in CliffWorld.

Furthermore, the CHS proves to be more statistically robust than traditional methods. By averaging performance across many environments, individual run noise cancels out, allowing for accurate algorithm rankings with fewer total runs. The authors also used the DMC-CHS to challenge common practices, demonstrating that the widely used Ornstein-Uhlenbeck (OU) noise in DDPG provides no meaningful performance benefit over simple uncorrelated Gaussian noise.

Results and Conclusion

In simulations of 10,000 experiments, the CHS consistently identified the true ordering of algorithms (ESARSA > Q-Learning > DeepQ > DQN) even with minimal initial seeds. It significantly reduces the "overestimation bias" common in traditional reporting. While the CHS depends on the chosen environment suite being representative, it offers a more honest and computationally efficient path toward developing truly general reinforcement learning agents.

Summary updated

BibTeX
@misc{patterson2024cross,
  author = {Andrew Patterson and Samuel Neumann and Raksha Kumaraswamy and Martha White and Adam M White},
  title = {{The Cross-environment Hyperparameter Setting Benchmark for Reinforcement Learning}},
  year = {2024},
  eprint = {2407.18840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.18840},
}
Figure