Lune

ICLR2021Top-tier venue

Teaching Temporal Logics to Neural Networks

Christopher Hahn, Frederik Schmitt, Jens U. Kreber, Markus Norman Rabe, Bernd Finkbeiner

Abstract

We show that a deep neural network can learn the semantics of linear-time temporal logic (LTL). As a challenging task that requires deep understanding of the LTL semantics, we show that our network can solve the trace generation problem for LTL: given a satisfiable LTL formula, find a trace that satisfies the formula. We frame the trace generation problem for LTL as a translation task, i.e., to translate from formulas to satisfying traces, and train an off-the-shelf implementation of the Transformer, a recently introduced deep learning architecture proposed for solving natural language processing tasks. We provide a detailed analysis of our experimental results, comparing multiple hyperparameter settings and formula representations. After training for several hours on a single GPU the results were surprising: the Transformer returns the syntactically equivalent trace in 89% of the cases on a held-out test set. Most of the "mispredictions", however, (and overall more than 99% of the predicted traces) still satisfy the given LTL formula. In other words, the Transformer generalized from imperfect training data to the semantics of LTL.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

20 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Proof Artifact Co-Training for Theorem Proving with Language Models cites Mathematical Reasoning via Self-supervised Skip-tree Training
  • Proof Artifact Co-Training for Theorem Proving with Language Models cites Graph Representations for Higher-Order Logic and Theorem Proving
  • Proof Artifact Co-Training for Theorem Proving with Language Models cites Language Models are Few-Shot Learners
  • Proof Artifact Co-Training for Theorem Proving with Language Models cites IsarStep: a Benchmark for High-level Mathematical Reasoning
  • Proof Artifact Co-Training for Theorem Proving with Language Models cites Deep Learning For Symbolic Mathematics
  • Mathematical Reasoning via Self-supervised Skip-tree Training cites Global Relational Models of Source Code
  • Mathematical Reasoning via Self-supervised Skip-tree Training cites Language Models are Few-Shot Learners
  • Mathematical Reasoning via Self-supervised Skip-tree Training cites Deep Learning For Symbolic Mathematics
  • Memorizing Transformers cites Mathematical Reasoning via Self-supervised Skip-tree Training
  • Memorizing Transformers cites Language Models are Few-Shot Learners
  • Memorizing Transformers cites IsarStep: a Benchmark for High-level Mathematical Reasoning
  • Autoformalization with Large Language Models cites Proof Artifact Co-Training for Theorem Proving with Language Models
  • Autoformalization with Large Language Models cites Mathematical Reasoning via Self-supervised Skip-tree Training
  • Autoformalization with Large Language Models cites Memorizing Transformers
  • Autoformalization with Large Language Models cites Language Models are Few-Shot Learners
  • IsarStep: a Benchmark for High-level Mathematical Reasoning cites Mathematical Reasoning via Self-supervised Skip-tree Training
  • IsarStep: a Benchmark for High-level Mathematical Reasoning cites Graph Representations for Higher-Order Logic and Theorem Proving
  • IsarStep: a Benchmark for High-level Mathematical Reasoning cites Language Models are Few-Shot Learners
  • IsarStep: a Benchmark for High-level Mathematical Reasoning cites Deep Learning For Symbolic Mathematics
  • End-to-end Symbolic Regression with Transformers cites Deep Learning For Symbolic Mathematics
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers20

  1. Autoformalization with Large Language ModelsYuhuai Wu, Albert Qiaochu Jiang, Wenda Li, Markus N. Rabe et al.NeurIPS 2022 · 364 citations
  2. End-to-end Symbolic Regression with TransformersPierre-Alexandre Kamienny, Stéphane d'Ascoli, Guillaume Lample, François ChartonNeurIPS 2022 · 320 citations
  3. Memorizing TransformersYuhuai Wu, Markus Norman Rabe, DeLesley Hutchins, Christian SzegedyICLR 2022 · 231 citations
  4. Proof Artifact Co-Training for Theorem Proving with Language ModelsJesse Michael Han, Jason Rute, Yuhuai Wu, Edward W. Ayers et al.ICLR 2022 · 149 citations
  5. IsarStep: a Benchmark for High-level Mathematical ReasoningWenda Li, Lei Yu, Yuhuai Wu, Lawrence C. PaulsonICLR 2021 · 69 citations

Builds on7

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Deep Learning For Symbolic MathematicsGuillaume Lample, François ChartonICLR 2020 · 477 citations
  3. Global Relational Models of Source CodeVincent J. Hellendoorn, Charles Sutton, Rishabh Singh, Petros Maniatis et al.ICLR 2020 · 252 citations
  4. Graph Representations for Higher-Order Logic and Theorem ProvingAditya Paliwal, Sarah M. Loos, Markus N. Rabe, Kshitij Bansal et al.AAAI 2020 · 110 citations
  5. Mathematical Reasoning via Self-supervised Skip-tree TrainingMarkus Norman Rabe, Dennis Lee, Kshitij Bansal, Christian SzegedyICLR 2021 · 65 citations

Related papers

  1. End-to-End Learning of LTLf Formulae by Faithful LTLf EncodingHai Wan, Pingjia Liang, Jianfeng Du, Weilin Luo et al.AAAI 2024 · 8 citations
  2. Iterative Circuit Repair Against Formal SpecificationsMatthias Cosler, Frederik Schmitt, Christopher Hahn, Bernd FinkbeinerICLR 2023 · 1 citation
  3. Neural Circuit Synthesis from Specification PatternsFrederik Schmitt, Christopher Hahn, Markus N. Rabe, Bernd FinkbeinerNeurIPS 2021 · 25 citations
  4. LTL Learning on GPUsMojtaba Valizadeh, Nathanaël Fijalkow, Martin BergerCAV 2024 · 9 citations
  5. Learning to Check LTL Satisfiability and to Generate Traces via Differentiable Trace CheckingWeilin Luo, Pingjia Liang, Junming Qiu, Polong Chen et al.ISSTA 2024 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines