LTLGuard: Formalizing LTL Specifications with Compact Language Models and Lightweight Symbolic Reasoning

Medina Andresel, Cristinel Mateis, Dejan Nickovic, Spyridon Kounoupidis, Panagiotis Katsaros +1 more
3/5/2026
cs.LOcs.AIcs.SE

No confident code implementation found for this paper.

Abstract

Translating informal requirements into formal specifications is challenging due to the ambiguity and variability of natural language (NL). This challenge is particularly pronounced when relying on compact (small and medium) language models, which may lack robust knowledge of temporal logic and thus struggle to produce syntactically valid and consistent formal specifications. In this work, we focus on enabling resource-efficient open-weight models (4B--14B parameters) to generate correct linear temporal logic (LTL) specifications from informal requirements. We present LTLGuard, a modular toolchain that combines constrained generation with formal consistency checking to generate conflict-free LTL specifications from informal input. Our method integrates the generative capabilities of model languages with lightweight automated reasoning tools to iteratively refine candidate specifications, understand the origin of the conflicts and thus help in eliminating inconsistencies. We demonstrate the usability and the effectiveness of our approach and perform quantitative evaluation of the resulting framework.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{andresel2026ltlguard,
  title  = {LTLGuard: Formalizing LTL Specifications with Compact Language Models and Lightweight Symbolic Reasoning},
  author = {Medina Andresel and Cristinel Mateis and Dejan Nickovic and Spyridon Kounoupidis and Panagiotis Katsaros and Stavros Tripakis},
  year   = {2026},
  eprint = {2603.05728},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.05728v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.05728.svg)](https://codeofpaper.com/paper/2603.05728)

Discussion