[论文解读] Constrained Decision Transformer for Offline Safe Reinforcement Learning
论文引入 Constrained Decision Transformer (CDT),一种返回条件化 Transformer,能够学习在不重新训练的情况下对不同约束阈值进行自适应的安全离线策略,利用Pareto前沿引导的数据增强和熵正则化的随机策略。
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.
研究动机与目标
- 通过 epsilon 可约化概念从多目标视角刻画离线安全强化学习问题的难度。
- 开发一个能够在不重新训练的情况下对不同约束阈值进行自适应的安全离线策略。
- 利用基于 Transformer 的返回条件策略实现不同安全需求下的零-shot 部署。
- 引入数据增强和随机策略机制以提升安全性和鲁棒性。
提出的方法
- 将 CDT 建模为一个返回条件化 Transformer,并将目标成本阈值作为输入标记一并摄入。
- 在离线环境中使用带熵正则化的随机策略以防止过度自信的、不安全的动作。
- 以 Pareto 前沿信息化的返回重新标注来扩展覆盖多种成本-回报权衡的训练数据。
- 将增强轨迹重新标注以使不可行的目标回报与最安全的Pareto最优轨迹对齐。
- 通过将负对数似然损失与熵项相结合的损失来促进探索性训练。
- 在具有不同约束阈值的离线安全强化学习任务上评估 CDT 以检验零-shot 自适应能力。
实验结果
研究问题
- RQ1CDT 是否能够从一个 epsilon 可约离线数据集学习到安全策略?
- RQ2训练后 CDT 是否能够对不同的约束阈值进行零-shot 自适应?
- RQ3CDT 的各组成部分(数据增强、熵正则化)对安全性和性能的影响?
- RQ4CDT 在离线环境中对相冲突的目标奖励与成本返回的鲁棒性如何?
主要发现
- CDT 在多项任务中在安全性(更低成本)和任务回报两方面均优于基线及变体,且在相同超参数下在多个任务上保持良好表现。
- CDT 能实现对不同成本阈值的零-shot 自适应,而无需再训练,这一点优于现有方法。
- 两个 CDT 组成部分——基于 Pareto 前沿的数据增强(返回重新标注)和熵正则化——对于安全性和鲁棒性至关重要。
- 无数据增强或无熵正则化的消融实验会降低性能,凸显了这些设计选择的重要性。
- CDT 在若干机器人行走任务(如 Ant-Run、Car-Run、Drone-Run)中在满足约束的同时保持较高的回报,详见表 1。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。