Introduction
Generating 3D molecular structures is a foundational challenge in computational drug discovery. While deep generative models have shown promise, they face a significant hurdle: scale. Most existing models operate at the atom level, placing individual atoms one by one or all at once. While flexible, this approach often fails to respect the rigid constraints of chemistry. When generating large, drug-sized molecules, atom-level models frequently produce "broken" structures—distorted rings, impossible bond angles, or chemically unstable clusters.
To address these limitations, we introduce HierDiff, a hierarchical diffusion framework. By shifting the focus from individual atoms to functional groups and molecular fragments, HierDiff preserves essential local structures and significantly improves the chemical validity and drug-likeness of generated 3D molecules.
The HierDiff Framework
HierDiff mimics the workflow of a medicinal chemist by starting with a high-level scaffold and refining the details. The process is divided into several key stages:
1. Coarse-Grained Diffusion
Instead of diffusing individual atoms, the model performs an equivariant diffusion process on "coarse nodes." Each node represents a molecular fragment, such as a benzene ring or a functional group. The model learns to predict the 3D center coordinates and high-level chemical features (e.g., hydrogen bond counts, surface area) of these fragments. This approach drastically reduces the degrees of freedom; for instance, generating 30 atoms in 3D space involves 90 coordinates, whereas generating 5 fragments might only involve 15.
2. Fine-Grained Decoding and Refinement
Once the coarse skeleton is established, a specialized Equivariant Graph Neural Network (EGNN) decodes these nodes into specific fragment types and predicts the links between them. To ensure the fragments fit together perfectly, a mask-prediction module iteratively corrects fragment types based on the global context.
3. Conformation Assembling
Finally, the model uses the Kabsch algorithm and RDKit to align pre-defined 3D local geometries of the fragments to the generated center positions. This results in a complete, valid 3D atomic structure that respects chemical constraints by design.
Experimental Evaluation
HierDiff was evaluated on three major benchmarks:
- GEOM-DRUG: A large-scale dataset of 304,000 drug-like molecules.
- CrossDocked2020: 100,000 3D ligand structures from protein-ligand complexes.
- QM9: A standard dataset of 10,000 small organic molecules.
Key Results
HierDiff consistently outperformed state-of-the-art atom-level models like EDM and G-SphereNet across several metrics:
- Drug-Likeness (QED): On GEOM-DRUG, HierDiff achieved a QED of 0.639, significantly higher than EDM's 0.608.
- Chemical Validity: The model generated molecules with higher Retrosynthetic Accessibility (RA) and fewer "undruggable" substructures (MCF), proving the outputs are synthesizable rather than just geometrically plausible.
- 3D Quality: In conformation quality tests, HierDiff produced 3D structures much closer to ground-truth energy states. While atom-level models often produced "chaotic" or broken rings, HierDiff produced stable, recognizable molecular scaffolds.
- Efficiency: Sampling speed remains competitive, taking between 3.02 and 5.17 seconds per sample.
Insights and Discussion
The success of HierDiff stems from treating hierarchy as a constraint. By using fragments as building blocks, the model "hard-codes" chemical validity into local structures—a ring is always a ring because it is sampled from a vocabulary of valid fragments. Furthermore, the authors observed a "tangent condition": knowing the center and radius of connected fragments naturally eliminates many rotational uncertainties, making 3D center coordinates a powerful representation for molecular geometry.
Limitations
Despite its strengths, HierDiff showed a slight performance dip on the QM9 dataset (very small molecules). This is likely due to "information loss" during the fragmentization of tiny graphs where every individual atom is crucial. Additionally, the model relies on a predefined vocabulary of fragments; representing highly unusual or novel ring systems not present in the training set remains a challenge.
Conclusion
HierDiff demonstrates that a coarse-to-fine hierarchical approach is essential for scaling 3D molecule generation to drug-like sizes. By combining the global modeling strengths of diffusion models with the local precision of fragment-based assembly, HierDiff sets a new standard for generating chemically valid and synthesizable 3D structures. Future work will explore reducing diffusion steps further and applying this strategy to protein-ligand docking and protein folding.
Summary updated