Teaching Temporal Logics to Neural Networks

Christopher Hahn, Frederik Schmitt, Jens U. Kreber, Markus N. Rabe, Bernd Finkbeiner
3/6/2020
80 citations
cs.LOcs.AIcs.LG
transformer-attention

Official code: reactive-systems/deepltl (33 stars, Python, MIT, last commit 2022-02-10).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of Teaching Temporal Logics to Neural Networks (https://arxiv.org/abs/2003.04218)

335PythonJun 11, 20204 years agoMIT

Similar Papers

Cite this paper

@article{hahn2020teaching,
  title  = {Teaching Temporal Logics to Neural Networks},
  author = {Christopher Hahn and Frederik Schmitt and Jens U. Kreber and Markus N. Rabe and Bernd Finkbeiner},
  year   = {2020},
  eprint = {2003.04218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.04218}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.04218.svg)](https://codeofpaper.com/paper/2003.04218)

Discussion