Abstract
Formal verification of safety-critical systems typically requires precise mathematical models, which are often unavailable for complex or "black-box" controllers. This paper introduces Neural Closure Certificates (NCCs), a data-driven framework for verifying that dynamical systems satisfy liveness and safety properties. By training neural networks to approximate the transitive closure of state transitions and employing Lipschitz-based robustness margins, NCCs provide formal mathematical guarantees for systems where underlying equations are unknown.
Introduction
In safety-critical domains such as autonomous vehicles and surgical robotics, formal proof of correct behavior is essential. Verification is generally categorized into safety ("nothing bad happens") and liveness ("something good eventually happens"). While safety is often addressed via barrier certificates, verifying liveness typically requires "transition invariants" or "closure certificates" derived from explicit mathematical models.
Traditional symbolic verification methods, such as Sum-of-Squares (SOS) optimization, struggle with non-polynomial or black-box systems. Neural Closure Certificates address this gap by using neural networks to represent certificates, allowing for the verification of systems learned from data or controlled by proprietary logic.
Methodology: The NCC Framework
The core of the NCC approach is a certificate function $T(x, y)$ that tracks reachability. For a system to satisfy the transitive closure property, if it can transition from state $x$ to $y$, and from $y$ to $z$, the certificate must encode the reachability of $z$ from $x$.
The framework operates through an iterative process:
- Data Sampling: Transitions $(x, f(x))$ are sampled from the black-box dynamical system.
- Bilinear Reformulation: Logical implications required for the certificate are reformulated into bilinear constraints, enabling stable training using standard optimizers like Adam.
- Formal Verification: To transition from a trained network to a formal proof, the authors utilize the Lipschitz constant of both the system and the network. By satisfying conditions with a robustness margin ($\eta$) on a finite set of points, the property is guaranteed across the entire continuous state space.
Experimental Evaluation
The NCC method was evaluated on three distinct simulated dynamical systems:
- Kuramoto Oscillator: A 1D model of biological/chemical synchronization.
- Two-Room Temperature Model: A 2D system where a controller must avoid unsafe temperature ranges while ensuring "good" ranges are visited.
- Inverted Pendulum: A nonlinear system stabilized by a separate, pre-trained neural network controller.
The approach successfully verified complex $\omega$-regular properties (combinations of safety and persistence) across all cases. Notably, in the Inverted Pendulum study, NCCs verified a system where the controller itself was a "black-box" neural network—a scenario that typically breaks traditional symbolic tools.
Discussion and Future Work
NCCs bridge the divide between black-box deep learning and white-box formal methods. By requiring only samples and a bound on the system's Lipschitz constant, the framework enables verification of a broad class of specifications beyond simple safety.
However, challenges remain. The reliance on the Lipschitz constant means that highly chaotic or discontinuous systems may result in "inconclusive" verification. Furthermore, the "curse of dimensionality" affects sampling efficiency in higher-dimensional state spaces. Future research aims to explore compositional reasoning to scale the method to larger systems and extend the framework to continuous-time dynamics.
Summary updated