The Cross-environment Hyperparameter Setting Benchmark for Reinforcement Learning

Andrew Patterson, Samuel Neumann, Raksha Kumaraswamy, Martha White, Adam White

TL;DR

The paper introduces the Cross-environment Hyperparameter Setting Benchmark (CHS), an evaluation methodology that requires reinforcement learning (RL) algorithms to use a single hyperparameter configuration across an entire suite of environments. This approach exposes algorithmic sensitivity to hyperparameters, reduces overestimation bias, and delivers statistically robust algorithm rankings at a fraction of the computational cost of traditional per-environment tuning.

What Problem Does This Paper Address?

Reinforcement learning has a well-known reproducibility and generality crisis. Modern deep RL agents are notoriously sensitive to hyperparameter choices. To make papers look good, the standard empirical practice is to tune hyperparameters per environment, selecting the absolute best configuration for each individual task.

However, this practice hides hyperparameter sensitivity and leads to environment overfitting. Furthermore, because RL performance distributions are highly non-normal and often bimodal (as shown in Figure 2, where an agent either solves the task or catastrophically fails), estimating true performance requires a massive number of random seeds. When researchers try to combine per-environment tuning with a high number of seeds across multiple tasks, the computational cost skyrockets. As a result, many papers cut corners—using too few seeds or sub-selecting environments—leading to noisy, unreplicable, or overly optimistic claims.

RL algorithm performance distributions are often highly non-normal and bimodal, making mean performance estimates from few seeds unreliable.

Methods

The authors propose the Cross-environment Hyperparameter Setting Benchmark (CHS), which shifts the focus from "how well can this agent perform when perfectly tuned for this specific task?" to "does this agent have a single hyperparameter setting that works reliably across all tasks?"

The CHS methodology follows a clean, two-stage, four-step workflow:

  1. Preliminary Sweep: Run the RL algorithm across all hyperparameter configurations and all environments using a very small number of tuning seeds ($n_{tune} < 30$, typically just 3).
  2. Normalization: Standardize the raw scores across diverse environments using Cumulative Distribution Function (CDF) normalization, which maps performance relative to all other tested agents and configurations.
  3. Hyperparameter Selection: Aggregate the normalized scores and select the single hyperparameter configuration ($\theta_{CHS}$) that yields the highest average performance across the entire suite.
  4. Re-evaluation: Take this single "champion" configuration and run it across all environments using a large number of seeds (e.g., 100+) to obtain a highly accurate, statistically sound estimate of its true performance.
The CHS workflow contrasts a cheap preliminary sweep across all configurations with a rigorous, high-seed re-evaluation of only the single best cross-environment configuration.

By aggregating normalized scores across environments early on, the CHS drastically reduces statistical variance. This allows researchers to safely use very few seeds during the computationally expensive sweep phase, saving massive amounts of compute that can be reallocated to the final re-evaluation phase.

Datasets

The authors validate and demonstrate their benchmark using two distinct suites:

  • SC-CHS (Small Control CHS): A suite of 6 classic control environments (Acrobot, Cartpole, Cliff World, Lunar Lander, Mountain Car, and Puddle World). Because these domains are computationally cheap, the authors generated a massive "source-of-truth" dataset (250 runs per configuration) to statistically validate the CHS framework via bootstrapping.
  • DMC-CHS (DeepMind Control CHS): The full suite of 28 continuous control environments from the DM Control suite, used as a large-scale demonstration of CHS on modern deep RL algorithms.

Key Insights and Ideas

  • Per-environment tuning masks catastrophic failures: Under traditional tuning, an agent like DeepQ appears reliable because a custom hyperparameter set can be found for every game. Under the CHS, forcing a single hyperparameter set reveals that the agent completely fails on tasks like Cliff World and Lunar Lander, performing worse than a random policy.
  • Environment sub-selection introduces massive variance: A common practice (e.g., in the Atari suite) is to tune hyperparameters on a small subset of environments and evaluate on the rest. The authors show that this "subset-CHS" approach causes extreme variance in final algorithm rankings, making it highly unreliable.
  • Drastic reduction in overestimation bias: Maximizing performance over a large hyperparameter set inherently introduces a positive optimization bias, especially with few seeds. As shown in Figure 6, the CHS drastically suppresses this bias compared to traditional per-environment tuning.
The CHS exhibits significantly lower overestimation bias than conventional per-environment tuning when using few random seeds.

Key Results

  • Perfect Ranking Consistency: In a simulation of 10,000 independent experiments on the SC-CHS suite, the CHS correctly identified the true ordering of four baseline algorithms 100% of the time using only 3 tuning seeds. In contrast, traditional per-environment tuning frequently misranked the algorithms even when using up to 30 seeds.
  • Settling the DDPG Exploration Debate: The authors applied the DMC-CHS to resolve an open question in continuous control: does the temporally correlated Ornstein-Uhlenbeck (OU) noise process actually improve exploration over simple uncorrelated Gaussian noise for DDPG? Evaluating across all 28 DM Control environments, DDPG-Gaussian achieved a mean score of 0.492, while DDPG-OU achieved 0.486. With heavily overlapping 95% confidence intervals, the CHS confidently demonstrates that OU noise provides no meaningful performance benefit.

Limitations and Future Work

While the CHS provides a robust and affordable framework, the authors note a few limitations:

  • Suite Bias: The benchmark inherits the biases of the chosen environment suite. For example, if a suite consists entirely of pixel-based tasks, the CHS will still favor algorithms with pixel-specific design choices (like layer normalization).
  • Susceptibility to Gaming: Although CHS reduces the incentive to overfit to a single environment, well-funded labs could still "game" the benchmark by running massive, iterative meta-sweeps over the CHS framework itself.

For future work, the authors encourage the community to apply the CHS methodology to other diverse environment taxonomies, such as specific structural subsets of Atari games or off-policy evaluation suites.

Summary updated

BibTeX
@misc{patterson2024cross,
  author = {Andrew Patterson and Samuel Neumann and Raksha Kumaraswamy and Martha White and Adam 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