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

Hyperparameter Optimization in Machine Learning

Luca Franceschi, Michele Donini, Valerio Perrone, Aaron Klein, Cédric Archambeau, Matthias W. Seeger, Massimiliano Pontil, Paolo Frasconi

In the world of machine learning, we often obsess over model architectures and data quality. But there is a hidden layer of complexity that determines whether a model soars or stalls: Hyperparameters. These are the "knobs" we turn before training begins—learning rates, regularization strengths, or the number of layers in a neural network. Historically, tuning these was considered a "black art" driven by intuition and expensive trial-and-error.

A new monograph, Hyperparameter Optimization in Machine Learning by Luca Franceschi and colleagues, provides a massive, 141-page deep dive into the math and algorithms that are finally turning this art into a rigorous science.

TL;DR

This comprehensive survey systematizes the field of Hyperparameter Optimization (HPO), moving from simple random searches to sophisticated Bayesian and gradient-based methods. It provides a unified mathematical framework for automating model tuning, which is essential for achieving state-of-the-art performance and ensuring scientific reproducibility.

What Problem Does This Paper Address?

The authors tackle the "nested" nature of machine learning. To know if a set of hyperparameters is good, you have to train the entire model, which might take hours or days. This creates a response function—a mapping from hyperparameters to validation performance—that is incredibly expensive to evaluate, often "noisy" (stochastic), and lacks a simple mathematical formula (it's a "black box").

The challenge is to find the best configuration within a limited "budget" of time or money. As models grow more complex (think Large Language Models), the number of possible configurations becomes infinite, making manual search impossible.

Methods

The paper categorizes HPO into several major families:

  • Elementary Algorithms: This includes Grid Search (testing a fixed set of points) and Random Search. A key takeaway here is that Random Search is often superior to Grid Search because it explores "important" dimensions more effectively.
  • Model-Based Methods (Bayesian Optimization): These algorithms build a "surrogate model" (like a Gaussian Process) to predict how well a configuration will perform. They use an Acquisition Function to balance exploration (trying unknown areas) and exploitation (sampling near known good results).
  • Multi-Fidelity Methods: These are the efficiency champions. Instead of training every model to completion, algorithms like Hyperband and ASHA use "low-fidelity" signals—like training on 10% of the data or for only 5 epochs—to quickly prune away bad configurations.
  • Gradient-Based Optimization: For continuous hyperparameters, we can actually calculate "hypergradients." This allows us to use calculus to "slide" toward the best settings, though it requires "white-box" access to the training process.
  • Population-Based Training (PBT): Inspired by evolution, this maintains a pool of models that "evolve" over time, with the best models passing their settings to others.

Datasets

As a survey paper, it doesn't introduce a new dataset but evaluates HPO performance across classic benchmarks including:

  • Sentiment Analysis: Amazon electronics reviews.
  • Image Classification: MNIST (handwritten digits) and CIFAR-10.
  • Regression: The Boston Housing dataset.
  • Reinforcement Learning: Atari game-playing agents.
  • HPO Benchmarks: The authors discuss specialized benchmarking suites like HPOBench, HPO-B, and LCBench, which allow researchers to test HPO algorithms without spending thousands on compute.

Key Insights and Ideas

  • The "Unlucky Run" of Randomness: While Random Search is a strong baseline, it can leave large "holes" in the search space. The authors highlight Quasi-Random Search (using Sobol sequences) as a way to cover the space more evenly while remaining parallelizable.
  • The Power of Simplicity: In one illustrative example, the authors show that a simple Logistic Regression model, if tuned perfectly via HPO, can perform nearly as well as a complex Convolutional Neural Network (CNN) on certain text tasks.
  • Bilevel Programming: HPO is mathematically framed as a "bilevel" problem: the "outer" problem optimizes hyperparameters, while the "inner" problem optimizes model weights. This perspective is crucial for understanding modern gradient-based HPO.
  • Wall-Clock vs. Sample Efficiency: A method might be "sample efficient" (needing few trials) but "wall-clock slow" if the decision-making process is sequential. Asynchronous methods (like ASHA) are often better for real-world engineering because they keep all your GPUs busy.

Key Results

  • AlphaGo: The success of DeepMind’s AlphaGo against Lee Sedol was not just about the architecture; it relied heavily on Bayesian Optimization to tune its search parameters.
  • 3% Error Reduction: Early work by Snoek et al. (2012) showed that using Gaussian Processes for HPO reduced CNN error on CIFAR-10 by 3% compared to the best results achieved by human experts.
  • 50x Speedups: Multi-fidelity methods like BOHB (Bayesian Optimization + Hyperband) can find optimal configurations up to 50 times faster than standard Bayesian Optimization in deep learning scenarios.

Limitations and Future Work

  • The LLM Problem: Current HPO methods are still too expensive for the largest Foundation Models. You can't run "Successive Halving" if a single training run costs $10 million.
  • Transfer Learning across Scales: A major research frontier is $\mu$-parameterization—finding ways to tune a small model and have those hyperparameters "transfer" perfectly to a model 1,000x larger.
  • Unsupervised Learning: HPO is well-defined for supervised tasks (where we have a clear error rate), but it remains an open question how to best tune hyperparameters for anomaly detection or generative models where "success" is harder to measure.

For those looking to move beyond manual tuning, this monograph is an essential roadmap to the algorithms that make modern AI possible.

Summary updated

BibTeX
@article{franceschi2025hyperparameter,
  author = {Luca Franceschi and Michele Donini and Valerio Perrone and Aaron Klein and Cédric Archambeau and Matthias W. Seeger and Massimiliano Pontil and Paolo Frasconi},
  title = {{Hyperparameter Optimization in Machine Learning}},
  journal = {Found. Trends Mach. Learn.},
  year = {2025},
  doi = {10.1561/2200000088},
}
Figure