Applied AI Vol. 2 · 5 min read
Given a model of an expensive function, which point should you try next? An acquisition function scores each candidate by balancing exploration and exploitation.
The trade-off
Exploiting means evaluating where the model predicts good values. Exploring means evaluating where the model is uncertain, which may reveal something better. Acquisition functions combine the predicted mean and standard deviation into one score.
Upper confidence bound
For maximization, UCB scores a point by its mean plus a constant times its standard deviation. The constant sets how adventurous the search is: larger values favor uncertain regions. It is simple and comes with theoretical regret bounds for suitable settings of the constant.
Expected improvement
Expected improvement measures how much, on average, a candidate would exceed the best value seen so far. It has a closed form under a Gaussian posterior and naturally balances mean and uncertainty without a tuning constant, although it can become greedy as the search narrows.
Practical points
- Optimize the acquisition function carefully, with multiple restarts, since it is often multimodal.
- For noisy objectives, define improvement with respect to a noise-aware incumbent.
- With parallel resources, use batch acquisition so workers do not evaluate near-duplicate points.
- Always compare against a random-search baseline with the same budget.
