Off Policy Lyapunov Stability in Reinforcement Learning
Sarvan Gill, Daniela Constantinescu
TL;DR
This work addresses the lack of stability guarantees in deep reinforcement learning for robotics by introducing a method to learn Lyapunov functions off-policy and integrate them into state-of-the-art algorithms. A neural Lyapunov function $L_\eta(s,a)$ is learned using off-policy data with a policy-dependent Lie derivative $\mathcal{L}_{f,\Delta t} L_\eta$, plus a minimum decay rate $\mu$, and its expectation over actions $L_\eta(s) = \mathbb{E}_{a \sim \pi} L_\eta(s,a)$ acts as a stability certificate. The approach yields two algorithms, LSAC and LPPO, which incorporate the Lyapunov term into SAC and PPO respectively to achieve improved sample efficiency and robust stability in both a pendulum and a quadrotor control setting, though it relies on simulated validation and introduces new hyperparameters. Overall, the framework advances data-efficient, stability-aware RL for robotics with potential for formal guarantees and broader applicability in real-world systems.
Abstract
Traditional reinforcement learning lacks the ability to provide stability guarantees. More recent algorithms learn Lyapunov functions alongside the control policies to ensure stable learning. However, the current self-learned Lyapunov functions are sample inefficient due to their on-policy nature. This paper introduces a method for learning Lyapunov functions off-policy and incorporates the proposed off-policy Lyapunov function into the Soft Actor Critic and Proximal Policy Optimization algorithms to provide them with a data efficient stability certificate. Simulations of an inverted pendulum and a quadrotor illustrate the improved performance of the two algorithms when endowed with the proposed off-policy Lyapunov function.
