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

Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challenges

Bernd Bischl, Martin Binder, Michel Lang, Tobias Pielok, Jakob Richter, Stefan Coors, Janek Thomas, Theresa Ullmann, Marc Becker, Anne-Laure Boulesteix, Difan Deng, Marius Lindauer

TL;DR

This paper provides a comprehensive overview of Hyperparameter Optimization (HPO), a crucial but often complex aspect of machine learning. It demystifies HPO by explaining its foundations, detailing various algorithms from simple to advanced, and offering practical advice on best practices, while also highlighting open challenges. This work serves as a valuable resource for both newcomers and experienced practitioners looking to effectively tune their machine learning models.

What Problem Does This Paper Address?

Machine learning models are highly configurable through hyperparameters (HPs), which significantly impact their performance. Manually tuning these HPs is a time-consuming, error-prone, and often irreproducible process. While automatic Hyperparameter Optimization (HPO) methods exist, they are not as widely adopted as they could be, potentially due to a lack of understanding, confidence in their superiority over manual methods, insufficient guidance on choosing the right methods, and difficulties in defining appropriate search spaces. This paper aims to address these issues by providing a formal introduction to HPO, detailing its algorithms, and offering practical recommendations.

Methods

The paper covers a wide range of HPO methods, categorizing them based on their approach to balancing exploration (searching new areas of the HP space) and exploitation (focusing on promising regions).

  • Basic Methods: Grid Search (GS) and Random Search (RS) are presented as simple baselines. RS is highlighted as often outperforming GS in higher-dimensional spaces due to the "curse of dimensionality" and the fact that HPO problems often have a lower effective dimensionality.
  • Evolutionary Strategies (ES): These population-based methods are inspired by biological evolution and are suitable for black-box optimization without requiring gradients.
  • Bayesian Optimization (BO): This popular technique uses a surrogate model (e.g., Gaussian Process) to approximate the performance of HP configurations and an acquisition function to guide the search. It's effective for expensive black-box functions but can struggle with high dimensionality.
  • Multifidelity Methods (e.g., Hyperband): These approaches leverage the fact that some HPs (like fidelity HPs) influence computational cost. They efficiently allocate resources by evaluating promising configurations at lower fidelities and discarding poorly performing ones early.
  • Iterated Racing (IR): This method uses statistical tests to discard poorly performing configurations early in a race, dynamically allocating computational resources.
  • Nested Resampling: To ensure unbiased evaluation of the HPO process itself, the paper advocates for nested resampling, where an outer loop handles the final model evaluation, and an inner loop performs HPO.

Datasets

The paper discusses HPO in the context of general machine learning tasks and does not focus on specific datasets. It refers to the use of "data sets" for training and evaluation throughout the text. No new benchmarks or datasets are introduced.

Key Insights and Ideas

  • Random Search is a Strong Baseline: For many HPO problems, especially in higher dimensions, Random Search can be surprisingly effective and is often easier to implement and parallelize than more complex methods.
  • The "Curse of Dimensionality" is Often Mitigated: Real-world HPO problems often have a lower "effective dimensionality," meaning only a subset of HPs significantly impacts performance, making simpler methods like Random Search more viable.
  • Multifidelity Methods are Crucial for Efficiency: Leveraging cheaper, less reliable evaluations (e.g., on smaller data subsets or fewer training epochs) can drastically speed up HPO by allowing more configurations to be explored.
  • Nested Resampling is Essential for Unbiased Evaluation: Simply reporting the best performance found during HPO can lead to an optimistic bias. Nested resampling is necessary to obtain a reliable estimate of generalization error.
  • HPO is a Bilevel Optimization Problem: HPO can be viewed as optimizing hyperparameters (second level) to improve the performance of a model whose parameters are optimized (first level). This bilevel structure is fundamental to understanding HPO.

Key Results

The paper does not present empirical results from a specific experiment. Instead, it synthesizes knowledge from existing research to provide:

  • Comprehensive Algorithm Review: Detailed explanations and comparisons of various HPO algorithms, including their strengths, limitations, and suitability for different scenarios.
  • Practical Recommendations: Guidance on choosing resampling strategies, defining search spaces, selecting HPO algorithms, and parallelizing HPO tasks.
  • Identification of Open Challenges: Discussion of areas requiring further research, such as interactive HPO, HPO for deep learning and reinforcement learning, and improving the interpretability of HPO processes.

Limitations and Future Work

Limitations:

  • Subjectivity in HP Space Definition: The paper acknowledges that the selection of learners, HPs, and their ranges is subjective and based on experience, with no definitive optimal choices for all scenarios.
  • Computational Cost: HPO, especially for complex models and large search spaces, remains computationally expensive.
  • Meta-Overfitting: Long HPO runs can lead to biased performance estimators, potentially resulting in incorrect HP selection.

Future Work:

  • Interactive HPO: Developing tools that allow users to monitor progress and interact with running HPO processes.
  • HPO for Deep Learning and Reinforcement Learning: Addressing the challenge of expensive training runs in these fields, potentially through gradient-based approaches, transfer learning, or dynamic configuration.
  • Interpretability of HPO: Providing users with insights into the HPO process and the functional landscape of hyperparameters.
  • Multi-Criteria HPO: Optimizing for multiple objectives simultaneously, such as predictive performance and model simplicity.
  • HPO Beyond Supervised Learning: Adapting HPO techniques for unsupervised learning and anomaly detection tasks where performance evaluation is less straightforward.
  • Improving Benchmarking: Developing ideal and representative benchmark sets for HPO to facilitate more comprehensive studies.

Summary updated

BibTeX
@inproceedings{bischl2021hyperparameter,
  author = {Bernd Bischl and Martin Binder and Michel Lang and Tobias Pielok and Jakob Richter and Stefan Coors and Janek Thomas and Theresa Ullmann and Marc Becker and Anne-Laure Boulesteix and Difan Deng and Marius Lindauer},
  title = {{Hyperparameter Optimization: Foundations, Algorithms, Best Practices and Open Challenges}},
  booktitle = {WIREs Data. Mining. Knowl. Discov},
  year = {2021},
  doi = {10.1002/widm.1484},
}
Figure