Scalable synthesis of safety certificates from data with application to learning-based control

Kim Peter Wabersich, Melanie N. ZeilingerECC 2017 · DOI

Abstract

The control of complex systems faces a trade-off between high performance and safety guarantees, which in particular restricts the application of learning-based methods to safety-critical systems. This paper introduces efficient techniques for the synthesis of a safe set and control law, which offer improved scalability properties by relying on approximations based on convex optimization problems. The first proposed method requires only an approximate linear system model and Lipschitz continuity of the unknown nonlinear dynamics. The second method extends the results by showing how a Gaussian process prior on the unknown system dynamics can be used in order to reduce conservatism of the resulting safe set. We demonstrate the results with numerical examples, including an autonomous convoy of vehicles.

Introduction

Modern control systems often face a persistent conflict between performance and safety. While learning-based methods like Deep Reinforcement Learning (RL) excel at finding optimal policies for complex tasks, they are notoriously difficult to verify. For safety-critical applications—such as autonomous vehicles or industrial robotics—deploying "black-box" RL policies is risky because they lack formal guarantees against system crashes or physical constraint violations.

Existing safety certification methods, such as Hamilton-Jacobi reachability, often suffer from the "curse of dimensionality," becoming computationally intractable for systems with more than a few variables. This research introduces a scalable framework that wraps high-performance controllers with a safety certificate. By leveraging convex optimization and data-driven bounds on unknown dynamics, the authors synthesize "safe sets" and supervisory controllers that ensure safety even when the underlying model is partially unknown.

Methodology

The proposed approach utilizes a supervisory framework, acting as a "safety shield" around an RL agent. The RL agent maintains control as long as the system remains within a "safe set"—a region of the state space where safety can be formally guaranteed. If the system nears the boundary of this set, a pre-computed safety controller intervenes to steer it back to a safe state.

Synthesis of a safe set D within a domain X using data points.

The synthesis of the safe set and controller involves a two-step convex optimization process:

  1. System Modeling: The system is modeled as a known linear component plus an unknown, nonlinear disturbance term ($d(x)$).
  2. Quadratic Bounding: Available data points are used to find a quadratic upper bound on the unknown nonlinearity, effectively bounding the "ignorance" of the system's behavior.
  3. Semidefinite Programming (SDP): An SDP is solved to find the largest possible ellipsoidal safe set and a corresponding linear control law satisfying Lyapunov stability conditions.

An extension using Gaussian Processes (GPs) is also introduced to reduce conservatism. By placing a prior on unknown dynamics, the system can provide probabilistic bounds on uncertainty, allowing the safe set to expand as more data is collected during safe exploration.

Experimental Evaluation

The framework was evaluated across three simulated environments:

  • 1D Motivating Example: A simple system with a cubic nonlinearity used to demonstrate basic logic.
  • 2D Numerical Example: Used to visualize safe sets and compare Lipschitz-based bounds against GP-based bounds.
  • Autonomous Car Convoy: A high-dimensional simulation involving a string of five cars, including non-cooperative agents with unknown acceleration, testing the framework's ability to maintain safety in a multi-agent environment.

Results and Discussion

The method demonstrates significant improvements in scalability and safety preservation. Notably, it successfully handled the 10-dimensional state space of the car convoy example, a regime where traditional reachability methods typically fail.

Autonomous car convoy simulation used to evaluate high-dimensional scalability.

Key results include:

  • Safety Preservation: In the convoy simulation, the safety controller intervened six times to prevent crashes that would have occurred under local controllers alone.
  • Reduced Conservatism: The GP-based approach produced significantly larger safe sets than the Lipschitz-based method, allowing the primary controller more operational freedom.
  • RL Integration: The framework was shown to work effectively alongside a Policy Gradient algorithm, ensuring zero constraint violations throughout the learning process.

The core insight is treating data as a constraint rather than just a model. By bounding the nonlinearity, robust control tools can provide rigorous safety guarantees. Scalability is achieved by restricting safe sets to ellipsoidal shapes, allowing the use of efficient Semidefinite Programming.

Conclusion

While the framework offers a scalable path to safe learning-based control, some limitations remain. The use of ellipsoidal constraints, while efficient, may be overly conservative for complex safe regions. Additionally, the Lipschitz method requires relatively dense data, and the computational overhead of GPs can grow with dataset size. Future work will explore sparse GPs for improved speed and methods to handle measurement noise in real-world sensor data.

Summary updated

BibTeX
@inproceedings{wabersich2017scalable,
  author = {Kim Peter Wabersich and Melanie N. Zeilinger},
  title = {{Scalable synthesis of safety certificates from data with application to learning-based control}},
  booktitle = {ECC},
  year = {2017},
  doi = {10.23919/ecc.2018.8550288},
}
Figure