Lyapunov-stable neural-network control

Hongkai Dai, Benoit Landry, Lujie Yang, Marco Pavone, Russ Tedrake
9/29/2021
cs.ROeess.SY

Official code: StanfordASL/neural-network-lyapunov (186 stars, Python, MIT, last commit 2025-06-02).

Abstract

Deep learning has had a far reaching impact in robotics. Specifically, deep reinforcement learning algorithms have been highly effective in synthesizing neural-network controllers for a wide range of tasks.

Show full abstract

However, despite this empirical success, these controllers still lack theoretical guarantees on their performance, such as Lyapunov stability (i.e., all trajectories of the closed-loop system are guaranteed to converge to a goal state under the control policy). This is in stark contrast to traditional model-based controller design, where principled approaches (like LQR) can synthesize stable controllers with provable guarantees. To address this gap, we propose a generic method to synthesize a Lyapunov-stable neural-network controller, together with a neural-network Lyapunov function to simultaneously certify its stability. Our approach formulates the Lyapunov condition verification as a mixed-integer linear program (MIP). Our MIP verifier either certifies the Lyapunov condition, or generates counter examples that can help improve the candidate controller and the Lyapunov function. We also present an optimization program to compute an inner approximation of the region of attraction for the closed-loop system. We apply our approach to robots including an inverted pendulum, a 2D and a 3D quadrotor, and showcase that our neural-network controller outperforms a baseline LQR controller. The code is open sourced at \url{https://github.com/StanfordASL/neural-network-lyapunov}.

View on arXivView PDF

Code Implementations(1)

MIT

Synthesizing neural-network Lyapunov functions (and controllers) as stability certificate.

18638PythonSep 23, 20191 years agoMIT
lyapunov-functionsneural-networkroboticsverification

Similar Papers

Cite this paper

@article{dai2021lyapunovstable,
  title  = {Lyapunov-stable neural-network control},
  author = {Hongkai Dai and Benoit Landry and Lujie Yang and Marco Pavone and Russ Tedrake},
  year   = {2021},
  eprint = {2109.14152},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.14152}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.14152.svg)](https://codeofpaper.com/paper/2109.14152)

Discussion