arXiv:2412.04426cs.LGcs.AI2024-12中稿 · Transactions on Ma…被引 5

用离线数据加速安全强化学习,提升训练效率与安全性。

Towards Fast Safe Online Reinforcement Learning via Policy Finetuning

  • 通过价值预对齐和自适应控制,解决离线到在线安全强化学习的误差问题。
  • 在多个环境中实现更高奖励与更强安全约束满足,性能超越现有方法。
  • 适合需要快速、安全部署强化学习系统的工业应用或高风险场景。

当前在线安全强化学习因环境交互成本高、风险大而难以实用。虽离线安全强化学习可借助静态数据降低风险,但受限于数据质量及分布外动作挑战,性能常不理想。受近期离线到在线(O2O)强化学习成功启发,本文探讨是否可利用离线安全强化学习促进更快速、更安全的在线策略学习,这一方向尚未充分研究。我们发现,直接套用标准RL的O2O算法在安全强化学习中效果不佳,主要因两大挑战: 1. 错误的Q值估计,源于离线与在线目标不匹配以及离线代价稀疏; 2. 拉格朗日乘子不匹配,难以在离线与在线策略间对齐。 为此,我们提出新框架Marvel,包含两个核心组件: - 价值预对齐(Value Pre-Alignment),在在线学习前对齐Q函数与真实值; - 自适应PID控制(Adaptive PID Control),动态调节在线微调过程中的拉格朗日乘子。 大量实验表明,Marvel在奖励最大化和安全约束满足方面均显著优于现有基线方法。作为首个基于策略微调的O2O安全强化学习框架,Marvel兼容多种离线与在线安全强化学习方法,具有推动该领域向更高效、实用方向发展的潜力。

原文摘要 · Abstract (English)

The high costs and risks involved in extensive environment interactions hinder the practical application of current online safe reinforcement learning (RL) methods. While offline safe RL addresses this by learning policies from static datasets, the performance therein is usually limited due to reliance on data quality and challenges with out-of-distribution (OOD) actions. Inspired by recent successes in offline-to-online (O2O) RL, it is crucial to explore whether offline safe RL can be leveraged to facilitate faster and safer online policy learning, a direction that has yet to be fully investigated. To fill this gap, we first demonstrate that naively applying existing O2O algorithms from standard RL would not work well in the safe RL setting due to two unique challenges: \emph{erroneous Q-estimations}, resulted from offline-online objective mismatch and offline cost sparsity, and \emph{Lagrangian mismatch}, resulted from difficulties in aligning Lagrange multipliers between offline and online policies. To address these challenges, we introduce \textbf{Marvel}, a novel framework for O2O safe RL, comprising two key components that work in concert: \emph{Value Pre-Alignment} to align the Q-functions with the underlying truth before online learning, and \emph{Adaptive PID Control} to effectively adjust the Lagrange multipliers during online finetuning. Extensive experiments demonstrate that Marvel significantly outperforms existing baselines in both reward maximization and safety constraint satisfaction. By introducing the first policy-finetuning based framework for O2O safe RL, which is compatible with many offline and online safe RL methods, our work has the great potential to advance the field towards more efficient and practical safe RL solutions.

安全强化学习在线学习策略微调

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。