GoSafe: Globally Optimal Safe Robot Learning

Dominik Baumann, Alonso Marco, Matteo Turchetta, Sebastian Trimpe · DOI

Introduction

In robotics, learning optimal control policies is often constrained by the physical reality of the hardware. A single violation of safety constraints—such as exceeding joint limits or colliding with obstacles—can result in permanent damage. While algorithms like SafeOpt have successfully enabled safe local exploration, they often fail to find the global optimum when safe regions are disconnected. GoSafe introduces a novel Bayesian Optimization framework that bridges these gaps, allowing robots to safely discover superior policies in disjoint areas of the search space.

The Challenge of Disconnected Safety Islands

Traditional safe learning algorithms typically start from a known safe "seed" and expand outward. However, in many complex robotic systems, the set of safe parameters is not a single continuous region. Instead, the landscape may contain multiple "islands" of safety separated by unsafe zones.

Figure 1: The challenge of disconnected safe regions. Local optimization algorithms like SafeOpt get trapped in the initial safe area, missing the higher reward in the additional safe area across the unsafe gap.

As shown in Figure 1, if the global optimum lies in a disconnected region, a local search will never reach it. Standard global optimization methods like Expected Improvement with Constraints (EIC) might find these regions but often do so by "crashing" through the unsafe zones during exploration.

The GoSafe Framework

GoSafe addresses this by expanding the safety model from a purely parameter-based view to a joint policy-state space. The algorithm proceeds in three stages:

  1. S1 (Local Optimization): The robot identifies the best safe parameters within the initial connected region.
  2. S2 (Safe Set Expansion): The robot maps out a "safely operable region" in the state-parameter space. This identifies states from which a backup controller can reliably recover the system.
  3. S3 (Global Search): The robot explores potentially unsafe policies. By monitoring its state in real-time against the boundaries learned in S2, it can trigger the backup controller before a safety violation occurs.
Figure 6: The three stages of GoSafe: (a) Local optimization in S1, (b) Safe set expansion in S2, (c) Global search with backup intervention in S3, and (d) the final discovered safe regions.

Experimental Validation: The Furuta Pendulum

The researchers evaluated GoSafe on a Furuta Pendulum, a classic underactuated and unstable control benchmark. The results demonstrated a clear trade-off between safety and optimality:

  • SafeOpt maintained perfect safety but failed to find the global optimum, remaining stuck in a local peak.
  • EIC found the global optimum but caused nearly 10 hardware failures during its search.
  • GoSafe successfully navigated to the global optimum in a disconnected region with zero failures.

Conclusion

GoSafe demonstrates that "unsafe" exploration can be made safe through real-time state monitoring and learned backup interventions. While it requires an initial safe seed and high-frequency monitoring, it provides a robust path toward globally optimal robot learning without the risk of catastrophic hardware failure. Future work will focus on scaling this joint state-parameter search to higher-dimensional systems like humanoid robots.

Summary updated

BibTeX
@inproceedings{baumann2021gosafe,
  author = {Dominik Baumann and Alonso Marco and Matteo Turchetta and Sebastian Trimpe},
  title = {{GoSafe: Globally Optimal Safe Robot Learning}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9560738},
}
Figure