Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

CDCP: Conditional Diffusion Model with Contextual Prompts for Multi-task Offline Safe Reinforcement Learning

About

Multi-task offline safe reinforcement learning (RL) promises to learn a shared optimal safe policy from offline data across multiple tasks. This paradigm provides an effective means for the widespread application of RL in multi-task scenarios with high risk and interaction costs. However, the triple challenges of multi-tasking, safety constraints, and out-of-distribution (OOD) actions pose a significant hurdle for existing methods to ensure safety while maximizing reward returns. In this work, we propose a Conditional Diffusion model with Contextual Prompts (CDCP) to address these challenges. Concretely, we first rethink the requirements and challenges in current multi-task decision-making and control scenarios and establish the objectives of multi-task offline safe RL. Subsequently, we transform the multi-task constrained optimization problem into a conditional generation problem using the diffusion model. Based on this, we design a classifier-free guided cost-constraint strategy to provide flexible cost constraints and eliminate extrapolation errors from OOD actions via supervised learning. Additionally, we introduce a novel contextual prompting method to enhance multi-task representation accuracy and adaptability to unseen tasks. A gradient loss synchronization strategy is also introduced to eliminate gradient interference, improving training stability. Finally, extensive experiments demonstrate that the CDCP algorithm exhibits higher performance and safety in multi-task scenarios than the current state-of-the-art baseline methods. It meets different cost constraints without further training, providing a more flexible cost-constraint solution for the multi-task safe RL.

Jiayi Guan, Tianle Zhang, Li Shen, Ruiqi Zhang, Ao Zhou, Lusong Li, Guai Chen, Mengjie Li, Alois Knoll, Xiaodong He, Changjun Jiang• 2026

Related benchmarks

TaskDatasetResultRank
Safe Reinforcement LearningDSRL EasyMean
Reward319.3
7
Offline Safe Reinforcement LearningDSRL EasySparse
Reward326.1
4
Offline Safe Reinforcement LearningDSRL EasyDense
Reward316.5
4
Offline Safe Reinforcement LearningDSRL MediumSparse
Reward242.8
4
Offline Safe Reinforcement LearningDSRL MediumMean
Reward236.6
4
Offline Safe Reinforcement LearningDSRL MediumDense
Reward237.8
4
Offline Safe Reinforcement LearningDSRL HardSparse
Reward258
4
Offline Safe Reinforcement LearningDSRL HardMean
Reward253.6
4
Offline Safe Reinforcement LearningDSRL HardDense
Reward243.6
4
Offline Safe Reinforcement LearningDSRL Mean
Reward270.4
4
Showing 10 of 19 rows

Other info

Follow for update