Abstract
Machine learning (ML) is revolutionizing our ability to model the fitness landscape of protein sequences, which is critical to answering fundamental life science questions and addressing important protein engineering applications. Recently, the protein language model (pLM) has emerged as an effective tool in deciphering the intrinsic semantics of protein sequences. However, significant challenges remain in leveraging pLMs for protein fitness prediction due to the disparity between the scarce number of sequences functionally characterized by high-throughput assays and the massive data samples required for training large pLMs. To bridge this gap, we introduce Contrastive Fitness Learning (ConFit), a pLM-based ML method for learning the protein fitness landscape with limited experimental fitness measurements. We propose a novel contrastive learning strategy to fine-tune the pre-trained pLM, tailoring it to achieve protein-specific fitness prediction while avoiding overfitting, even when using a small number (low-$N$) of functionally assayed mutant sequences.
The Challenge of "Low-N" Learning
In protein engineering, the "fitness landscape" is the map relating a protein's amino acid sequence to its function. Mapping this landscape is a primary goal of the field, but it faces a massive data bottleneck. Modern Protein Language Models (pLMs) like ESM-1v are trained on millions of sequences to learn the "grammar" of biology, but they do not inherently know specific fitness values.
To make them useful for engineering tasks, we must fine-tune them on experimental lab data. However, lab experiments are expensive and slow, often yielding only dozens or hundreds of labeled samples (the "low-$N$" problem). When attempting to fine-tune a model with hundreds of millions of parameters on just 100 data points using standard regression, the model typically suffers from catastrophic forgetting: it overfits the tiny dataset so aggressively that it loses the general biological wisdom acquired during pre-training.
Methods: Reprogramming the pLM
ConFit "reprograms" the pLM rather than simply retraining it. By shifting from traditional value-based regression to a contrastive ranking approach, ConFit avoids the pitfalls of standard fine-tuning.
Key technical innovations include:
- Contrastive Ranking (Bradley-Terry Loss): Instead of predicting an absolute fitness value, ConFit trains the model to predict which of two variants is better. This effectively turns $N$ data points into $O(N^2)$ training pairs, significantly expanding the signal available from small datasets.
- Objective Alignment: ConFit keeps the model in its original "probability space." It calibrates the pLM’s likelihood outputs to align with fitness rankings, ensuring the fine-tuning task isn't fundamentally at odds with the pre-training task.
- Parameter-Efficient Fine-Tuning (LoRA): Instead of updating all parameters, ConFit uses Low-Rank Adaptation (LoRA) to update only a tiny fraction (approx. 0.2%) of the weights. This prevents the model from drifting too far from its stable, pre-trained state.
- Hybrid Context Retrieval: The model combines global evolutionary patterns from the pLM with local evolutionary context derived from Multiple Sequence Alignments (MSAs) of the specific target protein.
Key Results and Insights
The study evaluated ConFit against 34 benchmark fitness datasets covering 27 different proteins. The authors specifically tested performance at "low-$N$" regimes, subsampling the training data to as few as 48 points.
- Superior Accuracy: ConFit outperformed 13 baseline methods (including state-of-the-art supervised models like Augmented VAE and eUniRep) across 29 out of 34 datasets.
- Efficiency at Scale: Even at the extreme low end ($N=48$), ConFit achieved a mean Spearman correlation of 0.56—only 15% lower than its performance with five times more data ($N=240$).
- Extrapolation Power: ConFit demonstrated the ability to train on single-mutation data and accurately predict the fitness of higher-order mutants (multiple mutations). This suggests the model is truly learning the underlying landscape rather than just memorizing local points.
- Active Learning Boost: When used in an active learning loop, ConFit identified high-fitness variants much faster than greedy or random sampling strategies.
Conclusion
ConFit represents a novel strategy to harness the potential of pLMs to elucidate the protein sequence-function relationship in data-scarce environments. By prioritizing ranking over absolute regression and utilizing parameter-efficient updates, it sets a new standard for low-$N$ protein fitness prediction. Future work may involve incorporating 3D structural information and exploring dynamic fusion mechanisms for MSA-based context.
Source Code: github.com/luo-group/ConFit
Summary updated