Abstract
Standard "Safe" Bayesian Optimization (BO) relies on brittle mathematical assumptions regarding the smoothness of constraint functions. When these assumptions are violated, safety guarantees evaporate. This paper introduces SAFE-BOCP, a framework that leverages Online Conformal Prediction to adaptively adjust safety thresholds. By treating safety as a calibration problem, SAFE-BOCP provides formal, assumption-free guarantees on the rate of safety violations during exploration, even when the underlying model is misspecified.
The Challenge of Safe Exploration
In real-world optimization—ranging from chemical reactor tuning to personalized movie recommendations—the goal is to maximize an objective function while strictly adhering to safety constraints. Traditional Safe BO variants, such as SAFEOPT, utilize Gaussian Processes (GPs) to construct a "safe set" of points where the algorithm is confident constraints will not be violated.
However, these guarantees are contingent on knowing specific properties of the constraint function, such as its Reproducing Kernel Hilbert Space (RKHS) norm. In practice, these properties are rarely known. If the GP model is misspecified (e.g., assuming a function is smoother than it truly is), the algorithm becomes overconfident, leading to catastrophic safety violations. SAFE-BOCP addresses this by asking: can we guarantee safety without making strict, unverifiable assumptions about the black-box function?
The SAFE-BOCP Framework
SAFE-BOCP (Safe Bayesian Optimization with Conformal Prediction) shifts the paradigm from seeking zero violations under strict assumptions to maintaining a user-defined target violation rate ($\alpha$) without such assumptions.
Core Mechanisms
- Online Conformal Prediction (CP): The framework introduces an adaptive scaling parameter ($\beta_t$). If the algorithm selects a candidate solution that results in a safety violation, the CP mechanism detects this error and adjusts the threshold.
- Adaptive Pessimism: Upon detecting violations, the algorithm increases its level of pessimism. This effectively shrinks the safe set, forcing the acquisition function to be more conservative in subsequent iterations.
- Deterministic and Probabilistic Variants: The authors propose D-SAFE-BOCP for noiseless feedback and P-SAFE-BOCP for noisy environments. The latter uses a "caution-increasing" back-off mechanism to account for observation noise in safety sensors.
Comparative Advantages
Unlike prior art that aims for zero violations—a goal that is often mathematically impossible without perfect model knowledge—SAFE-BOCP allows for a controllable, non-zero violation rate. This flexibility prevents the algorithm from becoming "paralyzed" by caution while ensuring that the long-term violation rate remains bounded.
Experimental Validation
The authors validated SAFE-BOCP across three distinct benchmarks:
- Synthetic Optimization: In tests with intentional model misspecification (wrong GP bandwidth), SAFEOPT saw violation rates spike to over 30%. In contrast, SAFE-BOCP strictly maintained the violation rate below the target $\alpha$.
- Safe Movie Recommendation: Using the MovieLens-100k dataset, the algorithm maximized user ratings while ensuring "bad" recommendations (ratings below 4/5) stayed within the target threshold.
- Chemical Reaction Optimization: In a simulated Plug Flow Reactor (PFR), the method successfully maximized chemical yield while maintaining required selectivity levels despite unknown system dynamics.
Conclusion and Future Outlook
SAFE-BOCP demonstrates that assumption-free safety is achievable by learning from past mistakes. By using feedback to "tune" the confidence intervals of a Gaussian Process, the framework provides a robust wrapper for any black-box optimizer. While the method requires a tolerance for minimal violations (making it unsuitable for "fail-deadly" systems like nuclear reactors), it offers a significant leap forward for industrial and consumer applications where safety parameters are difficult to pre-specify. Future work will explore multi-constraint optimization and the integration of multi-fidelity data sources.
Summary updated