Off-Policy Primal-Dual Safe Reinforcement Learning

Zifan Wu, Bo Tang, Qian Lin, Chao Yu, Shangqin Mao +3 more
1/26/2024
cs.LG

Official code: ZifanWu/CAL (23 stars, MIT, last commit 2024-03-29). 1 more implementation below.

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.

View on arXivView PDF

Code Implementations(2)

ZifanWu/CALOfficial100%
MIT

Code accompanying the paper "Off-Policy Primal-Dual Safe Reinforcement Learning"

237PythonJan 18, 20242 years agoMIT
PyTorchApache-2.0

JMLR: OmniSafe is an infrastructural framework for accelerating SafeRL research.

1,145161Python, MakefileNov 19, 20221 years agoApache-2.0
benchmarkconstraint-rlconstraint-satisfaction-problemdeep-learningdeep-reinforcement-learning+9 more

Similar Papers

Cite this paper

@article{wu2024offpolicy,
  title  = {Off-Policy Primal-Dual Safe Reinforcement Learning},
  author = {Zifan Wu and Bo Tang and Qian Lin and Chao Yu and Shangqin Mao and Qianlong Xie and Xingxing Wang and Dong Wang},
  year   = {2024},
  eprint = {2401.14758},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.14758v2},
  journal = {ICLR 2024 2024}
}

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/2401.14758.svg)](https://codeofpaper.com/paper/2401.14758)

Discussion