Bayesian Optimisation

Summary

Bayesian optimisation (BO) is the probabilistic framework for global optimisation. Its designer makes two choices: a prior/surrogate (usually a GP) modelling the objective and its minimum, and a loss function encoding the goal. The loss, mapped through the surrogate, becomes an acquisition function — an expected loss whose optimiser selects the next evaluation. The full expected loss must marginalise over all future evaluations and locations — intractable — so BO adopts myopic (one-step look-ahead) approximations. Maximising a cheap acquisition (with closed-form gradients/Hessian) replaces optimising the expensive objective: a numerical problem calling another.

Overview

As for any PN procedure, a BO algorithm has two components: its prior and its loss. The prior models the objective — and hence, under mild assumptions, its minimum and minimiser . The loss specifies the goals. BO is a genuine decision-making agent: it acts by evaluating , receives evaluations as data, and updates. This note gives the formal setup (the decision problem, the surrogate, the acquisition mechanism); the specific losses are in Value Loss and Entropy Search and the concrete acquisition formulae in Acquisition Functions.

Main Content

The prior / surrogate

Surrogate

The surrogate is the optimiser’s probabilistic model of the objective — the global-optimisation equivalent of the model in numerical integration. It is usually a GP prior encoding strong structure (smoothness), for the same reasons priors are built for integrands. It must be probabilistic because (i) evaluations are often noisy, so it must accommodate uncertain data, and (ii) reasoning about uncertainty in unvisited regions controls exploration. Alternatives include random forests and neural networks, whose better scaling is often offset by poorer calibration of their uncertainties. The input space need not be : discrete or graph-based inputs (e.g. molecules) are admissible whenever a prior can be defined.

The loss function and its candidate framings

Three candidate loss functions (31.1)

At termination the algorithm returns a single point ; with data and (for now) exact evaluations , the loss can be framed as:

where is (Shannon) entropy. VL: return a persistent object worth its objective value (e.g. the best drug molecule). LIL: the entropy of the minimiser’s location (appropriate when one can later drill/evaluate near ). VIL: the entropy of the minimum value (appropriate when the minimum is of scientific interest). Crucially, the loss must remain the same throughout the run for coherent optimisation.

The decision problem and acquisition functions

Figure 31.2 depicts BO as a graphical model / sequential decision problem: given , decide (a diamond node), evaluate , append to get , repeat until the final is returned. The joint distribution is challenging because all variables are dependent.

Acquisition function as expected loss

An acquisition function (a.k.a. infill / query-selection function) is the expected loss as a function of the next evaluation location ; its optimum is the optimal placement. In general it must marginalise not only the evaluation but all future and locations :

This full marginalisation is typically impossible in closed form (Kushner 1964: “generally so complicated that it usually is not a practical calculation”). In a decision-theoretic PN framing the acquisition is derived from the loss — no separate recommendation strategy is needed. The acquisition fills the same role as a design rule in integration (Bayesian Quadrature).

Myopic approximation

Myopic (one-step) acquisition

Under a myopic approximation — ignore all future evaluations beyond the very next, — the expected loss reduces to a single integral over :

Justifications (Kushner 1964; Hennig & Schuler 2012): the surrogate is often wrong, so relying less on it (myopia) can be helpfully conservative; and active inference has no “dead ends” — an uninformative evaluation can always be overcome by later ones (Bayesian consistency), so myopic losses still promote exploration and perform reasonably. Note and differ: with fewer future evaluations remaining there are fewer potential “surprises”, so is more diffuse than — the loss must stay fixed but the posteriors sharpen.

Why replacing one global optimisation with another helps

Most acquisition functions are non-convex (a diverse set of valuable locations, some near modes, some far), so BO requires a further global optimiser to maximise the acquisition. This is not circular because the acquisition is far more tractable than the objective:

Acquisition is easier to optimise than the objective

  1. It is usually much cheaper to evaluate (runs on a computer; the objective might require drilling an oil well).
  2. It usually admits closed-form gradients and Hessian, greatly aiding its optimisation.
  3. Performance is relatively insensitive to how well the acquisition is optimised — even its local optima give usefully informative evaluations — so a “cheap and dirty” optimiser suffices.

This mirrors the numeric hierarchy where important algorithms (quadrature) may call less-important ones (linear solvers); a PN goal is to formalise this hierarchy so uncertainty propagates through the pipeline.

Examples

GP surrogate driving the minimiser posterior (Fig. 31.1)

A zero-mean GP with a rational-quadratic kernel (unit length scale, ), conditioned on three observations, yields a posterior mean, marginal uncertainties, and sample functions — and thereby an intractable probability density over the minimiser location (plotted along the bottom, approximable by a histogram from exhaustive sampling). There is finite probability mass for at the domain boundary. This is exactly the object whose entropy the LIL targets, and whose exploitable structure the acquisition functions exploit.

Connections

See Also