Protein structure generation via folding diffusion

Kevin Wu, Kevin Yang, Rianne van den Berg, Sarah Alamdari, James Zou, Alex X. Lu, Ava P. Amini

Abstract

The ability to computationally generate novel yet physically foldable protein structures could lead to new biological discoveries and new treatments targeting yet incurable diseases. Despite recent advances in protein structure prediction, directly generating diverse, novel protein structures from neural networks remains difficult. In this work, we present a diffusion-based generative model that generates protein backbone structures via a procedure inspired by the natural folding process. We describe a protein backbone structure as a sequence of angles capturing the relative orientation of the constituent backbone atoms, and generate structures by denoising from a random, unfolded state towards a stable folded structure. Not only does this mirror how proteins natively twist into energetically favorable conformations, the inherent shift and rotational invariance of this representation crucially alleviates the need for more complex equivariant networks. We train a denoising diffusion probabilistic model with a simple transformer backbone and demonstrate that our resulting model unconditionally generates highly realistic protein structures with complexity and structural patterns akin to those of naturally-occurring proteins. As a useful resource, we release an open-source codebase and trained models for protein structure diffusion.

Introduction

Designing novel proteins is a "holy grail" for drug discovery and materials science, but generating physically foldable structures is incredibly difficult. Most recent deep learning approaches represent proteins as 3D point clouds (Cartesian coordinates). This creates a major hurdle: the model must be "equivariant," meaning it needs to recognize that a protein is the same regardless of how it is rotated or translated in space. Building these symmetries into neural networks often requires complex, computationally expensive architectures. Furthermore, coordinate-based models sometimes struggle with chirality—they might accidentally generate "mirror-image" proteins that cannot exist in nature.

Methods

The authors introduce FoldingDiff, which approaches protein generation through the lens of the natural folding process—twisting and turning into shape.

Overview of the FoldingDiff framework, including the angular representation of the protein backbone and the iterative denoising diffusion process.

Angular Representation and Invariance

Instead of 3D coordinates, the model represents the protein backbone as a sequence of six internal angles (3 bond angles and 3 dihedral angles) per residue. Because these angles describe the relative orientation of atoms, the representation is inherently invariant to rotation and translation. This allows the use of a "vanilla" bidirectional transformer as the backbone, avoiding the need for specialized equivariant layers.

Diffusion Process

The model uses a Denoising Diffusion Probabilistic Model (DDPM). It starts with a "randomly unfolded" state (noise) and iteratively denoises the angles over 1,000 steps to arrive at a stable, "folded" structure. Since angles are periodic (wrapping around at $\pi$ and $-\pi$), the authors modified the standard diffusion loss and noising process to account for this "wrapped" geometry.

The model was trained on ~30,000 unique domains from the CATH Protein Domains (v4.3.0) dataset, with lengths between 40 and 128 residues.

Key Results

FoldingDiff demonstrates a remarkable ability to capture the complex, long-range correlations required for protein folding, avoiding the modal collapse seen in simpler autoregressive models.

Comparison of generated (orange) vs. natural (blue) bond angle distributions, demonstrating high fidelity in capturing physical constraints.
  • Distribution Matching: FoldingDiff almost perfectly recapitulates the distribution of angles found in nature, including the specific "islands" of valid configurations seen in Ramachandran plots.
  • Designability: Using a "self-consistency" test with ProteinMPNN, 22.7% of the generated structures achieved a TM-score $\ge$ 0.5, indicating they are highly likely to fold into the intended shape in the real world.
  • Structural Diversity: UMAP visualizations show that FoldingDiff explores a wide variety of shapes, overlapping with known natural folds while also venturing into novel structural spaces.

Discussion and Limitations

By choosing an internal angle coordinate system, the researchers effectively shifted complexity from the architecture to the data representation. This allows the model to naturally respect chirality, such as the "right-handedness" of alpha-helices, which coordinate-based models often struggle with.

However, some limitations remain. The "lever arm" effect means tiny angular errors can lead to large displacements in long chains, potentially complicating scaling to 500+ residues. Additionally, the model lacks an explicit physics penalty, occasionally leading to atomic clashes that require post-generation refinement. Future work will likely focus on conditional generation to target specific biological functions.

Summary updated

BibTeX
@inproceedings{wu2024protein,
  author = {Kevin Wu and Kevin Yang and Rianne van den Berg and Sarah Alamdari and James Zou and Alex X. Lu and Ava P. Amini},
  title = {{Protein structure generation via folding diffusion}},
  booktitle = {Nature Communications},
  year = {2024},
  doi = {10.1038/s41467-024-45051-2},
}
Figure