VERIFY: Bridging Formal Logic and Natural Language

Our 2026 paper introduces VERIFY, a 200k-triplet dataset bridging LTL and natural language. By using an intermediate technical language, we enable rigorous translation studies across 13 domains, establishing baselines for formal logic interpretation.

At a glance

  • VERIFY provides 200k triplets pairing LTL, ITL, and natural language across 13 domains.
  • The ITL formalism serves as a provably complete bridge between logic and syntax.
  • Validation confirms over 97% semantic correctness, with minor errors in temporal nuances.

Bridging Formal Logic and Natural Language

Our 2026 paper introduces VERIFY, a dataset designed to bridge the gap between formal temporal logic and human-readable specifications. Prior to this work, large-scale resources pairing rich, contextual natural language with Linear Temporal Logic (LTL) were largely absent. VERIFY addresses this by providing over 200,000 rigorously generated triplets across 13 diverse application domains. Each triplet unifies an LTL formula, a structured Intermediate Technical Language (ITL) representation, and a domain-specific natural language description. This structure allows researchers to study the translation between formal logic and natural language in a way that preserves the semantic integrity of the original specification.

The Role of Intermediate Technical Language

A central methodological contribution is the ITL formalism, a structured intermediate representation with a formal grammar engineered to be provably complete with respect to the input LTL fragment. This design bridges LTL structural patterns with natural language syntax, reducing the cognitive load on models that must translate between the two. The construction pipeline systematically enumerates LTL formulas, verifies their non-triviality and satisfiability via model checking, and maps them to ITL. Natural language descriptions are then generated using a state-of-the-art reasoning LLM, conditioned on the LTL/ITL structure, domain, and variable semantics to ensure context-awareness.

Ensuring Data Integrity and Quality

Data quality is a critical component of the VERIFY benchmark. We validated the dataset through manual expert verification of 10,000 diverse samples and automated semantic consistency checks. This process identified an error rate below 1%, primarily consisting of minor fluency issues or subtle deviations in temporal meaning. Automated checks judged by Llama 3.3 confirmed an estimated greater than 97% semantic correctness. While this high level of accuracy is encouraging, we note that subtle errors in translating complex temporal nuances may persist in a small fraction of examples, a limitation inherent to the complexity of temporal logic.

Benchmarking Translation Capabilities

We established baseline performance levels for state-of-the-art models on five core translation tasks: LTL to NL, ITL to NL, NL to LTL, NL to ITL, and LTL to ITL. In the direction of generating natural language from logic, fine-tuned LLMs generally outperform encoder-decoder models. For instance, Llama-3-8B achieves a BERTScore F1 of 0.91 on LTL to NL, compared to 0.62 for T5-base. Furthermore, models translating ITL to NL consistently outperform those translating LTL to NL, with T5-large showing a significant relative gain in BERTScore F1 from 0.67 to 0.89. This suggests that the structured nature of ITL provides a more effective scaffold for language generation than raw LTL syntax.

Challenges in Natural Language to Logic Translation

The reverse direction, translating natural language to LTL, remains a significant challenge. The best evaluated model achieves only 31.5% semantic equivalence on this task. Error analysis of 100 incorrect predictions from Llama-3-8B-Instruct reveals that 41% of failures are due to incorrect logical scope, while 28% stem from temporal operator confusion. These patterns suggest that unconstrained autoregressive decoding is poorly suited to producing well-scoped logical formulas from natural language. The results indicate that structured decoding methods or neurosymbolic architectures may be necessary to overcome these specific failure modes.

Scope and Limitations

Several material limitations define the current scope of VERIFY. The LLM-judge validation is subject to a systematic blind spot, as both the generator and the judge are LLMs, meaning errors made by one may be consistently overlooked by the other. Additionally, the natural language translations were primarily generated by DeepSeek-R1, which may reflect stylistic biases or artifacts of that model rather than the full spectrum of human linguistic variation. Finally, the LTL formulas were generated programmatically up to a complexity threshold of AST depth 25, which may not cover all patterns found in highly specialized specifications. These factors should be considered when interpreting the generalizability of the results.

Read and cite this paper

VERIFY: A Novel Multi-Domain Dataset Grounding LTL in Contextual Natural Language via Provable Intermediate Logic

Paapa Kwesi Quansah; Pablo Rivas; Ernest Bonnah. "VERIFY: A Novel Multi-Domain Dataset Grounding LTL in Contextual Natural Language via Provable Intermediate Logic." International Conference on Learning Representations (ICLR), vol. 2026, pp. 86416โ€“86453. April 2026. Available: https://rivas.ai/pdfs/quansah2026verify.pdf

Read the paper (PDF) ยท Original BibTeX

Original BibTeX text
@inproceedings{quansah2026verify,
  title     = {VERIFY: A Novel Multi-Domain Dataset Grounding LTL in Contextual Natural Language via Provable Intermediate Logic},
  author    = {Paapa Kwesi Quansah and Pablo Rivas and Ernest Bonnah},
  booktitle = {International Conference on Learning Representations (ICLR)},
  editor = {C. Vondrick and B. Hariharan and C. Raffel and L. Pinto and D. Yang and A. Faust},
  pages = {86416--86453},
  url = {https://proceedings.iclr.cc/paper_files/paper/2026/file/8b078da44614b6e249dc9e9474dc8d11-Paper-Conference.pdf},
  volume = {2026},
  year      = {2026},
  month     = {Apr}
}