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

Exact Verification of ReLU Neural Control Barrier Functions

Hongchao Zhang, Junlin Wu, Yevgeniy Vorobeychik, Andrew Clark

Introduction

In the deployment of autonomous systems, such as unmanned aerial vehicles and self-driving cars, safety is a non-negotiable requirement. Control Barrier Functions (CBFs) have emerged as a primary mathematical tool for ensuring safety. By defining a safe region within the system's state space, a CBF acts as a "mathematical fence": as long as the function remains non-negative, the system is guaranteed to remain within its safe boundaries.

Recently, Neural Control Barrier Functions (NCBFs) have gained traction because neural networks can represent much more complex safe regions than traditional polynomial functions. However, the use of Rectified Linear Unit (ReLU) activation functions introduces a significant challenge. ReLU networks are piecewise linear, resulting in "corners" where the function is non-differentiable. Because traditional safety proofs rely on gradients and smooth calculus, they often fail at these points. Existing verification methods, such as Satisfiability Modulo Theory (SMT) solvers, frequently struggle with scalability or produce overly conservative results.

Methodology

This paper introduces a novel framework for the exact verification of ReLU-based NCBFs. The approach moves from a coarse-grained search to an exact mathematical proof through a four-step pipeline:

1. Nonsmooth Safety Conditions

To address the non-differentiability of ReLU networks, the authors utilize a generalized version of Nagumo’s Theorem. This theoretical foundation allows for the definition of necessary and sufficient safety conditions even when the NCBF boundary is nonsmooth or contains sharp edges.

2. State-Space Partitioning

Leveraging the fact that ReLU networks are piecewise linear, the framework decomposes the NCBF into distinct "activation regions." In each region, the neural network behaves as a simple linear function, making the verification of safety properties more tractable.

3. Efficient Pruning

Checking every activation region in a large network is computationally prohibitive. To mitigate this, the authors employ Interval Bound Propagation (IBP) and Linear Relaxation (LiRPA). These techniques allow the system to quickly discard regions of the state space that are far from the safety boundary ($b(x)=0$), focusing computational resources only where they are needed most.

4. Nonlinear Programming (NLP)

For the remaining critical regions and their intersections, the framework solves optimization problems to determine if a valid control input exists to maintain safety. For systems with linear dynamics, these problems simplify into highly efficient linear or bilinear programs.

Experimental Evaluation

The proposed method was evaluated against several standard control benchmarks, ranging from low-dimensional systems to high-dimensional challenges:

  • Darboux System: A 2D nonlinear polynomial system.
  • Obstacle Avoidance (OA): A 3D Dubins-style aircraft model navigating obstacles.
  • Spacecraft Rendezvous (SR): A 6D system involving complex satellite maneuvers.
  • hi-ord8: An 8-dimensional high-order system designed to test the limits of scalability.

Key Results

The experimental results demonstrate a significant leap in performance over existing methods. On the Darboux system, the proposed framework verified a network with 1024 neurons in approximately 108 seconds. In comparison, state-of-the-art SMT solvers like dReal and Z3 timed out after three hours on networks with as few as 64 neurons. Furthermore, the method successfully verified the 8D system, demonstrating a level of scalability rarely seen in exact verification tools, which typically suffer from the "curse of dimensionality."

Discussion and Insights

The research highlights that ignoring non-differentiable points in NCBFs is not merely a theoretical concern; it can lead to real-world safety violations where a controller incorrectly assumes a state is safe. By focusing strictly on the 0-level set (the boundary), the framework drastically reduces the computational load. Additionally, this approach decouples the control policy from the verification process, allowing any controller that respects the NCBF's constraints to be guaranteed safe.

While the method represents a major advancement, limitations remain. The number of activation sets still grows with state dimension and network size, and the current implementation is optimized for control-affine systems. Future work may involve extending these exact logic techniques to other activation functions like Sigmoid or Tanh, which would require new mathematical approximation strategies.

Summary updated

BibTeX
@inproceedings{zhang2023exact,
  author = {Hongchao Zhang and Junlin Wu and Yevgeniy Vorobeychik and Andrew Clark},
  title = {{Exact Verification of ReLU Neural Control Barrier Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=1h2TAUEfc4},
}
Figure