Grammar-Forced Translation of Natural Language to Temporal Logic using LLMs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: English, William, Simon, Dominic, Jha, Sumit Kumar, Ewetz, Rickard
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909969443454976
author English, William
Simon, Dominic
Jha, Sumit Kumar
Ewetz, Rickard
author_facet English, William
Simon, Dominic
Jha, Sumit Kumar
Ewetz, Rickard
contents 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 exploiting the unique properties of each problem. We also provide a theoretical justification for why the solution space reduction leads to more efficient learning. We evaluate the effectiveness of GraFT using the CW, GLTL, and Navi benchmarks. Compared with state-of-the-art translation approaches, it can be observed that GraFT the end-to-end translation accuracy by 5.49% and out-of-domain translation accuracy by 14.06% on average.
format Preprint
id arxiv_https___arxiv_org_abs_2512_16814
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Grammar-Forced Translation of Natural Language to Temporal Logic using LLMs
English, William
Simon, Dominic
Jha, Sumit Kumar
Ewetz, Rickard
Computation and Language
Artificial Intelligence
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 exploiting the unique properties of each problem. We also provide a theoretical justification for why the solution space reduction leads to more efficient learning. We evaluate the effectiveness of GraFT using the CW, GLTL, and Navi benchmarks. Compared with state-of-the-art translation approaches, it can be observed that GraFT the end-to-end translation accuracy by 5.49% and out-of-domain translation accuracy by 14.06% on average.
title Grammar-Forced Translation of Natural Language to Temporal Logic using LLMs
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2512.16814