Abstract
This research introduces a formal framework for synthesizing and verifying Stochastic Neural Control Barrier Functions (SNCBFs), addressing the critical need for safety guarantees in autonomous systems operating under stochastic disturbances. By utilizing stochastic calculus (Tanaka’s formula) and efficient verification-in-the-loop (VITL) architectures, the proposed method enables the creation of neural-network-based safety filters with provable set-invariance properties for both smooth and non-smooth (ReLU) architectures.
Introduction
In the domain of autonomous systems, safety is fundamentally defined as set invariance: ensuring a system remains within a designated safe region of its state space. Control Barrier Functions (CBFs) serve as mathematical safety filters, overriding control inputs that threaten to violate these boundaries. However, applying CBFs to neural networks in stochastic environments presents two major challenges: the inherent noise in real-world dynamics (modeled as Stochastic Differential Equations) and the non-smoothness of popular activation functions like ReLU, which complicates formal derivative-based proofs.
Methodology
The authors propose two distinct frameworks to bridge the gap between neural network flexibility and formal safety verification. The general training procedure involves optimizing network parameters while satisfying safety constraints across the state space.
Smooth SNCBFs
For networks employing smooth activation functions (e.g., Softplus, Tanh), the framework utilizes scenario optimization. Safety constraints are enforced at sampled points across the state space. To guarantee safety in the regions between samples, the authors calculate Lipschitz bounds for the network, its Jacobian, and its Hessian. This approach ensures that if the network satisfies safety criteria at sample points, it remains safe within a calculated radius, effectively covering the entire continuous state space.
ReLU SNCBFs and Verification-In-The-Loop
The non-differentiability of ReLU at zero necessitates a different approach. The authors employ Tanaka’s formula from stochastic calculus to derive a "local time" for the process, establishing a valid lower bound for the barrier function's evolution despite non-smoothness.
A key component of this framework is the Verification-In-The-Loop (VITL) process. An iterative verifier searches for counterexamples—states where safety might be violated. If a counterexample is identified, it is integrated into the training dataset, and the model is retrained. This process exploits the piecewise-linear nature of ReLU networks, transforming complex verification tasks into simpler linear and nonlinear programs solvable by SMT solvers.
Experimental Evaluation
The proposed methods were evaluated on three benchmarks:
- Inverted Pendulum: A 2D nonlinear system for testing smooth SNCBFs.
- Darboux System: A nonlinear polynomial system for validating the ReLU SNCBF framework.
- Unicycle Model: A 3D model simulated in the CARLA environment, involving a vehicle navigating safely around a pedestrian.
Results and Discussion
The SNCBF approach demonstrated significant improvements over existing baselines, such as Fault-Tolerant SNCBFs. In the unicycle model, the smooth SNCBF achieved a 72.5% coverage of the safe region, a substantial increase from the 14.8% achieved by the baseline. Furthermore, the ReLU verification process proved highly efficient; for the Darboux system, the verifier could analyze the entire state space in approximately 0.6 seconds.
The study highlights a trade-off between coverage and speed: smooth SNCBFs typically yield larger safe regions but require longer training times, whereas ReLU SNCBFs offer rapid verification and training at the cost of more conservative safe sets.
Conclusion
This work provides a rigorous mathematical foundation for non-smooth barrier functions in stochastic environments. By moving away from "smoothing" heuristics and toward formal verification with Lipschitz constraints, the authors demonstrate that neural networks can be transformed from "black boxes" into predictable, verifiably safe components of autonomous systems. Future research will focus on extending these guarantees to deeper multi-layer architectures and higher-dimensional robotic tasks.
Summary updated