Learning Generative Dynamics for 3D Molecule Generation via Sequential Neuro-Symbolic Constraints

Zhuoran Li, Xu Sun, Chang Wen Chen, Wanyu LinNeurIPS 2026

TL;DR

Diffusion models are fantastic at dreaming up 3D molecules, but because they only learn statistical patterns from data, they frequently break basic laws of chemistry—producing molecules with colliding atoms or impossible valences. SensDiff solves this by teaching diffusion models explicit physicochemical rules during training via a sequential, coarse-to-fine curriculum. Just like a sculptor roughs out a shape before carving fine details, SensDiff enforces broad spatial rules early and fine-grained chemical rules later, yielding state-of-the-art validity and precise multi-property control.

What Problem Does This Paper Address?

When generating 3D molecules (crucial for drug discovery and materials science), getting the exact 3D geometry right is everything. Diffusion models tackle this by starting with a cloud of random noise and iteratively denoising atomic coordinates and atom types into a coherent structure.

However, standard diffusion models are purely data-driven—they approximate chemistry implicitly rather than understanding the underlying laws of physics. As a result, they often generate molecules that look statistically plausible on paper, yet violate fundamental rules (like atoms overlapping in space or carbon forming five bonds). Previous work tried fixing this by nudging the model during generation (inference-time guidance), which doesn't actually teach the model parameters anything, or by enforcing spatial symmetries, which still leaves actual chemical rules up to statistical guesswork.

Methods

SensDiff (Sequential Neuro-Symbolic Constrained Diffusion) bridges continuous neural latent spaces and discrete symbolic rules of chemistry. Building on a standard latent diffusion backbone (GEOLDM), the authors introduce three novel components:

  1. A Differentiable Molecular Interface: Chemical rules apply to 3D molecules, not abstract latent vectors. SensDiff decodes noisy intermediate latent states into 3D coordinates, soft atom-type probability distributions (using softmax instead of a hard argmax so gradients don't vanish), and a soft molecular graph via a pretrained bond-posterior head.
  2. Symbolic Energy Constraints: Four fundamental physicochemical rules are translated into differentiable energy penalties (low energy = rule satisfied; high energy = rule violated):
  3. Steric non-overlap: Non-bonded atoms shouldn't collide.
  4. Bond length: 1-hop distances must match empirical chemistry for a given bond order.
  5. Bond angle: 2-hop coordination geometry (computed in cosine space for numerical stability).
  6. Valence validity: Total incident bond orders must match allowed valences for each atom type.
  7. Coarse-to-Fine Curriculum with Adaptive Weighting: As a molecule emerges from noise, global geometry stabilizes long before local bonding makes sense. SensDiff mirrors this over training epochs by activating constraints sequentially: steric clash first, then bond length, bond angle, and finally valence. When a rule switches on, its loss weight ramps up linearly and then adjusts dynamically based on how well the model is currently satisfying that rule.
Figure 1: The 3D molecule generation trajectory over intermediate diffusion denoising steps. We also visualize trajectories from multiple baselines for the same molecule in Figures 9, 10, and 11.

Datasets

The authors train and evaluate on two standard 3D molecular benchmarks (no new datasets are introduced):

  • QM9: Small organic molecules annotated with quantum-chemical properties, used for unconditional and property-targeted generation.
  • GEOM-Drugs: Larger, structurally diverse, drug-like molecules that provide a much tougher testbed for 3D geometric stability.

Key Insights and Ideas

  • More rules $\neq$ better molecules (if applied all at once): Ablations revealed a fascinating catch: turning on all four chemical constraints simultaneously from epoch one actually degrades molecule stability on QM9 from 88.8% (with one constraint) down to 78.8%. Early noisy geometries aren't ready for strict valence or angle checks, creating competing, misleading gradients. Sequential ordering isn't just a nice trick; it's essential, swinging validity between 74.6% and 90.9% depending on the permutation.
  • Internalizing rules beats inference-time nudging: While SensDiff can be used purely at sampling time to steer frozen models without retraining, baking the rules into the weights during training yields much stronger stability and generalizes out-of-distribution to low-density property regions.
  • Model-agnostic design: Because SensDiff operates as a supervisory curriculum on intermediate denoising steps, the authors show it transfers cleanly across different diffusion backbones.

Key Results

SensDiff outperforms 10 recent baselines (including EDM, GEOLDM, GCDM, and UAE-3D) across both unconditional and conditional tasks:

  • Unconditional Generation: On QM9, SensDiff hits 96.9% validity, 98.1% atom stability, and 95.6% molecule stability. On the harder GEOM-Drugs dataset, it reaches 97.2% validity and 87.9% atom stability—jumping 3.1% ahead of the strongest baseline in atom stability.
  • Quantum Property Control: On QM9 conditional generation, SensDiff achieves the lowest Mean Absolute Error (MAE) across all six quantum properties (e.g., $\Delta\varepsilon$ MAE drops to 314 meV vs. 327 meV for UAE-3D and 608 meV for GEOLDM).
  • Multi-Objective Drug Design: By freezing a GEOM-Drugs model and applying seven simultaneous oral-drug constraints during sampling (Lipinski's Rule of Five plus QED $> 0.7$ and SA $< 5$), SensDiff tightly converges generated distributions into the target drug-like windows over the denoising trajectory.
Figure 3: (Upper) The generated molecules precisely satisfy the specified oral drug-design constraints. (Bottom) The molecules converge to the target values over the denoising steps.

Limitations and Future Work

Not discussed in the paper. (Note: The provided main text concludes without an explicit limitations or future work section, though it references failure-case analyses and transfer experiments in the appendices).

Summary updated

Abstract

Diffusion models have recently emerged as a powerful paradigm for generating 3D molecules. Despite showing remarkable promise, they learn atomic distributions implicitly from data, without explicitly encoding physicochemical rules into their generative dynamics. Consequently, generated samples can be statistically plausible yet chemically invalid. To address this problem, we propose Sequential Neuro-Symbolic Constrained Diffusion (SensDiff), a framework that integrates symbolic rules into generative modeling, enabling the model to internalize scientific priors during training. Central to SensDiff is the observation that the diffusion trajectory of 3D molecule generation exhibits a coarse-to-fine evolution: valid molecules arise by first mitigating macroscopic geometric conflicts and then refining structures toward microscopic chemical consistency through iterative denoising. Accordingly, SensDiff mirrors this dynamic by sequentially enforcing constraints with adaptive weighting during training, progressively steering generation toward valid molecular geometries. Moreover, SensDiff translates domain knowledge into interpretable generative controls, grounding opaque neural denoising in scientific principles. Experiments on molecular benchmarks and real-world constrained generation tasks confirm that SensDiff consistently improves chemical validity while adhering to physicochemical rules and user-specified targets. The code is publicly available at https://github.com/WanyuGroup/NeurIPS2026_SensDiff.
BibTeX
@inproceedings{li2026learning,
  author = {Zhuoran Li and Xu Sun and Chang Wen Chen and Wanyu Lin},
  title = {{Learning Generative Dynamics for 3D Molecule Generation via Sequential Neuro-Symbolic Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XDAW0khIR2},
}
Figure