A Tutorial on Bayesian Optimization
Peter I. Frazier
Presents a comprehensive guide to optimizing computationally expensive objective functions with Bayesian optimization, covering core acquisition functions, advanced multi-fidelity settings, and a decision-theoretic generalization of expected improvement for noisy evaluations.
The article addresses the challenge of optimizing expensive black-box objective functions that require minutes or hours per evaluation, lack derivatives, and have no known structure to exploit. Such problems arise in hyperparameter tuning for machine learning models, engineering system design, materials discovery, and laboratory experiments, where only a few hundred evaluations are feasible.
The tutorial sets out to explain how Bayesian optimization solves these problems, detail its core components, and extend the approach to more complex settings. It covers Gaussian process regression for building a probabilistic surrogate model, three main acquisition functions for choosing evaluation points, and a range of advanced variants.
The method begins with an initial set of evaluations, fits a Gaussian process surrogate that quantifies uncertainty, and then repeatedly selects the next point by maximizing an acquisition function. Expected improvement is the most common choice in the basic noise-free case because it balances predicted performance against uncertainty. Knowledge gradient, entropy search, and predictive entropy search provide stronger performance when evaluations are noisy or when value arises from improving beliefs across the entire domain rather than only at the sampled point.
Key extensions allow parallel evaluations, multi-fidelity and multi-information-source queries, expensive constraints, random environmental conditions, multi-task objectives, and derivative observations. In these exotic settings, knowledge gradient and entropy-based methods often outperform expected improvement because they account for how a measurement updates beliefs over the full feasible region.
These techniques matter because they enable reliable global optimization of costly functions that defeat gradient-based or local search methods, reducing the number of evaluations needed and supporting high-stakes decisions in science and engineering. Software packages such as GPyOpt, Spearmint, and Cornell MOE make the methods accessible.
Next steps include developing finite-time performance guarantees, scaling methods to higher dimensions through structure discovery, creating new statistical models for specific applications, and applying the framework to chemistry, materials design, and drug discovery. Limitations include the assumption of moderate input dimensions (typically under 20), the computational cost of optimizing acquisition functions in some variants, and the lack of fully multi-step optimal policies for general problems; readers should verify that problem characteristics match the method's assumptions before deployment.
- Paper: A Tutorial on Bayesian Optimization of Expensive Cost Functions, with Application to Active User Modeling and Hierarchical Reinforcement Learning, Eric Brochu et al. (2010). Provides the seminal tutorial on Gaussian processes and acquisition functions for expensive cost functions that established the core methodology expanded upon in the source.
- Paper: Practical Bayesian Optimization of Machine Learning Algorithms, Jasper Snoek et al. (2012). Introduces practical Bayesian optimization techniques using Matérn kernels and parallel acquisition strategies that form foundational pillars of modern surrogate optimization.
- Paper: Algorithms for Hyper-Parameter Optimization, James Bergstra et al. (2011). Establishes sequential model-based optimization algorithms and acquisition criteria for high-dimensional hyperparameter spaces that the source systematically reviews.
- Paper: Random Search for Hyper-Parameter Optimization, James Bergstra et al. (2012). Provides the essential benchmark analysis and theoretical motivation for black-box search efficiency against which Bayesian optimization methods are evaluated.
- Paper: Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimization, Lisha Li et al. (2016). Develops multi-fidelity resource allocation via successive halving, motivating the multi-information and multi-fidelity extensions detailed in the source tutorial.
- Paper: Active Learning with Statistical Models, D. Cohn et al. (1996). Lays foundational principles for variance-reducing active data selection with statistical models that underpin uncertainty-guided acquisition functions.
- Paper: Finite-time Analysis of the Multiarmed Bandit Problem, Peter Auer et al. (2002). Establishes the upper confidence bound framework that directly inspires key exploration-exploitation acquisition strategies in Bayesian optimization.
- Paper: An Empirical Evaluation of Thompson Sampling, Olivier Chapelle et al. (2011). Presents empirical foundations for posterior sampling heuristics that serve as core conceptual mechanisms for active global exploration.
- Paper: Optuna: A Next-generation Hyperparameter Optimization Framework, Takuya Akiba et al. (2019). Applies and operationalizes black-box optimization algorithms into a scalable next-generation hyperparameter tuning software architecture.
- Paper: On Hyperparameter Optimization of Machine Learning Algorithms: Theory and Practice, Li Yang et al. (2020). Surveys and benchmarks the practical deployment of Bayesian optimization alongside competing hyperparameter search algorithms across machine learning workflows.
- Paper: Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models, Kevin Murphy (2026). Extends Bayesian experimental design and value-of-information query selection to automated scientific discovery of mechanistic physical models.
- Paper: An Introduction to Bayesian and Frequentist Simulation-Based Inference with Machine Learning, Maximilian Dax et al. (2026). Connects Bayesian surrogate modeling principles to modern simulation-based inference when likelihood evaluations are intractable.
