Lyapunov-based Safe Policy Optimization for Continuous Control
Yinlam Chow, Ofir Nachum, Aleksandra Faust, Edgar Duenez-Guzman, Mohammad Ghavamzadeh
TL;DR
This work addresses safety in continuous-action reinforcement learning by casting it as a CMDP and introducing Lyapunov-based safe policy gradient methods. It develops two complementary approaches: (i) θ-projection, which optimizes a surrogate objective under Lyapunov-derived linearized constraints, and (ii) a-projection, which enforces safety via a Lyapunov safety layer that projects actions into the feasible set. Both methods are compatible with on-policy and off-policy PG algorithms, such as PPO and DDPG, and guarantee safety during updates, improving data efficiency relative to existing constrained RL methods. Empirical validation on MuJoCo benchmarks and a real indoor robot navigation task demonstrates stable learning, effective constraint satisfaction, and practical applicability to real-world safety-critical robotics. The work paves the way for scalable, end-to-end differentiable safe RL in continuous domains, with potential extensions to tighter Lyapunov constructions and model-based setups.
Abstract
We study continuous action reinforcement learning problems in which it is crucial that the agent interacts with the environment only through safe policies, i.e.,~policies that do not take the agent to undesirable situations. We formulate these problems as constrained Markov decision processes (CMDPs) and present safe policy optimization algorithms that are based on a Lyapunov approach to solve them. Our algorithms can use any standard policy gradient (PG) method, such as deep deterministic policy gradient (DDPG) or proximal policy optimization (PPO), to train a neural network policy, while guaranteeing near-constraint satisfaction for every policy update by projecting either the policy parameter or the action onto the set of feasible solutions induced by the state-dependent linearized Lyapunov constraints. Compared to the existing constrained PG algorithms, ours are more data efficient as they are able to utilize both on-policy and off-policy data. Moreover, our action-projection algorithm often leads to less conservative policy updates and allows for natural integration into an end-to-end PG training pipeline. We evaluate our algorithms and compare them with the state-of-the-art baselines on several simulated (MuJoCo) tasks, as well as a real-world indoor robot navigation problem, demonstrating their effectiveness in terms of balancing performance and constraint satisfaction. Videos of the experiments can be found in the following link: https://drive.google.com/file/d/1pzuzFqWIE710bE2U6DmS59AfRzqK2Kek/view?usp=sharing.
