Abstract
Ensuring the safety of autonomous systems typically requires precise mathematical models to construct Barrier Certificates. However, real-world dynamics are often complex or unknown, and data-driven alternatives frequently struggle with the gap between discrete observations and continuous-time reality. This paper presents a model-free framework for synthesizing neural barrier certificates using a finite set of system trajectories. By integrating the "scenario approach" with a novel tightening parameter based on Lipschitz constants, the method provides formal Probably Approximately Correct (PAC) safety guarantees for continuous-time systems without requiring an explicit model or dense state-space sampling.
Introduction
In the field of control theory, ensuring that a system—such as a drone or a robotic arm—never enters an "unsafe" state is a fundamental requirement. The standard formal method for this is the use of Barrier Certificates. These are scalar functions that define a boundary between safe and unsafe regions of the state space. If a certificate can be found that satisfies specific Lyapunov-like inequalities, the system is mathematically guaranteed to remain safe.
Traditionally, synthesizing these certificates requires a closed-form mathematical model of the system's physics. In practice, such models are often unavailable or too complex to be useful. While data-driven methods have emerged to learn these certificates from observations, they face two critical hurdles: the discretization gap (where safety at discrete time steps does not guarantee safety in the intervals between them) and the curse of dimensionality (where sampling the entire state space becomes computationally impossible as system variables increase).
Methodology
The authors propose a framework that utilizes Neural Networks as barrier certificates, trained directly on system trajectories rather than isolated state pairs. This approach leverages the underlying physical flow of the system implicitly.
1. Trajectory-based Learning and the Scenario Approach
Instead of treating data as a collection of random points, the algorithm learns from entire system paths. To provide formal guarantees, the authors employ the scenario approach. By identifying a "compression set"—a small subset of trajectories that define the safety boundary—they can calculate PAC bounds. This allows the framework to state with high confidence (e.g., 99%) that the probability of a future, unseen trajectory violating safety is below a specific threshold.
2. Bridging the Discretization Gap
To ensure safety in continuous time using only discrete data points, the authors introduce a tightening parameter ($d$). This parameter acts as a safety margin. By enforcing a stricter requirement on the discrete samples, the method accounts for the maximum possible deviation the system could undergo between samples. This relationship is formalized through the Lipschitz constants of the system and the neural network, ensuring that if the system is "safe enough" at $t_k$ and $t_{k+1}$, it is guaranteed safe for all $t \in [t_k, t_{k+1}]$.
3. Automated Synthesis Algorithms
The framework is implemented via two primary algorithms:
- Algorithm 1: Uses an inexact subgradient method to optimize the neural barrier certificate and identify the compression set.
- Algorithm 2: Employs a sampling-and-discarding loop to iteratively refine the certificate if the initial safety margins are not met, ensuring the final result meets the desired risk levels.
Experimental Results
The method was evaluated against state-of-the-art (SOTA) state-pair-based methods using standard dynamical benchmarks.
2D Jet Engine Model
In a nonlinear jet engine simulation, the proposed method demonstrated significant efficiency gains. It achieved a comparable safety confidence level in only 367 seconds using 1,000 trajectories. In contrast, the leading SOTA method required over 5,100 seconds and more than 257,000 state samples to reach a similar conclusion.
4D Nonlinear System
To test scalability, the authors applied the framework to a higher-dimensional system. Traditional methods often fail here because they attempt to cover the entire state space. The competing state-pair method returned an uninformative result (confidence near zero) due to the dimensionality. However, the trajectory-based approach successfully provided a risk level of $\epsilon \approx 0.21$ using only 100 samples, demonstrating its ability to scale by focusing on actual system paths rather than the entire theoretical state space.
Discussion and Limitations
While the framework offers a robust path toward model-free verification, it relies on the estimation of Lipschitz constants. If these constants are estimated too conservatively, the tightening parameter $d$ may become too large, making the safety requirements impossible to satisfy. Furthermore, while the sample complexity is lower than grid-based methods, achieving extremely low risk levels (e.g., $10^{-6}$) still requires a substantial number of trajectories.
Conclusion
This research provides a rigorous bridge between data-driven learning and formal continuous-time verification. By focusing on trajectories and employing the scenario approach with a mathematical tightening margin, the authors demonstrate that it is possible to certify the safety of complex, nonlinear systems without a prior model. Future work aims to extend this to "co-design" scenarios, where the controller and the barrier certificate are synthesized simultaneously to optimize both performance and safety.
Summary updated