Distributional Priors Guided Diffusion for Generating 3D Molecules in Low Data Regimes

Haokai Hong, Wanyu Lin, Kay Chen Tan, Tan, Kay Chen · DOI

Abstract

Can we train a 3D molecule generator using data from dense regions to generate samples in sparse regions? This challenge can be framed as an out-of-distribution (OOD) generation problem. While prior research on OOD generation predominantly targets property shifts, structural shifts -- such as differences in molecular scaffolds or functional groups -- represent an equally critical source of distributional shifts. This work introduces the Geometric OOD Diffusion Model (GODD), a novel diffusion-based framework that enables training on data-abundant molecular distributions while generalizing to data-scarce distributions under distributional structural shifts. Central to our approach is a designated equivariant asymmetric autoencoder to capture distributional structural priors. The asymmetric design allows the model to generalize to unseen structural variations by capturing distributional priors representing distinct distributions. The encoded structural-grained priors guide generation toward sparse regions without requiring explicit training on such data. Evaluated across standard benchmarks encompassing OOD structural shifts (e.g., scaffolds, rings), GODD achieves an improvement of 12.6% in success rate, defined based on molecular validity, uniqueness, and novelty. Furthermore, the framework demonstrates promising performance and generalization on canonical fragment-based drug design tasks, highlighting its utility in learning-based molecular discovery.

Introduction

Deep learning has revolutionized 3D molecule generation, but most state-of-the-art models suffer from a fundamental limitation: they are "copycats." They excel at mimicking the distribution of their training data but struggle to generate molecules that deviate from it. In chemistry, this is a "domain adaptation" problem. A model trained on simple molecules with common scaffolds often fails to produce molecules with complex or rare structural features. Collecting enough high-quality 3D data for these rare domains is often impossible.

The Geometric Adaptive Diffusion Model (GADM) (referred to as GODD in technical literature) addresses this by training on data-rich domains and successfully adapting to data-scarce domains without seeing a single target molecule during training.

Methodology: The GADM Framework

GADM consists of two primary components: an Equivariant Masked Autoencoder (EMAE) and a Domain Supervised Diffusion Model (DSDM).

The GADM architecture overview, showing the integration of the Equivariant Masked Autoencoder (EMAE) and the Domain Supervised Diffusion Model (DSDM).

Equivariant Masked Autoencoder (EMAE)

The EMAE is an asymmetric encoder-decoder designed to capture "structural-grained" representations. During training, the model "masks" (removes) parts of a molecule, leaving only a partial structure, such as a scaffold or a specific number of rings.

Illustration of the Ring Mask process, which extracts structural priors to guide the generation of molecules in data-scarce domains.

The encoder maps this partial structure to a latent space, and the decoder attempts to reconstruct the full molecule. Crucially, the architecture uses Equivariant Graph Neural Networks (EGNNs), ensuring the model respects physical symmetries like rotation and translation in 3D space.

Domain Supervised Diffusion Model (DSDM)

The DSDM is the generative engine, following a standard diffusion process of adding noise and learning to reverse it. The innovation lies in the denoising process, which is conditioned on the latent features extracted by the EMAE. These features act as domain supervisors, guiding the diffusion model to fill in the "missing" parts of a molecule around a specific structural prior.

Experimental Evaluation

The researchers evaluated GADM using two benchmark datasets: QM9 (~130k small molecules) and GEOM-DRUG (~450k larger molecules). They split these into source and target domains based on scaffold frequency and ring counts to test out-of-distribution (OOD) performance.

Key Results

GADM significantly outperformed traditional 3D diffusion models (EDM, GeoLDM) and their controllable variants:

  • Success Rate: GADM improved the success rate (combining validity, uniqueness, and novelty) by up to 65.6% compared to baselines in scaffold-adaptation tasks.
  • Rare Structures: In the QM9 ring-count task, GADM successfully generated 8-ring molecules with high validity, whereas baselines almost entirely failed.
  • Large-Scale Scaling: On GEOM-DRUG, GADM maintained a 13.8% success rate for extremely rare molecules (11–22 rings), while baselines were completely unable to generate molecules with more than 10 rings.

Discussion and Future Work

GADM demonstrates that structure can drive domain adaptation in molecular generation. By using an asymmetric MAE, the model learns a compressed, robust latent representation of molecular geometry capable of handling unseen structural variations.

While GADM is a major step forward, some areas remain for exploration. The model currently requires a structural prior (like a scaffold) and does not yet "invent" entirely new classes of scaffolds from scratch. Future work could integrate property-based optimization (e.g., drug-likeness or binding affinity) alongside structural domain adaptation to enhance the utility of generated molecules for drug discovery.

Summary updated

BibTeX
@misc{hong2024distributional,
  author = {Haokai Hong and Wanyu Lin and Kay Chen Tan and Tan, Kay Chen},
  title = {{Distributional Priors Guided Diffusion for Generating 3D Molecules in Low Data Regimes}},
  year = {2024},
  eprint = {2404.00962},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00962},
}
Figure