TL;DR
NeuroSynt is a neuro-symbolic portfolio solver that bridges the gap between fast-but-unreliable neural models and slow-but-sound symbolic solvers for reactive synthesis. By running these approaches in parallel and verifying neural outputs with model checkers, it achieves state-of-the-art performance, solving 20 complex benchmark instances that no existing symbolic solver could handle alone.
What Problem Does This Paper Address?
Reactive synthesis is often called the "holy grail" of system design. The goal is to automatically construct a hardware implementation (like a circuit) directly from a high-level specification written in Linear Temporal Logic (LTL). Instead of manually coding logic, a designer describes what the system should do, and the synthesis engine figures out how to do it.
The challenge is that LTL synthesis is computationally brutal—specifically, it is 2-EXPTIME complete. Traditional symbolic solvers are mathematically sound and complete but often struggle to scale to industrial-sized problems. Conversely, deep learning models are incredibly fast at generating candidate solutions but lack the formal guarantees required for safety-critical hardware; they can "hallucinate" incorrect circuits. NeuroSynt aims to combine the best of both worlds: the raw speed and pattern recognition of neural networks with the rigorous verification of symbolic methods.
Methods
NeuroSynt utilizes a portfolio architecture, where multiple specialized tools run in parallel to solve a single problem. The framework is built on a modular, containerized infrastructure using Docker and gRPC, allowing for easy integration of new tools.
Key components include:
- The Neural Solver: At its heart is a Hierarchical Transformer. Unlike standard Transformers, this architecture uses "local" layers to embed individual LTL assumptions and guarantees independently, followed by "global" layers that calculate attention across the entire specification. This makes the model invariant to the order of properties.
- The Soundness Loop: To ensure the neural solver doesn't produce incorrect results, its candidate circuits are immediately sent to a model checker (like nuXmv or Spot). If the model checker verifies the circuit against the LTL spec, the solution is returned.
- Symbolic Backups: In parallel, state-of-the-art symbolic solvers (like Strix and BoSy) run as a fail-safe. If the neural solver fails or times out, the symbolic solvers provide the necessary completeness.
Datasets
The authors significantly improved upon previous training methodologies by creating a massive dataset of 600,000 training samples.
- Mined Patterns: They extracted nearly 8,500 LTL patterns from the SYNTCOMP 2022 competition benchmarks to ensure the training data reflected real-world research and practice.
- Data Augmentation: To help the model generalize, they artificially combined multiple patterns into larger, more complex properties, pushing the limits beyond what was previously available.
- Evaluation Sets: The model was tested on several benchmarks, including
test(in-distribution),large(larger than training samples),timeouts(instances where symbolic solvers failed during data generation), and the fullSYNTCOMP2022 suite.
Key Insights and Ideas
- Generalization Beyond Training: The neural solver demonstrated a remarkable ability to generalize. It successfully solved specifications with more atomic propositions and longer properties than it had ever seen during training.
- Constant-Time Inference: Unlike symbolic solvers, whose runtime can explode exponentially with specification complexity, the neural solver’s inference time is nearly constant. On a GPU cluster, it averaged just 8.6 seconds per instance.
- Circuit Minimization: A surprising "aha moment" was that the neural solver often produces much smaller circuits than symbolic tools. On common samples, NeuroSynt's neural components generated circuits with 54.9% fewer latches than the state-of-the-art Strix solver. Smaller circuits are highly desirable as they consume less area and power in hardware.
Key Results
- Novel Solves: NeuroSynt contributed 20 novel solves to the SYNTCOMP 2022 benchmark—problems that no other participating symbolic solver could solve within a one-hour timeout.
- Performance Boost: When integrated into a portfolio, the neural solver enhanced the performance of Strix by 31 samples and BoSy by 152 samples.
- Efficiency: The neural solver (including verification) is significantly faster on average (8.6s) compared to Strix (33.4s) on the same hardware, with a much lower standard deviation in runtime.
Limitations and Future Work
While powerful, NeuroSynt has clear boundaries:
- Output Constraints: The current model is limited to a maximum circuit length of 128 tokens after encoding. Very large, complex implementations remain out of reach for the neural component.
- Soundness Dependency: The system's soundness is entirely dependent on the underlying model checker.
- Future Directions: The authors suggest exploring even larger Transformer architectures and using the counterexamples provided by model checkers as feedback to iteratively "repair" or refine neural predictions in real-time.
Summary updated