Abstract
Learning the underlying distribution of molecular graphs and generating high-fidelity samples is a fundamental research problem in drug discovery and material science. However, accurately modeling distribution and rapidly generating novel molecular graphs remain crucial and challenging goals. To accomplish these goals, we propose a novel Conditional Diffusion model based on discrete Graph Structures (CDGS) for molecular graph generation. Specifically, we construct a forward graph diffusion process on both graph structures and inherent features through stochastic differential equations (SDE) and derive discrete graph structures as the condition for reverse generative processes. We present a specialized hybrid graph noise prediction model that extracts the global context and the local node-edge dependency from intermediate graph states. We further utilize ordinary differential equation (ODE) solvers for efficient graph sampling, based on the semi-linear structure of the probability flow ODE. We also combine the solvers with gradient guidance from the molecule property predictor for similarity-constrained molecule optimization. Experiments on diverse datasets validate the effectiveness of our framework. Particularly, the proposed method still generates high-quality molecular graphs in a limited number of steps.
Introduction
Generating novel molecules is a cornerstone of drug discovery, yet it remains computationally intensive. Molecules are naturally represented as graphs, where atoms are nodes and bonds are edges. While recent diffusion models have shown promise in "denoising" random noise into valid structures, they face two major hurdles: ignoring the discrete nature of chemical rules and slow sampling speeds. Most models treat molecules as continuous matrices, leading to "blurry" representations that struggle with local valency and specific motifs like rings. Furthermore, standard diffusion requires thousands of steps, making large-scale virtual screening impractical.
Methods
The CDGS framework addresses these challenges through three primary innovations:
Discrete Structure Conditioning
Rather than diffusing only node and edge features, CDGS incorporates a one-bit variable to indicate edge existence. During the reverse generative process, the model decodes the discrete graph structure at each step. This discrete structure acts as a structural map, helping the noise predictor understand the current skeleton of the molecule and adhere to crisp chemical rules.
Hybrid Graph Noise Prediction
To balance local and global dependencies, the authors developed a Hybrid Message Passing Block (HMPB). It combines a standard message-passing layer (GINE) for local atom-bond dependencies with a fully-connected attention layer to capture global molecular context, such as overall symmetry or distant functional groups.
Fast ODE Solvers (GDPMS)
By identifying the semi-linear structure of the probability flow ODE for graphs, the authors adapted specialized "DPM-Solvers" (GDPMS). This allows the model to treat the generative process as a continuous ODE, enabling much larger "jump" sizes during sampling without sacrificing accuracy.
Results
The model was evaluated on standard molecular benchmarks (ZINC250k, QM9) and generic graph datasets. CDGS outperformed previous state-of-the-art models like GDSS and MoFlow on distribution metrics such as Fréchet ChemNet Distance (FCD).
Key findings include:
- High Validity: On ZINC250k, CDGS achieved 98.13% validity without post-hoc chemical correction.
- Efficiency: While previous models required 1,000 steps, CDGS maintains high performance with only 30 to 50 steps using the GDPMS solver, representing a massive speedup.
- Optimization: In similarity-constrained property optimization, CDGS showed a higher success rate in steering generation toward molecules with desired properties like higher solubility.
Conclusion
CDGS demonstrates that explicitly conditioning generative processes on decoded discrete structures provides a powerful structural prior for molecular generation. By combining this with hybrid architecture and efficient ODE solvers, the framework achieves high-fidelity samples with significantly reduced computational overhead. Future work may extend this to target-aware drug design, conditioning diffusion on 3D protein structures.
Summary updated