arXiv 论文提出 SGPC 约束框架,改进离线策略安全强化学习
SGPC: Safety-Guiding Policy Constraint for Stable Off-Policy Safe Reinforcement Learning
搞安全强化学习的人可以看看这篇:它在 SAC 和 TD3 上加了 SGPC 约束,出安全集时用 Safety-Guiding Policy 拉回来,进安全集后约束自动失效。在 Safety-Gymnasium 上违规次数和代价振荡都降了不少,回报还没掉。
arXiv 论文《Safety-Guiding Policy Constraint for Stable Off-Policy Safe Reinforcement Learning》提出 SGPC 框架,针对离线策略安全强化学习中任务最优性与约束可行性之间的权衡问题。作者指出,原始-对偶方法在安全边界附近通过自适应 Lagrange 乘子耦合优化奖励与约束惩罚,容易引发策略更新的振荡,并在安全集之外放大不可靠奖励估计的影响。
技术上,论文构造了一个新的约束优化问题(COP),引入 Safety-Guiding Policy(SGP)作为训练参考。在 actor 更新阶段,先用学习到的 cost critic 评估当前策略,若预测其落在安全集之外,SGP 会提供附近低代价的参考,SGPC 则引导 actor 向该参考优化;一旦策略进入安全集,附加约束自动失效,形式回归原始 COP。该机制可作为插件式 actor 训练约束,嵌入离线策略安全 RL 算法。
作者基于原始-对偶优化推导出 SGPC 算法,并在 SAC 和 TD3 两个代表性算法上实现为 SAC-SGPC 与 TD3-SGPC。在多个 Safety-Gymnasium 基准上的实验显示,该方法显著减少约束违反和代价振荡,同时保持有竞争力或更优的任务回报。
SGPC: Safety-Guiding Policy Constraint for Stable Off-Policy Safe Reinforcement Learning
Off-policy safe reinforcement learning (RL) faces a challenging trade-off between task optimality and constraint feasibility. In primal-dual methods, the coupled optimization of cumulative reward and constraint penalties through adaptive Lagrange multipliers may induce oscillatory policy updates near the safety boundary and amplify the effect of unreliable reward estimates outside the safe set. To address these issues, we formulate a new constrained optimization problem (COP) for safe RL by introducing a Safety-Guiding Policy (SGP) and a corresponding Safety-Guiding Policy Constraint (SGPC). The proposed COP augments the standard COP in safe RL with a conditional safety-guidance constraint. During actor updates, the current actor is evaluated using the learned cost critic. If it is predicted to be outside the safe set, SGP provides a nearby lower-cost training reference, and SGPC guides actor optimization toward this reference. Once the policy enters the safe set, the added constraint becomes inactive, and the formulation reduces to the original COP. This formulation leads to a plug-in actor-training constraint that can be integrated into off-policy safe RL algorithms. By applying primal-dual optimization to the auxiliary COP, we finally derive an SGPC-based off-policy safe RL algorithm and implement it in two representative off-policy algorithms, yielding SAC-SGPC and TD3-SGPC. Experiments on multiple Safety-Gymnasium benchmarks demonstrate that SGPC achieves a better optimality-safety trade-off by substantially reducing constraint violations and cost oscillations while maintaining competitive or better task returns.
This report is categorized under AITOP's "Papers" desk. Key entities and technical topics under continuous tracking include SAC, TD3, safe reinforcement learning, Safety-Gymnasium.
Source attribution: curated from arXiv cs.LG (@Yifan Liu, Nan Zhang, Yang Cong).