Neural Proposals, Symbolic Guarantees: Neuro-Symbolic Graph Generative Modeling

Chuqin Geng, Li Zhang, Mark Zhang, Zhaoyue Wang, Haolin Ye, Xujie SiNeurIPS 2026

TL;DR

Deep generative models are great at dreaming up plausible molecules, right up until you give them strict, complex rules they haven't seen in training—at which point they fail completely. NSGGM fixes this by splitting the job: a neural network proposes chemical "Lego bricks" and soft assembly hints, while a symbolic logic solver snaps them together under strict mathematical guarantees. The result is a system that designs molecules obeying complex, out-of-distribution rules without needing any retraining.

What Problem Does This Paper Address?

Imagine asking an AI to design a new drug molecule. If you just say, "make something that looks like existing drugs," modern neural models (like diffusion or autoregressive transformers) excel. They implicitly absorb the "vibe" of chemical distributions.

However, real-world medicinal chemistry isn't run on vibes; it runs on hard, compositional logic. A chemist might demand: "Include core scaffold A, exclude toxic alert B, and include functional group C if and only if group D is absent." When rules get this specific, the target molecules often fall completely out-of-distribution (OOD)—meaning zero examples in the training set satisfy the prompt. Purely neural approaches rely on soft nudges and "generate-and-filter" loops (generating millions of candidates and throwing away the bad ones). On rare or OOD constraints, you can burn through a massive compute budget and walk away with zero valid molecules, with no clue whether your prompt was just rare or mathematically impossible.

Methods

The authors introduce Neuro-Symbolic Graph Generative Modeling (NSGGM), built on a clean division of labor: Neural Proposals, Symbolic Guarantees.

Overview of the NSGGM three-stage pipeline: Preprocessing into a motif vocabulary, Neural Proposals of blueprints and soft guidance, and Symbolic Assembly via an SMT solver.
  1. Vocabulary Preprocessing: Following standard fragment-based methods, training molecules are broken down into rings and acyclic bridges—called tiles or motifs—annotated with open bond "slots" showing how they can legally connect.
  2. Neural Proposals: A Graph Neural Network VAE and causal Transformer decoder generate a blueprint: a sequence of motifs to use. What's clever here is a bidirectional refinement head that outputs soft guidance—predicting which motif attaches to which ("parental influence") and whether they share an atom or an edge.
  3. Symbolic Assembly (The Novel Twist): Instead of letting the neural net wire the atoms together, NSGGM hands the blueprint to Z3, a Satisfiability Modulo Theories (SMT) solver (a cousin of SAT solvers used in formal software verification). Using Max-SMT, the solver enforces chemical valency, connectivity, and arbitrary user Boolean formulas (AND, OR, XOR, IFF) as unbreakable hard constraints, while treating the neural network's attachment hints as soft preferences.
Worked example of methylcyclopropane decomposed into tiles with open bond slots, encoded as a blueprint, and reassembled by the SMT solver.

If a valid assembly exists, Z3 returns the molecule alongside a verifiable certificate. If the blueprint cannot satisfy the rules, Z3 returns an UNSAT core—pinpointing the exact conflicting clauses.

Datasets

For standard, unconstrained molecule generation, the authors evaluate on QM9, MOSES, and GuacaMol.

To test hard logical reasoning, they introduce MolSAT, a new benchmark built atop GuacaMol. Inspired by real drug-discovery workflows (like PAINS toxicity filters and bioisosteric replacements), MolSAT tests four families of Boolean logic over molecular substructures across three difficulty tiers: High-support, Low-support, and Zero-support (where the building blocks exist in training, but zero training molecules satisfy the combined logical formula).

Example molecule generated by NSGGM satisfying a complex MolSAT Boolean formula combining XOR, IFF, and implication operators.

Key Insights and Ideas

  • Distribution learning $\neq$ logical reasoning: Neural baselines fail completely on Zero-support tasks because they interpolate within training distributions rather than reasoning over rules. Decoupling the two lets the neural net handle chemical "naturalness" while the solver handles strict logic.
  • Motif-level variables beat exponential blowup: SMT solving has worst-case exponential complexity, which sounds terrifying for inference speed. However, reasoning over motif slots rather than raw atoms—paired with neural hints that narrow the search space—keeps the median solve time to a brisk 15.1 milliseconds.
  • Symbiosis is mandatory: Ablation studies show neither half works alone. Stripping away the neural "parental guidance" leaves 62.5% of the solver's molecules disconnected (when hard connectivity is relaxed) and tanks distributional quality. The solver needs neural intuition; the neural net needs symbolic guardrails.

Key Results

  • Unconstrained Generation: NSGGM hits 100.0% chemical validity across QM9, MOSES, and GuacaMol, while matching or beating strong baselines on distributional fidelity (e.g., 86.1 normalized Fréchet ChemNet Distance on GuacaMol vs. 68.0 for DiGress and 62.5 for MoLeR).
  • Constrained Generation (MolSAT): Given a budget of $10^6$ sample attempts per task, controllable neural baselines (MoLeR and GenMol) score 0.0% across all Zero-support tasks. NSGGM—with zero retraining—achieves 96.0–100.0% hit rates on High/Low-support tasks and 63.9–85.6% on Zero-support tasks on the very first blueprint attempt.
  • Resampling Recovery: When a single Zero-support attempt fails (due to an incompatible neural blueprint or a 30s solver timeout), simply resampling up to 5 blueprints pushes NSGGM's success rate to 98.5–100.0%, while maintaining near-100% uniqueness and high scaffold diversity.

Limitations and Future Work

  • 2D Only: Experiments are strictly 2D topological graphs validated by RDKit. Extending SMT encodings to 3D coordinates, stereochemistry, and continuous geometric predicates remains an open tractability challenge.
  • Expressivity Boundaries: Users can write propositional logic over discrete substructures, but cannot yet specify unbounded counting, overlapping substructure blocks, or continuous properties (like solubility) in the hard solver layer.
  • Blind Proposals: Currently, the neural generator proposes blueprints unconditionally, unaware of the user's constraints until the solver accepts or rejects them. Teaching the neural proposer to condition on the logical formula—and parallelizing the CPU-bound SMT assembly—are prime targets for future work.

Summary updated

Abstract

While deep generative models excel at capturing graph data distributions, they struggle to satisfy complex, hard constraints. In unconstrained settings, these models typically produce valid topologies; yet imposing strict compositional rules, like those in drug discovery, creates an out-of-distribution (OOD) setting where purely neural methods frequently fail. Because these neural approaches rely on soft conditioning and post-hoc filtering on such tasks, they cannot provide the formal guarantees needed for high-stakes domains. To address this, we introduce Neuro-Symbolic Graph Generative Modeling (NSGGM), a framework built on the principle of Neural Proposals, Symbolic Guarantees. NSGGM decouples generation: an autoregressive model proposes structural scaffolds, and a Satisfiability Modulo Theories (SMT) solver handles the final discrete assembly of the proposed substructures. Empirically, NSGGM is competitive with state-of-the-art methods on unconstrained tasks. To evaluate logical-constraint satisfaction inspired by real drug discovery workflows, we introduce MolSAT, a benchmark for hard compositional rules. On MolSAT, purely neural baselines completely fail OOD (0% satisfaction with zero training support), while NSGGM achieves >95% satisfaction in-distribution and 64–86% with zero training support.
BibTeX
@inproceedings{geng2026neural,
  author = {Chuqin Geng and Li Zhang and Mark Zhang and Zhaoyue Wang and Haolin Ye and Xujie Si},
  title = {{Neural Proposals, Symbolic Guarantees: Neuro-Symbolic Graph Generative Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4Q6ThyZHec},
}
Figure