arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.07701cs.LG
收藏

基于模型的安全强化学习的保守和自适应惩罚

Conservative and Adaptive Penalty for Model-Based Safe Reinforcement Learning

University of Pennsylvania(宾夕法尼亚大学);University of Melbourne(墨尔本大学)

Yecheng Jason Ma, Andrew Shen, Osbert Bastani, Dinesh Jayaraman

摘要:

现实世界中的强化学习(RL)代理除了最大化奖励目标之外,还必须满足安全约束。基于模型的强化学习算法有望减少不安全的现实世界行为:它们可以使用来自学习模型的模拟样本来合成遵守所有约束的策略。然而,不完美的模型可能会导致现实世界的约束违反,即使是预测满足所有约束的动作。我们提出了保守和自适应惩罚(CAP),这是一个基于模型的安全RL框架,通过捕获模型不确定性并自适应地利用它来平衡奖励和成本目标来解决潜在的建模错误。首先,CAP使用基于不确定性的惩罚来夸大预测成本。从理论上讲,我们表明,政策,满足这一保守的成本约束,保证在真实的环境中也是可行的。我们进一步证明了这保证了RL训练期间所有中间解决方案的安全性。此外,CAP在训练期间使用来自环境的真实成本反馈自适应地调整此惩罚。我们评估这种保守的和自适应的基于惩罚的方法,基于模型的安全RL广泛的状态和基于图像的环境。我们的研究结果表明,样本效率大幅提高,同时比以前的安全RL算法产生更少的违规行为。代码可在:https://github.com/Redrew/CAP

英文摘要:

Reinforcement Learning (RL) agents in the real world must satisfy safety constraints in addition to maximizing a reward objective. Model-based RL algorithms hold promise for reducing unsafe real-world actions: they may synthesize policies that obey all constraints using simulated samples from a learned model. However, imperfect models can result in real-world constraint violations even for actions that are predicted to satisfy all constraints. We propose Conservative and Adaptive Penalty (CAP), a model-based safe RL framework that accounts for potential modeling errors by capturing model uncertainty and adaptively exploiting it to balance the reward and the cost objectives. First, CAP inflates predicted costs using an uncertainty-based penalty. Theoretically, we show that policies that satisfy this conservative cost constraint are guaranteed to also be feasible in the true environment. We further show that this guarantees the safety of all intermediate solutions during RL training. Further, CAP adaptively tunes this penalty during training using true cost feedback from the environment. We evaluate this conservative and adaptive penalty-based approach for model-based safe RL extensively on state and image-based environments. Our results demonstrate substantial gains in sample-efficiency while incurring fewer violations than prior safe RL algorithms. Code is available at: https://github.com/Redrew/CAP

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑