TL;DR
This paper introduces a novel Counterexample-Guided Inductive Synthesis (CEGIS) framework to formally certify the Lyapunov stability of black-box nonlinear dynamical systems. By directly bounding the Lie derivative using regional verification and adaptive "lazy" sampling, the proposed method drastically reduces sample complexity—requiring less than 0.01% of the samples used by previous state-of-the-art black-box approaches—while providing rigorous non-statistical guarantees and algorithmic termination.
What Problem Does This Paper Address?
Proving that a control system is stable is a foundational requirement for safety-critical applications like robotics, aerospace, and autonomous driving. Mathematically, this is often achieved by finding a Lyapunov function—a generalized "energy" function that strictly decreases along the system's trajectories, implying the system will eventually settle into an equilibrium.
Traditionally, automated tools for finding Lyapunov functions require a "white-box" model: an explicit, closed-form set of ordinary differential equations (ODEs) describing the system dynamics. However, real-world systems are rarely clean white boxes; they frequently involve complex simulation code, empirical look-up tables, or black-box neural network controllers.
To handle these black-box systems, recent data-driven methods have combined uniform grid sampling ($\delta$-sampling) with Lipschitz continuity bounds to guarantee stability without an explicit model. The catch? The number of samples required scales exponentially, quickly becoming astronomical. For instance, a prior state-of-the-art method required 9 million evenly spaced samples just to prove the stability of a simple 2D system (the Van der Pol oscillator). This paper tackles this sample-inefficiency bottleneck.
Methods
The authors propose a framework based on Counterexample-Guided Inductive Synthesis (CEGIS), which structures the search for a Lyapunov function as an iterative game between a Learner and a Verifier.
Here is how the loop works:
- The Learner: Proposes a candidate Lyapunov function ($V_\theta$) based on a fixed template (e.g., quadratic or transcendental functions like $\tanh$). It uses the Analytic Center Cutting-Plane Method (ACCPM) to ensure that the candidate satisfies stability conditions for all currently collected data points.
- The Verifier: Checks if the candidate is valid across the entire region of interest. Instead of checking a massive uniform grid, the verifier constructs a Delaunay triangulation using the existing data points as vertices, partitioning the state space into simplices (triangles in 2D, tetrahedrons in 3D).
- Regional Verification: For each simplex, the verifier uses a Satisfiability Modulo Theories (SMT) solver (specifically
dReal) to check a novel regional verification condition. By exploiting local Lipschitz constants, it computes a rigorous upper bound on the Lie derivative ($\nabla V \cdot f(x)$) within that specific simplex. - Refinement: If the verifier finds a region where stability cannot be proven, it generates a counterexample state. The system is sampled at this new state, the sample is added to the dataset, the triangulation is refined locally ("lazy sampling"), and the loop repeats.
As shown in the comparison below, this is the first approach to combine black-box verification with guaranteed algorithmic termination:
Datasets
The authors evaluated their prototype tool, pricely, on two distinct groups of benchmarks:
- Trans (Transcendental Dynamics): Locally stable systems containing non-polynomial terms, including the Van der Pol oscillator, a unicycle path-following robot, an inverted pendulum stabilized by a neural network controller, and a Stanley path-following vehicle controller.
- Polys (Polynomial Dynamics): Eight globally stable nonlinear polynomial systems adapted from the FOSSIL benchmark suite (consisting of both 2D and 3D systems), evaluated across varying radii of the Region of Interest (ROI).
Key Insights and Ideas
- Directly Approximating the Lie Derivative: Instead of trying to learn the unknown black-box vector field $f(x)$ and then computing the Lie derivative, the authors directly bound the Lie derivative expression ($\nabla V(x) \cdot f(x)$). This structural shift yields much tighter mathematical bounds.
- Lazy, Non-Uniform Sampling: Not all regions of a state space are equally difficult to verify. By using counterexamples to drive sampling, the algorithm automatically places dense samples only where the stability proof is "hard," leaving stable or easily bounded regions sparsely sampled.
- Simplices as Natural Covers: Using Delaunay triangulation allows the verifier to create a tight, non-overlapping cover of the state space using the sample points themselves, avoiding the conservative overlaps required by traditional ball-covering ($\delta$-ball) methods.
Key Results
- Massive Sample Reduction: For the 2D Van der Pol oscillator, the framework successfully certified stability using just 479 samples and 936 simplices. Compared to the 9 million samples required by the previous grid-sampling approach, this represents a reduction to less than 0.01% of the data.
- Fast Execution: Most 2D and 3D benchmarks were certified in seconds to minutes. For example, the unicycle path-following system was verified in 25.21 seconds using 9,825 samples.
- Guaranteed Termination: Thanks to the convex formulation of the learner's hypothesis space and the ACCPM optimization strategy, the algorithm is mathematically guaranteed to terminate, either outputting a valid Lyapunov function or proving that none exists within the chosen template space.
Limitations and Future Work
Despite the impressive sample efficiency gains, the authors highlight several limitations:
- The Curse of Dimensionality: While the method excels at 2D and 3D systems, the number of simplices required for Delaunay triangulation scales poorly to higher dimensions.
- Assumption of Known Lipschitz Bounds: The method relies on knowing a global or regional Lipschitz constant ($L$) for the black-box system. While $L$ can be estimated empirically, an incorrect underestimation would break the formal guarantees.
- Arbitrary State Sampling: The CEGIS loop assumes the verifier can query the black box at any arbitrary state vector. In real physical hardware, resetting a system to an exact, arbitrary state can be difficult or impossible.
Future research directions include restricting sampling to only reachable states, integrating online Lipschitz learning, and extending the framework to hybrid or switched systems.
Summary updated