Scalable Verification of Neural Control Barrier Functions Using Linear Bound Propagation
Nikolaus Vertovec, Frederik Baymler Mathiesen, Thom Badings, Luca Laurenti, Alessandro Abate
TL;DR
This work tackles the bottleneck of verifying neural control barrier functions (CBFs) for safety in nonlinear control systems. It replaces expensive SMT-based nonlinear reasoning with a scalable framework that derives linear upper and lower bounds on the CBF condition by extending linear bound propagation (LBP) to network gradients and coupling these with McCormick relaxations, yielding a linear surrogate $\phi_{\mathrm{linear}}$ whose satisfaction implies a valid CBF. The method supports arbitrary control-affine dynamics and a wide range of activations, and introduces a parallelizable, adaptive simplicial refinement to reduce conservatism. Experimental results show substantial speedups over SMT-based verification and the ability to certify larger neural CBFs across multiple benchmarks, including the incorporation of control input terms in the invariance condition. This framework advances practical safety certification for neural CBFs and opens paths toward certificates for reachability and avoidance.
Abstract
Control barrier functions (CBFs) are a popular tool for safety certification of nonlinear dynamical control systems. Recently, CBFs represented as neural networks have shown great promise due to their expressiveness and applicability to a broad class of dynamics and safety constraints. However, verifying that a trained neural network is indeed a valid CBF is a computational bottleneck that limits the size of the networks that can be used. To overcome this limitation, we present a novel framework for verifying neural CBFs based on piecewise linear upper and lower bounds on the conditions required for a neural network to be a CBF. Our approach is rooted in linear bound propagation (LBP) for neural networks, which we extend to compute bounds on the gradients of the network. Combined with McCormick relaxation, we derive linear upper and lower bounds on the CBF conditions, thereby eliminating the need for computationally expensive verification procedures. Our approach applies to arbitrary control-affine systems and a broad range of nonlinear activation functions. To reduce conservatism, we develop a parallelizable refinement strategy that adaptively refines the regions over which these bounds are computed. Our approach scales to larger neural networks than state-of-the-art verification procedures for CBFs, as demonstrated by our numerical experiments.
