Improving the Expected Improvement Algorithm

Chao Qin, Diego Klabjan, Daniel Russo

The classic Expected Improvement (EI) algorithm is a staple of Bayesian Optimization. However, it is notoriously "greedy," often failing to explore enough to definitively identify the best option. To address this, researchers have introduced Top-Two Expected Improvement (TTEI), a simple modification that balances sampling the current leader with sampling its most likely challenger. This approach achieves theoretical asymptotic optimality and outperforms standard EI by over an order of magnitude in simulations.

The Flaw in Standard Expected Improvement

In Bayesian Optimization, the goal is to find the maximum of an unknown function using as few noisy measurements as possible. The Expected Improvement (EI) algorithm is the go-to heuristic: it consistently samples the point it expects will improve the most over the current best observation.

However, in the context of Best-Arm Identification (BAI)—where we have a finite set of options (arms) and want to find the one with the highest mean—EI has a fatal flaw. Once it finds a likely candidate for the "best" arm, it spends almost all its effort sampling that arm to refine its estimate. It neglects to gather enough information about other arms to definitively prove they aren't better. Mathematically, EI allocates a vanishingly small proportion of samples to suboptimal arms, making it highly inefficient for identifying the winner with high confidence.

Introducing Top-Two Expected Improvement (TTEI)

To overcome this greediness, the authors propose the Top-Two Expected Improvement (TTEI) algorithm. TTEI uses a tuning parameter $\beta \in (0, 1)$ (defaulting to $1/2$) to decide which arm to sample by alternating between a "leader" and a "challenger":

  1. Identify the Leader: With probability $\beta$, the algorithm acts like standard EI and selects the arm that maximizes the traditional expected improvement over the current best posterior mean.
  2. Identify the Challenger: With probability $1-\beta$, it selects a "challenger" arm. Instead of the standard EI formula, it uses a new criterion that measures the expected magnitude by which one arm outperforms another, accounting for the uncertainty in both arms simultaneously.
  3. The Sampling Rule: If the algorithm isn't sampling the leader, it samples the arm that offers the greatest expected improvement relative to the leader.

This "top-two" approach ensures that the algorithm doesn't just polish the leader's estimate but actively tries to find the arm most likely to unseat it.

Experimental Setup

The method is evaluated using synthetic Gaussian multi-armed bandit instances. The authors tested three specific mean vectors for 5 arms: [5, 4, 1, 1, 1], [5, 4, 3, 2, 1], and [2, 0.8, 0.6, 0.4, 0.2]. All rewards were subject to Gaussian noise with a known variance ($\sigma^2 = 1$). TTEI was benchmarked against standard EI, Top-Two Thompson Sampling (TTTS), Knowledge Gradient (KG), and "Oracle" rules that know the optimal sampling proportions in advance.

Key Results and Insights

TTEI demonstrates remarkable improvements in sample efficiency, both theoretically and empirically.

Massive Speedup over EI: In simulations aiming for a 95% confidence level, TTEI required roughly 15 to 24 measurements, whereas standard EI required between 238 and 1,525 measurements. This represents a staggering 10x to 60x improvement in efficiency.

Comparison of sample complexity between TTEI-1/2 and standard EI across three bandit configurations.

Superiority over State-of-the-Art: In higher-confidence tests (99.99%), an adaptive version of TTEI (aTTEI) consistently outperformed sophisticated baselines like Knowledge Gradient (KG) and even the "Tracking Oracle" (TO), which is specifically designed to follow the theoretically optimal sampling path.

Performance comparison of TTEI variants against state-of-the-art baselines like Knowledge Gradient (KG) and Tracking Oracle (TO).

Theoretical Guarantees: Beyond empirical success, the authors prove that TTEI converges to the "optimal sampling proportions"—a specific distribution of samples across arms known to minimize the time needed to identify the best arm. Unlike previous "top-two" methods, they provide a stronger proof showing that the expected time to reach these optimal proportions is finite. Furthermore, while $\beta$ is a tuning parameter, the paper shows that even a sub-optimal choice (like the default $1/2$) still yields a 2-approximation of optimal performance.

Limitations and Future Work

While highly effective, TTEI has a few limitations that present opportunities for future research:

  • Tuning Parameter: The algorithm relies on the parameter $\beta$. Although the authors suggest an adaptive version (aTTEI), completely removing this dependence remains an open challenge.
  • Uncorrelated Priors: The primary analysis assumes that the arms' rewards are independent. While a closed-form extension for correlated arms is provided, extensive experimental validation for that setting is left for future work.
  • Gaussian Assumption: The rigorous optimality proofs are currently derived for Gaussian rewards. Extending these guarantees to other distributions, such as Bernoulli, is a logical next step.

Summary updated

BibTeX
@inproceedings{qin2017improving,
  author = {Chao Qin and Diego Klabjan and Daniel Russo},
  title = {{Improving the Expected Improvement Algorithm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure