NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Hyperparameter Optimization by Planning Ahead

Hadi S. Jomaa, Jonas K. Falkner, Lars Schmidt-Thieme

TL;DR

This paper reframes Hyperparameter Optimization (HPO) as a Model-based Reinforcement Learning (MbRL) problem. By using an ensemble of probabilistic neural networks to simulate future search trajectories, the authors introduce a "LookAhead" planning strategy that consistently outperforms traditional greedy acquisition functions and model-free RL baselines.

What Problem Does This Paper Address?

Hyperparameter optimization—finding the best settings for a machine learning model—is a notoriously expensive "black-box" problem. The standard approach, Bayesian Optimization (BO), fits a surrogate model to past results and uses an acquisition function to pick the next candidate.

However, most acquisition functions are "myopic": they only look one step ahead to find the immediate best improvement. They don't consider how a sequence of evaluations might reveal the global landscape of the search space. While some researchers have tried using Reinforcement Learning (RL) for HPO, these are often model-free approaches that struggle with sample efficiency and sensitivity to the number of trials. The authors argue that HPO has been missing a crucial ingredient: explicit planning.

Methods

The authors introduce MetaPETS, an algorithm that treats HPO as a Markov Decision Process (MDP).

  1. HPO as an MDP: They formally define the state as the history of evaluated hyperparameters and their responses. The "transition" is simply appending a new evaluation to this history.
  2. Probabilistic Transition Model: Instead of the traditional Gaussian Process, they use an ensemble of probabilistic neural networks. This ensemble captures two types of uncertainty: aleatoric (noise in the observations) and epistemic (our lack of knowledge about unexplored regions).
  3. LookAhead MPC: This is the core innovation. Standard Model Predictive Control (MPC) simulates multiple future trajectories and executes the first step of the best one. The authors propose a variant specifically for HPO: since hyperparameter evaluations aren't physically constrained like a robot's movement, if a simulated 5-step trajectory finds a great candidate at step 3, the agent can simply jump ahead and evaluate that candidate immediately.
  4. Meta-Learning: The transition model is pre-trained on "meta-datasets" (logs of HPO runs on other tasks) using first-order meta-learning. This allows the model to adapt incredibly quickly to a brand-new dataset with very few observations.
Figure 2: Architecture of the transition function

Datasets

The authors evaluated their approach on three large-scale meta-datasets involving feed-forward neural networks trained on 120 different UCI classification datasets:

  • Layout Md-v2: 324 unique configurations (10-dimensional hyperparameter space).
  • Regularization Md: 288 unique configurations (7-dimensional space).
  • Optimization Md-v2: 432 unique configurations (12-dimensional space).

These benchmarks provide a diverse set of "response surfaces" to test how well the planning strategy generalizes to new, unseen tasks.

Key Insights and Ideas

  • Planning > Heuristics: The paper demonstrates that a simple planning policy can replace complex, hand-engineered acquisition functions. As shown in the motivation figure, methods that "plan ahead" (LookAhead H5) achieve better ranks much faster than those that don't.
  • The "Independence" Hack: In robotics, you must follow a path. In HPO, you don't. Their LookAhead MPC exploits this by picking the best-estimated action from anywhere in the simulated future trajectories, not just the next immediate step.
  • Ensembles for Uncertainty: Using an ensemble of NNs provides a simple but highly effective way to estimate uncertainty, which is the primary driver of performance in modern HPO.
  • Model-Based vs. Model-Free: Their approach significantly outperforms MetaBO (a model-free RL baseline), which the authors attribute to MetaBO's sensitivity to the number of trials and its reliance on a fixed grid.
Figure 1: Motivating the effect of planning for HPO.

Key Results

The proposed LookAhead MPC methods (looking 3 or 5 steps ahead) were compared against state-of-the-art baselines including SMAC, BOHAMIANN, and GP-based transfer learning.

  • Average Rank: LookAhead MPC-3 and MPC-5 consistently achieved the lowest (best) average rank across all three meta-datasets. For example, in the "Layout Md-v2" task at 15 trials, LookAhead MPC-3 achieved a rank of 5.18, significantly better than the next best baseline, FSBO, at 5.31.
  • Normalized Regret: The planning approach also dominated in terms of regret (how far the chosen hyperparameter is from the true optimum), often reaching near-optimal performance much earlier in the search process than baselines.
Table 1: Average rank. We report the best results in bold and underline the second best.

Limitations and Future Work

  • Discrete Search Spaces: The current experiments focus on discrete hyperparameter grids. While this makes meta-learning faster, many real-world problems involve continuous parameters.
  • Computational Overhead: Simulating 1000 trajectories through an ensemble of neural networks at every step adds computational cost. While usually small compared to training a deep learning model, it is more intensive than a simple acquisition function.
  • Horizon Length: The authors noted that while longer horizons (like 5 steps) are generally better, a shorter horizon is often sufficient for smaller search spaces. Determining the optimal planning horizon automatically remains an open question.

Summary updated

BibTeX
@misc{jomaa2021improving,
  author = {Hadi S. Jomaa and Jonas K. Falkner and Lars Schmidt-Thieme},
  title = {{Improving Hyperparameter Optimization by Planning Ahead}},
  year = {2021},
  eprint = {2110.08028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.08028},
}
Figure