mlsanityData to 14 Oct 2026

Bridging Logic and Learning: Decoding Temporal Logic Embeddings via Transformers

arXiv 2507.07808 ↗First posted 10 Jul 2025cs.CL cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Continuous representations of logic formulae allow us to integrate symbolic knowledge into data-driven learning algorithms. If such embeddings are semantically consistent, i.e. if similar specifications are mapped into nearby vectors, they enable continuous learning and optimization directly in the semantic space of formulae. However, to translate the optimal continuous representation into a concrete requirement, such embeddings must be invertible. We tackle this issue by training a Transformer-based decoder-only model to invert semantic embeddings of Signal Temporal Logic (STL) formulae. STL is a powerful formalism that allows us to describe properties of signals varying over time in an expressive yet concise way. By constructing a small vocabulary from STL syntax, we demonstrate that our proposed model is able to generate valid formulae after only 1 epoch and to generalize to the semantics of the logic in about 10 epochs. Additionally, the model is able to decode a given embedding into formulae that are often simpler in terms of length and nesting while remaining semantically close (or equivalent) to gold references. We show the effectiveness of our methodology across various levels of training formulae complexity to assess the impact of training data on the model's ability to effectively capture the semantic information contained in the embeddings and generalize out-of-distribution. Finally, we deploy our model for solving a requirement mining task, i.e. inferring STL specifications that solve a classification task on trajectories, performing the optimization directly in the semantic space.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 22 of its 38 references that are in the map. First posted on arXiv 10 Jul 2025.

Builds on

22 of 38 references.

References · 22

  1. 2017Attention Is All You Needcited by 60,361
  2. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  3. 2023A Survey of Large Language Modelscited by 2,576
  4. 2020Neurosymbolic AI: The 3rd Wavecited by 255
  5. 2022End-to-end symbolic regression with transformerscited by 203
  6. 2023Transformer-based Planning for Symbolic Regressioncited by 79
  7. 2021From Statistical Relational to Neurosymbolic Artificial Intelligence: a Surveycited by 72
  8. 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformerscited by 62
  9. 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Modelscited by 60
  10. 2020Teaching Temporal Logics to Neural Networkscited by 51
  11. 2019Embedding Symbolic Knowledge into Deep Networkscited by 49
  12. 2022Formal Specifications from Natural Languagecited by 33
10 more
  1. 2021DeepSTL -- From English Requirements to Signal Temporal Logiccited by 22
  2. 2019Interpretable Classification of Time-Series Data using Efficient Enumerative Techniquescited by 20
  3. 2019Improving Graph Neural Network Representations of Logical Formulae with Subgraph Poolingcited by 20
  4. 2017A Robust Genetic Algorithm for Learning Temporal Specifications from Datacited by 11
  5. 2021STL2vec: Signal Temporal Logic Embeddings for Control Synthesis With Recurrent Neural Networkscited by 7
  6. 2022Learning Model Checking and the Kernel Trick for Signal Temporal Logic on Stochastic Processescited by 7
  7. 2024Retrieval-Augmented Mining of Temporal Logic Specifications from Datacited by 5
  8. 2024stl2vec: Semantic and Interpretable Vector Representation of Temporal Logiccited by 3
  9. 2019Cause Mining and Controller Synthesis with STLcited by 2
  10. 2024Learning to Estimate System Specifications in Linear Temporal Logic using Transformers and Mambacited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.