Scaling down protein language modeling with MSA Pairformer

Yo Akiyama, Zhidian Zhang, Milot Mirdita, Martin Steinegger, Sergey OvchinnikovbioRxiv 2025

TL;DR

MSA Pairformer is a new protein language model that achieves state-of-the-art performance on key tasks like contact prediction and protein-protein interaction prediction, while using significantly fewer parameters and less memory than existing models. It does this by intelligently extracting evolutionary signals from multiple sequence alignments (MSAs) that are most relevant to a specific query sequence, overcoming limitations of previous MSA-based and single-sequence models.

What Problem Does This Paper Address?

The field of protein language modeling (pLM) has seen impressive gains by scaling up models and training data, leading to models with billions of parameters. However, this trend creates a significant barrier to entry, requiring immense computational resources that are only available to well-funded labs. While models using Multiple Sequence Alignments (MSAs) offer a more parameter-efficient way to capture evolutionary information, they have historically underperformed compared to their single-sequence counterparts due to memory constraints and the averaging of evolutionary signals across all sequences in an MSA. This averaging can obscure important subfamily-specific signals. The authors aim to bridge this gap by developing an MSA-based pLM that is both parameter-efficient and capable of extracting nuanced, query-relevant evolutionary information, thereby democratizing access to powerful protein modeling capabilities.

Methods

The core innovation is the MSA Pairformer architecture, a 111M parameter model that processes MSAs through 22 layers. Each layer features three key operations:

  • Pair-weighted averaging: Updates the MSA representation using pairwise information from the pair representation.
  • Query-biased outer product: This is a novel component. Instead of averaging evolutionary signals across all sequences in an MSA, it uses a "differential attention" mechanism to weight sequences based on their evolutionary relevance to a specific query sequence. This allows the model to focus on signals most pertinent to the sequence of interest.
  • Triangle multiplicative updates: Refines the pair representation by considering triplet interactions between residues, inspired by geometric constraints in protein structures.

The model is trained using self-supervised learning to reconstruct masked amino acids.

Datasets

  • Training: The authors used the 270K Uniclust30 MSAs from the OpenProteinSet for pre-training and attention finetuning.
  • Evaluation:
    • Unsupervised Contact Prediction: CASP15 targets. MSAs were generated using hhblits to search UniRef30.
  • Protein-Protein Interface Prediction: A dataset of 25 evolutionarily conserved protein complexes from Ovchinnikov et al. [13].
  • Variant Effect Prediction: 219 ProteinGym deep mutational scan substitution experiments.
  • Subfamily-Specific Properties: A dataset focusing on bacterial response regulator protein family (OmpR, LytTR, GerE subfamilies).
  • Binding vs. Non-binding PPI: A library of mutants at four key interface residues in the ParD3 antitoxin from Aakre et al. [56].

Key Insights and Ideas

  • Query-biased attention is crucial: The ability to selectively focus on relevant sequences within an MSA, rather than averaging, is key to MSA Pairformer's success. This allows it to capture subfamily-specific signals that would otherwise be diluted.
  • Triangle updates disentangle correlations: The "triangle multiplicative updates" operation appears to play a vital role in distinguishing direct residue-residue correlations from indirect ones, leading to more accurate contact predictions.
  • MSA Pairformer avoids "hallucinations": Unlike some previous MSA models, MSA Pairformer does not predict contacts when the underlying evolutionary signal (covariance) is removed, suggesting it relies on genuine co-evolutionary information rather than memorized patterns.
  • No trade-off between contact prediction and variant effect prediction: While scaling single-sequence models often leads to a decline in variant effect prediction performance as they improve at contact prediction, MSA Pairformer excels at both.

Key Results

  • Unsupervised Contact Prediction: Achieved state-of-the-art performance with an average P@L of 0.52, a 6% point improvement over ESM2-15B and an 8% point improvement over MSA Transformer, using two orders of magnitude fewer parameters.
  • Protein-Protein Interface Prediction: Significantly outperformed all baselines, achieving a median P@K of 0.53, a 24% point increase over MSA Transformer.
  • Variant Effect Prediction: Achieved an average Spearman's correlation of 0.47, outperforming ESM2 and MSA Transformer, and uniquely maintaining strong performance in both contact and variant effect prediction.
  • Subfamily-Specific Properties: Demonstrated the ability to recover subfamily-specific homodimeric interface contacts that were previously averaged out by uniform weighting.
  • Binding vs. Non-binding PPI: Achieved a precision of 0.58 in discriminating binding and non-binding PPI sequences, outperforming MSA Transformer and ESM2-15B.

Limitations and Future Work

  • Ablation Studies: While ablation studies suggest a role for triangle updates in disentangling direct/indirect correlations, further investigation is needed to fully understand their precise mechanisms.
  • Pre-softmax Differential Attention: The authors introduced a novel attention mechanism but acknowledge that its properties and limitations require further exploration.
  • Future Directions: The authors suggest that MSA Pairformer's ability to capture subfamily-specific signals could aid in discovering protein subfamilies and their distinct functional properties, and could enhance supervised structure prediction models. Its efficiency also makes it well-suited for large-scale screening of unknown PPIs.

Summary updated

Abstract

Abstract Recent efforts in protein language modeling have focused on scaling single-sequence models and their training data, requiring vast compute resources that limit accessibility. Although models that use multiple sequence alignments (MSA), such as MSA Transformer, offer parameter-efficient alternatives by extracting evolutionary information directly from homologous sequences rather than storing it in parameters, they generally underperform compared to single-sequence-based language due to memory inefficiencies that limit the number of sequences and averaging evolutionary signals across the MSA. We address these challenges with MSA Pairformer, a 111M parameter memory-efficient MSA-based protein language model that extracts evolutionary signals most relevant to a query sequence through bi-directional updates of sequence and pairwise representations. MSA Pairformer achieves state-of-the-art performance in unsupervised contact prediction, outperforming ESM2-15B by 6% points while using two orders of magnitude fewer parameters. In predicting contacts at protein-protein interfaces, MSA Pair-former substantially outperforms all methods with a 24% point increase over MSA Transformer. Unlike single-sequence models that deteriorate in variant effect prediction as they scale, MSA Pairformer maintains strong performance in both tasks. Ablation studies reveal triangle operations remove indirect correlations, and unlike MSA Transformer, MSA Pairformer does not hallucinate contacts after removing covariance, enabling reliable screening of interacting sequence pairs. Overall, our work presents an alternative to the current scaling paradigm in protein language modeling, enabling efficient adaptation to rapidly expanding sequence databases and opening new directions for biological discovery.
BibTeX
@misc{akiyama2025scaling,
  author = {Yo Akiyama and Zhidian Zhang and Milot Mirdita and Martin Steinegger and Sergey Ovchinnikov},
  title = {{Scaling down protein language modeling with MSA Pairformer}},
  year = {2025},
  doi = {10.1101/2025.08.02.668173},
  howpublished = {bioRxiv},
}
Figure