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

Meta-Learning Priors for Safe Bayesian Optimization

Jonas Rothfuss, Christopher König, Alisa Rupenyan, Andreas Krause

Abstract

In robotics, optimizing controller parameters under safety constraints is an important challenge. Safe Bayesian optimization (BO) quantifies uncertainty in the objective and constraints to safely guide exploration in such settings. Hand-designing a suitable probabilistic model can be challenging however. In the presence of unknown safety constraints, it is crucial to choose reliable model hyper-parameters to avoid safety violations. Here, we propose a data-driven approach to this problem by meta-learning priors for safe BO from offline data. We build on a meta-learning algorithm, F-PACOH, capable of providing reliable uncertainty quantification in settings of data scarcity. As core contribution, we develop a novel framework for choosing safety-compliant priors in a data-driven manner via empirical uncertainty metrics and a frontier search algorithm. On benchmark functions and a high-precision motion system, we demonstrate that our meta-learnt priors accelerate convergence of safe BO approaches while maintaining safety.

Introduction

Optimizing "black-box" systems—where the mathematical relationship between inputs and outputs is unknown—is a fundamental challenge in robotics and control. Bayesian Optimization (BO) has emerged as a standard tool for this task, utilizing probabilistic models like Gaussian Processes (GPs) to guide search. However, real-world applications often involve critical safety constraints. In these scenarios, exploration must be conducted cautiously; an overconfident model might suggest a parameter setting that leads to hardware damage or system failure.

Existing Safe BO methods rely heavily on the choice of "priors"—initial assumptions about the system's smoothness and variability. If these priors are too conservative, the optimization progresses too slowly. If they are too aggressive, safety violations become likely. Traditionally, these priors are hand-tuned, a process that is itself risky and inefficient. This paper introduces SAMBO (Safe Meta-Bayesian Optimization), a framework that automates prior selection by meta-learning from related offline data.

The SAMBO Framework

The SAMBO pipeline consists of two primary stages: meta-learning a base model and then refining its hyperparameters for safety.

Meta-Learning with F-PACOH

The framework builds upon F-PACOH, a meta-learning algorithm designed for reliable uncertainty quantification. F-PACOH leverages offline data from similar tasks to learn a prior that generalizes well to new, unseen tasks. It regularizes the learned model toward a standard GP, ensuring robust performance even when data is scarce.

Frontier Search (FS)

The core contribution of this work is the Frontier Search algorithm. FS is designed to find optimal kernel hyperparameters (variance and lengthscale) by balancing two competing objectives: sharpness (precision of the model) and calibration (accuracy of the model's uncertainty estimates).

The Frontier Search algorithm iteratively narrows the kernel hyperparameter space (lengthscale and variance) to identify safety-compliant regions over 20 iterations.

The authors observed that calibration and sharpness exhibit monotonic properties relative to kernel parameters. By exploiting this geometric structure, FS can "shrink" the search space significantly faster than standard grid search methods, achieving a query complexity of $O(1/\epsilon^{1.59})$. This efficiency allows the system to quickly identify a "frontier" of safety-compliant settings.

Experimental Evaluation

The researchers evaluated SAMBO on synthetic benchmarks (modified Camelback and Eggholder functions) and a real-world high-precision motion system (the Argus robot). The robotic task involved tuning PI controller gains to minimize position error while respecting vibration frequency limits.

Empirical uncertainty metrics across the hyperparameter space. The Frontier Search (FS) solution identifies a prior that maintains high calibration frequency while maximizing sharpness (minimizing avg-std).

Key Results

  • Safety and Speed: On the Argus robot, SAMBO achieved near-optimal performance significantly faster than standard Safe BO baselines. Crucially, it maintained a 100% safety record across all experiments, with zero constraint violations.
  • Calibration as a Proxy: The results confirm that empirical calibration on offline data serves as an effective proxy for safety during live optimization.
  • Efficiency: The Frontier Search algorithm proved highly efficient, narrowing down the safe hyperparameter region in just 20 iterations, as shown in the progression figures.

Conclusion

SAMBO demonstrates that meta-learning priors from offline data can effectively bridge the gap between conservative and aggressive exploration in Safe BO. By formalizing the search for safety-compliant hyperparameters through the Frontier Search algorithm, the authors provide a principled way to automate model selection for safety-critical systems. Future work may address scaling these methods to higher-dimensional parameter spaces and improving noise estimation in highly stochastic environments.

Summary updated

BibTeX
@inproceedings{rothfuss2022meta,
  author = {Jonas Rothfuss and Christopher König and Alisa Rupenyan and Andreas Krause},
  title = {{Meta-Learning Priors for Safe Bayesian Optimization}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=iv2iW1NVq5},
}
Figure