TL;DR
MSA2Prot is a new "few-shot" generative model that creates novel protein sequences by conditioning directly on Multiple Sequence Alignments (MSAs). Unlike previous deep learning approaches, it doesn't require retraining for every new protein family and can accurately model complex non-linear mutations (epistasis) as well as insertions and deletions.
What Problem Does This Paper Address?
Protein engineering—the art of designing mutations to achieve a specific biological function—is notoriously difficult. The search space is astronomically large, and mutations often have non-linear, "epistatic" effects where the impact of one change depends entirely on another.
While we have massive amounts of natural protein sequence data, experimental data on how mutations affect function is scarce and expensive to collect. Traditional statistical models like PSSMs and profile HMMs are efficient but too simple to capture complex dependencies between amino acids. Conversely, modern deep generative models often need to be painstakingly retrained for each individual protein family, or they rely on "masked" language modeling, which makes it difficult to calculate exact sequence probabilities or handle insertions and deletions (indels).
Methods
The authors introduce MSA2Prot, an encoder-decoder transformer architecture designed for sequence-to-sequence learning.
- The Encoder: It uses "axial self-attention" to process the input MSA. This means the model looks at relationships across rows (different sequences in the family) and columns (residue positions) independently. Crucially, the encoder is invariant to the order of sequences in the MSA, allowing it to learn general "evolutionary priors."
- The Decoder: Unlike masked models (which predict missing pieces), MSA2Prot uses an autoregressive decoder. It generates a new sequence one amino acid at a time, attending to the entire encoded MSA at each step.
- Few-Shot Formulation: The model is trained to take an MSA of a protein family and predict a held-out member of that same family. This allows it to generalize to entirely new protein families at test time without any further training.
Datasets
- Pfam: The primary dataset for training and validation, consisting of tens of thousands of curated protein family alignments. The authors split this at the family level (10,593 for training, 2,654 for testing) to ensure the model was evaluated on unseen families.
- Deep Mutational Scanning (DMS): 40 different datasets characterizing the functional impact of point mutations.
- Chorismate Mutase: A highly diverse dataset used to evaluate performance on higher-order mutants (multiple simultaneous mutations).
- Beta-lactamase Indel Dataset: Specifically used to test the model's ability to handle insertions and deletions.
Key Insights and Ideas
- Epistasis is Key: Most zero-shot models assume mutations are additive. MSA2Prot’s decoder allows it to model "epistasis"—the complex interactions where two mutations together behave differently than the sum of their parts. This is why it significantly outperforms competitors on diverse datasets like Chorismate Mutase.
- Data Efficiency: The model is remarkably efficient. It achieves lower perplexity (a measure of how well it predicts sequences) with just 10 sequences in an MSA than traditional profile HMMs do with 100 sequences.
- Handling the "Indel" Gap: Most current protein language models struggle with sequences of different lengths. Because MSA2Prot is a sequence-to-sequence model, it naturally handles insertions and deletions, which account for a significant portion of natural genetic variation.
- Adaptive Sampling: By filtering the input MSA to include only high-performing variants, the model can "extrapolate" and generate new sequences that are even more likely to be functional.
Key Results
- State-of-the-Art Prediction: On 40 DMS datasets, MSA2Prot achieved a mean Spearman Rho of 0.536, performing on par with or better than models that require family-specific training.
- Superior Higher-Order Modeling: On the Chorismate Mutase dataset, MSA2Prot achieved a Spearman Rho of 0.41, vastly outperforming the popular MSA Transformer (0.12), which relies on additive scoring.
- Generative Power: In adaptive sampling experiments, MSA2Prot generated sequences in the 89th percentile of fitness after only a few thousand updates, far outperforming Gibbs sampling baselines.
Limitations and Future Work
- Sequence Length: During training, sequences were capped at 402 tokens to manage GPU memory, which might limit its application to very large multi-domain proteins.
- Computational Complexity: The cross-attention mechanism scales with the product of the target sequence length and the total number of residues in the MSA, which can be computationally expensive for very large alignments.
- Oracle Dependence: The adaptive sampling results rely on a "black-box oracle" (a Random Forest regressor) to simulate fitness; real-world validation in a wet lab would be the ultimate test of these generated sequences.
Summary updated