GoSafeOpt: Scalable Safe Exploration for Global Optimization of Dynamical Systems

Bhavya Sukhija, Matteo Turchetta, David Lindner, Andreas Krause, Sebastian Trimpe, Dominik Baumann · DOI

TL;DR

GoSafeOpt is the first model-free algorithm that safely discovers globally optimal control policies for high-dimensional dynamical systems. By leveraging the Markov property to learn "backup policies" during local exploration, it can safely "jump" between disconnected safe regions in the policy space, overcoming the local-optima trap that plagues existing safe reinforcement learning methods.

What Problem Does This Paper Address?

Learning control policies directly on physical hardware is a high-stakes game: a single exploratory failure can lead to catastrophic damage. To prevent this, "safe" Bayesian Optimization (BO) methods like SafeOpt restrict exploration to a "safe set" of parameters. However, these methods are typically limited to exploring regions connected to a known initial safe policy. If the globally optimal policy lies in a disconnected safe region, these algorithms will never find it.

While a previous algorithm called GoSafe attempted to bridge these disconnected regions, it relied on a coarse discretization of the state space. This made it computationally infeasible for real-world robots with high-dimensional state spaces (typically anything beyond 3 dimensions). GoSafeOpt fills this gap, providing a scalable way to perform global, safe exploration on complex systems like robotic arms.

Figure 1: Disjoint safe regions in policy space. SafeOpt gets stuck in the initial safe area, missing the global optimum.

Methods

GoSafeOpt operates by alternating between two stages:

  1. Local Safe Exploration (LSE): Similar to SafeOpt, the algorithm explores the current safe region to reduce uncertainty and find local optima. Crucially, it uses the Markov property of the system to learn "backup policies." If a state is visited during a safe rollout, the policy used to reach it is recorded as a valid backup for that specific state.
  2. Global Exploration (GE): The algorithm picks the most uncertain parameter outside the known safe set. To maintain safety, it monitors the system state in real-time. If the system approaches a boundary where safety can no longer be guaranteed, it triggers one of the backup policies learned during the LSE stage to steer the system back to safety.

The core technical innovation is a novel boundary condition that is computationally efficient ($O(s)$ where $s$ is the state dimension). Unlike its predecessor, it doesn't require discretizing the state space, allowing it to scale to high-dimensional systems.

Datasets

The authors evaluated GoSafeOpt on both simulated and physical platforms:

  • MuJoCo Simulation: Two tasks involving a 7-DOF robot arm—reaching a target (8D task) and path following (11D task).
  • Hardware Experiments: A real Franka Emika Panda 7-DOF robot arm performing a safety-critical path-following task near a wall.
Figure 2: Franka Emika Panda; seven degrees of freedom robot arm used for our evaluations.

Key Insights and Ideas

  • The Markov Advantage: The realization that any state visited during a safe experiment can serve as a "safe harbor." By storing these state-policy pairs, the algorithm builds a safety net for global exploration without needing an explicit dynamics model.
  • Disjoint Regions are Real: The paper highlights that disjoint safe regions are common in practical applications like impedance control. A local search is fundamentally insufficient for these problems.
  • Scalability via Lipschitz Continuity: By leveraging the Lipschitz continuity of the constraints, the algorithm can verify safety for a ball around visited states, avoiding the "curse of dimensionality" that hampered previous global safe search methods.

Key Results

GoSafeOpt demonstrated clear superiority over existing benchmarks:

  • Global Optimality: In simulations with disconnected safe regions, GoSafeOpt successfully "jumped" to the global optimum, while SafeOpt remained trapped in a local sub-optimal region.
  • Safety Record: In hardware experiments on the Panda robot, GoSafeOpt achieved 100% safety across all runs. In contrast, a non-safe global method (EIC) averaged over 15 failures per run.
  • Scalability: GoSafeOpt handled 6D and 11D tasks with ease, whereas the authors note that the previous state-of-the-art for global safe search (GoSafe) is prohibitive for systems with more than 3 dimensions.
Table 1: Comparison of GoSafeOpt and prior work on safe exploration based on their safety guarantees, scalability, global exploration, and sample efficiency.

Limitations and Future Work

The authors acknowledge that GoSafeOpt, like most safe BO methods, relies on prior knowledge such as Lipschitz constants and kernel hyperparameters. In practice, these can be difficult to verify perfectly.

Future research directions include:

  • Developing hybrid algorithms that combine passive backup policy discovery with active state-space exploration.
  • Improving hyperparameter selection methods to bridge the gap between theoretical safety guarantees and practical implementation.
  • Applying the method to even more complex dynamical systems, such as legged robots.

Summary updated

BibTeX
@article{sukhija2023gosafeopt,
  author = {Bhavya Sukhija and Matteo Turchetta and David Lindner and Andreas Krause and Sebastian Trimpe and Dominik Baumann},
  title = {{GoSafeOpt: Scalable Safe Exploration for Global Optimization of Dynamical Systems}},
  journal = {Artificial Intelligence},
  year = {2023},
  doi = {10.1016/j.artint.2023.103922},
}
Figure