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

Bayesian Optimization Meets Bayesian Optimal Stopping

Zhongxiang Dai, Haibin Yu, Bryan Kian Hsiang Low, Patrick Jaillet

TL;DR

BO-BOS is a novel framework that unifies Bayesian Optimization (BO) with Bayesian Optimal Stopping (BOS). By mathematically determining when to "pull the plug" on underperforming training runs, it significantly reduces the computational cost of hyperparameter tuning while maintaining the rigorous theoretical guarantees that standard BO methods enjoy.

The Core Problem

Optimizing hyperparameters (like learning rates or network depth) is often considered the "black magic" of machine learning. Bayesian Optimization (BO) is the gold-standard tool for this, known for being highly sample-efficient—it intelligently models the search space to pick the best configurations to try next.

However, modern ML models are trained iteratively over many "epochs." Standard BO treats each training run as a black box: it starts a training session and waits until the very last epoch to see the result. This is inherently epoch-inefficient. If a specific hyperparameter setting is clearly performing poorly after 5 epochs, wasting resources to train it for 100 epochs is highly inefficient.

While heuristic methods like Hyperband or Freeze-Thaw BO exist to stop training early, they often lack theoretical "no-regret" guarantees. This means they might accidentally discard the optimal setting early on and never recover. The central challenge addressed by this paper is: How do we stop early in a principled, mathematically sound way?

The BO-BOS Framework

The authors propose BO-BOS, a framework that seamlessly integrates Gaussian Process-Upper Confidence Bound (GP-UCB) with Bayesian Optimal Stopping (BOS).

  1. The BO Component: The algorithm uses GP-UCB to select the most promising hyperparameter setting to test next, aiming for a balance between exploring new areas and exploiting known good ones.
  2. The BOS Component: Once a setting is chosen, the model begins training. After each epoch, the BOS mechanism evaluates the "learning curve." It asks a critical question: Is the expected cost of continuing to train lower than the risk of stopping now and potentially missing a winning configuration?
  3. The Unification: The authors introduce two specific conditions (C1 and C2) for stopping. C1 uses "backward induction" to solve the optimal stopping problem, while C2 ensures the algorithm doesn't stop if the uncertainty about the final performance is still too high.
  4. The "No-Regret" Secret: To ensure the algorithm eventually finds the global optimum, the authors prove that the penalty for "false early-stopping" ($K_{1,t}$) must increase over time. This makes the algorithm progressively more "cautious" as the optimization advances.

Key Insights and Ideas

  • Principled Early Stopping: Unlike heuristics that use fixed rules, BOS treats early stopping as a sequential decision problem under uncertainty, using the entire history of the current training curve to make a choice.
  • The Exploration-Exploitation Shift: By increasing the cost of stopping ($K_{1,t}$) as iterations progress, the algorithm naturally shifts from aggressive "skimming" (trying many things briefly) to deep "exploitation" (finishing training runs to get precise results).
  • Beyond Neural Networks: The paper brilliantly frames Feature Selection as a stopping problem. In "forward selection," adding features is analogous to adding epochs. BO-BOS can decide when adding more features provides diminishing returns relative to the cost.
  • Theoretical Safety: This is one of the few early-stopping frameworks that preserves the asymptotic no-regret performance of GP-UCB, providing a mathematical "safety net" for researchers.

Key Results

The authors evaluated BO-BOS across several diverse domains, including image classification, reinforcement learning, and feature selection.

Speedup in Image Classification: In CNN tuning on CIFAR-10 and SVHN, BO-BOS reached lower validation errors significantly faster in wall-clock time than standard GP-UCB and BOCA. It also outperformed Hyperband in the long run. While Hyperband is fast initially, it often settles for sub-optimal results because it lacks the sophisticated surrogate modeling of BO.

Validation error vs. wall-clock time on CIFAR-10 and SVHN.

Efficiency in Reinforcement Learning: In the Swimmer-v2 task from OpenAI Gym (where "epochs" represent steps in the environment), BO-BOS found better policies using fewer environment steps than standard BO. This demonstrates its immense utility in expensive robotics simulations where every step counts.

Average return vs. environment steps on the Swimmer-v2 RL task.

Limitations and Future Work

  • Computational Overhead: Solving the BOS problem via backward induction requires simulation, which adds a small computational cost per epoch. While usually negligible compared to training a large model, it is a factor to consider for very small models.
  • Monotonicity Assumption: The framework assumes that performance generally improves with more epochs. While true for most ML training and RL rewards, it might struggle with highly non-monotonic learning curves (e.g., extreme "double descent" scenarios).
  • Future Directions: The authors suggest extending this framework to Batch BO (running multiple training sessions in parallel) and adapting it for high-dimensional hyperparameter spaces.

Summary updated

BibTeX
@inproceedings{dai2019bayesian,
  author = {Zhongxiang Dai and Haibin Yu and Bryan Kian Hsiang Low and Patrick Jaillet},
  title = {{Bayesian Optimization Meets Bayesian Optimal Stopping}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure