Introduction
Reinforcement learning (RL) is notoriously sensitive to hyper-parameters. Achieving peak performance often requires tedious manual tuning or expensive parallel training sessions. This paper introduces OHT-ES (Online Hyper-parameter Tuning via Evolutionary Strategies), a framework designed to adapt critical parameters—such as learning rates and $n$-step horizons—on the fly using black-box optimization. By focusing Evolutionary Strategies (ES) on a low-dimensional hyper-parameter space rather than the entire neural network, the authors achieve state-of-the-art performance across a wide range of continuous control benchmarks.
The Challenge of Off-policy Tuning
Off-policy algorithms, which learn from a replay buffer of past experiences, are highly valued for their sample efficiency. However, they are famously brittle. Small deviations in hyper-parameters can lead to total training collapse, a phenomenon linked to the "deadly triad" of instability in RL.
While on-policy algorithms have successfully utilized meta-gradients to tune themselves during training, these techniques do not translate easily to off-policy, replay-based methods due to the non-stationarity of the objective. Alternative approaches like Population-Based Training (PBT) require training dozens of agents in parallel, which is computationally prohibitive. OHT-ES addresses the need for a lightweight, online tuning method that does not require differentiating through complex RL objectives.
Methodology: OHT-ES
OHT-ES treats hyper-parameter tuning as a black-box optimization problem solved via ES. The process follows five key steps:
- Parameter Distribution: The agent maintains a distribution over hyper-parameters (e.g., Gaussian for continuous learning rates, Categorical for discrete $n$-step horizons).
- Population Sampling: At each iteration, $N$ hyper-parameter sets are sampled from this distribution.
- Parallel Updates: $N$ "copies" of the agent are updated using their respective hyper-parameters. Crucially, these agents share a single replay buffer to maintain sample efficiency.
- Performance Evaluation: After an update, agents perform rollouts to evaluate their performance.
- ES Update: The "meta-objective" (cumulative return) is used to update the distribution. If a specific parameter set leads to better performance, the distribution shifts toward those values.
Because ES is a zero-order optimizer, it is agnostic to the underlying RL algorithm. In this study, the authors primarily use TD3 (Twin Delayed DDPG) as the base learner.
Experimental Setup
The researchers evaluated OHT-ES across 13 distinct continuous control tasks from several popular simulation backends, including OpenAI Gym, DeepMind Control Suite, and Roboschool. Additionally, "Delayed Reward" variants were introduced to test the algorithm's ability to adapt the $n$-step horizon hyper-parameter in sparse reward settings.
Key Results and Insights
OHT-ES consistently outperformed TD3 with fixed hyper-parameters across almost all 13 tasks. The robustness of the method is evident when looking at normalized scores across the entire benchmark suite.
Comparison with Meta-Gradients
When compared to a meta-gradient version of TD3, OHT-ES showed faster learning and higher asymptotic performance. This is particularly notable in tasks like DMWalkerRun, where OHT-ES significantly gaps both standard TD3 and the meta-gradient baseline.
Efficiency and Theoretical Foundation
The authors provide a theoretical proof showing that as noise in the ES update approaches zero, the update converges to the same direction as a meta-gradient. This provides a mathematical foundation for why this black-box approach is so effective. Furthermore, by tuning only a few hyper-parameters rather than the entire network, OHT-ES remains significantly more efficient than full ES-based RL.
Conclusion and Future Work
OHT-ES demonstrates that low-dimensional ES is an effective and stable tool for online hyper-parameter tuning in off-policy RL. While it requires running multiple agent updates per step, the performance gains and robustness across diverse tasks justify the computational trade-off. Future work may explore optimizing for "discovery" or "exploration" objectives and applying the framework to more complex architectural choices like network depth or reward-shaping coefficients.
Summary updated