NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SEEV: Synthesis with Efficient Exact Verification for ReLU Neural Barrier Functions

Hongchao Zhang, Zhizhen Qin, Sicun Gao, Andrew Clark

Ensuring the safety of autonomous systems—from self-driving cars to surgical robots—is one of the most significant hurdles in modern AI. While Neural Control Barrier Functions (NCBFs) offer a powerful way to define "safe zones" for complex nonlinear systems, proving that these neural networks are actually safe everywhere is a computational nightmare.

In their NeurIPS 2024 paper, researchers from Washington University in St. Louis and UC San Diego introduce SEEV (Synthesis with Efficient Exact Verification), a framework that co-designs the training and verification of these safety certificates to make formal guarantees practical for higher-dimensional systems.

TL;DR

SEEV significantly speeds up the formal verification of neural-network-based safety controllers by training them to have simpler boundaries and using a hierarchical "easy-to-hard" verification strategy. This approach allows for exact safety proofs in seconds for systems that previously caused state-of-the-art verifiers to time out after hours.

What Problem Does This Paper Address?

To guarantee safety, engineers often use Control Barrier Functions (CBFs), which act like a "safety shield" around a system's operating state. If the system approaches an unsafe region, the CBF enforces a control action to push it back. Using ReLU neural networks to represent these functions (NCBFs) allows us to handle very complex systems, but it introduces a massive verification problem.

Because ReLU networks are piecewise-linear, the "boundary" between safe and unsafe is actually composed of thousands of tiny linear segments (hyperplanes and hinges). To provide an exact safety guarantee, a verifier must check every single one of these segments. As the network gets deeper or the system's dimensions increase, the number of segments explodes, making traditional verification tools (like dReal or Z3) prohibitively slow.

Methods

SEEV tackles this through two complementary innovations:

  1. Boundary Activation Regularizer ($L_B$): During the synthesis (training) phase, the authors introduce a novel regularizer. It penalizes the "dissimilarity" of activation patterns along the safety boundary. Essentially, it encourages the neural network to use the same linear logic for large patches of the boundary rather than fragmenting it into thousands of tiny, unique pieces.
  2. Efficient Exact Verification: The verification process is split into two stages, as shown in the overview below:
  3. Neural Breadth-First Search (NBFS): Instead of searching the entire state space, SEEV uses an LP-based search to efficiently crawl along and enumerate only the segments that actually touch the safety boundary.
  4. Hierarchical Verification: For each segment, SEEV first checks "sufficient conditions"—fast, conservative approximations. If a segment passes these, it's certified safe. Only if these fail does the algorithm move to expensive, exact nonlinear programming.
Figure 1: SEEV: Synthesis with Efficient Exact Verifier for ReLU NCBF

Datasets

The authors evaluated SEEV on four benchmark nonlinear systems:

  • Darboux: A 2D polynomial system.
  • Obstacle Avoidance (OA): A 3D model of a UAV navigating around a tree trunk.
  • Spacecraft Rendezvous (SR): A 6D system modeling a "chaser" satellite approaching a target.
  • hi-ord8: An 8th-order high-dimensional system used specifically to test scalability.

Key Insights and Ideas

  • Co-design is Essential: The most important takeaway is that verification shouldn't be an afterthought. By training the model to be "verification-friendly" (via the $L_B$ regularizer), the authors reduced the number of boundary segments in the Spacecraft model from over 6,000 to just 600 without losing any safety performance.
  • Most Segments are "Easy": The hierarchical approach works because the vast majority of boundary segments are obviously safe. By using interval arithmetic and simple heuristics to clear the easy cases, the verifier can focus its heavy computational resources on the few truly ambiguous segments.
  • Counterexample Guidance: SEEV uses a "Counterexample-Guided Inductive Synthesis" (CEGIS) loop. If the verifier finds a "leak" in the safety shield, it adds that specific point back to the training set, forcing the network to fix the hole in the next iteration.

Key Results

SEEV demonstrates a massive leap in efficiency compared to existing baselines:

  • Speedup: In the 8D hi-ord8 case, SEEV completed verification in roughly 22 seconds. Baselines like dReal and Z3 failed to finish within a 3-hour limit.
  • Scalability: For the Darboux system, SEEV was over 100x faster than previous exact verification methods.
  • Reliability: In tests across different network architectures, SEEV achieved a much higher success rate in generating verifiably safe controllers compared to standard training methods.
Figure 2: Overview of the Efficient Exact Verifier for ReLU NCBFs

Limitations and Future Work

While SEEV pushes the boundary to 8 dimensions, the "curse of dimensionality" still looms for even larger systems (e.g., 20+ dimensions). Additionally, the current framework is specifically tailored to ReLU networks because it exploits their piecewise-linear nature. Extending these exact guarantees to other popular activation functions like Tanh or Swish remains an open, and much more difficult, challenge.

For more details, you can find the full paper and code at https://github.com/HongchaoZhang-HZ/SEEV.

Summary updated

BibTeX
@inproceedings{zhang2024seev,
  author = {Hongchao Zhang and Zhizhen Qin and Sicun Gao and Andrew Clark},
  title = {{SEEV: Synthesis with Efficient Exact Verification for ReLU Neural Barrier Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=nWMqQHzI3W},
}
Figure