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

Practical Hyperparameter Optimization for Deep Learning

Stefan Falkner, Aaron Klein, Frank Hutter

Hyperparameter optimization (HPO) is often the most tedious part of the deep learning workflow. Practitioners are frequently caught between two worlds: simple methods like Random Search or Hyperband that yield decent results quickly, and sophisticated Bayesian Optimization (BO) that eventually finds the "perfect" settings but takes an impractical amount of time to get there.

In this paper, Falkner et al. introduce BOHB (Bayesian Optimization and Hyperband), a method that merges these two approaches. It delivers the "anytime" speed of bandit-based methods with the long-term guidance of model-based optimization.

The HPO Trade-Off

Optimizing deep learning models is challenging because they are "black boxes" that are incredibly expensive to evaluate. A single training run can take days or weeks. Researchers typically face a trade-off between two dominant strategies:

  1. Bayesian Optimization (BO): Uses a probabilistic model to "guess" which hyperparameters will work best. It is sample-efficient but usually treats every training run as a full-budget commitment, making it slow to start. It also struggles to scale to high-dimensional search spaces.
  2. Hyperband (HB): Uses a "multi-fidelity" approach. It starts many configurations on tiny budgets (e.g., training for just one epoch), throws away the losers, and promotes the winners to higher budgets. It is very fast and has strong "anytime" performance, but it relies on Random Search to pick the initial candidates. Because it never learns from past failures, it can eventually plateau.

The authors set out to create a method that satisfies five key desiderata: strong anytime performance, strong final performance, effective use of parallel resources, scalability to many parameters, and robustness across different domains.

The BOHB Approach

The core innovation of BOHB is replacing the random sampling component of Hyperband with a model-based search.

  • The Backbone (Hyperband): BOHB uses the Successive Halving logic of Hyperband to manage budgets. It decides how many configurations to run and when to stop the poor performers.
  • The Brain (TPE): Instead of picking new configurations at random, BOHB uses a Tree Parzen Estimator (TPE). TPE doesn't try to model the objective function directly. Instead, it uses Kernel Density Estimators (KDEs) to model two distributions: $l(x)$, the distribution of "good" configurations, and $g(x)$, the distribution of "bad" ones. It then samples new candidates that are likely to be in the "good" group and unlikely to be in the "bad" group.
BOHB model-based sampling using KDEs
  • The Synergy: BOHB uses all available data—even from low-budget runs—to build these models. This allows the algorithm to learn which regions of the search space are promising early on, significantly speeding up the discovery of high-performing configurations for the full-budget runs.

Key Results and Scalability

The authors evaluated BOHB on three distinct types of problems to prove its versatility:

  1. Surrogate Benchmarks (Adult Dataset): Optimizing a feed-forward neural network's architecture and training hyperparameters (learning rate, dropout, etc.).
  2. Bayesian Neural Networks (Boston Housing): Optimizing a two-layer BNN trained with MCMC.
  3. Reinforcement Learning (Cartpole): Optimizing eight hyperparameters for a Proximal Policy Optimization (PPO) agent.
Performance of BOHB across multiple benchmarks and worker counts

Across these tasks, BOHB demonstrated significant advantages:

  • Efficiency & Convergence: In the BNN and RL tasks, BOHB found better configurations much faster than Random Search, TPE, or Hyperband alone. While Hyperband often plateaus due to random sampling, BOHB continues to improve, eventually matching or exceeding the performance of pure Bayesian Optimization but reaching that point much sooner.
  • Parallelism without Bottlenecks: BOHB is designed to be "asynchronously parallel." It starts new iterations as soon as workers become free, rather than waiting for an entire "generation" of models to finish. The results show that BOHB scales effectively up to at least 32 parallel workers, yielding a massive reduction in wall-clock time.

Limitations and Future Work

The authors identify one primary risk: Adversarial landscapes. If a hyperparameter setting performs exceptionally well on a small budget (e.g., 1 epoch) but fails miserably on a large budget (e.g., 100 epochs), BOHB’s model might be "misled" into wasting resources on that region of the search space. In such cases, BOHB could be slower than pure TPE by a constant factor.

Future work involves exploring other model types, such as Random Forests or BNNs, to replace the KDE-based TPE component to see if they can further improve guidance in high-dimensional spaces.

Summary updated

BibTeX
@inproceedings{falkner2018practical,
  author = {Stefan Falkner and Aaron Klein and Frank Hutter},
  title = {{Practical Hyperparameter Optimization for Deep Learning}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure