Abstract
This paper presents SafeOpt-MC, an extension of the SafeOpt algorithm designed for Bayesian optimization with multiple independent safety constraints. In robotics, parameter tuning via trial and error is often prohibited by the risk of catastrophic failure. By modeling performance and safety separately using Gaussian Processes, SafeOpt-MC enables automatic tuning of robotic controllers without violating safety boundaries. The algorithm explicitly balances the maximization of performance with the expansion of the "safe" parameter space. Real-world experiments on a quadrotor demonstrate that SafeOpt-MC can efficiently optimize controllers with zero crashes, even when transferring knowledge across varying flight speeds.
Introduction
The deployment of autonomous systems requires precise parameter tuning to achieve optimal performance. While Reinforcement Learning (RL) and Bayesian Optimization (BO) have shown great promise in simulation, their application to physical hardware is limited by the safety-critical nature of robotics. Standard exploration strategies often test parameters that can lead to instability or hardware damage. Previous work, such as the original SafeOpt algorithm, introduced safety by ensuring performance does not drop below a threshold. However, this approach couples safety directly to the objective function, which is problematic when optimal performance lies near the boundary of safety. This paper introduces SafeOpt-MC, which decouples these components to allow for safer and more aggressive optimization.
Methodology
SafeOpt-MC leverages Gaussian Processes (GPs) to build probabilistic models of the unknown performance function $f(\mathbf{a})$ and multiple safety constraint functions $g_i(\mathbf{a})$.
The algorithm maintains a Safe Set ($S_n$) of parameters that are statistically likely to satisfy all safety constraints. It iteratively selects points from two candidate sets: Maximizers ($M_n$), which could be the global optimum, and Expanders ($G_n$), which help classify unknown regions as safe. By focusing on points with high uncertainty within these sets, the algorithm safely explores the parameter space. Additionally, a contextual kernel allows the system to adapt to changing environments (e.g., flight speeds) by leveraging data from previous contexts.
Experimental Evaluation
Experiments were conducted using a Parrot AR.Drone 2.0 quadrotor. Starting from a conservative initial safe set, SafeOpt-MC successfully optimized the quadrotor's parameters across several scenarios:
- Linear PD Control: The optimal parameters were identified in just 30 evaluations.
- Nonlinear Loop-Shaping: The algorithm correctly identified and avoided unsafe regions characterized by high angular velocities, automatically pivoting to higher damping ratios.
- Contextual Circle Trajectory: The robot safely increased its flight speed from 1.0 m/s to 1.8 m/s, using data from slower flights to accelerate optimization at higher speeds.
Key Results and Insights
The primary achievement of SafeOpt-MC is the attainment of optimal performance with zero safety violations during the tuning process. The decoupling of safety constraints from the objective function allowed the algorithm to explore high-performance regimes that were previously inaccessible. Furthermore, the use of contextual Bayesian optimization proved to be a significant "force multiplier," enabling safe knowledge transfer between different operating conditions and reducing the number of samples required for new tasks.
Limitations and Future Work
While SafeOpt-MC provides a robust framework for safe tuning, it faces challenges common to GP-based methods. The "curse of dimensionality" currently limits its application to systems with fewer than 10 parameters. Additionally, the requirement for a known initial safe set and the computational cost of solving the acquisition function remain areas for improvement. Future research will explore high-dimensional optimization techniques to broaden the algorithm's applicability to more complex robotic platforms.
Summary updated