mlsanityData to 7 Oct 2026

Syntax Is Easy, Semantics Is Hard: Evaluating LLMs for LTL Translation

arXiv 2604.07321 ↗First posted 8 Apr 2026cs.LO cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Propositional Linear Temporal Logic (LTL) is a popular formalism for specifying desirable requirements and security and privacy policies for software, networks, and systems. Yet expressing such requirements and policies in LTL remains challenging because of its intricate semantics. Since many security and privacy analysis tools require LTL formulas as input, this difficulty places them out of reach for many developers and analysts. Large Language Models (LLMs) could broaden access to such tools by translating natural language fragments into LTL formulas. This paper evaluates that premise by assessing how effectively several representative LLMs translate assertive English sentences into LTL formulas. Using both human-generated and synthetic ground-truth data, we evaluate effectiveness along syntactic and semantic dimensions. The results reveal three findings: (1) in line with prior findings, LLMs perform better on syntactic aspects of LTL than on semantic ones; (2) they generally benefit from more detailed prompts; and (3) reformulating the task as a Python code-completion problem substantially improves overall performance. We also discuss challenges in conducting a fair evaluation on this task and conclude with recommendations for future work.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 14 of its 66 references that are in the map. First posted on arXiv 8 Apr 2026.

Builds on

14 of 66 references.

References · 14

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  3. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  4. 2023StarCoder: may the source be with you!cited by 790
  5. 2024Can Large Language Models Reason and Plan?cited by 82
  6. 2025Flexible and Efficient Grammar-Constrained Decodingcited by 42
  7. 2024Guiding LLM Temporal Logic Generation with Explicit Separation of Data and Controlcited by 8
  8. 2021Linear-time Temporal Logic guided Greybox Fuzzingcited by 5
  9. 2022Quickstrom: Property Based Acceptance Testing with LTL Specificationscited by 2
  10. 2023Model Checking Access Control Policies: A Case Study using Google Cloud IAMcited by 2
  11. 2025CloudFix: Automated Policy Repair for Cloud Access Control Policies Using Large Language Modelscited by 2
  12. 2015Equivalence-based Security for Querying Encrypted Databases: Theory and Application to Privacy Policy Auditscited by 1
2 more
  1. 2021PHOENIX: Device-Centric Cellular Network Protocol Monitoring using Runtime Verificationcited by 1
  2. 2023MAVERICK: An App-independent and Platform-agnostic Approach to Enforce Policies in IoT Systems at Runtimecited by 1

Built on by

Not cited yet.