Abstract
Molecule generation is a very important practical problem, with uses in drug discovery and material design, and AI methods promise to provide useful solutions. However, existing methods for molecule generation focus either on 2D graph structure or on 3D geometric structure, which is not sufficient to represent a complete molecule as 2D graph captures mainly topology while 3D geometry captures mainly spatial atom arrangements. Combining these representations is essential to better represent a molecule. In this paper, we present a new model for generating a comprehensive representation of molecules, including atom features, 2D discrete molecule structures, and 3D continuous molecule coordinates, by combining discrete and continuous diffusion processes. The use of diffusion processes allows for capturing the probabilistic nature of molecular processes and exploring the effect of different factors on molecular structures. Additionally, we propose a novel graph transformer architecture to denoise the diffusion process. The transformer adheres to 3D roto-translation equivariance constraints, allowing it to learn invariant atom and edge representations while preserving the equivariance of atom coordinates. This transformer can be used to learn molecular representations robust to geometric transformations. We evaluate the performance of our model through experiments and comparisons with existing methods, showing its ability to generate more stable and valid molecules. Our model is a promising approach for designing stable and diverse molecules and can be applied to a wide range of tasks in molecular modeling. Our codes and models are available on https://github.com/WillHua127/mudiff
Introduction
In molecular design, a complete representation requires both topology (the 2D graph of atomic bonds) and geometry (the 3D spatial coordinates). Historically, generative AI models have focused on one or the other. 2D-only models capture connectivity but ignore critical 3D conformations necessary for biological interaction. Conversely, 3D-only models often struggle with bond consistency, placing atoms in physically plausible but chemically nonsensical positions.
MUDiff addresses this gap by introducing a unified diffusion framework that co-generates 2D molecular graphs and 3D geometric structures. This approach ensures that the generated molecules are both chemically valid and spatially realistic.
Methods: The MUformer Architecture
MUDiff employs a Unified Diffusion Process that handles two types of noise simultaneously: continuous noise for atom features and 3D coordinates, and discrete noise for bond types. To reverse this noise, the authors developed MUformer, a specialized Graph Transformer.
The MUformer architecture consists of two distinct channels:
- Invariant Channel: Processes 2D graph properties and atom features.
- Equivariant Channel: Handles 3D coordinates while maintaining roto-translation equivariance. This ensures that the model's internal representations are robust to rotations or translations of the molecule in space.
The model integrates these channels using multi-modal attention biases, including 2D spatial bias (shortest path distance), 3D spatial bias (Euclidean distance), and edge/graph biases for global molecular properties.
Results and Evaluation
The researchers evaluated MUDiff on the QM9 dataset (130k small organic molecules) and the DRUG dataset. A key finding was the synergy between 2D and 3D representations; the 2D graph provides structural constraints, while the 3D geometry offers spatial refinement.
As shown in the results, MUDiff sets a new benchmark for molecular stability, achieving an 89.9% molecular stability rate—a 7.9% improvement over the previous state-of-the-art, EDM. Furthermore, MUDiff demonstrated a 2% increase in molecular uniqueness and proved to be a highly effective encoder for property prediction tasks.
One of the most practical insights is MUDiff's ability to learn from incomplete data. In experiments where 70% of the training data lacked 3D coordinates, MUDiff still outperformed models trained only on complete data by effectively inferring 3D geometry from 2D structures.
Conclusion and Future Work
MUDiff represents a significant step toward holistic molecular generation. By unifying discrete and continuous diffusion, it avoids the inconsistencies common in sequential generation models. However, the current architecture's memory complexity grows quadratically with the number of atoms due to dense adjacency tensors. Future research will focus on sparse tensor representations and multi-resolution modeling to scale MUDiff to larger, more complex molecules like proteins.
Reference: Hua, C., et al. (2023). MUDiff: Unified Diffusion for Complete Molecule Generation. Proceedings of the Second Learning on Graphs Conference (LoG 2023).
Summary updated