TL;DR
This paper introduces a novel, mathematically rigorous framework to both verify and—for the first time—falsify safety barrier certificates represented by ReLU neural networks. By leveraging the Clarke tangent cone and an efficient boundary propagation algorithm, the approach eliminates the exponential complexity bottlenecks of prior methods, enabling reliable safety verification for high-dimensional, non-differentiable systems.
What Problem Does This Paper Address?
In safety-critical continuous-time systems like autonomous driving and robotic manipulation, ensuring that a system never enters an "unsafe set" is paramount. Barrier certificates are mathematical tools used to prove safety by defining a secure, invariant region of the state space.
Recently, researchers have used Rectified Linear Unit (ReLU) neural networks to learn these barrier certificates due to their ability to approximate complex shapes. However, because neural networks are approximate, they require rigorous verification before deployment.
Verifying ReLU neural barrier certificates is notoriously difficult for two reasons:
- Non-differentiability: ReLU functions have sharp corners, meaning traditional verification methods relying on smooth derivatives (Lie derivatives) break down.
- Computational Complexity: Existing exact verification methods try to analyze every possible intersection combination of the neural network's linear regions, leading to an exponential explosion in computation time.
Furthermore, no existing method has been capable of falsification—meaning if a neural barrier certificate is incorrect, prior tools couldn't definitively find a counterexample to prove it.
Methods
The authors treat the ReLU neural network as a Continuous Piecewise Linear Function (CPLF), which divides the state space into a finite number of polyhedral linear regions.
To handle the non-smooth boundaries without making unrigorous assumptions, the paper utilizes the Clarke tangent cone rather than the more common Bouligand tangent cone. As illustrated below, the Clarke tangent cone avoids strict inequalities, allowing the safety conditions to be encoded exactly into standard optimization frameworks.
The authors propose a three-step verification/falsification algorithm:
- Initial Region Search: Uses bisection and Interval Bound Propagation (IBP) to find a starting valid linear region on the boundary of the safe set.
- Boundary Propagation: Iteratively expands outward to enumerate all neighboring valid linear regions by checking shared facets, assuming the boundary is connected.
- SMT/Optimization Encoding: Translates the safety condition within each region into either a Satisfiability Modulo Theories (SMT) formula (solved via Z3 or dReal) or an optimization problem. If an optimization returns a negative value, a counterexample is found, successfully falsifying the certificate.
Datasets
The method was evaluated on four benchmark continuous-time systems representing different dimensionalities and complexities:
- Arch3: A standard 2D nonlinear polynomial benchmark system.
- Complex: A newly designed 3D nonlinear, non-polynomial system featuring trigonometric and exponential terms.
- Linear4d: A 4D linear system.
- Decay: A high-dimensional 6D nonlinear system exhibiting decay in each component to test scalability.
Key Insights and Ideas
- The Power of the Clarke Tangent Cone: Prior state-of-the-art methods used the Bouligand tangent cone, which introduces strict inequalities (e.g., $A_i x < d_i$). Because standard optimization solvers cannot handle strict inequalities, previous methods had to relax their conditions, losing the ability to falsify certificates. The Clarke tangent cone uses non-strict inequalities, making exact optimization tractable.
- Dramatically Fewer Regions to Check: Instead of checking all potential intersection combinations of linear regions (which scales exponentially at $2^n - 1$), the proposed boundary propagation algorithm only enumerates the actual valid linear regions intersecting the boundary. This drastically reduces the computational burden.
Key Results
The proposed method was compared against the previous state-of-the-art exact verification method (Zhang et al. 2023).
- First to Falsify: The algorithm successfully identified and falsified invalid barrier certificates (marked as $\times$ in the results), providing a critical debugging tool for safe control.
- Immunity to Memory Exhaustion: While the baseline method crashed due to memory exhaustion on larger network architectures in the Complex, Linear4d, and Decay systems, the proposed method successfully verified or falsified every single case.
- Significant Speedups: The boundary propagation approach consistently executed faster, especially as system dimensionality increased. For instance, on the 4D linear system with a 4-48-$\sigma$-1 architecture, the proposed method completed in under 10,000 seconds, while the baseline crashed.
The valid linear regions discovered during the boundary propagation phase for the Arch3 system are visualized below:
Limitations and Future Work
- Connected Boundary Assumption: The boundary propagation algorithm relies on the assumption that the boundary of the 0-superlevel set ($\partial C$) is connected. If the boundary consists of multiple disjoint components, the algorithm might fail to find all valid linear regions.
- Non-convex Optimization: For highly nonlinear systems, the underlying optimization problems can be non-convex. While finding a negative feasible value guarantees falsification, a local solver returning a non-negative value cannot completely guarantee verification without relying on heavier SMT solvers like dReal.
Summary updated