OASIS: Conditional Distribution Shaping for Offline Safe Reinforcement Learning
Yihang Yao, Zhepeng Cen, Wenhao Ding, Haohong Lin, Shiqi Liu, Tingnan Zhang, Wenhao Yu, Ding Zhao
TL;DR
This work tackles offline safe RL by addressing Safe Dataset Mismatch (SDM), where imperfect demonstrations bias the learned policy away from the safe, high-reward optimum. It introduces OASIS, a constraint-conditioned diffusion model that shapes the offline data distribution toward a target domain by generating data under a cost constraint, enabling safer and more rewarding policies while remaining compatible with existing offline RL frameworks. The authors provide theoretical bounds on the distribution-shaping error and constraint-violation risk, and demonstrate via extensive experiments on Bullet-Safety-Gym tasks that OASIS achieves superior safe performance and data efficiency, even with limited generated data. While promising, they note limitations such as longer offline training times and the challenge of achieving zero constraint violations with imperfect demonstrations, highlighting practical impact for real-world safety-critical tasks.
Abstract
Offline safe reinforcement learning (RL) aims to train a policy that satisfies constraints using a pre-collected dataset. Most current methods struggle with the mismatch between imperfect demonstrations and the desired safe and rewarding performance. In this paper, we introduce OASIS (cOnditionAl diStributIon Shaping), a new paradigm in offline safe RL designed to overcome these critical limitations. OASIS utilizes a conditional diffusion model to synthesize offline datasets, thus shaping the data distribution toward a beneficial target domain. Our approach makes compliance with safety constraints through effective data utilization and regularization techniques to benefit offline safe RL training. Comprehensive evaluations on public benchmarks and varying datasets showcase OASIS's superiority in benefiting offline safe RL agents to achieve high-reward behavior while satisfying the safety constraints, outperforming established baselines. Furthermore, OASIS exhibits high data efficiency and robustness, making it suitable for real-world applications, particularly in tasks where safety is imperative and high-quality demonstrations are scarce.
