Stopping Bayesian Optimization with Probabilistic Regret Bounds

James T. Wilson

Abstract

Bayesian Optimization (BO) is a powerful strategy for optimizing expensive black-box functions, yet it lacks a principled approach for determining when to terminate the search. Most practitioners rely on fixed budgets or ad-hoc heuristics that offer no statistical guarantees. This paper introduces a robust stopping rule based on Probabilistic Regret Bounds (PRB). By leveraging efficient joint sampling and adaptive statistical testing, the proposed method ensures that the optimization process stops only when there is a $(1-\delta)$ confidence that the current best solution is within $\epsilon$ of the true global optimum. Experimental results across synthetic and real-world benchmarks demonstrate that PRB provides interpretable guarantees and often terminates significantly earlier than traditional fixed-budget approaches.

1. Introduction

Bayesian Optimization is the gold standard for tuning expensive black-box functions, such as hyperparameter optimization for deep neural networks or the design of complex chemical experiments. However, a significant usability gap remains: interpretable stopping criteria. Currently, practitioners typically pre-set a computational budget (e.g., 100 iterations) regardless of whether the optimum has been found. This leads to two inefficiencies: stopping too early and missing the optimum, or stopping too late and wasting expensive resources.

While heuristics like monitoring "Expected Improvement" exist, they lack statistical rigor. This paper addresses this by proposing a framework that allows users to define stopping in terms of risk: "Stop when I am 95% sure I am within 0.1% of the best possible result."

2. Methodology

The core of the proposed framework is the $(\epsilon, \delta)$-criterion. The algorithm seeks to stop at iteration $t$ when the probability that the regret $r_t(x)$ (the distance to the true optimum) is less than $\epsilon$ is at least $1 - \delta$.

2.1 Efficient Joint Sampling

To evaluate the $(\epsilon, \delta)$ condition, the model must estimate the distribution of the global optimum. Because finding the optimum of a Gaussian Process (GP) is computationally difficult, the paper utilizes Matheron’s rule and pathwise conditioning. This technique generates approximate draws of the entire function, allowing the algorithm to simulate the global optimum and the value at specific points simultaneously. This accounting for the joint dependency between the current best point and the potential global optimum is a key technical contribution.

2.2 Robust Statistical Testing

Rather than using a fixed number of Monte Carlo samples—which can be computationally expensive or prone to sampling error—the paper introduces an adaptive approach (Algorithm 2). It draws samples in batches and constructs Clopper-Pearson confidence intervals around the estimated probability. The algorithm only makes a "stop" or "continue" decision once the confidence interval is narrow enough to confirm the $(\epsilon, \delta)$ condition is met, ensuring both efficiency and reliability.

3. Experimental Evaluation

The PRB framework was tested on a variety of tasks to assess its versatility:

  • Synthetic GP Functions: Testing the "ideal case" where the model perfectly matches the data generation process in 2D, 4D, and 6D.
  • Standard Benchmarks: Branin (2D), Hartmann (3D & 6D), and Rosenbrock (4D).
  • Real-World Hyperparameter Tuning: Optimizing a Convolutional Neural Network (CNN) on MNIST and an XGBoost model on the Adult dataset.

4. Key Insights and Results

4.1 Efficiency and Interpretation

In many scenarios, the PRB rule terminated significantly earlier than fixed-budget "Oracle" methods while maintaining the required success rate. For the CNN tuning task, PRB reached the target in a median of 17 trials, outperforming common heuristics like $\Delta$CB (Confidence Bound gap) and $\Delta$ES (Entropy Search gap). Unlike these abstract heuristics, the $(\epsilon, \delta)$ parameters map directly to a user's tolerance for error and risk.

4.2 The Importance of Calibration

The research highlights that the stopping rule's reliability is tied to the underlying GP model's accuracy. In the Hartmann-6 benchmark, the model occasionally underestimated function smoothness, leading to premature, "confident" stopping at local minima. This suggests that the stopping rule is only as robust as the uncertainty calibration of the model itself.

5. Conclusion and Future Work

Probabilistic Regret Bounds provide a statistically grounded and interpretable method for stopping Bayesian Optimization. By moving away from fixed budgets toward confidence-based termination, practitioners can save significant computational costs. Future research should focus on uncertainty calibration—perhaps by marginalizing over hyperparameters—to ensure the rule remains robust even under model mismatch. Additionally, integrating this stopping logic directly into acquisition functions could allow BO to actively verify its progress toward the stopping criteria.

Summary updated

BibTeX
@inproceedings{wilson2024stopping,
  author = {James T. Wilson},
  title = {{Stopping Bayesian Optimization with Probabilistic Regret Bounds}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=cM2gU9XGti},
}
Figure