Grammar-Forced Translation of Natural Language to Temporal Logic using LLMs
William English, Dominic Simon, Sumit Kumar Jha, Rickard Ewetz

TL;DR
This paper introduces GraFT, a novel framework that improves natural language to temporal logic translation by restricting output tokens, leading to higher accuracy and better out-of-domain performance.
Contribution
GraFT reduces the complexity of NL to TL translation by constraining output tokens, enhancing learning efficiency and translation accuracy over state-of-the-art methods.
Findings
Achieves 5.49% higher end-to-end accuracy
Improves out-of-domain translation accuracy by 14.06%
Demonstrates theoretical justification for solution space reduction
Abstract
Translating natural language (NL) into a formal language such as temporal logic (TL) is integral for human communication with robots and autonomous systems. State-of-the-art approaches decompose the task into a lifting of atomic propositions (APs) phase and a translation phase. However, existing methods struggle with accurate lifting, the existence of co-references, and learning from limited data. In this paper, we propose a framework for NL to TL translation called Grammar Forced Translation (GraFT). The framework is based on the observation that previous work solves both the lifting and translation steps by letting a language model iteratively predict tokens from its full vocabulary. In contrast, GraFT reduces the complexity of both tasks by restricting the set of valid output tokens from the full vocabulary to only a handful in each step. The solution space reduction is obtained by…
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
TopicsNatural Language Processing Techniques · Topic Modeling · Language and cultural evolution
