A stopping criterion for Bayesian optimization by the gap of expected minimum simple regrets

Hideaki Ishibashi, Masayuki Karasuyama, Ichiro Takeuchi, Hideitsu HinoAISTATS 2023

Abstract

Bayesian Optimization (BO) is a standard approach for optimizing expensive black-box functions. However, practitioners often struggle with determining an appropriate stopping point, typically relying on fixed budgets or ad-hoc heuristics. This paper introduces a novel, theoretically grounded stopping criterion based on the "gap of expected minimum simple regrets." We propose an automated termination mechanism that triggers when the potential for further improvement is statistically negligible. By deriving a mathematical upper bound using Kullback–Leibler (KL) divergence between Gaussian Process posteriors, we ensure convergence and provide a robust tool for efficient optimization.

Introduction

In domains ranging from machine learning hyperparameter tuning to materials science simulations, finding optimal parameters often involves evaluating "expensive" functions. Bayesian Optimization addresses this by utilizing a probabilistic surrogate model—typically a Gaussian Process (GP)—to guide the search. Despite its efficiency, BO lacks a universal, principled stopping rule. Stopping too early risks missing the global optimum, while stopping too late incurs unnecessary computational and environmental costs. Existing criteria often lack convergence guarantees or require task-specific manual tuning. This work addresses these limitations by proposing a criterion independent of the acquisition function with proven convergence properties.

Methodology

The proposed method centers on the Expected Minimum Simple Regret ($R_t$). This value represents the expected global minimum given the current surrogate model.

The Gap of Expected Minimum Simple Regret

The core innovation is the Gap ($\Delta R_t$), defined as the difference in the expected minimum before and after a new evaluation. A diminishing gap indicates that new data points are no longer significantly altering the model's best-case outlook, signaling a point of diminishing returns.

Conceptual flow of the proposed stopping criterion, from surrogate modeling to the calculation of expected minimum simple regret.

To make this computationally feasible, we derive a mathematical upper bound (Theorem 1) involving the KL divergence between GP posteriors. This bound effectively scales the "model change" by the "remaining room for improvement." We implement two thresholding strategies:

  1. Ours-auto: An adaptive threshold based on observed data noise.
  2. Ours-med: A heuristic threshold derived from the median gap values in early iterations.

Experimental Evaluation

We evaluated the criterion across three primary domains:

  • Synthetic Benchmarks: Standard 2D test functions (e.g., Holder Table, Rosenbrock) to test global convergence.
  • Hyperparameter Optimization (HPO): Tuning models like Support Vector Machines and Random Forests.
  • Real-world Datasets: Engineering and classification tasks from the UCI repository (e.g., Gas Turbine, Protein).

Results and Discussion

Our experiments demonstrate that the proposed criterion consistently balances solution quality and computational budget.

Performance comparison on the Rosenbrock function, showing normalized simple regret versus the number of evaluations.

Key findings include:

  • Efficiency: On functions like the Holder Table, our method identifies the optimum and terminates significantly earlier than fixed-budget strategies.
  • Reliability: Unlike the "Probability of Improvement" (PI) criterion, which may stop prematurely, "Ours-auto" reliably discovers high-quality solutions before stopping.
  • Robustness: The adaptive thresholding mechanism performs well across diverse landscapes without manual "patience" tuning.

Conclusion

This paper provides a robust, theoretically sound stopping criterion for Bayesian Optimization. By focusing on the state of the surrogate model rather than the acquisition process, the method offers guaranteed convergence and broad applicability. Furthermore, by enabling early termination without sacrificing performance, this research supports "Green AI" initiatives by reducing the energy consumption of large-scale optimization tasks. Future work will explore extensions to non-GP surrogates and discrete parameter spaces.

Summary updated

BibTeX
@inproceedings{ishibashi2023stopping,
  author = {Hideaki Ishibashi and Masayuki Karasuyama and Ichiro Takeuchi and Hideitsu Hino},
  title = {{A stopping criterion for Bayesian optimization by the gap of expected minimum simple regrets}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=scuEXMVkkB},
}
Figure