Abstract
Reinforcement Learning (RL) training is highly sensitive to hyperparameter selection, often requiring expensive tuning. We present HyperController, a computationally efficient algorithm that treats hyperparameter optimization (HPO) as a dynamic control problem. By modeling the reward surface as a Linear Gaussian Dynamical System and employing Kalman filters for one-step prediction, HyperController achieves faster convergence and higher rewards than traditional Bayesian Optimization methods. Evaluation across OpenAI Gymnasium benchmarks demonstrates that HyperController is orders of magnitude faster than baselines while maintaining superior stability and performance.
Introduction
Training Reinforcement Learning (RL) agents is notoriously difficult due to extreme sensitivity to hyperparameters like learning rate or batch size. Traditional approaches involve static pre-tuning or computationally expensive dynamic methods like Bayesian Optimization (BO). However, BO scales cubically ($O(n^3)$) with samples, making it too slow for real-time adjustments during training. Moreover, RL environments are non-stationary; as an agent learns, the optimal hyperparameter configuration shifts. HyperController addresses these gaps by framing hyperparameter optimization (HPO) as a tracking problem in stochastic control theory rather than a static search.
Methods
HyperController shifts the HPO paradigm from static optimization to active control. It models the reward function as a state within a Linear Gaussian Dynamical System (LGDS), assuming the quality of a hyperparameter configuration evolves linearly over time with Gaussian noise. This allows for the use of a Kalman filter—the gold standard for one-step prediction—to efficiently estimate the optimal next-step configuration based on past performance.
To mitigate the "curse of dimensionality," HyperController employs greedy dimensionality reduction, optimizing each hyperparameter independently. This reduces the search space complexity from $d^h$ to $d \times h$. Computationally, the method is highly efficient, requiring only the inversion of small matrices ($O(s^3)$ where $s$ is typically $\le 3$), making it nearly instantaneous relative to the RL training steps themselves.
Key Results
The algorithm was evaluated on five continuous control tasks from the OpenAI Gymnasium suite: HalfCheetah-v4, BipedalWalker-v3, Pusher-v4, InvertedDoublePendulum-v4, and Reacher-v4.
As shown in Figure 1, HyperController (blue) consistently reaches high reward levels much faster than competing methods. In terms of wall-clock time, HyperController completed 1,000 HPO iterations in under 0.1 minutes, whereas baselines like GP-UCB and PB2 required over 10 minutes to perform the same task.
Statistical analysis (Figure 2) reveals that HyperController achieved the highest median reward in 4 out of 5 environments. Furthermore, the box plots indicate a higher performance "floor" (lower quantile), suggesting that HyperController provides more consistent results across different random seeds, effectively taming the instability common in RL training.
Limitations and Future Work
While effective, HyperController assumes linear evolution of the objective function, which may not hold for extremely chaotic training dynamics. Additionally, the current implementation relies on discretization of the hyperparameter space. Future work could explore continuous control versions or the application of HyperController as an active agent-side controller for real-time environmental adaptation during deployment.
Conclusion
HyperController provides a mathematically grounded, high-speed alternative to traditional HPO. By treating the training process as a dynamical system to be controlled, it offers a practical solution for stabilizing and accelerating RL research and applications.
Summary updated