TL;DR
Reinforcement learning is notoriously unstable, making hyperparameter tuning a high-stakes gamble. This paper introduces ERAHBO, a risk-averse Bayesian optimization method that dynamically adjusts its evaluation budget to find hyperparameters that yield both high rewards and low variance. By discarding poor configurations early, ERAHBO significantly cuts down the massive computational cost of automated reinforcement learning tuning.
What Problem Does This Paper Address?
Reinforcement learning (RL) training is highly stochastic. Two runs of the exact same algorithm with the exact same hyperparameters can yield vastly different results due to random initializations, exploratory choices, or hardware non-determinism. Standard Automated RL (AutoRL) methods typically optimize for the mean final return, completely ignoring this volatility. This results in brittle hyperparameter configurations that look great during tuning but fail to replicate reliably in production.
While risk-averse hyperparameter optimization (HPO) methods exist—such as RAHBO—they rely on a fixed number of repeated runs ($k$) for every single configuration tested. In computationally expensive domains like RL, spending a large, fixed budget on obviously underperforming configurations is wildly inefficient.
Methods
The authors propose ERAHBO (Efficient Risk-Averse Heteroscedastic Bayesian Optimization). It models both the expected performance and the input-dependent variance (heteroscedasticity) using two separate Gaussian Processes. It then optimizes a mean-variance objective:
$$MV(x) = f(x) - \alpha \rho^2(x)$$
where $\alpha$ controls the user's risk aversion.
The core innovation is a confidence-based adaptive resampling strategy. Instead of running every hyperparameter configuration a fixed number of times, ERAHBO dynamically allocates its budget. It calculates an optimistic Upper Confidence Bound (UCB) for the current configuration and compares it to a conservative Lower Confidence Bound (LCB) of the best-known configuration (the incumbent).
If the current configuration's UCB drops below the incumbent's LCB, the algorithm certifies it as suboptimal and stops sampling it immediately. This allows the algorithm to focus its computational budget on promising but uncertain configurations. The authors also provide theoretical sublinear regret guarantees for this variable-sample approach.
Datasets
To evaluate risk-aware HPO, the authors curated a new offline dataset of RL learning outcomes based on ARLBench. It maps hyperparameter configurations to post-training policy returns across 50 repeated runs (seeds) per configuration (totaling 512 configurations per environment).
This is a significant upgrade over existing datasets like HPO-RL-Bench or the original ARLBench, which only provide up to 10 seeds—a number the authors note is insufficient for reliably estimating heteroscedastic variance. The dataset spans 19 tasks across Classic Control, Brax, and XLand-Minigrid domains using DQN, PPO, and SAC algorithms.
Key Insights and Ideas
- Fixed Budgets are a Trap: The optimal number of replications ($k$) for fixed-budget methods varies wildly across different RL environments. A low $k$ might work well in one domain but fail in another. Adaptive resampling completely bypasses the need to manually tune this budget.
- Early Rejection Saves Massive Compute: The vast majority of hyperparameter configurations perform poorly. By using confidence bounds to stop sampling bad configurations early, ERAHBO frees up resources to explore the search space more effectively.
- Budget Concentration: ERAHBO naturally shifts its replication budget toward high-performing configurations, ensuring that variance estimates are most accurate where they matter most.
Key Results
- Superior Performance: Across all 19 RL tasks, ERAHBO achieved the best overall mean rank (1.79) compared to RAHBO with $k=20$ (2.42), RAHBO with $k=2$ (2.37), and risk-neutral GP-UCB (3.42).
- Sample Efficiency: ERAHBO reached a 75% regret threshold in an average of 40.8 evaluations, compared to 62.3 for RAHBO ($k=20$) and 83.7 for GP-UCB, demonstrating significantly faster convergence.
Limitations and Future Work
- Narrow Definition of Risk: The mean-variance objective is scale-sensitive and does not directly account for catastrophic tail events or specific failure probabilities.
- Conservative Theory: The provided regret guarantee is a conservative worst-case bound over all possible sample schedules rather than a tight characterization of the adaptive rule itself.
- Offline vs. Online: The empirical validation was performed on offline datasets. While excellent for reproducibility, it doesn't perfectly mirror fully online HPO with live training runs.
- Environment Sensitivity: ERAHBO struggled in environments like XLand, where good hyperparameter configurations are exceptionally rare, making it difficult to establish a strong incumbent baseline early on.
Summary updated