Geometric-Facilitated Denoising Diffusion Model for 3D Molecule Generation

Can Xu, Haosen Wang, Weigang Wang, Pengfei Zheng, Hongyang Chen

Abstract

Generating 3D molecular structures de novo is a critical task for drug discovery and material science. Traditional diffusion models often struggle with geometric insufficiency—relying solely on pair-wise distances—and the discrete-continuous gap between continuous atom coordinates and discrete molecular graphs. We present GFMDiff (Geometric-Facilitated Molecular Diffusion), a novel framework that incorporates triplet-wise geometric information (angles) and a specialized Geometric-Facilitated Loss (GFLoss). Utilizing a Dual-Track Transformer Network (DTN) as its denoising kernel, GFMDiff achieves state-of-the-art performance in generating stable, valid, and chemically diverse 3D molecular conformations on the GEOM-QM9 and GEOM-Drugs benchmarks.

Introduction

The generation of 3D molecules is often considered a "holy grail" for computational drug discovery. While diffusion models have shown promise in this area, they face two significant hurdles:

  1. Geometric Insufficiency: Most existing models represent molecules as point clouds and rely primarily on pair-wise distances between atoms. However, chemical stability is defined by more than just distance; bond angles and multi-body relationships are crucial for structural integrity. Relying only on distances often results in "collapsed" or physically impossible geometries.
  2. The Discrete-Continuous Gap: Diffusion models excel at continuous data (like atom coordinates), but molecular graphs are discrete (atoms and bonds). Most models generate coordinates first and then use predefined rules, such as distance thresholds, to assign bonds post-hoc. This indirect approach often leads to a degradation in the validity and stability of the generated samples.

Methods

GFMDiff addresses these challenges through two primary architectural innovations: the Dual-Track Transformer Network and the Geometric-Facilitated Loss.

Overview of the GFMDiff framework architecture.

Dual-Track Transformer Network (DTN)

Serving as the model's denoising kernel, the DTN moves beyond traditional Graph Neural Networks (GNNs) that only consider immediate neighbors. Instead, it employs a global transformer architecture with two parallel tracks:

  • Atom-pair track: This track captures interatomic forces and distances, maintaining the standard spatial relationships used in previous models.
  • Pair-triplet track: This track explicitly models the impact of bond angles ($\phi_{ijk}$) on the molecular structure, providing the spatial context necessary to generate stable "heavy atom" skeletons.
Detailed view of the Dual-track Transformer Network (DTN).

To manage the computational cost of triplet-wise calculations, the authors optimized the network to only update triplet embeddings when atom coordinates are renewed, rather than at every sub-layer of the transformer.

Geometric-Facilitated Loss (GFLoss)

To bridge the gap between continuous coordinates and discrete bonds, GFLoss acts as an active intervention during training. It predicts the probability of bond existence based on the current denoised coordinates and atom types. By calculating a "predicted valency" and comparing it to the ground-truth valency, the model is explicitly penalized if the generated coordinates do not support correct chemical valencies. This forces the model to learn the underlying chemical rules of bond formation during the diffusion process itself.

Additionally, the model is E(n) equivariant, ensuring that the generated molecular structures remain physically consistent regardless of their rotation or translation in 3D space.

Evaluation and Results

GFMDiff was evaluated on two standard benchmarks: GEOM-QM9 (small molecules) and GEOM-Drugs (large, drug-like molecules). The results demonstrate superior performance across several key metrics compared to state-of-the-art models like GeoLDM and GCDM.

Stability and Validity

On the QM9 dataset, GFMDiff achieved 98.9% atom stability and 87.7% molecule stability. It notably outperformed baselines in Validity (96.3%) and the combined Uniqueness·Validity (95.1%) metric.

On the more challenging GEOM-Drugs dataset, which contains molecules with up to 181 atoms, GFMDiff reached 3.9% molecule stability. While this percentage reflects the inherent difficulty of the task, it represents a significant lead over existing models like GCDM (3.7%) and GeoLDM (3.2%).

Property Prediction

In conditioned generation tasks—where the model generates molecules with specific physical properties—GFMDiff achieved the lowest Mean Absolute Error (MAE) across all six tested properties, including dipole moment ($\mu$) and heat capacity ($C_v$).

Conclusion and Future Work

GFMDiff demonstrates that incorporating higher-order geometric information and explicit chemical constraints significantly improves the quality of generated 3D molecules. However, some limitations remain. The model showed a higher Negative Log-Likelihood (NLL) than some baselines, suggesting that while the samples are physically superior, the probability density estimation could be further refined. Additionally, the computational complexity of modeling triplets remains a challenge for scaling to protein-sized systems. Future work may involve integrating these geometric approaches with latent diffusion models to improve both stability and generation speed.

Summary updated

BibTeX
@inproceedings{xu2024geometric,
  author = {Can Xu and Haosen Wang and Weigang Wang and Pengfei Zheng and Hongyang Chen},
  title = {{Geometric-Facilitated Denoising Diffusion Model for 3D Molecule Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i1.27787},
}
Figure