Accelerating Inference in Molecular Diffusion Models with Latent Representations of Protein Structure

Ian Dunn, David Ryan Koes

Abstract

Diffusion generative models have emerged as a powerful framework for addressing problems in structural biology and structure-based drug design. These models operate directly on 3D molecular structures. Due to the unfavorable scaling of graph neural networks (GNNs) with graph size as well as the relatively slow inference speeds inherent to diffusion models, many existing molecular diffusion models rely on coarse-grained representations of protein structure to make training and inference feasible. However, such coarse-grained representations discard essential information for modeling molecular interactions and impair the quality of generated structures. In this work, we present a novel GNN-based architecture for learning latent representations of molecular structure. When trained end-to-end with a diffusion model for de novo ligand design, our model achieves comparable performance to one with an all-atom protein representation while exhibiting a 3-fold reduction in inference time.

Introduction

Structure-based drug design (SBDD) is increasingly turning to diffusion models to generate new drug-like molecules (ligands) that fit into protein binding pockets. However, these models face a significant trade-off regarding protein representation. All-atom representations are highly accurate but computationally expensive; Graph Neural Networks (GNNs) scale poorly with the number of nodes, and the iterative nature of diffusion makes inference slow. Conversely, coarse-grained representations (e.g., representing each amino acid as a single point) are fast but discard critical details like side-chain orientations, leading to lower-quality generated drugs.

This research introduces a middle ground: a representation that maintains the speed of coarse-grained models while preserving the informative detail of all-atom structures.

Methodology

The core innovation is a Pocket Encoder Module that learns a "keypoint" representation. Instead of using every atom or a fixed residue-level map, the model learns to condense the protein pocket into a small, fixed-size set of $K$ latent "keypoints" (typically $K=40$).

The proposed pipeline: from receptor message passing to keypoint-conditioned diffusion.

Key Architectural Components

  • Geometric Vector Perceptrons (GVP): Unlike standard Equivariant GNNs (EGNNs) that only track positions and scalar features, the authors utilized GVPs. These can handle multiple vector features per node, which is necessary to capture complex local environments in a condensed format.
  • Graph Attention Placement: Keypoint positions are determined using a dot-product graph attention mechanism, allowing the model to decide where the most important structural landmarks are located within the pocket.
  • Optimal Transport Loss: To ensure these keypoints represent the area where the drug binds, a loss function encourages keypoints to align with the actual protein-ligand interface.

Results and Insights

The models were trained and evaluated on the BindingMOAD dataset, containing approximately 40,000 protein-ligand structures.

  • 3x Speedup: The keypoint-conditioned models achieved a 3-fold reduction in inference time compared to all-atom models.
  • Comparable Quality: The GVP-based keypoint model achieved Vina scores (binding affinity proxy) and RMSD values (structural reasonableness) nearly identical to the much slower all-atom models.
  • Expressivity and Compression: A major finding was that standard EGNNs failed to produce good results with keypoints. However, GVP-GNNs successfully bridged the gap, proving that learned latent representations can "encode" the influence of side chains even if they are removed from the graph during the diffusion process.

Discussion and Future Work

The architecture allows researchers to tune the number of keypoints ($K$), providing a slider between computational efficiency and structural precision. However, several areas for improvement remain:

  1. Fixed Keypoint Count: The current model uses a fixed $K=40$. Future iterations could scale $K$ based on the pocket volume for better efficiency.
  2. Task Generalization: While successful for de novo ligand design, it remains to be seen how well these keypoint representations generalize to tasks like molecular docking or fragment linking.
  3. Interpretability: Developing ways to visualize what structural features these abstract latent keypoints are actually "seeing" could provide better biological insights.

Summary updated

Abstract

Diffusion generative models have emerged as a powerful framework for addressing problems in structural biology and structure-based drug design. These models operate directly on 3D molecular structures. Due to the unfavorable scaling of graph neural networks (GNNs) with graph size as well as the relatively slow inference speeds inherent to diffusion models, many existing molecular diffusion models rely on coarse-grained representations of protein structure to make training and inference feasible. However, such coarse-grained representations discard essential information for modeling molecular interactions and impair the quality of generated structures. In this work, we present a novel GNN-based architecture for learning latent representations of molecular structure. When trained end-to-end with a diffusion model for de novo ligand design, our model achieves comparable performance to one with an all-atom protein representation while exhibiting a 3-fold reduction in inference time.
BibTeX
@inproceedings{dunn2023accelerating,
  author = {Ian Dunn and David Ryan Koes},
  title = {{Accelerating Inference in Molecular Diffusion Models with Latent Representations of Protein Structure}},
  booktitle = {GenBio @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=Z4ia7s2tpV},
}
Figure