Introduction
Hyperparameter optimization (HPO) is a critical yet often inefficient component of the machine learning pipeline. Traditionally, HPO is treated as a "black-box" optimization problem, frequently addressed using Bayesian Optimization (BO). In BO, a surrogate model—typically a Gaussian Process (GP)—estimates the performance of hyperparameter configurations, and an acquisition function (e.g., Expected Improvement) selects the next candidate. However, these acquisition functions are inherently "greedy," focusing on immediate gains rather than the long-term trajectory of the search. This paper proposes a paradigm shift, reframing HPO as a Model-Based Reinforcement Learning (MbRL) problem where the agent "plans ahead" to optimize the search process.
Methodology: MetaPETS and LookAhead MPC
The core contribution is MetaPETS, an algorithm that models HPO as a Markov Decision Process (MDP). Unlike traditional BO, MetaPETS leverages advanced planning techniques from the RL community.
The method consists of several key components:
- Probabilistic Transition Model: Instead of GPs, MetaPETS uses an ensemble of probabilistic neural networks. This ensemble effectively captures both aleatoric uncertainty (data noise) and epistemic uncertainty (lack of exploration), scaling better than GPs for high-dimensional search spaces.
- Trajectory Sampling: The model simulates multiple future sequences of evaluations, essentially "dreaming" about potential outcomes.
- LookAhead MPC: In a significant departure from standard Model Predictive Control (MPC) used in robotics, MetaPETS employs LookAhead MPC. Since HPO allows for non-sequential evaluation (one can jump to any configuration identified in a "dream"), the algorithm selects the single best configuration found across all simulated future trajectories rather than just the first step of the best sequence.
- Meta-Learning: The models are pre-trained on meta-datasets of prior HPO experiments, providing a strong prior "intuition" that accelerates optimization on new tasks.
Experimental Evaluation
The researchers evaluated MetaPETS using three large-scale meta-datasets derived from 120 UCI classification tasks: Layout Md-v2 (architecture), Regularization Md (dropout/weight decay), and Optimization Md-v2 (learning rates/optimizers). These datasets provide a robust, reproducible environment for offline HPO benchmarking.
Key Results and Discussion
MetaPETS, particularly the LookAhead MPC-5 variant (planning 5 steps ahead), consistently outperformed a wide range of baselines, including Random Search, SMAC, BOHAMIANN, and the model-free RL approach MetaBO.
As shown in Figure 1, the LookAhead variants achieve a significantly lower (better) average rank across all three search spaces. The results highlight several critical insights:
- Planning Advantage: Explicitly considering future evaluations leads to more efficient exploration. Traditional acquisition functions are limited by their short-sightedness.
- Scalability of Ensembles: Probabilistic neural network ensembles provide a viable and often superior alternative to Gaussian Processes, especially when integrated into a planning framework.
- Horizon Matters: Ablation studies confirmed that increasing the planning horizon (the number of "lookahead" steps) directly correlates with improved optimization performance.
Conclusion
By treating HPO as a sequential decision-making problem solvable via MbRL, this work demonstrates that "planning ahead" is a powerful strategy for hyperparameter tuning. While the current implementation focuses on discrete search spaces and carries some computational overhead for trajectory simulation, the gains in sample efficiency are substantial. Future work may extend these concepts to continuous spaces using more sophisticated optimization techniques like the Cross-Entropy Method (CEM) and integrate multi-fidelity approaches to further reduce costs.
Summary updated