Skill-based Safe Reinforcement Learning with Risk Planning
Hanping Zhang, Yuhong Guo
TL;DR
The paper tackles safe reinforcement learning in high-cost environments by leveraging offline demonstrations to learn high-level skills and a risk predictor trained with Positive-Unlabeled learning. It introduces Safe Skill Planning (SSkP), a two-stage method: (i) extract latent skills and build a risk predictor $P_\zeta(c|s_t,\boldsymbol{z}_t)$ via PU learning, and (ii) perform risk planning to iteratively select safe skills during online training, followed by policy learning with Soft Actor-Critic under a KL penalty to the skill prior. The approach yields a risk-aware online RL agent that achieves higher rewards with fewer safety violations than state-of-the-art baselines (CPQ, SMBPO, Recovery RL) across four MuJoCo-based robotics environments. This work demonstrates that combining offline skill representations with probabilistic risk evaluation and iterative planning can significantly reduce unsafe exploration while maintaining strong task performance, with practical impact for real-world robotic learning.
Abstract
Safe Reinforcement Learning (Safe RL) aims to ensure safety when an RL agent conducts learning by interacting with real-world environments where improper actions can induce high costs or lead to severe consequences. In this paper, we propose a novel Safe Skill Planning (SSkP) approach to enhance effective safe RL by exploiting auxiliary offline demonstration data. SSkP involves a two-stage process. First, we employ PU learning to learn a skill risk predictor from the offline demonstration data. Then, based on the learned skill risk predictor, we develop a novel risk planning process to enhance online safe RL and learn a risk-averse safe policy efficiently through interactions with the online RL environment, while simultaneously adapting the skill risk predictor to the environment. We conduct experiments in several benchmark robotic simulation environments. The experimental results demonstrate that the proposed approach consistently outperforms previous state-of-the-art safe RL methods.
