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.
| Component | Role | Typical cost |
|---|---|---|
| Objective function | True quantity to optimize, such as validation loss | Minutes to days per evaluation |
| Surrogate model | Predicts mean and uncertainty of the objective | Seconds to fit on small data |
| Acquisition function | Scores the usefulness of each candidate | Milliseconds per candidate |
| Inner optimizer | Finds the candidate with the best score | Seconds with multi-start search |
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 function | What it scores | Exploration tendency | Main weakness |
|---|---|---|---|
| Probability of improvement | Chance of beating the incumbent | Low | Gets stuck near known good points |
| Expected improvement | Average size of improvement | Moderate | Can under-explore late in search |
| Upper confidence bound | Optimistic estimate of the value | Tunable via beta | Sensitive to the beta schedule |
| Thompson sampling | Maximizer of a posterior sample | Randomized | Higher variance between runs |
| Entropy search | Information about the optimum | High | Expensive approximations |
| Knowledge gradient | Gain in final recommendation | Moderate to high | Costly nested computation |
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.
| Parameter | Used in | Higher value means | Typical setting |
|---|---|---|---|
| Beta | Upper confidence bound | More exploration | Fixed near 2 to 3, or a schedule |
| Margin xi | Expected and probability of improvement | Larger required gain | 0.01 on standardized outputs |
| Batch size q | Batch acquisition such as qEI | More parallel evaluations | Matches available workers |
| Cost weight | Cost-aware acquisition | Stronger penalty on slow trials | Expected improvement per second |
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.
| Situation | Recommended choice | Reason |
|---|---|---|
| Sequential tuning, small budget | Expected improvement | Reliable with little configuration |
| Many parallel workers | q-expected improvement or Thompson sampling | Diverse batch of points |
| Noisy evaluations | Noisy expected improvement | Handles an uncertain incumbent |
| Several competing metrics | Expected hypervolume improvement | Expands the Pareto front |
| Very expensive, low-dimensional search | Entropy-based methods | Maximal information per evaluation |
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.