TL;DR
This paper introduces an end-to-end reinforcement learning framework that uses transformers to automatically discover analytical (symbolic) Lyapunov functions for complex nonlinear systems. By generating human-readable mathematical expressions rather than "black-box" neural networks, the approach enables millisecond-level formal verification and has successfully identified stability certificates for 10-dimensional systems and previously unsolved power system models.
The Challenge of Proving Stability
In control theory, a Lyapunov function is an "energy-like" scalar function used to prove that a dynamical system is stable. If you can find a function that is always positive and always decreases along the system's trajectories, you’ve certified stability.
However, finding these functions for nonlinear systems is notoriously difficult—often described as more of an "art" than a science. Traditional methods like Sum-of-Squares (SOS) struggle with non-polynomial dynamics and high dimensionality. Recent Neural Lyapunov approaches use deep learning to find these functions, but they suffer from two major flaws:
- Lack of Interpretability: A neural network doesn't tell a control engineer why a system is stable.
- Verification Bottleneck: Formally verifying a neural network's properties is computationally expensive, often taking hours even for small systems.
A Generative, Symbolic Approach
The authors propose a generative framework that treats Lyapunov function discovery as a symbolic translation task, trained entirely from scratch via reinforcement learning.
Key components of the framework include:
- Symbolic Transformer: An encoder-decoder architecture. The encoder takes the system's differential equations (tokenized as mathematical symbols) as input. The decoder generates candidate Lyapunov functions as sequences of symbolic tokens (e.g.,
+,sin,x1). - Risk-Seeking Policy Gradient: Standard RL aims to maximize average performance. Here, the authors use a "risk-seeking" objective that focuses only on the top-performing candidates. Since you only need one valid Lyapunov function to certify a system, this objective is much better aligned with the goal than traditional RL.
- SHGO Falsifier: The framework uses Simplicial Homology Global Optimization (SHGO) to actively search for "counterexamples"—points in the state space where a candidate function fails the Lyapunov conditions. These points are fed back into the training set to "harden" the model.
Key Insights and Results
The model was evaluated on a diverse set of nonlinear dynamical systems ranging from 2 to 10 dimensions, including polynomial systems, classic physics models (like the Van der Pol oscillator), and engineering systems (like a 6D quadrotor and N-bus power systems).
Analytical Simplicity = Verification Speed Because the discovered functions are simple symbolic expressions (like $V = x_1^2 + x_2^2$), SMT solvers can verify them in milliseconds. Neural networks, by contrast, require checking thousands of nonlinear activations, leading to a massive "verification gap." The proposed method routinely achieves verification times of 1-2 milliseconds.
Scalability and Novel Discovery The framework demonstrated significant improvements over state-of-the-art neural and symbolic baselines:
- High-Dimensional Success: Successfully found certificates for a 10-D polynomial system, a feat that causes many SOS and neural methods to time out or fail.
- New Benchmarks: Identified the first known analytical Lyapunov functions for a 2-bus lossy power system (which includes energy losses in transmission lines), providing a new tool for power grid stability research.
- High Success Rate: On a 6D Quadrotor system, the proposed method achieved an 80% success rate, while neural baselines like ANLC and FOSSIL 2.0 failed to find any valid certificates within the time limit.
Limitations and Future Work
While highly effective, the approach has a few limitations:
- Search Space Complexity: As the system dimension increases, the symbolic search space grows exponentially. While the model reached 10D, scaling to 50D or 100D remains a significant challenge.
- Symbolic Library Dependency: The model's success depends on having the "right" building blocks (e.g.,
sin,exp,polynomials) in its token library. If a certificate requires a highly exotic function not in the library, the model won't find it.
Future directions include incorporating physical constants (like gravity or mass) directly as variables to improve generalization, and extending the framework to discover Control Lyapunov Functions (CLFs) and Control Barrier Functions (CBFs) for safety-critical controller design.
Summary updated