Fast Uncovering of Protein Sequence Diversity from Structure

luca alessandro silva, Barthelemy Meynard-Piganeau, Carlo Lucibello, Christoph Feinauer

InvMSAFold is a novel inverse folding method designed to generate a diverse "landscape" of protein sequences for a given 3D structure, rather than just a single candidate. By predicting the parameters of a lightweight statistical model instead of generating sequences amino-by-amino, it achieves orders-of-magnitude speedups while capturing the evolutionary variations found in nature.

The Challenge: Diversity and Speed in Inverse Folding

Inverse folding is the "design" counterpart to protein folding: given a specific 3D shape (structure), what amino acid sequences will fold into it? While tools like ProteinMPNN and ESM-IF1 are highly accurate, they suffer from two major bottlenecks:

  1. The Diversity Gap: These models are typically trained to recover the single "native" sequence found in nature. Consequently, they tend to produce sequences very similar to the original, ignoring the vast "one-to-many" reality where many different sequences can share the same fold.
  2. The Speed Bottleneck: Most current models are autoregressive, meaning they predict one amino acid at a time. For a long protein, this requires hundreds of forward passes through a massive neural network, making high-throughput virtual screening prohibitively expensive.
Conceptual comparison of sequence space coverage

The InvMSAFold Approach: Parameter Generation

To overcome these limitations, the authors introduce InvMSAFold, which shifts the paradigm from direct sequence generation to parameter generation.

Instead of a heavy neural network outputting sequences directly, InvMSAFold uses a two-stage architecture:

  • The Encoder-Decoder: A large neural network (utilizing a pre-trained GVP-GNN encoder) takes the 3D coordinates and outputs the parameters ($\theta$) of a lightweight "Potts model"—a type of pairwise probability distribution used in statistical physics to describe sequence correlations.
  • The Lightweight Model: The lightweight Potts model then takes over to generate the actual sequences. To keep this efficient, the authors employ a low-rank approximation for the coupling matrix. This crucial step reduces the computational complexity from quadratic ($O(L^2)$) to linear ($O(L)$) relative to the protein length.
InvMSAFold architecture generating Potts model parameters

Crucially, the model is trained on Multiple Sequence Alignments (MSAs) of homologous proteins rather than single sequences. This forces the network to learn the entire evolutionary landscape of a fold. By training on MSAs, the model learns the covariance between amino acids—for instance, learning that if Position A mutates to Valine, Position B must become Isoleucine to maintain structural integrity.

Key Results: Speed, Diversity, and Structure

The models were rigorously evaluated using the CATH Database for structural generalization and AlphaFold 2 as an "oracle" to verify folding success.

  • Unprecedented Speed: Because the heavy lifting (the neural network pass) only happens once per structure, you can sample thousands of sequences from the resulting lightweight model on a standard CPU. The autoregressive variant, InvMSAFold-AR, is orders of magnitude faster than ESM-IF1. While ESM-IF1's sampling time increases significantly with protein length, InvMSAFold remains nearly constant.
  • True Sequence Diversity: In PCA projections of sequence space, traditional methods often collapse to a single point near the native sequence. InvMSAFold successfully covers the entire "blob" of natural homologs, capturing multiple modes of sequence variation.
  • Maintained Structural Integrity: Even when sequences are designed to be far from the native one (low sequence identity), InvMSAFold's candidates are more likely to be predicted by AlphaFold 2 to maintain the correct target structure compared to baselines.
  • Expanded Property Variation: This increased sequence diversity translates directly to a wider range of biochemical properties, such as solubility and thermostability, providing a much larger "menu" for protein engineers.

Limitations and Future Directions

While InvMSAFold excels at covering the sequence landscape, the authors note it can occasionally miss secondary "modes" or distinct clusters of sequences found in nature. Additionally, the current model relies on a pre-trained encoder; future iterations might benefit from end-to-end training specifically optimized for diversity. Ultimately, this framework opens exciting new doors for high-throughput virtual screening and could be extended to co-optimize for specific functions—like altered substrate specificity or reduced toxicity—alongside structural stability.

Summary updated

BibTeX
@inproceedings{silva2025fast,
  author = {luca alessandro silva and Barthelemy Meynard-Piganeau and Carlo Lucibello and Christoph Feinauer},
  title = {{Fast Uncovering of Protein Sequence Diversity from Structure}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=1iuaxjssVp},
}
Figure