NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Uncertainty Quantification for Bayesian Optimization

Rui Tuo, Wenjia Wang

Abstract

Bayesian Optimization (BO) is a cornerstone for optimizing expensive black-box functions, yet it has historically lacked a rigorous framework for quantifying the uncertainty of its final output. This paper introduces a novel framework to construct frequentist confidence regions for both the maximum point and the maximum value. By leveraging uniform error bounds, the proposed method provides theoretical guarantees that hold even under adaptive sampling and random stopping times, addressing a critical gap in the reliability of BO outputs.

Introduction

Bayesian Optimization is widely utilized in high-stakes domains such as drug discovery and hyperparameter tuning, where it identifies optimal inputs for complex systems using minimal trials. It achieves this by employing a surrogate model—typically a Gaussian Process (GP)—to represent the unknown objective function.

However, a significant challenge remains: once a BO algorithm concludes, there is no standard, rigorous way to determine the reliability of the identified maximum. While GPs provide uncertainty estimates during the search, quantifying the uncertainty of the final output is mathematically complex because data points are chosen sequentially and are not independent. Existing "naive" methods, which often rely on posterior standard deviation at a single point, tend to underestimate uncertainty, leading to overconfidence in potentially sub-optimal results.

Methodology: Uniform Error Bounds

The authors propose a method to construct Confidence Regions (CR) for the maximum point and Confidence Intervals (CI) for the maximum value based on Uniform Error Bounds.

The core of the approach is the Uniform Confidence Upper Limit (UCL). Unlike point-by-point uncertainty estimates, the UCL provides a bound that holds across the entire search space simultaneously. The authors demonstrate through sequential analysis that these bounds remain valid even when sampling locations depend on previous results and the total number of samples is a random variable.

The primary contribution is Algorithm 3, which processes collected BO data to compute a confidence region $CR_t$ and a confidence interval $CI_t$. To make the theoretical bounds practical, the authors calibrated the universal constant $C$ using extensive Monte Carlo simulations, finding that $C=1$ serves as a robust choice for most applications.

Experimental Evaluation

The framework was evaluated using synthetic benchmarks to test its performance under various conditions:

  • Simulated Gaussian Processes: Functions were generated using Gaussian and Matérn kernels with varying smoothness parameters ($\nu = 1.5, 2.5, 3.5$).
  • Deterministic Test Functions: Classic benchmarks, including the Higdon, Keane, and Branin-Hoo functions, were used to assess performance under model misspecification (where the GP assumption is technically violated).

Key Results and Discussion

The proposed method demonstrates a significant improvement in reliability over standard approaches. In numerical experiments, the framework achieved nearly 100% coverage, meaning the true maximum was almost always contained within the predicted interval. In contrast, naive GP approaches often exhibited coverage below 75%, a level of uncertainty that could be hazardous in safety-critical applications.

Coverage rate and interval width as a function of iterations for different smoothness levels. The proposed sequential intervals (top lines in left plot) maintain 100% coverage, while naive methods (bottom lines) fail to reach target reliability.

While the proposed confidence intervals are more reliable, they are also wider—typically about five times the width of naive pointwise bounds. However, this "cost of certainty" decreases as the number of iterations increases. Notably, the method proved robust even when the GP model was misspecified, consistently outperforming naive approaches on deterministic functions.

Conclusion and Future Directions

This work provides a unified, algorithm-agnostic theory for uncertainty quantification in BO, applicable regardless of the acquisition function used (e.g., Expected Improvement or Upper Confidence Bound).

Future research will focus on reducing the conservatism of the bounds to produce tighter confidence regions. Additionally, extending these uniform error bounds to non-GP surrogates, such as Random Forests or Deep Neural Networks, and developing efficient visualization techniques for high-dimensional confidence regions remain important open challenges.

Summary updated

BibTeX
@inproceedings{tuo2022uncertainty,
  author = {Rui Tuo and Wenjia Wang},
  title = {{Uncertainty Quantification for Bayesian Optimization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
}
Figure