Abstract
Stability analysis plays a crucial role in studying the behavior of dynamical systems with theoretical and engineering applications. Among various kinds of stability, the stability of equilibrium points is of the greatest importance which is mainly studied by Lyapunov's stability theory. This theory requires finding a function with specified properties. Except for a few simple examples, there is no straightforward constructive algorithm to find a Lyapunov function for an arbitrary dynamical system. The goal of this work is proposing a simple yet effective way to approximate this function using deep learning tools.
Introduction
In engineering and physics, determining the stability of a dynamical system—its ability to return to equilibrium after a perturbation—is a fundamental challenge. Lyapunov’s stability theory provides a rigorous framework for this analysis. If a scalar function $V(x)$ (a Lyapunov function) can be found such that it is positive definite and its time derivative $\dot{V}(x)$ is negative definite, the system is guaranteed to be stable.
However, finding $V(x)$ for non-linear systems is notoriously difficult, often relying on manual derivation and domain-specific intuition. This work introduces DELF (Deep Lyapunov Function), which utilizes deep neural networks and stochastic gradient descent (SGD) to automatically search for Lyapunov functions, offering a scalable approach for complex dynamical systems.
Methodology
DELF parameterizes the candidate Lyapunov function $\hat{V}(x; \theta)$ as a Multi-Layer Perceptron (MLP). The network is trained using a custom loss function that enforces the mathematical requirements of stability:
- Positive Definiteness: $V(x) > 0$ for all $x \neq 0$.
- Negative Definiteness of the Derivative: $\dot{V}(x) = \nabla_x V^T f(x) < 0$.
To prevent the model from collapsing to a trivial zero solution, the loss function employs hinge-loss style margins. The optimization uses SGD with points sampled from the state space. The authors found that "center-concentrated" sampling, which focuses on the area nearest the equilibrium point, improves convergence.
Experimental Results
The DELF framework was evaluated on several synthetic 2D and 3D dynamical systems, including damped pendulums and non-linear coupled differential equations.
For stable systems, DELF successfully learns functions that satisfy the Lyapunov criteria. As illustrated in the figure above, the training process shows $V$ (green) remaining positive while $\dot{V}$ (blue) converges to a negative value. The resulting heatmaps demonstrate clear basins of attraction around the equilibrium point.
In contrast, for unstable systems, the optimization fails to converge to a valid Lyapunov function. This behavior provides a strong heuristic indicator of system instability.
Discussion and Insights
A key finding of this study is the importance of inductive bias in the network architecture. The use of polynomial activation functions (degrees 2 and 3) proved more effective than standard activations like ReLU, as many physical systems naturally possess polynomial energy functions. Furthermore, the failure of the optimizer to find a solution serves as an informative signal regarding the inherent instability of the system under study.
Limitations and Future Work
While DELF provides a powerful search tool, it does not currently offer formal mathematical proofs of stability, as results are limited to the sampled domain. Future work will focus on incorporating formal verification techniques to provide rigorous guarantees and applying the method to high-dimensional, real-world engineering systems.
Summary updated