GoSafeOpt: Scalable Safe Exploration for Global Optimization of Dynamical Systems
Reinforcement learning (RL) offers a powerful framework for optimizing control policies in complex dynamical systems where mathematical modeling is difficult. However, the inherent need for exploration in RL poses significant risks when applied to physical hardware, such as robotic arms or autonomous vehicles. A single unsafe exploratory action can lead to catastrophic hardware failure. While existing methods like SafeOpt provide safety guarantees, they often suffer from a "local trap" problem—they only explore safe regions connected to the initial policy. GoSafeOpt addresses this by enabling safe global exploration even in high-dimensional state spaces.
The Problem: Local vs. Global Optima
Traditional safe Bayesian Optimization (BO) methods are designed to expand a known safe region. However, in many real-world scenarios, the optimal policy may reside in a separate, disconnected safe region of the parameter space. Because these methods are restricted to contiguous safe sets, they cannot "jump" across unsafe or uncertain territory to find the global maximum.
Previous attempts to solve this global exploration problem relied on actively exploring and discretizing the system's state space. This approach suffers from the curse of dimensionality, becoming computationally intractable for systems with more than three dimensions. Since most real-world robots operate in much higher-dimensional spaces, a significant gap remained for a scalable, safe global optimizer.
The GoSafeOpt Algorithm
GoSafeOpt introduces a scalable approach to global safe exploration by modeling objective functions and safety constraints using Gaussian Processes (GPs). These provide confidence intervals that allow the algorithm to reason about uncertainty. The algorithm operates in two alternating phases:
- Local Safe Exploration (LSE): The algorithm explores the current safe region to improve its local model. Crucially, it leverages the Markov property of dynamical systems: any state visited during a safe rollout is, by definition, a safe state from which a safe policy exists. GoSafeOpt passively records these states and their associated policies into a "backup library."
- Global Exploration (GE): The algorithm evaluates high-uncertainty policies outside the known safe set to discover new regions.
Safety via Online Boundary Conditions
The core innovation of GoSafeOpt is its ability to explore potentially unsafe global regions while maintaining a safety net. During the GE phase, the algorithm implements an online boundary condition to prevent crashes.
By monitoring the system state at high frequencies (e.g., 100 Hz) and using Lipschitz continuity bounds, the algorithm calculates the distance to the nearest known safe state in its backup library. If the system drifts too close to an unsafe boundary where a backup can no longer be guaranteed, the exploration is aborted, and a backup policy is triggered to return the system to a known safe state.
Experimental Validation
The researchers validated GoSafeOpt in both high-dimensional simulations (up to 11D) and on a real-world Franka Emika Panda robot arm.
- Simulation: In complex MuJoCo tasks, GoSafeOpt consistently found global optima that SafeOpt missed, maintaining nearly 100% safety across all runs.
- Hardware: On the physical robot, GoSafeOpt tuned a 3-parameter controller in a 6D state space to follow a path near a wall. It achieved 100% safety, successfully triggering backups when necessary and eventually finding a controller superior to the manufacturer's default.
Unlike previous global safe exploration methods that required discretizing the state space, GoSafeOpt's passive backup learning scales effectively to the high-dimensional spaces typical of modern robotics.
Conclusion
GoSafeOpt represents a significant step toward practical, safe, and global autonomous optimization. By combining Gaussian Process uncertainty modeling with passive backup policy learning, it overcomes the limitations of local safe sets and the curse of dimensionality. While the method currently relies on known Lipschitz constants and initial safe policies, it provides a robust foundation for future hybrid algorithms in complex dynamical systems.
Summary updated