让强化学习在训练中内化安全约束,无需运行时过滤器也能保证安全。
CBF-RL: Safety Filtering Reinforcement Learning in Training with Control Barrier Functions
- 在训练阶段引入控制屏障函数,让策略学习时就考虑安全限制。
- 实测显示可加速收敛、提升抗扰能力,机器人能安全避障爬梯。
- 适合对安全性要求高的真实场景,如人形机器人部署。
强化学习虽强大,却常以牺牲安全为代价。控制屏障函数(CBF)能有效保障动态安全,传统上通过在线安全滤波器实现。但此方式使策略无法感知安全约束,导致行为保守。本文提出CBF-RL框架,在训练阶段通过添加CBF项并安全过滤策略轨迹,使强化学习策略内化安全约束。理论上证明了连续时间安全滤波可在离散时间轨迹上用闭式表达实现。实验表明,该方法使策略主动选择更安全动作,并偏好安全奖励,实现无需运行时安全滤波的安全部署。在导航任务与Unitree G1人形机器人上验证,支持更安全探索、更快收敛及不确定环境下的鲁棒表现,可在真实世界中安全避障并爬楼梯。
原文摘要 · Abstract (English)
Reinforcement learning (RL), while powerful and expressive, can often prioritize performance at the expense of safety. Yet safety violations can lead to catastrophic outcomes in real-world deployments. Control Barrier Functions (CBFs) offer a principled method to enforce dynamic safety -- traditionally deployed online via safety filters. While the result is safe behavior, the fact that the RL policy does not have knowledge of the CBF can lead to conservative behaviors. This paper proposes CBF-RL, a framework for generating safe behaviors with RL by enforcing CBFs in training. CBF-RL has two key attributes: (1) minimally modifying a nominal RL policy to encode safety constraints via a CBF term, (2) and safety filtering of the policy rollouts in training. Theoretically, we prove that continuous-time safety filters can be deployed via closed-form expressions on discrete-time roll-outs. Practically, we demonstrate that CBF-RL internalizes the safety constraints in the learned policy -- both enforcing safer actions and biasing towards safer rewards -- enabling safe deployment without the need for an online safety filter. We validate our framework through ablation studies on navigation tasks and on the Unitree G1 humanoid robot, where CBF-RL enables safer exploration, faster convergence, and robust performance under uncertainty, enabling the humanoid robot to avoid obstacles and climb stairs safely in real-world settings without a runtime safety filter.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。