Evolution-Inspired Loss Functions for Protein Representation Learning

Chengyue Gong, Adam Klivans, James Madigan Loy, Tianlong Chen, qiang liu, Daniel Jesus Diaz

Overview

Researchers have developed EvoRank, a novel training objective for protein AI that shifts the focus away from simply predicting "original" amino acids (wildtype accuracy) toward ranking them based on evolutionary fitness. By training models to understand the relative likelihood of different mutations using evolutionary data, the authors achieved state-of-the-art zero-shot performance that rivals models fine-tuned on expensive experimental data.

The Problem: The "Wildtype Accuracy Trap"

In protein engineering, the primary goal is usually to find a mutation that improves a protein's function, such as its stability or binding affinity. However, most AI models are trained using Self-Supervised Learning (SSL) to predict the "wildtype"—the original residue found in nature—when it is masked out.

The authors identify a critical flaw in this approach, termed the "wildtype accuracy trap." A model can become incredibly adept at identifying the original amino acid but fail miserably at predicting how a novel mutation will affect the protein. In fact, they demonstrate that as wildtype accuracy increases beyond a certain threshold, performance on downstream tasks like thermodynamic stability prediction actually begins to decrease. To be effective, models must understand the "mutational landscape"—the hierarchy of which amino acids are better or worse at a specific position—rather than just memorizing the naturally occurring sequence.

Methods: EvoRank and MutRank

The authors introduce a two-stage training approach to overcome these limitations:

  1. MSA-based Soft Labels: Instead of treating the wildtype as the single "correct" answer, the researchers use Multiple Sequence Alignments (MSAs)—essentially the evolutionary family tree of a protein—to create a probability distribution. This "soft label" teaches the model that while Valine might be the wildtype, Isoleucine is also evolutionarily plausible, whereas Proline might be highly detrimental.
  2. EvoRank (Learning-to-Rank): The task is reformulated into a ranking problem. Given a specific "microenvironment" (the 3D arrangement of atoms within 20Å of a target site), the model is trained to predict the relative likelihood of a "from" amino acid versus a "to" amino acid.
  3. MutRank Architecture: To implement this, they utilize a graph transformer backbone to process the 3D structure and a Siamese network in the regression head to compare pairs of amino acids, ultimately producing a "rank score."
MutRank architecture showing the processing of masked microenvironments to predict relative amino acid rankings.

Crucially, while MSAs are required during training to provide the "ground truth" rankings, they are not needed at inference time. This makes the model significantly faster and easier to deploy for actual engineering tasks.

Datasets and Evaluation

The model was trained on a massive dataset of 2.5 million protein microenvironments sampled from approximately 23,000 protein sequences from the RCSB Protein Data Bank.

Evaluation spanned a wide range of phenotypes:

  • Thermodynamic Stability ($\Delta\Delta G$): Benchmarks including T2837, FireProtDB, and S669.
  • Binding Affinity: SKEMPI-V2 (protein-protein), PlatinumDB (protein-ligand), and ABBind (antibody-antigen).
  • Functional Activity & Solubility: Various Deep Mutational Scanning (DMS) datasets.

Key Results and Insights

By using MSAs to define the loss function, the model is forced to learn the underlying evolutionary dynamics and biochemical constraints of a protein. This "evolution as a teacher" approach yielded impressive results:

  • Massive Zero-Shot Gains: MutRank (the model trained with EvoRank) demonstrated a 42% to 83% improvement in zero-shot performance over standard SSL models across various stability datasets.
  • Beating the Giants: Despite being a relatively small model trained on only ~23K proteins, MutRank outperformed the billion-parameter ESM2 and the state-of-the-art ProteinMPNN on zero-shot mutation effect prediction.
Radar charts comparing MutRank's zero-shot performance against ESM2 and ProteinMPNN across various stability datasets.
  • Fine-Tuning Efficiency: When fine-tuning was applied, the EvoRank-pretrained model reached optimal performance 6x faster (500 vs. 3000 iterations) than models trained with standard wildtype masking.
  • Generalization: The model exhibited superior performance on "unseen" phenotypes like protein-ligand binding and solubility, areas where experimental data is notoriously scarce and noisy.

Limitations and Future Work

While EvoRank shows immense promise, the authors noted some limitations regarding scaling. Increasing the model size from 2M to 48M parameters yielded only marginal improvements. This suggests that either the current architecture or the diversity of the 23K-protein training set might be acting as a bottleneck.

Future work will likely focus on scaling the training set beyond 20K proteins to determine if the "scaling laws" observed in large language models apply to this evolutionary ranking approach. Additionally, broader evaluations across even more diverse phenotypes will help fully map the limits of EvoRank's generalization capabilities.

Summary updated

BibTeX
@inproceedings{gong2024evolution,
  author = {Chengyue Gong and Adam Klivans and James Madigan Loy and Tianlong Chen and qiang liu and Daniel Jesus Diaz},
  title = {{Evolution-Inspired Loss Functions for Protein Representation Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=y5L8W0KRUX},
}
Figure