Teaching Temporal Logics to Neural Networks
Not on the map. Why?
Abstract (arXiv)
We study two fundamental questions in neuro-symbolic computing: can deep learning tackle challenging problems in logics end-to-end, and can neural networks learn the semantics of logics. In this work we focus on linear-time temporal logic (LTL), as it is widely used in verification. We train a Transformer on the problem to directly predict a solution, i.e. a trace, to a given LTL formula. The training data is generated with classical solvers, which, however, only provide one of many possible solutions to each formula. We demonstrate that it is sufficient to train on those particular solutions to formulas, and that Transformers can predict solutions even to formulas from benchmarks from the literature on which the classical solver timed out. Transformers also generalize to the semantics of the logics: while they often deviate from the solutions found by the classical solvers, they still predict correct solutions to most formulas.
Key facts. Cited by 51 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 12; 2023: 11; 2024: 8; 2025: 12; 2026: 2.
51 papers.
Sort:
By area:
- 2022Autoformalization with Large Language Modelscited by 252
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
- 2022Memorizing Transformerscited by 219
- 2022End-to-end symbolic regression with transformerscited by 195
- 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 130
- 2022On the Paradox of Learning to Reason from Datacited by 93
- 2021From Statistical Relational to Neurosymbolic Artificial Intelligence: a Surveycited by 72
- 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Taskscited by 70
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Modelscited by 67
- 2023Length Generalization in Arithmetic Transformerscited by 64
- 2021Linear algebra with transformerscited by 62
- 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformerscited by 58
38 more
- 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Modelscited by 57
- 2023Towards LogiGLUE: A Brief Survey and A Benchmark for Analyzing Logical Reasoning Capabilities of Language Modelscited by 35
- 2022Formal Specifications from Natural Languagecited by 33
- 2023DecoderLens: Layerwise Interpretation of Encoder-Decoder Transformerscited by 22
- 2021Neural Circuit Synthesis from Specification Patternscited by 17
- 2021Teaching Autoregressive Language Models Complex Tasks By Demonstrationcited by 15
- 2023Iterative Circuit Repair Against Formal Specificationscited by 9
- 2021Generating Symbolic Reasoning Problems with Transformer GANscited by 5
- 2022Learning to Find Proofs and Theorems by Learning to Refine Search Strategies: The Case of Loop Invariant Synthesiscited by 5
- 2024Guiding Multi-agent Multi-task Reinforcement Learning by a Hierarchical Framework with Logical Reward Shapingcited by 4
- 2025Al-Khwarizmi: Discovering Physical Laws with Foundation Modelscited by 4
- 2025Lean-ing on Quality: How High-Quality Data Beats Diverse Multilingual Data in AutoFormalizationcited by 4
- 2024NeuroSynt: A Neuro-symbolic Portfolio Solver for Reactive Synthesiscited by 3
- 2024OLViT: Multi-Modal State Tracking via Attention-Based Embeddings for Video-Grounded Dialogcited by 3
- 2025Logical forms complement probability in understanding language model (and human) performancecited by 3
- 2022Learning Temporal Rules from Noisy Timeseries Datacited by 2
- 2022OCTAL: Graph Representation Learning for LTL Model Checkingcited by 2
- 2023Using Language Models For Knowledge Acquisition in Natural Language Reasoning Problemscited by 2
- 2023Lightweight Online Learning for Sets of Related Problems in Automated Reasoningcited by 2
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Modelscited by 2
- 2024Interchangeable Token Embeddings for Extendable Vocabulary and Alpha-Equivalencecited by 2
- 2024Towards Specification-Driven LLM-Based Generation of Embedded Automotive Softwarecited by 2
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanationscited by 2
- 2022Neural Combinatorial Logic Circuit Synthesis from Input-Output Examplescited by 1
- 2022Towards Unsupervised Visual Reasoning: Do Off-The-Shelf Features Know How to Reason?cited by 1
- 2024Learning Better Representations From Less Data For Propositional Satisfiabilitycited by 1
- 2024Learning to Estimate System Specifications in Linear Temporal Logic using Transformers and Mambacited by 1
- 2025Propositional Logic for Probing Generalization in Neural Networkscited by 1
- 2025Bridging Logic and Learning: Decoding Temporal Logic Embeddings via Transformerscited by 1
- 2025How Safe Will I Be Given What I Saw? Calibrated Prediction of Safety Chances for Image-Controlled Autonomycited by 1
- 2025RNN Generalization to Omega-Regular Languagescited by 1
- 2022Attention Flows for General Transformerscited by 0
- 2023OCTAL: Graph Representation Learning for LTL Model Checkingcited by 0
- 2025Studying number theory with deep learning: a case study with the M"obius and squarefree indicator functionscited by 0
- 2025LTLZinc: a Benchmarking Framework for Continual Learning and Neuro-Symbolic Temporal Reasoningcited by 0
- 2025Handling Open-Vocabulary Constructs in Formalizing Specifications: Retrieval-Augmented Parsing with Expert Knowledgecited by 0
- 2025Learning Representations Through Contrastive Neural Model Checkingcited by 0
- 2026Names Don't Matter: Symbol-Invariant Transformer for Open-Vocabulary Learningcited by 0
50 most cited of 51 All 51 (JSON)
- 2026Translating Natural Language to Strategic Temporal Specifications via LLMs29 Jun 2026
- 2026Names Don't Matter: Symbol-Invariant Transformer for Open-Vocabulary Learning30 Jan 2026
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanations20 Oct 2025
- 2025Learning Representations Through Contrastive Neural Model Checking2 Oct 2025
- 2025Handling Open-Vocabulary Constructs in Formalizing Specifications: Retrieval-Augmented Parsing with Expert Knowledge10 Sep 2025
- 2025RNN Generalization to Omega-Regular Languages2 Sep 2025
- 2025How Safe Will I Be Given What I Saw? Calibrated Prediction of Safety Chances for Image-Controlled Autonomy12 Aug 2025
- 2025LTLZinc: a Benchmarking Framework for Continual Learning and Neuro-Symbolic Temporal Reasoning23 Jul 2025
- 2025Bridging Logic and Learning: Decoding Temporal Logic Embeddings via Transformers10 Jul 2025
- 2025Propositional Logic for Probing Generalization in Neural Networks10 Jun 2025
- 2025Lean-ing on Quality: How High-Quality Data Beats Diverse Multilingual Data in AutoFormalization18 Feb 2025
- 2025Studying number theory with deep learning: a case study with the M"obius and squarefree indicator functions14 Feb 2025
38 more
- 2025Logical forms complement probability in understanding language model (and human) performance13 Feb 2025
- 2025Al-Khwarizmi: Discovering Physical Laws with Foundation Models3 Feb 2025
- 2024Towards Specification-Driven LLM-Based Generation of Embedded Automotive Software20 Nov 2024
- 2024Guiding Multi-agent Multi-task Reinforcement Learning by a Hierarchical Framework with Logical Reward Shaping2 Nov 2024
- 2024Interchangeable Token Embeddings for Extendable Vocabulary and Alpha-Equivalence22 Oct 2024
- 2024Learning to Estimate System Specifications in Linear Temporal Logic using Transformers and Mamba31 May 2024
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Models23 Apr 2024
- 2024OLViT: Multi-Modal State Tracking via Attention-Based Embeddings for Video-Grounded Dialog20 Feb 2024
- 2024Learning Better Representations From Less Data For Propositional Satisfiability13 Feb 2024
- 2024NeuroSynt: A Neuro-symbolic Portfolio Solver for Reactive Synthesis22 Jan 2024
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Models18 Dec 2023
- 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformers9 Oct 2023
- 2023DecoderLens: Layerwise Interpretation of Encoder-Decoder Transformers5 Oct 2023
- 2023Towards LogiGLUE: A Brief Survey and A Benchmark for Analyzing Logical Reasoning Capabilities of Language Models2 Oct 2023
- 2023OCTAL: Graph Representation Learning for LTL Model Checking19 Aug 2023
- 2023Length Generalization in Arithmetic Transformers27 Jun 2023
- 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Tasks11 Jun 2023
- 2023Lightweight Online Learning for Sets of Related Problems in Automated Reasoning18 May 2023
- 2023Using Language Models For Knowledge Acquisition in Natural Language Reasoning Problems4 Apr 2023
- 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Models8 Mar 2023
- 2023Iterative Circuit Repair Against Formal Specifications2 Mar 2023
- 2022Towards Unsupervised Visual Reasoning: Do Off-The-Shelf Features Know How to Reason?20 Dec 2022
- 2022Neural Combinatorial Logic Circuit Synthesis from Input-Output Examples29 Oct 2022
- 2022FOLIO: Natural Language Reasoning with First-Order Logic2 Sep 2022
- 2022OCTAL: Graph Representation Learning for LTL Model Checking24 Jul 2022
- 2022Formal Specifications from Natural Language4 Jun 2022
- 2022Attention Flows for General Transformers30 May 2022
- 2022Learning to Find Proofs and Theorems by Learning to Refine Search Strategies: The Case of Loop Invariant Synthesis27 May 2022
- 2022Autoformalization with Large Language Models25 May 2022
- 2022On the Paradox of Learning to Reason from Data23 May 2022
- 2022End-to-end symbolic regression with transformers22 Apr 2022
- 2022Memorizing Transformers16 Mar 2022
- 2022Learning Temporal Rules from Noisy Timeseries Data11 Feb 2022
- 2021Linear algebra with transformers3 Dec 2021
- 2021Generating Symbolic Reasoning Problems with Transformer GANs19 Oct 2021
- 2021Teaching Autoregressive Language Models Complex Tasks By Demonstration5 Sep 2021
- 2021From Statistical Relational to Neurosymbolic Artificial Intelligence: a Survey25 Aug 2021
- 2021Neural Circuit Synthesis from Specification Patterns25 Jul 2021
50 newest of 51 All 51 (JSON)
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
- 2022On the Paradox of Learning to Reason from Datacited by 93
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Modelscited by 67
- 2023Towards LogiGLUE: A Brief Survey and A Benchmark for Analyzing Logical Reasoning Capabilities of Language Modelscited by 35
- 2023Using Language Models For Knowledge Acquisition in Natural Language Reasoning Problemscited by 2
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Modelscited by 2
- 2022Towards Unsupervised Visual Reasoning: Do Off-The-Shelf Features Know How to Reason?cited by 1
- 2025LTLZinc: a Benchmarking Framework for Continual Learning and Neuro-Symbolic Temporal Reasoningcited by 0
- 2025LTLZinc: a Benchmarking Framework for Continual Learning and Neuro-Symbolic Temporal Reasoning23 Jul 2025
- 2024LogicBench: Towards Systematic Evaluation of Logical Reasoning Ability of Large Language Models23 Apr 2024
- 2023Assessing Logical Reasoning Capabilities of Encoder-Only Transformer Models18 Dec 2023
- 2023Towards LogiGLUE: A Brief Survey and A Benchmark for Analyzing Logical Reasoning Capabilities of Language Models2 Oct 2023
- 2023Using Language Models For Knowledge Acquisition in Natural Language Reasoning Problems4 Apr 2023
- 2022Towards Unsupervised Visual Reasoning: Do Off-The-Shelf Features Know How to Reason?20 Dec 2022
- 2022FOLIO: Natural Language Reasoning with First-Order Logic2 Sep 2022
- 2022On the Paradox of Learning to Reason from Data23 May 2022
- 2022Autoformalization with Large Language Modelscited by 252
- 2022Memorizing Transformerscited by 219
- 2022End-to-end symbolic regression with transformerscited by 195
- 2021From Statistical Relational to Neurosymbolic Artificial Intelligence: a Surveycited by 72
- 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Taskscited by 70
- 2023Length Generalization in Arithmetic Transformerscited by 64
- 2021Linear algebra with transformerscited by 62
- 2023ODEFormer: Symbolic Regression of Dynamical Systems with Transformerscited by 58
- 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Modelscited by 57
- 2022Formal Specifications from Natural Languagecited by 33
- 2023DecoderLens: Layerwise Interpretation of Encoder-Decoder Transformerscited by 22
- 2021Neural Circuit Synthesis from Specification Patternscited by 17
12 most cited of 39 All 39 (JSON)
- 2026Translating Natural Language to Strategic Temporal Specifications via LLMs29 Jun 2026
- 2026Names Don't Matter: Symbol-Invariant Transformer for Open-Vocabulary Learning30 Jan 2026
- 2025Explainability of Large Language Models: Opportunities and Challenges toward Generating Trustworthy Explanations20 Oct 2025
- 2025Learning Representations Through Contrastive Neural Model Checking2 Oct 2025
- 2025RNN Generalization to Omega-Regular Languages2 Sep 2025
- 2025Bridging Logic and Learning: Decoding Temporal Logic Embeddings via Transformers10 Jul 2025
- 2025Propositional Logic for Probing Generalization in Neural Networks10 Jun 2025
- 2025Lean-ing on Quality: How High-Quality Data Beats Diverse Multilingual Data in AutoFormalization18 Feb 2025
- 2025Studying number theory with deep learning: a case study with the M"obius and squarefree indicator functions14 Feb 2025
- 2025Logical forms complement probability in understanding language model (and human) performance13 Feb 2025
- 2025Al-Khwarizmi: Discovering Physical Laws with Foundation Models3 Feb 2025
- 2024Towards Specification-Driven LLM-Based Generation of Embedded Automotive Software20 Nov 2024
12 newest of 39 All 39 (JSON)