Teaching Temporal Logics to Neural Networks

By Bernd Finkbeiner, Christopher Hahn, Markus Norman Rabe, Frederik Schmitt. 2020

79 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Model Architectures, Program Analysis & Verification

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yuhuai Wu
  2. Markus Norman Rabe
  3. Kai-Wei Chang
  4. Wenda Li
  5. Mohit Bansal
  6. Albert Qiaochu Jiang
  7. Jianfeng Gao
  8. Sergey Levine

In Model Architectures

  1. Yuhuai Wu
  2. Guy Van den Broeck
  3. Christian Szegedy
  4. Amos Azaria
  5. Markus Norman Rabe
  6. Forough Arabshahi
  7. Albert Qiaochu Jiang
  8. Charles Staats

In Program Analysis & Verification

  1. Markus Norman Rabe
  2. Yuhuai Wu
  3. Jesse Michael Han
  4. Edward W. Ayers
  5. Mateja Jamnik
  6. Albert Qiaochu Jiang
  7. Charles Staats
  8. Jason M. Rute

Citations in the corpus