Certifying Lyapunov Stability of Black-Box Nonlinear Systems via Counterexample Guided Synthesis

Chiao Hsieh, Masaki Waga, Kohei Suenaga

TL;DR

This paper introduces a novel method for formally verifying the stability of "black-box" nonlinear systems, meaning systems where the internal dynamics are unknown. By combining a Counterexample-Guided Inductive Synthesis (CEGIS) framework with regional verification and analytic center learning, the authors significantly reduce the number of samples required for stability certification compared to prior work.

What Problem Does This Paper Address?

Ensuring the stability of dynamical systems is crucial for safety-critical applications. Lyapunov's method provides a powerful theoretical tool for this, but it typically requires full knowledge of the system's dynamics (a "white-box" model). In practice, systems are often "black-box," where only input-output behavior or simulation results are available. Accurately modeling these systems is challenging, especially with the rise of learning-based controllers that further obscure internal workings. Existing methods for black-box systems often demand an excessive number of samples to provide formal guarantees, making them computationally prohibitive. This paper aims to bridge this gap by developing a method that can certify Lyapunov stability for black-box systems using significantly fewer samples.

Methods

The core of the proposed method is a Counterexample-Guided Inductive Synthesis (CEGIS) framework, adapted for Lyapunov function synthesis. Here's a breakdown of the key components:

  • Black-Box Regional Verification: Instead of trying to verify stability across the entire state space at once, the authors propose a "regional verification condition." This condition checks stability properties within specific regions of the state space, using a limited set of samples within each region. This allows for more efficient sampling and verification.
  • Counterexample-Guided Sampling: The CEGIS framework iteratively refines its understanding of the system. When the verifier finds a region where stability is not proven, it generates "counterexamples" (states where the Lyapunov condition might be violated). These counterexamples are then used to guide the sampling process, focusing on areas that are most informative for proving or disproving stability. This "lazy sampling" is more efficient than uniformly sampling the entire state space.
  • Analytic Center-Based Learner: To synthesize candidate Lyapunov functions, the authors employ an analytic center-based learner. This learner, operating within a convex hypothesis space, efficiently proposes candidate functions that are compatible with the current set of samples. The convexity of the hypothesis space is crucial for ensuring the termination of the CEGIS algorithm.
  • Delaunay Triangulation: To efficiently manage the regional verification, the authors use Delaunay triangulation to partition the state space into simplices (regions). This method generates regions with minimal overlap and allows for efficient retrieval of samples within each region.
  • Termination Guarantee: The CEGIS algorithm is guaranteed to terminate. This is achieved by reducing the problem to a convex feasibility problem, which can be solved using the Analytic Center Cutting-Plane Method (ACCPM). The verifier acts as a separating oracle for ACCPM, ensuring that the algorithm either finds a Lyapunov function or proves its absence within the hypothesis space.

Datasets

The paper evaluates its approach on two groups of benchmarks:

  • Trans: This group includes four locally stable benchmarks, some involving transcendental functions. Specifically mentioned are the Van der Pol oscillator, unicycle path following, inverted pendulum, and Stanley path following controller. These are taken from existing literature ([21, 36]).
  • Polys: This group consists of eight benchmarks with globally stable systems and polynomial dynamics, selected from the FOSSIL benchmarks ([1]).

The paper does not introduce new benchmark datasets.

Key Insights and Ideas

  • Regional Verification is Key: The most significant insight is that not all regions of the state space require the same sampling density. By focusing verification efforts on specific regions and using counterexamples to guide sampling, the method drastically reduces computational cost.
  • CEGIS for Black-Box Stability: Adapting the CEGIS framework, which is common in formal verification, to the problem of Lyapunov stability for black-box systems is a powerful approach. It elegantly handles the iterative refinement needed for unknown dynamics.
  • Convexity for Termination: Ensuring the hypothesis space of Lyapunov candidates is convex is critical for guaranteeing the termination of the CEGIS algorithm. This allows the problem to be framed as a convex feasibility problem.
  • Analytic Center for Efficient Learning: Using the analytic center of the feasible region for candidate generation is an efficient way to propose "good" candidates that are likely to be valid or quickly lead to counterexamples.

Key Results

  • Significant Sample Reduction: The proposed method achieves a dramatic reduction in the number of samples required. For the Van der Pol benchmark, it uses hundreds of samples compared to millions in prior work ([36]). In some cases, the sample reduction is as high as 99.99%.
  • Formal Guarantees: The algorithm provides formal guarantees of Lyapunov stability certification. It either synthesizes a d-provable Lyapunov function or proves the absence of such a function within the hypothesis space.
  • Scalability Challenges: The paper acknowledges that the number of samples can grow rapidly with system dimension and the size of the region of interest (ROI). This is a known challenge for black-box approaches.
  • Successful Certification: The prototype successfully synthesized Lyapunov functions for 3 out of 4 "Trans" benchmarks and 7 out of 8 "Polys" benchmarks (for smaller ROIs). For cases where the algorithm terminated due to time limits, the last candidate was still validated as a true Lyapunov function.

Limitations and Future Work

  • Lipschitz Bound Assumption: The method relies on having known Lipschitz bounds for the system dynamics. The authors suggest integrating Lipschitz learning methods ([22, 34]) to address this.
  • Arbitrary Sampling: The current approach assumes samples can be collected arbitrarily. Future work could explore methods that don't require arbitrary state exploration, which can be costly or impossible in real systems.
  • Scalability: As noted, scalability with system dimension and ROI size remains a challenge. Future directions include exploring GPU acceleration for massive parallelization and identifying only reachable regions of the state space.
  • General Systems and Templates: Extending the method to more general systems (e.g., switched, hybrid) and exploring different Lyapunov function templates (e.g., piecewise affine, rational polynomials) are suggested.
  • Basin of Attraction: Finding the basin of attraction, beyond just stability, is another area for future research.

Summary updated

BibTeX
@inproceedings{hsieh2025certifying,
  author = {Chiao Hsieh and Masaki Waga and Kohei Suenaga},
  title = {{Certifying Lyapunov Stability of Black-Box Nonlinear Systems via Counterexample Guided Synthesis}},
  booktitle = {HSCC},
  year = {2025},
  doi = {10.1145/3716863.3718047},
}
Figure