Neural Lyapunov (stability net)
A tanh feedforward network trained as a Lyapunov function alongside a controller for a nonlinear system.
Reinforcement learning and control · 5 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 27
- Operations
- 5
- Framework
- PyTorch
- Recurrent
- No
- Published
- Advances in Neural Information Processing Systems 32 (NeurIPS 2019)
- Paper
- Neural Lyapunov Control
- Cited by
- 190 (as of 24 October 2026)
- Authors
- Ya-Chien Chang, Nima Roohi, Sicun Gao
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18805
- Graph hash
- 87d27698847d90a0a3af43d4d1f1975a46fab18f23ccff8370cda853eb875763
- Skeleton hash
- 9fdcc12b51ec4a481ba271fa11976e315af3a7650524632792d4f1e96483f0e5
- Architecture hash
- 8a772f21deec83b70642e6995b58376f4053abe8c12b40b2e409c4cfd8efb75f
- Diagram SHA-256
- 56f0cc3082b880fbe0d8035991688ca43ce8acdf879926d75187e457127c1912
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Neural Lyapunov Control learns a control policy for a nonlinear system together with a neural network Lyapunov function, with a provable guarantee of stability. Lyapunov methods follow the intuition that a system stabilizes when its energy decreases over time, and construct a scalar field that can force stabilization. Here that scalar field is a network that takes any state vector of the system and outputs a scalar value.
Training pairs a learner with a falsifier. The learner uses stochastic gradient descent to fit both the control function and the Lyapunov network by minimizing the Lyapunov risk, which measures the violation of the Lyapunov conditions. The falsifier searches for state vectors that violate the conditions, and these counterexamples are added to the training set for the next iteration. The procedure ends when the falsifier finds no counterexample, in which case the controlled system is provably stable.
The candidate Lyapunov functions are multilayered feedforward networks with tanh activations. Non-smooth activations such as ReLU cannot be used, because checking the Lyapunov conditions analytically requires the Lie derivatives of the network to exist. The control parameters are initialized to the LQR (linear-quadratic regulator) solution. The inverted pendulum example has two state variables, angular position and angular velocity, and one control input.
Key idea. The paper pairs a learner that finds control and Lyapunov functions with a falsifier that finds counterexamples to guide the learner.
- neural lyapunov control
- neural lyapunov
- lyapunov function
- stability net
- nonlinear control
- provable stability
- region of attraction
- inverted pendulum
- learner falsifier
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chang2022neurallyapunovcontrol,
title={Neural Lyapunov Control},
author={Ya-Chien Chang and Nima Roohi and Sicun Gao},
year={2022},
eprint={2005.00611},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2005.00611},
}