Off-Policy Primal-Dual Safe Reinforcement Learning
Zifan Wu, Bo Tang, Qian Lin, Chao Yu, Shangqin Mao, Qianlong Xie, Xingxing Wang, Dong Wang
TL;DR
This work tackles the instability of off-policy primal-dual safe reinforcement learning caused by cost underestimation in constrained MDPs. It introduces CAL, a two-ingredient framework: Conservative Policy Optimization uses an ensemble-derived upper confidence bound $Q_c^{\text{UCB}}$ to guard against underestimating costs, and Local Policy Convexification via an Augmented Lagrangian with gradient rectification to stabilize learning and reduce estimation uncertainty near local optima. Theoretical analysis and extensive experiments on Safety-Gym, MuJoCo, and a real-world semi-batch advertising task show improved sample efficiency and reduced constraint violations while achieving competitive asymptotic rewards. These results suggest CAL enables safer, more data-efficient off-policy safe RL suitable for safety-critical and large-scale applications.
Abstract
Primal-dual safe RL methods commonly perform iterations between the primal update of the policy and the dual update of the Lagrange Multiplier. Such a training paradigm is highly susceptible to the error in cumulative cost estimation since this estimation serves as the key bond connecting the primal and dual update processes. We show that this problem causes significant underestimation of cost when using off-policy methods, leading to the failure to satisfy the safety constraint. To address this issue, we propose conservative policy optimization, which learns a policy in a constraint-satisfying area by considering the uncertainty in cost estimation. This improves constraint satisfaction but also potentially hinders reward maximization. We then introduce local policy convexification to help eliminate such suboptimality by gradually reducing the estimation uncertainty. We provide theoretical interpretations of the joint coupling effect of these two ingredients and further verify them by extensive experiments. Results on benchmark tasks show that our method not only achieves an asymptotic performance comparable to state-of-the-art on-policy methods while using much fewer samples, but also significantly reduces constraint violation during training. Our code is available at https://github.com/ZifanWu/CAL.
