[Paper Review] Constrained Decision Transformer for Offline Safe Reinforcement Learning
The paper introduces Constrained Decision Transformer (CDT), a return-conditioned Transformer that learns safe offline policies adaptable to varying constraint thresholds without re-training, using Pareto-frontier-guided data augmentation and entropy-regularized stochastic policies.
Safe reinforcement learning (RL) trains a constraint satisfaction policy by interacting with the environment. We aim to tackle a more challenging problem: learning a safe policy from an offline dataset. We study the offline safe RL problem from a novel multi-objective optimization perspective and propose the $ε$-reducible concept to characterize problem difficulties. The inherent trade-offs between safety and task performance inspire us to propose the constrained decision transformer (CDT) approach, which can dynamically adjust the trade-offs during deployment. Extensive experiments show the advantages of the proposed method in learning an adaptive, safe, robust, and high-reward policy. CDT outperforms its variants and strong offline safe RL baselines by a large margin with the same hyperparameters across all tasks, while keeping the zero-shot adaptation capability to different constraint thresholds, making our approach more suitable for real-world RL under constraints. The code is available at https://github.com/liuzuxin/OSRL.
Motivation & Objective
- Characterize offline safe RL problem difficulty with a multi-objective lens via the epsilon-reducible concept.
- Develop a safety-conscious offline policy that can adapt to different constraint thresholds without re-training.
- Leverage a Transformer-based return-conditioned policy to enable zero-shot deployment under varying safety requirements.
- Introduce data augmentation and stochastic policy mechanisms to improve safety and robustness.
Proposed method
- Model CDT as a return-conditioned Transformer that also consumes target cost thresholds as input tokens.
- Use a stochastic policy with entropy regularization to prevent overconfident, unsafe actions in offline settings.
- Augment training data with Pareto-frontier-informed return relabeling to cover multiple cost-reward trade-offs.
- Relabel augmented trajectories to align infeasible target returns with the safest Pareto-optimal trajectories.
- Train with a loss combining negative log-likelihood and an entropy term to encourage exploration.
- Evaluate CDT on offline safe RL tasks with varying constraint thresholds to test zero-shot adaptability.
Experimental results
Research questions
- RQ1Can CDT learn a safe policy from an epsilon-reducible offline dataset?
- RQ2Does CDT enable zero-shot adaptation to different constraint thresholds after training?
- RQ3What is the impact of CDT components (data augmentation, entropy regularization) on safety and performance?
- RQ4How robust is CDT to conflicting target reward and cost returns in offline settings?
Key findings
- CDT outperforms baselines and variants on multiple tasks in both safety (lower cost) and task reward, with the same hyperparameters across tasks.
- CDT achieves zero-shot adaptation to different cost thresholds without re-training, unlike prior methods.
- Two CDT components—Pareto-frontier-based data augmentation (return relabeling) and entropy regularization—are crucial for safety and robustness.
- A w/o augment or w/o entropy ablation degrades performance, highlighting the importance of these design choices.
- CDT maintains high rewards while satisfying the constraint across several robot locomotion tasks (e.g., Ant-Run, Car-Run, Drone-Run) as reported in Table 1.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.