NeuroSynt: A Neuro-symbolic Portfolio Solver for Reactive Synthesis

Matthias Cosler, Christopher Hahn, Ayham Omar, Frederik Schmitt

Abstract

Reactive synthesis—the automated generation of hardware implementations from high-level specifications—is a computationally intensive task traditionally handled by symbolic solvers. While these solvers provide formal guarantees, they often struggle with scalability. This paper introduces NeuroSynt, a neuro-symbolic portfolio solver that integrates the pattern-recognition capabilities of Transformers with the formal rigor of model checkers. By predicting circuit designs and verifying them through symbolic tools, NeuroSynt achieves novel solutions on industry benchmarks, often producing more efficient hardware than traditional methods.

Introduction

The challenge of reactive synthesis lies in its 2-EXPTIME complexity. Traditional symbolic solvers frequently encounter memory explosions or timeouts when processing complex, real-world specifications. Conversely, pure neural approaches, while fast, lack the soundness required for safety-critical hardware. NeuroSynt bridges this gap by employing a portfolio architecture that runs neural and symbolic solvers in parallel, ensuring both speed and mathematical certainty.

System Architecture

NeuroSynt is designed as a modular framework using Docker and gRPC, allowing for the seamless integration of various solvers and checkers. The core of the system is a neuro-symbolic engine that leverages a Hierarchical Transformer to predict AIGER circuits from Linear-time Temporal Logic (LTL) specifications.

The NeuroSynt architecture integrates neural solvers, symbolic solvers, and model checkers within a modular framework.

The workflow involves several key components:

  1. Neural Engine: Predicts a candidate circuit based on the input specification.
  2. Model Checker: Validates the neural output (e.g., using NuXmv or Spot). If verified, the solution is sound and mathematically certain.
  3. Symbolic Backups: Solvers like Strix and BoSy run concurrently to ensure completeness if the neural model fails to find a valid solution.
Sequence diagram illustrating the communication protocol between the portfolio solver and its constituent components.

Data Generation and Training

To train the neural component, the authors developed a large-scale dataset of 600,000 samples, significantly expanding upon previous work. By mining LTL patterns from the SYNTCOMP 2022 competition and employing data augmentation, the model was trained to handle up to 15 inputs and outputs. This increased complexity allows the model to generalize to real-world hardware logic patterns rather than merely memorizing training data.

Key Results and Insights

NeuroSynt demonstrates significant performance gains over standalone symbolic tools:

  • Novel Solutions: It solved 20 instances in the SYNTCOMP 2022 benchmark that were previously unsolved by any symbolic tool within the time limit.
  • Efficiency: Neural-generated circuits were found to be significantly simpler, containing 54.9% fewer latches on average than those produced by Strix, the current state-of-the-art.
  • Speed: The neural solver maintains nearly constant inference time, averaging 8.6 seconds per sample, providing a rapid "first responder" capability in the portfolio.
  • Accuracy: The system achieved 34.83% semantic accuracy on the full SYNTCOMP benchmark, a substantial improvement over prior neural architectures.

Conclusion

NeuroSynt represents a significant step forward in reactive synthesis by successfully combining neural speed with symbolic rigor. While currently optimized for realizable specifications and GPU-heavy environments, future work aims to improve the handling of unrealizability and integrate larger language models to further enhance synthesis capabilities.

Summary updated

BibTeX
@inproceedings{cosler2024neurosynt,
  author = {Matthias Cosler and Christopher Hahn and Ayham Omar and Frederik Schmitt},
  title = {{NeuroSynt: A Neuro-symbolic Portfolio Solver for Reactive Synthesis}},
  booktitle = {TACAS},
  year = {2024},
  doi = {10.1007/978-3-031-57256-2\_3},
}
Figure