Efficient Verification and Falsification of ReLU Neural Barrier Certificates

Dejin Ren, Yiling Xue, Taoran Wu, Bai Xue

TL;DR

This paper introduces a novel, necessary and sufficient condition for verifying the safety of continuous-time systems using ReLU neural network barrier certificates. Crucially, their method allows for falsification (proving a certificate is not safe), a capability missing in prior work, and significantly reduces computational complexity by avoiding exhaustive enumeration of system regions.

What Problem Does This Paper Address?

Ensuring the safety of autonomous systems, like self-driving cars or robotic manipulators, is paramount. Barrier certificates offer a mathematical guarantee that a system will remain within safe operating bounds. Recently, neural networks, particularly those with ReLU (Rectified Linear Unit) activation functions, have shown promise in creating these barrier certificates due to their expressive power. However, neural networks are inherently approximate, meaning a learned certificate might appear safe but actually fail under certain conditions. This necessitates rigorous verification methods. Existing methods often rely on assumptions about the derivative of ReLU functions (which are mathematically shaky) or over-approximate conditions, leading to conservative results or an inability to definitively prove a certificate unsafe (falsification). This leaves a critical gap in ensuring the reliability of neural network-based safety guarantees.

Methods

The core contribution is a new condition for verifying positive invariance of a ReLU neural network's 0-superlevel set (the set of states deemed safe by the certificate). This condition states that for every "valid linear region" the neural network partitions the state space into, the system's dynamics must point "inward" towards the safe set. This condition is both necessary and sufficient, meaning it's a perfect test.

The authors then translate this condition into two computational frameworks:

  1. Satisfiability Modulo Theories (SMT) problems: These are logical formulas that can be solved by specialized solvers to determine if a condition holds universally.
  2. Optimization problems: By minimizing a function related to the system dynamics within each valid linear region, they can check if the minimum value is non-negative.

A key algorithmic innovation is the boundary propagation algorithm. This algorithm efficiently enumerates only the necessary valid linear regions that intersect the boundary of the safe set, avoiding the combinatorial explosion of checking all possible regions. This significantly reduces computational cost compared to prior work.

Datasets

The paper evaluates their method on four benchmark systems: Arch3, Complex, Linear4d, and Decay. These systems vary in dimensionality (2D to 6D) and linearity (linear and nonlinear, polynomial and non-polynomial). The neural network architectures used as barrier certificates for these systems are trained using methods described in prior work (Zhao et al., 2020).

Key Insights and Ideas

  • Falsification is Crucial: The ability to falsify a certificate (prove it's unsafe) is as important as verification for building trust in safety-critical systems. Existing methods often can't do this definitively.
  • Avoiding Heaviside Assumption: The proposed method doesn't rely on the mathematically problematic assumption that the derivative of ReLU is a Heaviside step function, leading to more rigorous guarantees.
  • Efficient Region Enumeration: The boundary propagation algorithm is a significant improvement, drastically reducing the number of regions that need to be checked. This makes the approach scalable to higher dimensions.
  • Unified Framework: The condition can be encoded into both SMT and optimization problems, offering flexibility in how verification and falsification are performed.

Key Results

The paper demonstrates that their method successfully verifies or falsifies barrier certificates for all tested cases. In contrast, a leading prior method (Zhang et al., 2023) could only verify a subset of certificates and sometimes failed or returned "unknown" results, especially in higher dimensions. The proposed method also shows superior performance in terms of running time, particularly for complex and high-dimensional systems. For instance, for the "Decay" system with a 6-12-12-1 network, their method took ~31k seconds for enumeration, while the prior method took ~22k seconds for verification alone (and often failed).

Limitations and Future Work

  • Computational Cost: While significantly improved, the enumeration of valid linear regions can still be computationally intensive, especially for very complex systems or certificates with many neurons. The authors note that enumeration time increases with the number of valid linear regions.
  • Non-polynomial Systems: For nonlinear systems, solving the optimization problems can be challenging due to potential non-convexity, which might lead to suboptimal values. While this can still be used for falsification, it can make verification inconclusive (indicated by a "?" in their results).
  • Future Work: The authors suggest extending their work to handle more complex neural network architectures and potentially explore further optimizations for the enumeration process.

Summary updated

BibTeX
@inproceedings{ren2026efficient,
  author = {Dejin Ren and Yiling Xue and Taoran Wu and Bai Xue},
  title = {{Efficient Verification and Falsification of ReLU Neural Barrier Certificates}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i42.40890},
}
Figure