A Method for Evaluating Hyperparameter Sensitivity in Reinforcement Learning

Jacob Adkins, Michael Bowling, Adam White

Abstract

Reinforcement Learning (RL) algorithms often achieve state-of-the-art results through extensive per-environment hyperparameter tuning, a process that is frequently opaque and computationally expensive. This paper introduces a formal framework to quantify this "hidden cost" using two new metrics: Hyperparameter Sensitivity ($\Phi$) and Effective Hyperparameter Dimensionality ($d$). By evaluating variants of Proximal Policy Optimization (PPO) across MuJoCo domains, we demonstrate a "normalization paradox" where techniques that improve peak performance often increase sensitivity, making algorithms harder to deploy in new settings. We propose the Performance-Sensitivity Plane as a tool for researchers to visualize these trade-offs and distinguish between fundamental algorithmic improvements and those that merely exploit hyperparameter tuning.

Introduction

In the current Reinforcement Learning (RL) landscape, the pursuit of state-of-the-art (SOTA) performance often masks the complexity required to achieve it. As algorithms have evolved from DQN (16 hyperparameters) to more complex architectures like DreamerV3 (41 hyperparameters), the search space for optimal configurations has expanded exponentially. This creates a significant "Tuning Gap": while researchers report peak performance after exhaustive per-environment tuning, real-world practitioners rarely have the computational budget for millions of trial runs.

To address this, we propose a standardized, scalable methodology to measure algorithmic robustness. We argue that an ideal RL algorithm should not only achieve high performance but also remain robust across diverse tasks using a consistent set of hyperparameters.

Methodology

We introduce two primary metrics and a visualization framework to quantify the relationship between performance and tuning effort:

  1. Hyperparameter Sensitivity ($\Phi$): This metric measures the performance "tax" incurred when using a single best-fixed hyperparameter setting across all environments instead of tuning specifically for each one. A high $\Phi$ indicates that the algorithm is highly dependent on task-specific tuning.
  2. Effective Hyperparameter Dimensionality ($d$): This identifies the minimum number of hyperparameters a practitioner must tune per environment to reach at least 95% of the peak "fully-tuned" performance. This quantifies the complexity of the tuning process itself.
  3. The Performance-Sensitivity Plane: This 2D visualization plots performance against sensitivity. It allows for the categorization of algorithmic changes into four regions:
  4. Region 1: Higher performance, lower sensitivity (the ideal goal).
  5. Region 2: Higher performance, moderate sensitivity increase (a common trade-off).
  6. Region 4: Higher performance, significantly higher sensitivity (a risky trade-off where gains are driven by tuning).

To ensure comparability across diverse tasks (e.g., comparing HalfCheetah to Swimmer), we employ [5, 95] percentile normalization to map all scores into a common range.

Experimental Setup

Our study involved a massive computational evaluation consisting of 4.3 million runs and 13 trillion environment steps. We analyzed several variants of Proximal Policy Optimization (PPO) across five Brax MuJoCo domains: Ant, HalfCheetah, Hopper, Swimmer, and Walker2d. This large-scale empirical study allowed us to observe how common "tricks" in the RL literature affect both performance and sensitivity.

Key Insights: The Normalization Paradox

Our analysis reveals a "normalization paradox." While techniques like advantage normalization are widely assumed to stabilize gradients and simplify the learning process, they often have the opposite effect on hyperparameter sensitivity.

  • Advantage Normalization: Per-minibatch advantage normalization significantly boosted peak performance but simultaneously increased the algorithm's sensitivity to other hyperparameters, such as learning rates. This falls into Region 2 of our plane—a performance boost that comes with a moderate ease-of-use cost.
  • Percentile-based Scaling: Techniques like those used in DreamerV3 often fall into Region 4. The performance gains are substantial, but they rely heavily on precise, task-specific tuning.
  • Observation Normalization: Interestingly, zero-mean observation normalization was found to be a "safe" modification. It had negligible impact on peak performance but slightly reduced sensitivity, moving the algorithm toward the more desirable Region 1.

Discussion and Limitations

The results suggest that many reported "algorithmic improvements" may not be fundamental advancements in learning logic, but rather new ways to exploit the hyperparameter search space. By quantifying the effective dimensionality ($d$), we show that PPO variants with advantage normalization require tuning more parameters to reach near-peak performance compared to vanilla PPO.

However, this methodology has limitations. The sensitivity metric is inherently dependent on the distribution of environments in the test suite; a narrow suite may make an algorithm appear more robust than it is. Furthermore, the metrics are sensitive to the granularity of the initial hyperparameter grid search.

Conclusion

By providing a formal way to measure the "hidden cost" of performance, we hope to encourage the RL community to prioritize algorithmic robustness alongside raw scores. Future work should extend these metrics to off-policy methods and more diverse environment suites like Atari or Meta-World. Additionally, these metrics could serve as a benchmark for AutoRL methods, evaluating whether automated tuning systems actually reduce the meta-sensitivity of the algorithms they manage.

Summary updated

BibTeX
@inproceedings{adkins2024method,
  author = {Jacob Adkins and Michael Bowling and Adam White},
  title = {{A Method for Evaluating Hyperparameter Sensitivity in Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=4OJdZhcwBb},
}
Figure