arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01356cs.LGcs.AI
收藏

基于模型的主动成本生成:用于在有限违规数据下学习安全策略

Model-Based Proactive Cost Generation for Learning Safe Policies Offline with Limited Violation Data

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);Polixir Technologies Nanjing, China(南京Polixir科技有限公司);Tencent Game AI Center Shenzhen, China(腾讯深圳游戏AI中心)

Ruiqi Xue, Lei Yuan, Kainuo Cheng, Jing-Wen Yang, Yang Yu

AI总结:

本文提出PROCO框架,利用大语言模型整合自然语言知识,通过构建保守成本函数和模型基于的模拟,减少约束违规并提升安全性,适用于离线数据中极少或无违规样本的高风险场景。

摘要:

学习满足约束的策略从离线数据中无需危险的在线交互对于安全关键决策至关重要。传统方法通常从大量不安全样本中学习成本价值函数以定义安全边界并惩罚违规。然而在高风险场景中,危险的试错是不可行的,导致数据集中存在很少或没有不安全样本。在这一限制下,现有方法往往将所有数据视为统一安全,忽视了安全但不可行的状态——当前满足约束但不可避免在几步内违反的状态,导致部署失败。受知识-数据整合概念的启发,我们利用大语言模型(LLMs)将自然语言知识整合到策略中以解决这一挑战。具体而言,我们提出PROCO,一种针对数据主要无违规的离线安全强化学习(RL)框架。PROCO首先从离线数据中学习动力学模型,并通过将不安全状态的自然语言知识 grounding 在LLMs中构建保守成本函数,即使没有观察到的违规也能进行风险估计。利用成本函数和学习的模型,PROCO执行模型基于的模拟以合成多样化的反事实不安全样本,支持可靠的可行性识别和可行性引导的策略学习。在一系列Safety-Gymnasium任务中,PROCO与各种离线安全RL算法无缝集成,并在与原始方法和其他行为克隆基线相比时, consistently 展示出减少的约束违规和改进的安全性能。

英文摘要:

Learning constraint-satisfying policies from offline data without risky online interaction is crucial for safety-critical decision making. Conventional methods typically learn cost value functions from abundant unsafe samples to define safety boundaries and penalize violations. However, in high-stakes scenarios, risky trial-and-error is infeasible, yielding datasets with few or no unsafe samples. Under this limitation, existing approaches often treat all data as uniformly safe, overlooking safe-but-infeasible states - states that currently satisfy constraints but inevitably violate them within a few steps - leading to deployment failures. Drawing inspiration from the concept of knowledge-data integration, we leverage large language models (LLMs) to incorporate natural language knowledge into the policy to address this challenge. Specifically, we propose PROCO, a model-based offline safe reinforcement learning (RL) framework tailored to datasets largely free of violations. PROCO first learns a dynamics model from offline data and constructs a conservative cost function by grounding natural-language knowledge of unsafe states in LLMs, enabling risk estimation even without observed violations. Using the cost function and learned model, PROCO performs model-based rollouts to synthesize diverse counterfactual unsafe samples, supporting reliable feasibility identification and feasibility-guided policy learning. Across a range of Safety-Gymnasium tasks with exclusively safe or minimally risky training data, PROCO integrates seamlessly with a variety of offline safe RL algorithms and consistently demonstrates reduced constraint violations and improved safety performance compared to both the original methods and other behavior cloning baselines.

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

↑