A Corrected Expected Improvement Acquisition Function Under Noisy Observations

Han Zhou, Xingchen Ma, Matthew B. Blaschko

TL;DR

Standard Expected Improvement (EI) formulas in Bayesian optimization were originally derived for noiseless settings, yet practitioners routinely apply them to noisy functions by simply plugging in a deterministic estimate of the best incumbent. This paper introduces a closed-form "corrected" EI acquisition function that directly incorporates the incumbent’s uncertainty and covariance under heteroscedastic Gaussian process (GP) regression. The result retains standard EI's computational efficiency, achieves sublinear cumulative regret, and avoids over-exploiting noisy local minima.

What Problem Does This Paper Address?

Bayesian optimization (BO) is widely used to find global optima of expensive black-box functions. When evaluations are noisy ($y_t = f(x_t) + \varepsilon_t$), the true incumbent optimum $f(x^+_t)$ is unknown.

To bypass this, common implementations plug in a point estimate—such as the best noisy observation or the maximum GP predictive mean—and treat it as a fixed, deterministic constant inside the classic noiseless EI formula. Doing so ignores the uncertainty of the incumbent as well as the spatial covariance between a candidate query point $x$ and the incumbent $x^+_t$. In practice, this causes standard EI to get trapped over-exploiting regions near an uncertain incumbent. While Monte Carlo (MC) acquisition functions (e.g., in BoTorch) can account for this uncertainty, they introduce significant computational overhead.

Methods

The authors derive a closed-form acquisition function that natively models the incumbent's uncertainty without requiring Monte Carlo integration:

  • True Difference Modeling: Instead of defining improvement against a fixed scalar $\mu_{t-1}(x^+_t)$, the modified improvement function is defined as $I^C_t(x) = \max\{0, f(x) - f(x^+_t)\}$, where both $f(x)$ and $f(x^+_t)$ are treated as jointly distributed Gaussian variables under the GP posterior.
  • Corrected Variance Formulation: The variance of the difference $f(x) - f(x^+_t)$ incorporates the GP covariance: $$\tilde{\sigma}^2_{t-1}(x) = \sigma^2_{t-1}(x) + \sigma^2_{t-1}(x^+_t) - 2\sigma_{t-1}(x, x^+_t)$$
  • Closed-Form Analytic Solution: Integrating over this Gaussian distribution yields: $$\alpha^C_t(x) = \tilde{\sigma}_{t-1}(x) \phi\left(z_{t-1}(x)\right) + \left(\mu_{t-1}(x) - \mu_{t-1}(x^+_t)\right)\Phi\left(z_{t-1}(x)\right)$$ where $z_{t-1}(x) = \frac{\mu_{t-1}(x) - \mu_{t-1}(x^+_t)}{\tilde{\sigma}_{t-1}(x)}$, and $\phi, \Phi$ are the standard normal PDF and CDF. In the noise-free limit, $\tilde{\sigma}_{t-1}(x)$ recovers the standard EI formula.

  • Heteroscedastic Regret Analysis: Assuming bounded heteroscedastic observation noise $\varepsilon_t \sim \mathcal{N}(0, \upsilon_t^2)$ and an acquisition stopping threshold $\kappa > 0$, the authors prove a sublinear cumulative regret bound of $\mathcal{O}\left(\sqrt{T (\log T)^{d+4}}\right)$ for the squared exponential kernel.

Datasets

The authors evaluated the method across synthetic benchmarks and neural network compression tasks (no new datasets were introduced):

  • Synthetic Benchmarks: Hartmann-3D ($d=3$), Griewank ($d=6$), Levy ($d=4$), and Powell ($d=5$) evaluated under additive Gaussian noise scaled up to 10% of the function's range.
  • Real-World Model Compression:
  • MNIST (10,000 test images): Low-rank SVD compression of a 3-layer fully connected network (FC3, $d=3$).
  • ILSVRC2012 / ImageNet (50,000 validation images): Tensor decomposition of convolutional layers for ResNet50 ($d=16$) and VGG-16 ($d=13$). Evaluations are noisy because top-1 error was evaluated on mini-batches ($20 \le n_t \le 50$).

Key Insights and Ideas

  • Automatic Anti-Clustering via Covariance: As a query point $x$ approaches the current incumbent $x^+_t$, the covariance $\sigma_{t-1}(x, x^+_t)$ approaches the point variance, driving $\tilde{\sigma}_{t-1}(x) \to 0$ and thus $\alpha^C_t(x) \to 0$. In contrast, standard noisy plug-in EI maintains a non-zero variance near $x^+_t$, causing it to waste evaluations sampling nearby points.
  • Analytic Generality: Because the formulation collapses back to standard EI in the noise-free case, the authors argue this corrected expression should universally replace the 50-year-old textbook EI formula in software libraries.
  • The "Free Lunch" over MC-EI: MC-based methods require generating multiple draws from joint posterior distributions or averaging over multiple noiseless GP models. The corrected EI captures the essential joint uncertainty in a single, closed-form evaluation.

Key Results

  • Synthetic Functions: Across Hartmann3d, Griewank, Levy, and Powell, corrected EI reached closer distances to the global optimum ($f(x^*) - f(x^+_t)$) and true optimizer locations in $L_2$ space compared to standard plug-in EI, while matching or approaching the performance of heavy MC-based noisy EI and Corrected PI.
  • Neural Network Compression: In optimizing the trade-off objective $\gamma \mathcal{L}(\hat{f}_\theta) + \mathcal{R}(\hat{f}_\theta, f^*)$ across 300 iterations:
  • For FC3 (MNIST), ResNet50 (ImageNet), and VGG-16 (ImageNet), corrected EI consistently found models with lower combined error and size ratios than standard EI.
  • Cost Efficiency: Empirical runtime remained on par with standard EI, avoiding the hundreds of Monte Carlo samples ($q=256$) required by parallel MC-based acquisition functions.

Limitations and Future Work

  • Noise Variance Estimation: The derivation assumes a known noise variance proxy $\upsilon_t^2$ for heteroscedastic GP regression. In practical settings where noise scales are unknown or complex, setting hyperparameter priors remains challenging.
  • High Dimensions and Heavy Noise: Performance advantages over standard EI shrink in very high-dimensional search spaces or when noise drastically swamps the signal.
  • Empirical Edge Cases: On certain benchmarks (e.g., the Powell function), Corrected Probability of Improvement (PI) slightly outperformed the proposed corrected EI.

Summary updated

BibTeX
@inproceedings{zhou2023corrected,
  author = {Han Zhou and Xingchen Ma and Matthew B. Blaschko},
  title = {{A Corrected Expected Improvement Acquisition Function Under Noisy Observations}},
  booktitle = {ACML},
  year = {2023},
  url = {https://openreview.net/forum?id=MUZuxN6yP0},
}

Loading related content...

Figure