A Latent Diffusion Model for Protein Structure Generation

Cong Fu, Keqiang Yan, Limei Wang, Wing Yee Au, Michael McThrow, Tao Komikado, Koji Maruhashi, Kanji Uchino, Xiaoning Qian, Shuiwang Ji

Abstract

Proteins are complex biomolecules that perform a variety of crucial functions within living organisms. Designing and generating novel proteins can pave the way for many future synthetic biology applications, including drug discovery. However, it remains a challenging computational task due to the large modeling space of protein structures. In this study, we propose a latent diffusion model that can reduce the complexity of protein modeling while flexibly capturing the distribution of natural protein structures in a condensed latent space. Specifically, we propose an equivariant protein autoencoder that embeds proteins into a latent space and then uses an equivariant diffusion model to learn the distribution of the latent protein representations. Experimental results demonstrate that our method can effectively generate novel protein backbone structures with high designability and efficiency.

Introduction

Generating novel 3D protein structures is a "holy grail" for drug discovery and synthetic biology. However, proteins are massive, flexible 3D graphs, making the modeling space astronomically large. Traditional diffusion models—which have seen massive success in image generation—struggle with proteins because existing methods either attempt to diffuse every atom coordinate (which is computationally expensive) or simplify the protein into angles (often losing geometric nuance). There is a significant gap between the need for high-quality, diverse protein structures and the immense computational cost required to sample them from high-dimensional spaces.

LatentDiff addresses this by bringing the "Stable Diffusion" revolution to structural biology. By compressing complex 3D protein backbones into a condensed latent space using a novel equivariant autoencoder, the model can generate structures up to 180x faster than previous state-of-the-art diffusion models while maintaining high biological "designability."

Methodology

The LatentDiff architecture mirrors the design of Stable Diffusion but is specifically adapted for 3D geometry. The process involves three core components:

  1. Equivariant Protein Autoencoder: This core innovation uses a 3D Graph Neural Network (GNN) to "downsample" a protein backbone (represented by Alpha Carbon ($C_\alpha$) atoms) into a smaller number of latent nodes. Crucially, this autoencoder is SE(3) equivariant, ensuring the model understands that rotating or shifting a protein in space does not change its identity.
  2. Latent Diffusion Model: Instead of adding noise to actual 3D coordinates, the model adds noise to the latent representations created by the encoder and learns to reverse this noise in the compressed space.
  3. SE(3) Message Passing: The model employs specialized Equivariant Graph Neural Networks (EGNN) that include a cross-product term. This makes the model sensitive to "handedness" (reflection), which is vital because biological proteins almost exclusively contain right-handed alpha helices.
Overview of the LatentDiff architecture, showing the equivariant autoencoder and latent diffusion process.

Key Insights

  • Compression for Global Topology: Just as Stable Diffusion avoids pixel-by-pixel generation, LatentDiff proves that modeling every atom coordinate simultaneously is unnecessary. Compressing the graph structure allows the model to focus on the global topology of the protein.
  • Equivariance Requirement: Standard CNNs fail on 3D graphs because they do not account for rotation. By building SE(3) equivariance directly into the autoencoder, the latent space remains geometrically meaningful.
  • Efficiency vs. Quality: A downsampling factor of 4 (reducing 128 nodes to 32) was found to provide the optimal balance between reconstruction accuracy and computational speed.

Experimental Results

The researchers trained the model on a dataset of approximately 100,000 samples derived from the Protein Data Bank (PDB) and AlphaFold DB (Swiss-Prot), focusing on single-chain proteins with lengths between 40 and 128 residues.

LatentDiff demonstrates a massive speedup, sampling 1,000 proteins in approximately 15 minutes—making it 64x faster than FrameDiff and 180x faster than RFdiffusion. To evaluate the biological viability of generated proteins, the authors used the scTM (self-consistency TM-score). As shown in the comparison below, LatentDiff achieved a 66.9% success rate (scTM > 0.5) for lengths 50-128, significantly outperforming earlier diffusion models like FoldingDiff and ProtDiff.

Comparison of designability (scTM > 0.5) across different protein lengths for various diffusion models.

Discussion and Future Work

While LatentDiff represents a significant leap in efficiency, it currently focuses on generating the $C_\alpha$ backbone only. Users must still employ external tools like ProteinMPNN to determine the amino acid sequence and side chains. Additionally, the current implementation is optimized for proteins up to 128 residues; scaling to larger, multi-domain proteins remains a future challenge.

Although LatentDiff is substantially faster, its raw designability score (66.9%) still trails slightly behind the most recent (but slower) state-of-the-art models like FrameDiff (~87%). Closing this quality gap while maintaining the speed advantage is the next logical step for this research.

Summary updated

BibTeX
@inproceedings{fu2023latent,
  author = {Cong Fu and Keqiang Yan and Limei Wang and Wing Yee Au and Michael McThrow and Tao Komikado and Koji Maruhashi and Kanji Uchino and Xiaoning Qian and Shuiwang Ji},
  title = {{A Latent Diffusion Model for Protein Structure Generation}},
  booktitle = {LoG},
  year = {2023},
  url = {https://openreview.net/forum?id=yVJwEuCl4N},
}
Figure