Adaptive Primal-Dual Method for Safe Reinforcement Learning
Weiqin Chen, James Onyejizu, Long Vu, Lan Hoang, Dharmashankar Subramanian, Koushik Kar, Sandipan Mishra, Santiago Paternain
TL;DR
This work tackles Safe Reinforcement Learning by formulating CMDPs and addressing the interdependence between the primal learning rate and dual variables. It introduces Adaptive Primal-Dual (APD) methods with two LR rules that depend inversely on the Lagrangian multipliers, providing convergence, return optimality, and feasibility guarantees. A practical variant, PAPD, uses InvLin and InvQua learning rates along with PID-Lagrangian dual updates, and is empirically evaluated against constant-LR baselines on four Bullet-Safety-Gym environments with PPO-Lagrangian and DDPG-Lagrangian, showing improved stability and often superior performance. The results demonstrate robustness to hyper-parameter choices and suggest broad practical impact for safe RL in constrained settings, with theoretical underpinnings complemented by extensive experiments and supplementary proofs.
Abstract
Primal-dual methods have a natural application in Safe Reinforcement Learning (SRL), posed as a constrained policy optimization problem. In practice however, applying primal-dual methods to SRL is challenging, due to the inter-dependency of the learning rate (LR) and Lagrangian multipliers (dual variables) each time an embedded unconstrained RL problem is solved. In this paper, we propose, analyze and evaluate adaptive primal-dual (APD) methods for SRL, where two adaptive LRs are adjusted to the Lagrangian multipliers so as to optimize the policy in each iteration. We theoretically establish the convergence, optimality and feasibility of the APD algorithm. Finally, we conduct numerical evaluation of the practical APD algorithm with four well-known environments in Bullet-Safey-Gym employing two state-of-the-art SRL algorithms: PPO-Lagrangian and DDPG-Lagrangian. All experiments show that the practical APD algorithm outperforms (or achieves comparable performance) and attains more stable training than the constant LR cases. Additionally, we substantiate the robustness of selecting the two adaptive LRs by empirical evidence.
