Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Drilling for oil with a small budget
You can afford ten test wells. After each, you update your map of where oil probably is: near good wells the map is confident, far from any well it’s a guess. Where next? Either drill near the best well so far (exploit), or in a big unexplored area that might be better (explore). Bayesian optimization makes that choice with a principled score.
Tuning a legged robot’s gait on hardware, a flight controller in a costly simulator, or a neural network’s hyperparameters each needs a sample-efficient optimizer. Bayesian optimization routinely finds good settings in tens of trials where grid or random search would need hundreds.
- 1. Bayesian optimization is designed for objectives that are…
- 2. Drilling where the map is most uncertain is…
- 3. BO keeps a map (model) of the objective called a…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.The loop
- Evaluate a few initial points (random or space-filling).
- Fit a surrogate: a Gaussian process gives a mean and uncertainty everywhere (A4.4-6).
- Maximize an acquisition function . This is cheap, since it only involves the surrogate.
- Evaluate there, add the point to the data, and repeat.
Acquisition functions (minimization, best value so far )
- Probability of improvement: . It’s greedy.
- Expected improvement: with . The first term exploits and the second explores.
- Lower confidence bound: minimize , which is optimism in the face of uncertainty (GP-UCB).
- 1. EI at a point with μ = f⁺ and σ = 1 equals…
- 2. Maximizing the acquisition function is cheap because…
- 3. The LCB rule picks the point minimizing…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Gaussian process surrogate
With kernel and noise :
Hyperparameters () are fit by maximizing the marginal likelihood (A5.2-5). The cost is in the number of evaluations, which is negligible when evaluations are expensive.
Practical notes
- Normalize inputs to and standardize outputs.
- Optimize the acquisition with many random candidates plus local refinement. It’s multimodal.
- Dimension: standard BO works best for . Beyond that, use additive or embedded structure (REMBO, TuRBO; Eriksson et al., 2019).
- Noise and constraints: noisy EI, constrained BO, and safe BO that never evaluates points likely to violate safety (SafeOpt; Berkenkamp et al., 2016).
- Batches: q-EI or Thompson sampling for parallel evaluations.
- 1. GP regression costs … in the number of observations
- 2. Standard BO scales well up to about…
- 3. SafeOpt-style BO…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Deriving expected improvement
With , let and . Then
using . ∎ EI is increasing in (exploration) and decreasing in (exploitation).
Zero variance at observations
For noiseless data, take . Then , so , and . The surrogate interpolates. ∎
Regret guarantees
GP-UCB with suitable has cumulative regret , where is the maximum information gain. For the RBF kernel, , which is sublinear: BO provably homes in on the optimum (Srinivas et al., 2010).
Exercise 3.1: EI at μ = 1, σ = 1, f⁺ = 0
: . It’s still positive: a point predicted worse than the best can still be worth trying if it’s uncertain.
- 1. EI's derivation uses ∫ t φ(t) dt from −∞ to z =
- 2. At a noiseless observation, the GP posterior variance is…
- 3. GP-UCB's cumulative regret is…
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Tuning a PD controller in 20 simulations
Two gains, and , control a lightly damped plant with actuator saturation. The cost (tracking error, overshoot and effort) comes from a simulation, so it’s a black box. With 5 random points and 15 EI-guided evaluations, BO reaches the same cost (≈ 0.553) on every seed. Random search with the same 20 simulations is sometimes as good and sometimes noticeably worse. BO’s advantage is reliability with a tiny budget, and it grows as evaluations get more expensive and the space gets larger.
Bayesian optimization in AI, robotics and aerospace
- Robot learning on hardware: gait tuning for bipeds and quadrupeds (Calandra et al., 2016) and safe controller tuning on quadrotors (Berkenkamp, Schoellig and Krause, 2016).
- Hyperparameter optimization: Spearmint, BoTorch and Optuna’s GP/TPE samplers (Snoek, Larochelle and Adams, 2012; Balandat et al., 2020).
- Aerospace design: airfoil and trajectory design with expensive CFD or mission simulators (Forrester, Sóbester and Keane, 2008).
- Materials and experiments: closed-loop autonomous labs choose the next experiment by BO.
References
- J. Mockus (1975). “On Bayesian methods for seeking the extremum.” Optimization Techniques IFIP.
- D. Jones, M. Schonlau, W. Welch (1998). “Efficient global optimization of expensive black-box functions.” Journal of Global Optimization, 13.
- N. Srinivas, A. Krause, S. Kakade, M. Seeger (2010). “Gaussian process optimization in the bandit setting: no regret and experimental design.” ICML.
- J. Snoek, H. Larochelle, R. Adams (2012). “Practical Bayesian optimization of machine learning algorithms.” NeurIPS.
- B. Shahriari, K. Swersky, Z. Wang, R. Adams, N. de Freitas (2016). “Taking the human out of the loop: a review of Bayesian optimization.” Proceedings of the IEEE, 104(1).
- F. Berkenkamp, A. Schoellig, A. Krause (2016). “Safe controller optimization for quadrotors with Gaussian processes.” ICRA.
- R. Calandra, A. Seyfarth, J. Peters, M. Deisenroth (2016). “Bayesian optimization for learning gaits under uncertainty.” Annals of Mathematics and Artificial Intelligence, 76.
- D. Eriksson et al. (2019). “Scalable global optimization via local Bayesian optimization.” NeurIPS (TuRBO).
- M. Balandat et al. (2020). “BoTorch: a framework for efficient Monte-Carlo Bayesian optimization.” NeurIPS.
- A. Forrester, A. Sóbester, A. Keane (2008). Engineering Design via Surrogate Modelling. Wiley.