Efficient Natural Language to Temporal Logic Translation for Real-Time Physical AI
Oliver Schön, Adrien Banse, John Lygeros, Lars Lindemann
Abstract
Robots can be controlled to perform tasks with guaranteed correctness when the task instructions are stated in a formal language. Large language models (LLMs) have been widely used to allow users to provide such instructions in natural language (NL), by translating NL into formal language. When deploying such translators on a robot, however, we face limited computing and energy resources, while offloading computation or data to the cloud may be infeasible or undesirable. Yet an LLM is a general-purpose text generator, whereas a formula in a fixed formal language fragment follows a well-defined syntax. We therefore ask whether text generation is needed at all. For the formal language of linear temporal logic (LTL), we show that this translation can instead be broken down into answering a set of questions with pre-defined answers. We then construct a System-One model, a recent class of NL-based classifier, to provide such answers and enable us to translate a natural language instruction into an LTL instruction. On three benchmarks, our translator matches or exceeds the accuracy of the best local LLMs available, at up to one order of magnitude lower runtime and energy consumption. We show that it generalizes to unseen atomic propositions and temporal patterns.
Create a lesson
Related papers
Dynamic Token Merging for Efficient Vision-Language Models
Shared title terminology · Chris Gu, Marco Andono Sie, Nathan Zhou et al.
When Are Images Needed in Multimodal Machine Translation? Text-Only Routing for On-Demand Visual Context
Shared title terminology · Xinyu Wang, Yingfeng Luo, Yuxin Gao et al.
Abstract What Varies, Reuse Longer Patterns: Efficient Offline Chain-of-Thought Compression
Shared title terminology · Shibo Wang, Yuzhe He, Yifeng Zhao et al.
Can Language Models See the Circuit in Pixelated RFIC Passives?
Shared title terminology · Jonathan Zhou, Kaushik Sengupta
Trained on Harm, Still Refusing: A Training-Time Defense for Code Generation
Shared title terminology · Miaoqing Tian, Ruohan Li, Qian Lu et al.
ReActWAM: Action-Consistent Caching for Efficient World-Action Models
Shared title terminology · Zhaochen Guo, Yunke Wang, Siyu Xu et al.