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

基于自由形式自然语言约束与预训练语言模型的安全强化学习

Safe Reinforcement Learning with Free-form Natural Language Constraints and Pre-Trained Language Models

Institute of Automation, CAS(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);King’s College London(伦敦国王学院)

Xingzhou Lou, Junge Zhang, Ziyan Wang, Kaiqi Huang, Yali Du

AI总结:

该研究针对现有带自然语言约束的安全RL方法语言理解能力有限、需真实成本函数的问题,提出用预训练语言模型推断成本以学习安全策略,在多任务上验证了有效性且无需真实成本。

摘要:

安全强化学习(RL)智能体在完成给定任务的同时需遵守特定约束。采用易于理解的人类语言表达的约束因其易用性且无需依赖领域专业知识,在实际应用中具有巨大潜力。以往采用自然语言约束的安全RL方法通常使用循环神经网络,这导致其在处理各种形式的人类语言输入时能力有限。此外,这些方法往往需要真实成本函数,这就需要领域专业知识将语言约束转换为定义明确的、可判定约束违反情况的成本函数。为解决这些问题,我们提出利用预训练语言模型(LM)帮助RL智能体理解自然语言约束,并让其推断成本以实现安全策略学习。通过使用预训练LM且无需真实成本,我们的方法在多种人类生成的自由形式自然语言约束下提升了安全策略学习效果。在网格世界导航和机器人控制任务上的实验表明,所提方法在遵守给定约束的同时能取得优异性能。预训练LM的使用使得我们的方法能够理解复杂约束,且在训练或评估的任何阶段都无需真实成本即可学习安全策略。我们还开展了大量消融实验以验证方法各组成部分的有效性。

英文摘要:

Safe reinforcement learning (RL) agents accomplish given tasks while adhering to specific constraints. Employing constraints expressed via easily-understandable human language offers considerable potential for real-world applications due to its accessibility and non-reliance on domain expertise. Previous safe RL methods with natural language constraints typically adopt a recurrent neural network, which leads to limited capabilities when dealing with various forms of human language input. Furthermore, these methods often require a ground-truth cost function, necessitating domain expertise for the conversion of language constraints into a well-defined cost function that determines constraint violation. To address these issues, we proposes to use pre-trained language models (LM) to facilitate RL agents' comprehension of natural language constraints and allow them to infer costs for safe policy learning. Through the use of pre-trained LMs and the elimination of the need for a ground-truth cost, our method enhances safe policy learning under a diverse set of human-derived free-form natural language constraints. Experiments on grid-world navigation and robot control show that the proposed method can achieve strong performance while adhering to given constraints. The usage of pre-trained LMs allows our method to comprehend complicated constraints and learn safe policies without the need for ground-truth cost at any stage of training or evaluation. Extensive ablation studies are conducted to demonstrate the efficacy of each part of our method.

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

↑