TR2MTL: LLM based framework for Metric Temporal Logic Formalization of Traffic Rules
Kumar Manas, Stefan Zwicklbauer, Adrian Paschke

TL;DR
TR2MTL is a novel LLM-based framework that automates the formalization of traffic rules into metric temporal logic, enhancing safety verification for autonomous vehicles with minimal domain expertise.
Contribution
It introduces a human-in-loop LLM framework for automatic traffic rule formalization into MTL, demonstrating high accuracy and adaptability with limited data.
Findings
High accuracy in translating traffic rules to MTL
Effective generalization across various rule types
Domain-agnostic performance with small datasets
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSemantic Web and Ontologies · Advanced Database Systems and Queries · Business Process Modeling and Analysis
