Acquisition function

On this page 7

An acquisition function is a cheap-to-evaluate scoring rule that tells a Bayesian optimization loop which point to evaluate next, by turning the predictions and uncertainty of a surrogate model into a single measure of how useful a new evaluation would be. In the optimization methods used across artificial intelligence, it is the component that decides where to spend the next expensive experiment, such as training a neural network with a new set of hyperparameters.

The acquisition function encodes the central dilemma of sample-efficient search: the exploration-exploitation trade-off. Points with a high predicted value are attractive, but so are points where the surrogate is highly uncertain, because they may hide a better optimum. Every acquisition function is a different, mathematically explicit answer to how those two goals should be balanced.

How an acquisition function guides Bayesian optimization

An acquisition function converts a probabilistic belief about the objective function into a decision about the next query point. The surrounding loop repeats four steps: fit the surrogate, maximize the acquisition function, evaluate the true objective at the chosen point, and update the data set.

The surrogate is most often a Gaussian process, which returns a posterior mean and a posterior standard deviation for every candidate input. Alternatives include random forests, Bayesian neural networks and the density models of the Tree-structured Parzen estimator. The acquisition function reads these outputs, for example the mean as an estimate of quality and the standard deviation as a measure of ignorance, and produces a scalar score. Because the surrogate is inexpensive to query, the acquisition function can be optimized thoroughly with gradient methods such as L-BFGS or with many random restarts, while the real objective is evaluated only once per iteration.

The table below shows the role of each element in a single iteration of the loop.

ComponentRoleTypical cost
Objective functionTrue quantity to optimize, such as validation lossMinutes to days per evaluation
Surrogate modelPredicts mean and uncertainty of the objectiveSeconds to fit on small data
Acquisition functionScores the usefulness of each candidateMilliseconds per candidate
Inner optimizerFinds the candidate with the best scoreSeconds with multi-start search
Components of one Bayesian optimization iteration

Common acquisition functions and their behavior

The most widely used acquisition functions differ in how they quantify the value of information. Probability of improvement (PI) measures the chance that a candidate beats the current best observation. Expected improvement (EI) also accounts for how large that improvement is likely to be, which makes it the most common default in practice. Upper confidence bound (UCB) adds a multiple of the standard deviation to the mean, with the multiplier controlling exploration explicitly.

Information-theoretic methods take a different view. Entropy search, predictive entropy search and max-value entropy search choose points that most reduce uncertainty about the location or value of the optimum. Thompson sampling draws one random function from the posterior and evaluates its maximizer, a simple scheme that parallelizes naturally. Knowledge gradient estimates how much the final recommendation would improve after one more evaluation.

The following table compares the main families by their scoring logic and practical character.

Acquisition functionWhat it scoresExploration tendencyMain weakness
Probability of improvementChance of beating the incumbentLowGets stuck near known good points
Expected improvementAverage size of improvementModerateCan under-explore late in search
Upper confidence boundOptimistic estimate of the valueTunable via betaSensitive to the beta schedule
Thompson samplingMaximizer of a posterior sampleRandomizedHigher variance between runs
Entropy searchInformation about the optimumHighExpensive approximations
Knowledge gradientGain in final recommendationModerate to highCostly nested computation
Main acquisition functions compared

Parameters that shape the exploration-exploitation balance

Most acquisition functions expose a small number of parameters that shift the balance between refining known good regions and probing unknown ones. In UCB the coefficient beta, often written as the square root of a value between about 1 and 10, sets how much uncertainty counts. Theoretical work by Srinivas and coauthors shows that a slowly growing beta yields bounds on cumulative regret, although practitioners usually fix it.

Expected improvement and probability of improvement accept a margin parameter xi, typically between 0.0 and 0.1 on a standardized objective. A larger margin demands a bigger improvement before a point looks attractive, which pushes the search toward unexplored areas. Because these values interact with the scale of the objective, outputs are usually normalized before the surrogate is fitted.

ParameterUsed inHigher value meansTypical setting
BetaUpper confidence boundMore explorationFixed near 2 to 3, or a schedule
Margin xiExpected and probability of improvementLarger required gain0.01 on standardized outputs
Batch size qBatch acquisition such as qEIMore parallel evaluationsMatches available workers
Cost weightCost-aware acquisitionStronger penalty on slow trialsExpected improvement per second
Tuning parameters and their effect

Choosing an acquisition function in practice

No acquisition function is best on every problem, so the choice depends on budget, parallelism and noise. Expected improvement is a robust starting point for hyperparameter search with tens to a few hundred evaluations. When many workers run trials simultaneously, batch acquisition functions such as q-expected improvement or Thompson sampling avoid sending every worker to the same point.

Noisy objectives, such as validation accuracy that varies with the random seed, call for noise-aware variants like noisy expected improvement, because the incumbent value itself is uncertain. Problems with several goals, such as accuracy and latency, use multi-objective acquisition functions like expected hypervolume improvement, which target the Pareto front rather than a single optimum.

SituationRecommended choiceReason
Sequential tuning, small budgetExpected improvementReliable with little configuration
Many parallel workersq-expected improvement or Thompson samplingDiverse batch of points
Noisy evaluationsNoisy expected improvementHandles an uncertain incumbent
Several competing metricsExpected hypervolume improvementExpands the Pareto front
Very expensive, low-dimensional searchEntropy-based methodsMaximal information per evaluation
Selection guide for common situations

Limitations and common mistakes

An acquisition function is only as reliable as the surrogate beneath it. A Gaussian process with poorly fitted length scales produces misleading uncertainty, and the acquisition function then explores the wrong regions with full confidence. Performance also degrades in high-dimensional spaces beyond roughly 20 dimensions, where the acquisition landscape becomes flat almost everywhere and its maximization becomes difficult.

  • Optimizing the acquisition function too weakly, for example with a single random start, leaves good candidates undiscovered.
  • Ignoring categorical and conditional parameters distorts the surrogate unless suitable kernels or tree-based models are used.
  • Reusing a greedy setting such as probability of improvement with zero margin often causes premature convergence.
  • Treating the scores as probabilities of success is a misconception, because most acquisition values are relative rankings only.

A non-technical view

Imagine searching for the best fishing spot on a large lake with only ten trips. You know a few good spots already. You also have a rough map that shows where fish might be and how sure you are about each area.

An acquisition function is the rule you use to pick the next spot. It weighs two things: go where fishing looks good, or go where you know little. A careful rule balances both, so you neither waste every trip on the same place nor wander randomly. That rule is what makes the search efficient with very few tries.

A concrete example

A machine learning team must tune a gradient-boosted model with six hyperparameters, including learning rate, tree depth and regularization strength. Each training run on the full data set takes about 40 minutes, and the team has a budget of 60 runs spread across four GPUs.

The team uses a Gaussian process surrogate with q-expected improvement to propose four configurations at a time. After 15 random starting points, the acquisition function focuses on low learning rates and moderate depth while still sending one worker per batch into less explored regions. The search reaches a validation error about 8 percent lower than the best result of an equally sized random search, and it does so after roughly 35 runs instead of the full budget.