Generating 3D Molecular Structures Conditional on a Receptor Binding Site with Deep Generative Models

Tomohide Masuda, Matthew Ragoza, David Ryan KoesarXiv 2020

Abstract

Deep generative models have been applied with increasing success to the generation of two dimensional molecules as SMILES strings and molecular graphs. In this work we describe for the first time a deep generative model that can generate 3D molecular structures conditioned on a three-dimensional (3D) binding pocket. Using convolutional neural networks, we encode atomic density grids into separate receptor and ligand latent spaces. The ligand latent space is variational to support sampling of new molecules. A decoder network generates atomic densities of novel ligands conditioned on the receptor. Discrete atoms are then fit to these continuous densities to create molecular structures. We show that valid and unique molecules can be readily sampled from the variational latent space defined by a reference 'seed' structure and generated structures have reasonable interactions with the binding site. As structures are sampled farther in latent space from the seed structure, the novelty of the generated structures increases, but the predicted binding affinity decreases. Overall, we demonstrate the feasibility of conditional 3D molecular structure generation and provide a starting point for methods that also explicitly optimize for desired molecular properties, such as high binding affinity.

Introduction

Traditional drug discovery is often framed as a search problem, where scientists screen massive chemical libraries to identify molecules that bind to a target protein. However, chemical space is virtually infinite, and existing libraries represent only a small fraction of potential therapeutics. While recent AI models have successfully generated new molecules in 2D (e.g., SMILES strings or graphs), they often lack an inherent understanding of 3D geometry. This is a critical limitation, as a drug's efficacy depends on how its 3D shape and chemical features complement a protein's binding site. This paper addresses the challenge of structure-based de novo design by generating 3D molecules from scratch that are physically compatible with a specific 3D protein environment.

Methodology

Representation: Atomic Density Grids

The authors treat 3D molecular structures as atomic density grids—essentially 3D voxels where each channel represents a different atom type (e.g., Carbon, Oxygen, Nitrogen). This allows the use of standard 3D convolutional operations to process molecular shapes.

Figure 2: Representation of a molecule as a 3D atomic density grid.

Model Architecture

The model utilizes a Conditional Variational Autoencoder (CVAE) combined with a GAN loss. The architecture consists of two separate CNN encoders that process the 3D grids of the receptor and the ligand. The ligand is mapped to a variational latent space, allowing for the sampling of new molecules. The decoder receives the latent ligand vector and information from the receptor encoder via skip connections to generate a new 3D ligand density grid.

Figure 3: The CVAE architecture featuring dual encoders and a receptor-conditioned decoder.

Training and Atom Fitting

The model was trained on the CrossDocked2020 dataset, utilizing a subset of ~725,000 high-quality poses (RMSD < 2Å). Because the model outputs a continuous density grid, a novel optimization algorithm was developed to fit discrete atoms and bonds into the generated density, resulting in valid chemical structures.

Results and Discussion

Validity and Physical Realism

At standard sampling settings, over 80% of generated molecules were chemically valid, and over 90% were unique. The generated molecules required only minimal adjustment (median RMSD change of 1.65Å) to reach a local energy minimum, suggesting the 3D shapes produced by the AI were remarkably close to being physically correct.

Conditionality and Diversity

By scaling the variance in the latent space, the researchers could control the "creativity" of the model. Sampling close to a "seed" molecule produced derivatives of known drugs, while sampling further away produced novel scaffolds. Interestingly, even when generating molecules with low chemical similarity to the seed, the model often maintained high shape similarity, demonstrating that it learned the physical constraints of the binding pocket. Furthermore, molecules generated with receptor conditioning had significantly lower internal energy compared to those generated without it.

Conclusion

This work demonstrates the feasibility of conditional 3D molecular structure generation. While future work is needed to explicitly optimize for binding affinity and drug-likeness (such as solubility or metabolic stability), this model provides a robust starting point for AI-driven, structure-based drug design. The ability to "hallucinate" novel drug candidates tailored to specific biological targets represents a significant step forward in computational chemistry.

Summary updated

BibTeX
@misc{masuda2020generating,
  author = {Tomohide Masuda and Matthew Ragoza and David Ryan Koes},
  title = {{Generating 3D Molecular Structures Conditional on a Receptor Binding Site with Deep Generative Models}},
  year = {2020},
  eprint = {2010.14442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.14442},
}
Figure