Abstract
Safe Bayesian Optimization (BO) is increasingly used to optimize an unknown function under safety constraints, a central task in robotics, biomedical engineering, and many other disciplines. Due to the safety-critical nature of these applications, it is crucial that theoretical safety guarantees for these algorithms translate into the real world. In this work, we investigate three safety-related issues in SafeOpt-type algorithms, a popular class of safe BO methods. First, these algorithms critically rely on frequentist uncertainty bounds for Gaussian Process (GP) regression, but concrete implementations typically utilize heuristics that invalidate all safety guarantees. We provide a detailed analysis of this problem and introduce Real-$\beta$-SafeOpt, a variant of the SafeOpt algorithm that leverages recent GP bounds and thus retains all theoretical guarantees. Second, we identify a key technical assumption in SafeOpt-like algorithms, the availability of an upper bound on the reproducing kernel Hilbert space (RKHS) norm of the target function, as a central obstacle to real-world usage. To address this issue, we propose to rely instead on a known Lipschitz and noise bound, and we introduce Lipschitz-only Safe Bayesian Optimization (LoSBO), a SafeOpt-type algorithm using the latter two assumptions. We show empirically that this algorithm is not only safe, but also outperforms the state-of-the-art on several function classes. Third, SafeOpt and derived algorithms rely on a discrete search space, complicating their application to higher-dimensional problems. To broaden the applicability of these algorithms, we introduce Lipschitz-only Safe GP-UCB (LoS-GP-UCB), a LoSBO variant that is applicable to moderately high-dimensional problems, while retaining safety.
Introduction: The Gap Between Theory and Practice
Bayesian Optimization (BO) is a powerful tool for finding the maximum of expensive "black-box" functions, such as tuning a robot's gait or a chemical process. In "Safe BO," the primary constraint is ensuring that every sampled point remains above a safety threshold to avoid catastrophic failures. However, a significant disconnect exists between theoretical safety guarantees and real-world implementations.
One major issue is the Heuristic Trap. Most practitioners use a fixed uncertainty multiplier (typically $\beta=2$) for Gaussian Process (GP) bounds. While computationally convenient, this heuristic frequently leads to safety violations in practice because it underestimates the true uncertainty of the model, causing the uncertainty set to exclude the true function.
Furthermore, theoretical guarantees often rely on knowing the RKHS norm of the target function—a mathematical abstraction that is nearly impossible to estimate from physical prior knowledge. Finally, traditional safe BO algorithms like SafeOpt rely on discretizing the search space, which limits their use to low-dimensional problems.
Proposed Methods
To bridge this gap, we introduce three major improvements:
- Real-$\beta$-SafeOpt: A variant of the classic SafeOpt algorithm that replaces heuristics with rigorous, numerically evaluable frequentist uncertainty bounds, restoring theoretical safety guarantees.
- LoSBO (Lipschitz-only Safe BO): This core contribution decouples safety from the GP's internal uncertainty. Instead of the RKHS norm, LoSBO utilizes a Lipschitz constant (a bound on the function's rate of change) and a noise bound. This makes the algorithm robust to GP hyperparameter misspecification.
- LoS-GP-UCB: To address high-dimensional tasks, LoS-GP-UCB adapts LoSBO to work with local, gradient-based optimization. It optimizes the Upper Confidence Bound (UCB) within a union of safe "balls" around previously sampled points, avoiding the need for a global grid.
Key Results and Insights
The researchers evaluated these algorithms using synthetic RKHS functions and standard optimization benchmarks like Camelback (2D), Hartmann (6D), and a 10D Gaussian function.
- Reliability: Real-$\beta$-SafeOpt achieved 0% safety violations when provided with correct parameters, whereas heuristic versions failed in up to 28% of runs for specific functions.
- Performance: LoSBO outperformed Real-$\beta$-SafeOpt in final optimization accuracy (90.9% vs 82.45% of the global optimum reached). By decoupling safety and exploration, LoSBO avoids the over-conservatism that often traps traditional GP-based safe algorithms.
- Scalability: While traditional SafeOpt is limited to 2D, LoS-GP-UCB successfully optimized functions in 10 dimensions while maintaining safety throughout.
Conclusion
Shifting from abstract mathematical requirements like RKHS norms to intuitive physical bounds like Lipschitz constants makes Safe BO significantly more accessible to engineers. By providing rigorous bounds and scalable algorithms, this work brings reliable machine learning techniques closer to real-world safety-critical applications, such as autonomous vehicles and robotics. Future work will focus on safely estimating Lipschitz constants during the optimization process itself.
Summary updated