Lyapunov Stability Learning with Nonlinear Control via Inductive Biases

Yupu Lu, Shijie Lin, Hao Xu, Jia Pan · Submission to ICLR 2025 · Rejected

TL;DR

Training neural networks to find Control Lyapunov Functions (CLFs) typically involves delicate multi-term loss balancing and external, CPU-bound solvers that often rely on "overlooked regions" around the equilibrium. By embedding Lyapunov properties directly into the neural architecture as inductive biases and deriving a bounded controller from the CLF itself, this paper introduces an end-to-end framework that guarantees equilibrium stability, trains significantly faster on GPUs, and reliably finds substantially larger Regions of Attraction (ROAs).

What Problem Does This Paper Address?

Lyapunov stability theory provides formal guarantees that a controlled dynamical system will smoothly converge to a target equilibrium from within a defined safe boundary—the Region of Attraction (ROA). However, finding valid CLFs for nonlinear systems is notoriously difficult.

Recent approaches use neural networks within a "learner-verifier" loop. While promising, existing workflows suffer from three major issues:

  1. Unstable optimization: They frame multiple Lyapunov conditions (positive definiteness, origin minimum, and strictly negative time derivatives) as competing soft loss penalties, which are difficult to tune and balance.
  2. "Fake" convergence from overlooked regions: To help verifiers pass, prior works deliberately ignore an $\epsilon$-ball around the equilibrium ($\Omega_0$). The paper demonstrates that this loophole frequently deceives the verifier, certifying "fake" or "rough" CLFs that fail to actually stabilize the system to the origin.
  3. Cumbersome verification: Verifiers often rely on external Satisfiability Modulo Theories (SMT) or Mixed-Integer Programming (MIP) solvers operating on CPUs. These tools do not scale cleanly and require hard-coding neural weights and analytical derivatives outside standard deep learning libraries.

Methods

The authors resolve these challenges by encoding the mathematical constraints directly into the network architecture and control law:

  • Lyapunov Inductive Biases: Instead of training a vanilla MLP to satisfy conditions via loss terms, the CLF candidate $V_\theta(s)$ is parameterized as: $$V_\theta(s) = \|\phi_\theta(s) - \phi_\theta(s^*)\|_2^2 + k \log\left(1 + \sum_{i} (s_i - s_i^*)^2\right)$$ By design, $V_\theta(s^*) = 0$ and $V_\theta(s) > 0$ for all $s \neq s^*$. Thus, positive definiteness and equilibrium constraints are met a priori, eliminating them from the optimization objective.

  • CLF-Based Nonlinear Controller: Rather than training a separate unconstrained neural network for the control policy $u(s)$, the authors derive an explicit bounded controller directly from $\nabla V_\theta(s)$: $$u(s) = \text{clip}(u_1(s), u_{1,\text{min}}, u_{1,\text{max}}) + u_2(s)$$ where $u_1$ cancels out drift dynamics and $u_2(s) = -q_1 \cdot \tanh(q_2 \cdot g^T \nabla V)$ injects stabilizing damping. Under unsaturated control, $\dot{V} \le 0$ holds algebraically.

  • Unified End-to-End Pipeline: Optimization only needs to penalize regions where control saturates ($\dot{V} > -b$), collapsing the learning objective down to a single primary Lyapunov risk term. Verification and counterexample generation are handled directly via dense grid evaluation and autograd inside the deep learning framework—eliminating CPU-based external solvers and doing away with the problematic overlooked region.

  • Geometric Shaping Loss: A regularizer is included to keep $V_\theta$ from collapsing into flat geometries, expanding the volume of the certified level set.

Datasets

The approach is benchmarked on simulated physical dynamical systems:

  • Inverted Pendulum: Evaluated across 150 configurations by varying mass ($m \in [0.5, 1.5]$), length ($l \in [0.8, 1.2]$), and 10 random seeds.
  • Wheeled Vehicle Path Following: Evaluated across 90 configurations by varying path curvature ($\kappa \in [0.8, 1.2]$), velocity ($v \in [1.0, 2.0]$), and 10 random seeds.
  • Higher-Dimensional Extensions: Evaluated on a 4-DOF spacecraft rendezvous problem (Hill-Clohessy-Wiltshire equations) and a 6-DOF 2D quadrotor model.

Key Insights and Ideas

  • Hard constraints beat soft penalties: Enforcing positive definiteness structurally eliminates complex Pareto-weighting dilemmas during training, leading to dramatic stability improvements across varying system parameters.
  • The danger of "overlooked regions": The authors systematically dissect why previous methods (e.g., NLC, ULC) fail in practice. Ignoring a ball around the origin allows the optimizer to minimize losses by placing spurious local minima or limit cycles inside the unverified hole, leading to certified systems that do not stabilize.
  • No external solver needed: Because structural guarantees handle the difficult mathematical boundary conditions, empirical counterexample verification can be executed end-to-end on GPUs via automatic differentiation, speeding up training runs by 20–100× compared to MIP-based CPU setups.

Key Results

  • Higher Success Rates: On the inverted pendulum benchmark, the proposed method achieved a 97.33% synthesis success rate (with shaping), compared to 36.66% for ULC, 89.33% for NLC (which required an overlooked region), and 69.33% for LSNNC. On the path-following task, it achieved a 100% success rate, whereas NLC failed entirely and ULC achieved only 43.33%.
  • Larger Regions of Attraction: For the inverted pendulum, the proposed method discovered certified ROAs with an average area of $34.43 \pm 4.53$, more than double NLC ($15.59 \pm 4.16$) and five times larger than baseline LQR ($6.86$).
  • Computational Efficiency: Unlike piecewise-linear formal methods (e.g., LSNNC) requiring up to 8 hours per run on CPU solvers, this framework trains fully end-to-end within standard deep learning frameworks.

Limitations and Future Work

  • Scalability to High Dimensions: The internal verification step relies on dense grid-based counterexample searches, which experience the curse of dimensionality as state dimensions grow.
  • Dynamics Assumptions: The controller relies on control-affine dynamics $\dot{s} = f(s) + g(s)u$. Handling general, non-affine or highly uncertain systems remains an open challenge.
  • Future Work: The authors propose incorporating model-based reinforcement learning to discover expressive stabilizing control policies for complex tasks, along with dimension-reduction techniques to handle larger state spaces.

Summary updated

BibTeX
@misc{lu2025lyapunov,
  author = {Yupu Lu and Shijie Lin and Hao Xu and Jia Pan},
  title = {{Lyapunov Stability Learning with Nonlinear Control via Inductive Biases}},
  year = {2025},
  eprint = {2511.01283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.01283},
}
Figure