Neural Circuit Synthesis from Specification Patterns

Frederik Schmitt, Christopher Hahn, Markus N. Rabe, Bernd Finkbeiner
7/25/2021
cs.LGcs.LO
transformer-attention

Official code: reactive-systems/ml2 (16 stars, Python, MIT, last commit 2025-04-01).

Abstract

We train hierarchical Transformers on the task of synthesizing hardware circuits directly out of high-level logical specifications in linear-time temporal logic (LTL). The LTL synthesis problem is a well-known algorithmic challenge with a long history and an annual competition is organized to track the improvement of algorithms and tooling over time.

Show full abstract

New approaches using machine learning might open a lot of possibilities in this area, but suffer from the lack of sufficient amounts of training data. In this paper, we consider a method to generate large amounts of additional training data, i.e., pairs of specifications and circuits implementing them. We ensure that this synthetic data is sufficiently close to human-written specifications by mining common patterns from the specifications used in the synthesis competitions. We show that hierarchical Transformers trained on this synthetic data solve a significant portion of problems from the synthesis competitions, and even out-of-distribution examples from a recent case study.

View on arXivView PDF

Code Implementations(1)

MIT

Machine Learning for Mathematics and Logics

167Python, Jupyter NotebookJun 30, 20211 years agoMIT

Similar Papers

Cite this paper

@article{schmitt2021neural,
  title  = {Neural Circuit Synthesis from Specification Patterns},
  author = {Frederik Schmitt and Christopher Hahn and Markus N. Rabe and Bernd Finkbeiner},
  year   = {2021},
  eprint = {2107.11864},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.11864}
}

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/2107.11864.svg)](https://codeofpaper.com/paper/2107.11864)

Discussion