TL;DR
Building provably safe controllers for systems with numbers—like elevators or thermostats—usually stalls because current synthesis algorithms learn basic arithmetic rules one painful counterexample at a time. NeuroSynTheos supercharges this symbolic loop with neural networks that predict batches of missing arithmetic facts upfront, nearly doubling the number of solved benchmarks compared to the best heuristics. Best of all, every neural guess is mathematically verified before use, giving us machine learning speed with ironclad formal guarantees.
What Problem Does This Paper Address?
When designing safety-critical systems, testing isn't enough; we want reactive synthesis—algorithms that automatically generate a controller guaranteed to satisfy a temporal specification under all possible environment behaviors.
Standard Linear Temporal Logic (LTL) handles true/false Booleans well, while $\mathrm{LTL}^{\mathcal{T}}$ (LTL modulo theories) extends this to real-world numbers, like keeping a robot within a speed limit or an elevator between floors $1$ and $N$. The state-of-the-art algorithm for $\mathrm{LTL}^{\mathcal{T}}$, called CEGRES, works by replacing every math expression (like $[x < 5]$) with a dummy Boolean variable. Because the underlying Boolean solver doesn't know math, it proposes nonsensical strategies—like claiming $x$ is simultaneously less than $5$ and greater than $6$.
CEGRES catches these impossibilities using an SMT (Satisfiability Modulo Theories) solver and injects a theory tautology (a universally true math fact, like $\neg[5 < x] \lor \neg[x < 5]$) to forbid that mistake. The catch? It discovers these facts one iteration at a time. For large domains, CEGRES drowns in dozens of expensive synthesis-and-check loops, timing out on 77% of standard benchmarks.
Methods
NeuroSynTheos keeps the exact symbolic CEGRES loop intact, slotting in a neural batch predictor right when a counterexample is found. Instead of adding just one refuting tautology, it injects a predicted batch of them before the next synthesis call, stopping at a fixed literal budget ($L_{\max}=80$) so the Boolean solver doesn't choke.
To predict tautologies, the authors combine two complementary neural architectures in an ensemble:
- A Graph Neural Network (GNN) Scorer: Reads the Abstract Syntax Trees (ASTs) of the specification and candidate tautologies (instantiated from 186 training templates), encoding constants relative to domain bounds. Because training traces only show used tautologies—not all helpful ones—it is trained via Positive-Unlabeled (PU) learning, giving higher weight to facts discovered early in a run.
- An Autoregressive Transformer: Reads the specification and generates tautology strings token-by-token (tokenizing numbers digit-by-digit), allowing it to invent brand-new algebraic templates unseen during training.
Crucially, every single neural prediction is passed through an SMT solver (Z3) before injection. Invalid guesses are discarded, preserving 100% mathematical soundness.
Datasets
The authors built a Tautology Corpus from 104 solved $\mathrm{LTL}^{\mathcal{T}}$ benchmarks:
- Standard Suite (83 total): Spanning 7 families (e.g., Elevator-$N$, Thermostat-$\delta$, Robot patrol-$K$). Plain CEGRES solves 19 in 5 minutes; the authors solved 55 more using extended timeouts or manual seeding to gather training traces. The 64 timed-out specs were split into 16 validation and 48 test benchmarks.
- Synthetic Benchmarks (57 total): Newly generated specs, with 30 solved for training and 27 left unsolved as an extra test set.
Models are evaluated in a leave-target-out setup: a target benchmark's trace is never in its training set (and in the "strict" setting, its entire family is excluded).
Key Insights and Ideas
- Template Invariance: Why is predicting math facts learnable at all? The authors prove that for parametric families where constants scale linearly at the same rate (e.g., an elevator moving from $N=4$ to $N=8$ floors), the set of required tautology templates never changes—only the plugged-in numbers shift. Within a family, theorem discovery reduces to structured retrieval.
- Precision vs. Novelty: Combining the GNN and Transformer works because they fail differently. The GNN is a high-precision ranker (81.3% SMT-valid) over known templates, while the Transformer acts as a creative generator (14.8% novel templates), catching complex cross-variable interactions the GNN can't express.
- Blindly Adding Truths Hurts: Injecting random valid tautologies (solving 10/48) actually performs worse than simple algebraic rules (19/48). Every added fact bloats the Boolean abstraction, so intelligent selection is vital.
Key Results
On the 48 standard test benchmarks where baseline CEGRES solves 0 within 5 minutes:
- NeuroSynTheos solves $41 \pm 1.2$, nearly doubling the best non-learned heuristic (template enumeration at 21) and outperforming 3-shot Claude Sonnet 4.5 prompting ($14 \pm 1.7$).
- Speed & Efficiency: It finishes in a median of 3 iterations and 18.2 seconds, adding only 3.1 seconds of neural and SMT-verification overhead.
- Generalization: On the 27 synthetic test specs, it solves $18 \pm 0.8$ (vs. 14 for template enumeration). Under strict cross-family transfer across all 83 standard benchmarks (zero target-family traces in training), solved specs drop from 60 (in-family) to 46—confirming that within-family retrieval drives a chunk of the gains, though cross-family learning still beats all heuristics (38).
Limitations and Future Work
- Backend Bottlenecks & Budget Waste: Beyond ~75–80 Boolean literals, the underlying LTL synthesizer (STRIX) blows up exponentially, capping 4 of the 7 remaining unsolved test cases. Meanwhile, 36% of valid predictions are redundant, wasting literal budget; a lazy injection strategy (holding predictions until a related counterexample appears) could reclaim that space.
- Domain & Scope Boundaries: Experiments are limited to linear integer arithmetic, and NeuroSynTheos struggles on specs outside standard order templates (e.g., Markov chains needing dynamics-specific equalities, where 91% of predictions are invalid).
- Next Steps: Predicting temporal fetch tautologies, testing real-valued arithmetic, and pairing stronger LLMs as candidate generators with the GNN as a ranker are promising avenues forward.
Summary updated