Fast uncovering of protein sequence diversity from structure*

Luca Alessandro Silva, Barthelemy Meynard-Piganeau, Carlo Lucibello, Christoph Feinauer

Abstract

We present InvMSAFold, an inverse folding method for generating protein sequences that is optimized for diversity and speed. For a given structure, InvMSAFold generates the parameters of a probability distribution over the space of sequences with pairwise interactions, capturing the amino acid covariances observed in Multiple Sequence Alignments (MSA) of homologous proteins. This allows for the efficient generation of highly diverse protein sequences while preserving structural and functional integrity. We show that this increased diversity in sampled sequences translates into greater variability in biochemical properties, highlighting the exciting potential of our method for applications such as protein design. The orders of magnitude improvement in sampling speed compared to existing methods unlocks new possibilities for high-throughput virtual screening.

Introduction

In protein engineering, "inverse folding" aims to identify amino acid sequences that fold into a target 3D structure. While current state-of-the-art models like ESM-IF1 and ProteinMPNN are effective, they often focus on recovering a single "native" sequence. This "one-to-one" approach limits the discovery of diverse sequence variants that might possess superior biochemical properties, such as enhanced stability or solubility. Furthermore, the auto-regressive nature of these models—predicting sequences one residue at a time—imposes a significant computational bottleneck, hindering high-throughput screening.

The InvMSAFold Approach

InvMSAFold addresses these limitations by shifting from predicting individual sequences to predicting a probability distribution over the entire sequence space for a given fold. The model utilizes a two-stage architecture: a GVP-GNN encoder processes the 3D coordinates, followed by a Transformer decoder that outputs the parameters ($\mathbf{J}$ and $\mathbf{H}$) of a statistical Potts model.

Architecture of InvMSAFold, illustrating the transition from structure encoding to Potts model parameter prediction.

To maintain efficiency, InvMSAFold employs a low-rank approximation of the Potts parameters, ensuring computational costs remain linear relative to protein length. By training on Multiple Sequence Alignments (MSAs) from the CATH database rather than single structure-sequence pairs, the model learns the evolutionary constraints of a fold, capturing the broad landscape of viable sequences.

Capturing the Evolutionary Landscape

By modeling the sequence distribution, InvMSAFold can generate sequences that cover the same diverse territory as natural evolution. Unlike models that cluster tightly around the native sequence, InvMSAFold captures amino acid covariances, allowing for the generation of functional variants that may differ significantly from known natural sequences. This diversity is not merely noise; it translates into a wide range of predicted biochemical properties, offering a rich library for protein designers.

Performance and Speed

A key advantage of InvMSAFold is its sampling efficiency. By decoupling the heavy inference step (predicting model parameters) from the generation step (sampling from the distribution), the model achieves massive speedups.

Sampling time comparison between ESM-IF1 and InvMSAFold variants across different protein lengths.

As shown in the performance benchmarks, the auto-regressive variant (InvMSAFold-AR) is orders of magnitude faster than ESM-IF1, particularly for larger proteins. This efficiency allows for the generation of thousands of samples on standard CPUs in the time traditional models require for a single sequence on a GPU.

Key Results and Structural Fidelity

Validation using AlphaFold 2 demonstrates that sequences generated by InvMSAFold, even those with up to 85% sequence divergence from the native protein, accurately fold into the target structure. The model also excels at reconstructing co-evolutionary patterns, outperforming existing inverse folding methods in capturing complex residue interactions.

Discussion and Future Directions

While InvMSAFold represents a significant leap in speed and diversity, challenges remain. The pairwise version (InvMSAFold-PW) requires MCMC sampling, which is more complex than the AR variant. Additionally, training on natural MSAs may introduce evolutionary biases. Future research will focus on exploring "dark matter" sequence space—functional sequences that have not yet appeared in nature. Finally, the ability to generate diverse functional proteins necessitates robust biosecurity protocols to prevent the design of hazardous agents.

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<sup>*</sup>}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=1iuaxjssVp},
}
Figure