Bridging Logic and Learning: Decoding Temporal Logic Embeddings via Transformers
Sara Candussio, Gaia Saveri, Gabriele Sarti, Luca Bortolussi

TL;DR
This paper presents a Transformer-based model that inverts semantic embeddings of Signal Temporal Logic formulae, enabling the generation of valid, simplified formulas from embeddings for applications like requirement mining.
Contribution
The authors introduce a novel Transformer decoder approach to invert STL embeddings, allowing for accurate and semantically consistent formula generation from continuous representations.
Findings
Model generates valid formulas after 1 epoch
Generalizes to new semantics in about 10 epochs
Decodes embeddings into simpler, semantically close formulas
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
