[论文解读] Model-based Safe Deep Reinforcement Learning via a Constrained Proximal Policy Optimization Algorithm
该论文提出了一种基于模型的安全深度强化学习算法MBPPO-L,采用约束型近端策略优化(constrained proximal policy optimization),在连续控制任务中提升了样本效率与安全性。通过使用神经网络集合在线学习环境动态,并应用拉格朗日松弛方法以强制执行成本约束,该方法将累积危险违规减少了约60%,在样本效率方面相比无模型基线方法提升了约3–4倍,同时在奖励性能上优于其他基于模型的方法。
During initial iterations of training in most Reinforcement Learning (RL) algorithms, agents perform a significant number of random exploratory steps. In the real world, this can limit the practicality of these algorithms as it can lead to potentially dangerous behavior. Hence safe exploration is a critical issue in applying RL algorithms in the real world. This problem has been recently well studied under the Constrained Markov Decision Process (CMDP) Framework, where in addition to single-stage rewards, an agent receives single-stage costs or penalties as well depending on the state transitions. The prescribed cost functions are responsible for mapping undesirable behavior at any given time-step to a scalar value. The goal then is to find a feasible policy that maximizes reward returns while constraining the cost returns to be below a prescribed threshold during training as well as deployment. We propose an On-policy Model-based Safe Deep RL algorithm in which we learn the transition dynamics of the environment in an online manner as well as find a feasible optimal policy using the Lagrangian Relaxation-based Proximal Policy Optimization. We use an ensemble of neural networks with different initializations to tackle epistemic and aleatoric uncertainty issues faced during environment model learning. We compare our approach with relevant model-free and model-based approaches in Constrained RL using the challenging Safe Reinforcement Learning benchmark - the Open AI Safety Gym. We demonstrate that our algorithm is more sample efficient and results in lower cumulative hazard violations as compared to constrained model-free approaches. Further, our approach shows better reward performance than other constrained model-based approaches in the literature.
研究动机与目标
- 为解决现实世界强化学习应用中不安全探索的挑战,其中随机探索步骤可能导致危险行为。
- 通过基于模型的规划结合在线动态学习,提升约束型深度强化学习中的样本效率。
- 在训练和部署过程中,利用拉格朗日松弛框架确保约束满足(例如成本限制)。
- 通过神经网络集合减轻模型学习中的不确定性,以处理认知不确定性与随机不确定性。
- 在Safety Gym基准测试中,超越现有无模型与基于模型的约束型强化学习方法,在安全性、样本效率与最终策略性能方面表现更优。
提出的方法
- 该方法通过神经网络集合在线学习环境转移动态,降低模型预测中的不确定性。
- 采用基于拉格朗日松弛的近端策略优化(PPO)算法,同时最大化累积奖励并确保累积成本低于阈值。
- 在成本函数中引入截断时域,以解决约束型强化学习中长期成本累积带来的问题。
- 采用多时间尺度优化方案:策略更新在中等时间尺度进行,价值函数更新在快速时间尺度进行,拉格朗日乘子更新在慢速时间尺度进行。
- 通过PPO的信赖域更新确保策略优化的稳定性,同时在成本约束下保持可行性。
- 该方法在Safety Gym基准上进行评估,与无模型(PPO-Lagrangian, CPO)和基于模型(safe-LOOP)基线方法进行性能比较。
实验结果
研究问题
- RQ1基于模型的强化学习方法是否能在安全探索任务中实现比无模型约束型强化学习方法更高的样本效率?
- RQ2使用神经网络集合进行动态建模,如何影响安全强化学习中的不确定性处理与约束满足?
- RQ3在成本函数中引入截断时域是否能提升约束型策略优化的稳定性和性能?
- RQ4所提出的MBPPO-L算法在奖励性能与累积危险违规方面,相较于最先进无模型与基于模型的约束型强化学习方法表现如何?
- RQ5基于拉格朗日方法的PPO能否在保持高安全性表现的同时,实现优于现有基于模型方法的最终策略回报?
主要发现
- 所提出的MBPPO-L算法相比无模型PPO-Lagrangian基线,将累积危险违规减少了约60%。
- 该方法相比无模型PPO-Lagrangian方法实现了约3–4倍的样本效率提升,收敛所需环境交互次数更少。
- MBPPO-L在最终策略奖励性能上优于基于模型的safe-LOOP方法,同时保持了相当的约束满足能力。
- 该算法在高维环境(如DoggoGoal1)中表现出鲁棒性,其中因约束导致的探索受限会阻碍模型学习。
- 使用集合模型能有效降低认知不确定性与随机不确定性,提升动态预测的泛化性与稳定性。
- 与safe-LOOP相比,该方法运行时间更短,计算开销更低,更具实际部署可行性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。