arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14865cs.AIcs.FLcs.RO
收藏

面向安全约束规划的语言模型联合验证与精化

Joint Verification and Refinement of Language Models for Safety-Constrained Planning

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yunhao Yang, Neel P. Bhatt, William Ward, Zichao Hu, Joydeep Biswas, Ufuk Topcu

AI总结:

本文提出将机器人程序转为自动机表示并验证安全规范,利用组合定理降低验证复杂度,并通过仅训练安全子组件的自动微调方法,使规范合规程序生成概率提高30%,训练时间减半。

摘要:

大型语言模型在根据自然语言描述生成程序(如 Python)以执行机器人任务方面展现出令人瞩目的能力。然而,这些生成的程序往往包含违反外部给定任务规范的错误。若缺乏有效的方法来验证其正确性,语言模型在现实系统中的可靠部署实际上不可行。我们提出了一种方法,将生成的机器人程序转换为基于自动机的表示,并针对与任务相关的安全规范进行验证。我们建立了一个定理:任意由已验证程序组合而成的程序也将满足安全规范。因此,该方法无需验证由多个较简单程序构成的复杂程序,从而降低了计算复杂度。随后,我们引入了一种自动化的微调流程,利用验证结果作为监督信号。通过应用该定理,该流程仅需训练模型生成安全的子组件,从而提高了训练效率。在机器人应用上的实验结果表明,生成符合规范程序的概率提高了 30%,且与针对生成完整程序进行微调相比,训练时间减少了一半。

英文摘要:

Large language models possess impressive capabilities in generating programs (e.g., Python) from natural language descriptions to execute robotic tasks. However, these generated programs often contain errors that violate externally given task specifications. Without an effective method to verify their correctness, the reliable deployment of language models in real-world systems is practically infeasible. We develop a method that converts generated robot programs into an automaton-based representation and verifies them against task-relevant safety specifications. We establish a theorem that any arbitrary combination of the verified programs will also satisfy the safety specifications. Hence, the method eliminates the need to verify complex programs composed of multiple simpler ones, reducing computation complexity. We then introduce an automated fine-tuning procedure that leverages verification outcomes for supervision. By applying the theorem, this procedure only requires training the model to generate safe sub-components, thereby improving training efficiency. Empirical results on robot applications show a 30 percent increase in the probability of generating specification-compliant programs, with training time reduced by half compared to fine-tuning on generating full programs.

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

↑