Learning-based neural network (NN) control policies have demonstrated impressive empirical performance across a wide range of robotics tasks. However, deploying them in safety-critical applications remains challenging due to the difficulty of obtaining formal stability guarantees. This paper introduces a significant advancement in the formal verification of NN control systems, providing a framework to synthesize and verify NN controllers and observers with Lyapunov stability guarantees. The result is larger certified stable regions and faster computation times than previous state-of-the-art methods.
The Challenge of Verifying Neural Controllers
Traditional control theory relies on Lyapunov functions—scalar functions that act like "energy" levels—to prove that a system will always converge to a stable equilibrium. If a Lyapunov function $V(x)$ can be found such that its value strictly decreases along the system's trajectory, the system is formally guaranteed to be stable within a specific Region of Attraction (ROA).
Finding these functions for nonlinear systems controlled by NNs is notoriously difficult. Existing methods suffer from three main drawbacks:
- Expensive Solvers: Tools like Mixed-Integer Programming (MIP) or Satisfiability Modulo Theories (SMT) are slow and scale poorly to high-dimensional systems.
- Restrictive Formulations: Previous works often required the Lyapunov derivative to be negative across an entire predefined bounding box. For nonlinear systems, this is frequently impossible, resulting in tiny "certified" stable regions even when the controller is highly robust in practice.
- State Feedback Assumptions: Most existing research assumes the controller has access to the exact, full state of the robot. In reality, robots rely on partial, noisy "output feedback" (e.g., from cameras or lidar), requiring an "observer" module. This added complexity has been largely unaddressed in formal NN verification.
A Novel Framework for Synthesis and Verification
To overcome these limitations, the authors propose a three-pronged approach that decouples the training process from the final formal verification:
1. An "Inside-Out" Formulation Instead of enforcing stability over a fixed, rigid box, the authors define the ROA as the intersection of a bounding box and a sublevel set of the Lyapunov function ($V(x) < \rho$). They only require the Lyapunov value to decrease inside this specific set. By reformulating the problem to ignore regions outside the candidate ROA, the optimizer can focus on expanding the stable region where it actually matters, allowing it to grow much larger.
2. Efficient Training via Falsification The framework utilizes a Counter-Example Guided Inductive Synthesis (CEGIS) loop. Crucially, it avoids expensive formal solvers during training. Instead, it employs Projected Gradient Descent (PGD)—a technique common in adversarial machine learning—to rapidly find "counter-examples" where stability is violated. This makes the training phase significantly faster and more flexible.
3. Scalable GPU-Accelerated Verification Once the controller and Lyapunov function are trained, the system uses $\alpha,\beta$-CROWN, a state-of-the-art, GPU-accelerated neural network verifier. Using linear bound propagation and branch-and-bound techniques, it rigorously proves post-hoc that no stability violations exist within the certified ROA. Furthermore, as illustrated in the architecture above, the framework successfully integrates NN-based observers into the stability proof, allowing for formal guarantees even when the system relies on output feedback.
Key Results and Milestones
The framework was evaluated on several dynamical systems, ranging from a classic inverted pendulum to a complex 2D quadrotor using simulated lidar rays.
- Larger Regions of Attraction: In every test case, the new formulation found a strictly larger certified ROA than previous methods. In some instances, the ROA was several times larger than those found by baselines.
- Faster Verification: The decoupling of training and verification yielded massive speedups. For a PVTOL (Planar Vertical Take-Off and Landing) system, the proposed method verified the system in just 217 seconds, compared to 1935 seconds for an MIP-based baseline—a nearly 9x improvement.
- Complexity Milestone: The authors demonstrated the first formal neural certificate for a 2D quadrotor with output feedback (an 8-dimensional system). This system handles non-polynomial lidar observation functions that traditional methods, such as Sum-of-Squares (SOS), cannot process.
Future Directions
While verifying an 8-dimensional output-feedback system is a major step forward, real-world robots often feature dozens of degrees of freedom. Scaling to even higher-dimensional state spaces remains an ongoing challenge. Additionally, future work aims to extend the simplified geometric lidar models to handle raw image data or point clouds, and to incorporate "Robust Lyapunov" functions to account for uncertainties in the underlying physics models.
Summary updated