Scalable Learning of Safety Guarantees for Autonomous Systems using Hamilton-Jacobi Reachability

Sylvia L. Herbert, Jason J. Choi, Suvansh Qazi, Marsalis T. Gibson, Koushil Sreenath, Claire J. Tomlin

TL;DR

This paper presents a scalable framework for updating safety guarantees in autonomous systems as they learn about their environment in real-time. By synthesizing system decomposition, warm-starting, and adaptive gridding, the authors enable Hamilton-Jacobi (HJ) reachability analysis—previously limited to 2D or 3D systems—to handle 10D quadcopter models, reducing safety update times from hours to just a few minutes.

What Problem Does This Paper Address?

For autonomous systems like drones or assistive robots, safety isn't just a preference; it’s a requirement. Hamilton-Jacobi (HJ) reachability is a powerful mathematical tool that provides "safe sets"—regions of the state space where a system is guaranteed to remain safe even under worst-case disturbances.

However, HJ reachability suffers from the "curse of dimensionality": the computational cost grows exponentially with the number of state variables ($O(N^D)$). Furthermore, real-world environments are dynamic. A drone might encounter unexpected wind, requiring it to update its safety analysis online. Previously, recomputing these safe sets for anything beyond a simple 2D or 3D system was far too slow for real-time operation, often taking hours for systems that need to react in seconds.

Methods

The authors propose a three-pronged approach to break the computational bottleneck:

  1. System Decomposition: They break high-dimensional systems into smaller, "self-contained" subsystems. For a 10D quadcopter, this means computing safety for two 4D subsystems (horizontal movement) and one 2D subsystem (vertical movement) separately. This changes the complexity from $O(N^{10})$ to $O(N^4 + N^4 + N^2)$, a massive reduction.
  2. Warm-Starting: Instead of recomputing a safe set from scratch when new information (like a wind disturbance) is learned, the solver is initialized with the previous safe set. This "best guess" allows the algorithm to converge much faster.
  3. Adaptive/Coarse Grids: The system first performs a quick, rough safety calculation on a coarse grid. This result is then used to initialize a high-fidelity calculation on a fine grid, further accelerating convergence.

These methods are integrated into a "learning for safety" loop: the system uses Gaussian Process (GP) regression to learn disturbance bounds from sensor data, which then triggers the accelerated HJ update.

Datasets

The researchers evaluated their framework using high-fidelity simulations rather than static datasets:

  • 2D Quadcopter Model: Used for direct comparison with prior work, focusing on vertical flight.
  • 10D Near-Hover Quadcopter Model: A complex model including position, velocity, pitch, roll, and their respective rates.
  • Simulation Environment: Implemented in the Robot Operating System (ROS) using a Crazyflie 2.0 simulation.
  • Disturbances: Simulated wind from a fan, modeled as a state-dependent Gaussian distribution.

Key Insights and Ideas

  • Synergy is Essential: While decomposition makes high-D systems tractable, it isn't enough for online updates. The combination of decomposition with warm-starting and coarse initialization is what finally pushes update times into the practical range for 10D systems.
  • Safety During the "Thinking" Phase: While the system is busy computing a new safe set, it doesn't just fly blindly. It temporarily "contracts" its current safe set to a more conservative version, ensuring it stays safe even before the new analysis is complete.
  • Practical RL Integration: The framework allows a performance-oriented Reinforcement Learning (RL) agent (specifically Soft-Actor Critic) to explore and learn aggressively, knowing the safety filter will only intervene if the drone approaches the boundaries of the safe set.
Fig. 1: Computation time comparison for 4D x-subsystem of 10D quadcopter model. Blue columns show the compute time for the initial computation, and purple columns show the compute time for the updated computation with new disturbance bound from data. The sets of bars show the compu- tation when incorporating (a) decomposition, (b) decomposition and warm- starting, (c) decomposition and warm-starting and coarse initializations. Using the new framework (c), the computation of the 4D subsystem takes minutes instead of hours, making updating a 10D safe set online tractable for the first time.

Key Results

  • Massive Speedups: For the 10D quadcopter, the framework reduced the safety update time to an average of 3.3 minutes. For comparison, using the original framework on a 10D system was considered "intractable," and even a 4D subsystem took nearly 2 hours to update.
  • Real-time 2D Updates: In the 2D case, the update time dropped from 2.6 seconds to just 0.13 seconds, enabling nearly instantaneous adaptation to new wind conditions.
  • Accuracy Preservation: As shown in Figure 2, the accelerated method (cyan dashed line) produces a safe set boundary that closely matches the "ground truth" computed by the slow, original method (blue solid line), but in a fraction of the time.
Fig. 2: Solid red line: constraint set boundary of 4D x-subsystem of 10D quadcopter model projected to position and velocity dimensions. Solid lines: initial safe set S(C, D) boundary computed using prior framework with decomposition (dark blue, 5797 seconds) and the new framework (cyan, 143.6 seconds). Dashed lines: updated safe set with new disturbances computed using prior framework with decomposition (dark blue, 5752 seconds) and the new framework (42.3 seconds).

Limitations and Future Work

  • Decomposition Constraints: The decomposition method relies on the system having "self-contained subsystems." Not all dynamical systems can be neatly broken down this way.
  • Simple Gridding: The current adaptive grid approach is relatively simple. The authors suggest that more sophisticated, localized adaptive gridding could yield even better performance.
  • Hardware Validation: While the ROS simulations are high-fidelity, the authors aim to move this framework onto physical hardware platforms next.
  • Generalization: Future work will look at updating safety analysis for changing obstacles, model uncertainties, or the presence of other moving agents.

Summary updated

Abstract

Autonomous systems like aircraft and assistive robots often operate in scenarios where guaranteeing safety is critical. Methods like Hamilton-Jacobi reachability can provide guaranteed safe sets and controllers for such systems. However, often these same scenarios have unknown or uncertain environments, system dynamics, or predictions of other agents. As the system is operating, it may learn new knowledge about these uncertainties and should therefore update its safety analysis accordingly. However, work to learn and update safety analysis is limited to small systems of about two dimensions due to the computational complexity of the analysis. In this paper we synthesize several techniques to speed up computation: decomposition, warm-starting, and adaptive grids. Using this new framework we can update safe sets by one or more orders of magnitude faster than prior work, making this technique practical for many realistic systems. We demonstrate our results on simulated 2D and 10D near-hover quadcopters operating in a windy environment.
BibTeX
@inproceedings{herbert2021scalable,
  author = {Sylvia L. Herbert and Jason J. Choi and Suvansh Qazi and Marsalis T. Gibson and Koushil Sreenath and Claire J. Tomlin},
  title = {{Scalable Learning of Safety Guarantees for Autonomous Systems using Hamilton-Jacobi Reachability}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9561561},
}
Figure