Abstract
Proteins are dynamic entities whose functions are governed by their structural ensembles. While static structure prediction has advanced significantly, capturing the full distribution of conformations remains a challenge. We present P2DFlow, a generative model using SE(3) flow matching to predict protein ensembles. By leveraging a strong prior from ESMFold and conditioning on an approximate energy landscape, P2DFlow generates physically valid and diverse ensembles with high fidelity to molecular dynamics simulations. Our results demonstrate that P2DFlow outperforms existing deep learning baselines in validity, fidelity, and capturing complex dynamics.
Introduction
The "structure-function" paradigm in biology is increasingly understood through the lens of protein dynamics. Proteins are not static; they inhabit a distribution of conformations known as an ensemble. While tools like AlphaFold have revolutionized our ability to predict single, stable "crystal structures," they often fail to capture the full distribution of states a protein takes during its functional cycle. Traditional methods to sample these states, such as Molecular Dynamics (MD), are computationally expensive and often get trapped in local energy minima. P2DFlow aims to bridge this gap by providing a generative framework that is both physically grounded and computationally efficient.
Methods
P2DFlow utilizes SE(3) Flow Matching, a generative framework that learns to transform a simple prior distribution into a complex data distribution (the protein ensemble) by predicting a vector field. Key technical innovations include:
- A "Strong Prior": Instead of starting from random Gaussian noise, P2DFlow begins with a structure predicted by ESMFold, to which a small amount of Gaussian perturbation is added. This inductive bias ensures the model starts with a chemically sensible backbone.
- Approximate Energy Conditioning: To help the model distinguish between different states (e.g., "open" vs. "closed"), the authors introduced "approximate energy" conditioning. MD data is projected onto a 2D plane defined by the Radius of Gyration (RG) and RMSD, and the Boltzmann equation is used to convert density into an energy-like value that guides the generation process.
- SE(3) Equivariant Architecture: The model uses a specialized neural network block combining Invariant Point Attention (IPA) and E(n) equivariant Graph Neural Networks (EGNN), ensuring predictions remain consistent regardless of the protein's orientation in space.
Datasets
The model was trained and evaluated using the ATLAS dataset, which contains approximately 1,300 high-quality molecular dynamics simulation results. For final evaluation, a test set of roughly 100 protein ensembles not seen during training was used.
Key Results
P2DFlow outperformed leading baselines like AlphaFlow and STR2STR across several metrics:
- Validity: It achieved a 94.1% success rate in steric clash checks (compared to 72.5% for AlphaFlow) and a perfect 1.000 score for bond length consistency.
- Fidelity: The model's generated ensembles closely matched ground-truth MD simulations. Its Root Mean Wasserstein Distance (RMWD) was 15.168, more than twice as accurate as AlphaFlow (33.628).
- Dynamics: It successfully captured "weak contacts"—residue pairs that touch in a crystal structure but pull apart during motion—which is critical for identifying potential drug-binding pockets.
Discussion and Future Work
P2DFlow demonstrates that starting from a "strong prior" allows a model to focus on learning fluctuations rather than basic chemistry. However, the model's performance is currently tied to the quality of the initial ESMFold prediction. Future work may involve utilizing more precise starting points, such as AlphaFold3, or incorporating more explicit physical laws and advanced force fields directly into the flow process to further enhance accuracy in learning complex energy landscapes.
Summary updated