atlas

Research map / Large language models / Agents, code and math

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

ICML 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes GraFT, which lifts atomic propositions with a fine-tuned BERT tagger and translates lifted NL to LTL with a fine-tuned T5 using grammar-forced training and grammar-constrained decoding, improving end-to-end NL-to-TL accuracy.

Problem

Translating natural language into temporal logic is hard due to inaccurate atomic proposition (AP) lifting, co-references, and dependence on limited training data.

Approach

Restrict the valid output tokens at each step using known structure: AP lifting becomes masked token labeling with a handful of integer IDs (BERT), and the seq2seq translation uses TL grammar masks during both grammar-forced training (teacher-forced grammar states) and constrained decoding (T5).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use GraFT instead of the strongest reported NL2TL baselineEnd-to-end translation with 500 training examples · CWaccuracy: 93.00 -> 97.70Helped
Use GraFT instead of the strongest reported NL2TL baselineEnd-to-end translation with 500 training examples · GLTLaccuracy: 83.80 -> 91.50Helped
Use GraFT instead of the strongest reported NL2TL baselineEnd-to-end translation with 500 training examples · Naviaccuracy: 83.70 -> 85.00Helped
Use GraFT instead of the strongest reported NL2TL baselineEnd-to-end translation with 2000 training examples · CWaccuracy: 98.20 -> 99.90Helped
Use GraFT instead of the strongest reported NL2TL baselineEnd-to-end translation with 2000 training examples · GLTLaccuracy: 97.40 -> 99.80Helped
Use GraFT instead of the strongest reported NL2TL baselineEnd-to-end translation with 2000 training examples · Naviaccuracy: 90.00 -> 99.10Helped
Use GraFT instead of NL2TLOut-of-distribution translation trained on GLTL+Navi · Naviaccuracy: 55.3 -> 73.0Helped
Use GraFT instead of NL2TLOut-of-distribution translation trained on CW+Navi · CWaccuracy: 21.2 -> 58.8Helped
Use GraFT instead of NL2TLOut-of-distribution translation trained on CW+GLTL · Naviaccuracy: 14.6 -> 21.2Helped
Use BERT masked-language AP lifting instead of GPT-4 causal AP lifting (ablation)AP lifting on sequences with 6–10 APs · CWaccuracy: 81.88 -> 97.10Helped
Use BERT masked-language AP lifting instead of GPT-4 causal AP lifting (ablation)AP lifting on sequences with 11–15 APs · CWaccuracy: 70.34 -> 95.78Helped

Surprising findings

Limitations

Experimental setup

Datasets: Navigation GLTL CW

Benchmarks: CW GLTL Navi

Metrics: end-to-end translation accuracy AP lifting top-1 accuracy out-of-domain accuracy

Baselines: NL2LTL NL2Spec NL2TL Ungrounded Seq2Seq

Builds on: NL2TL NL2LTL NL2Spec T5 BERT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy