arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.05709cs.ROcs.FLcs.LG
收藏

TR2MTL: 基于大语言模型的交通规则度量时序逻辑形式化框架

TR2MTL: LLM based framework for Metric Temporal Logic Formalization of Traffic Rules

Freie Universität Berlin(柏林自由大学);Continental Automotive Technologies GmbH(大陆汽车技术有限公司);Fraunhofer FOKUS Berlin(弗劳恩霍夫FOKUS柏林研究所)

Kumar Manas, Stefan Zwicklbauer, Adrian Paschke

AI总结:

针对交通规则人工形式化门槛高的问题,提出基于LLM的TR2MTL框架,通过思维链上下文学习自动将交通规则转为MTL公式,具备领域无关性与高泛化能力。

摘要:

交通规则形式化对于验证自动驾驶汽车(AVs)的合规性与安全性至关重要。然而,将自然语言交通规则人工翻译为形式化规范需要领域知识与逻辑专业技能,这限制了其适配范围。本文提出TR2MTL框架,该框架采用大语言模型(LLMs)将交通规则(TR)自动翻译为度量时序逻辑(MTL),被构想为一种用于自动驾驶汽车规则形式化的人在回路系统。它利用思维链上下文学习方法引导大语言模型逐步翻译,生成有效且语法正确的MTL公式,还可扩展至多种形式的时序逻辑与规则。我们在从多来源构建的高难度交通规则数据集上评估了该框架,并将其与采用不同上下文学习方法的大语言模型进行对比。结果表明,TR2MTL具有领域无关性,即便在小数据集上也能实现高准确率与泛化能力。此外,该方法能有效预测非结构化交通规则中具有不同程度逻辑与语义结构的公式。

英文摘要:

Traffic rules formalization is crucial for verifying the compliance and safety of autonomous vehicles (AVs). However, manual translation of natural language traffic rules as formal specification requires domain knowledge and logic expertise, which limits its adaptation. This paper introduces TR2MTL, a framework that employs large language models (LLMs) to automatically translate traffic rules (TR) into metric temporal logic (MTL). It is envisioned as a human-in-loop system for AV rule formalization. It utilizes a chain-of-thought in-context learning approach to guide the LLM in step-by-step translation and generating valid and grammatically correct MTL formulas. It can be extended to various forms of temporal logic and rules. We evaluated the framework on a challenging dataset of traffic rules we created from various sources and compared it against LLMs using different in-context learning methods. Results show that TR2MTL is domain-agnostic, achieving high accuracy and generalization capability even with a small dataset. Moreover, the method effectively predicts formulas with varying degrees of logical and semantic structure in unstructured traffic rules.

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

↑