TL;DR
This paper introduces PRIMO, a novel framework for predicting protein fitness with very limited experimental data. PRIMO leverages a transformer architecture, in-context learning, and test-time training to adapt to new proteins and assays, outperforming existing methods in challenging few-shot scenarios.
What Problem Does This Paper Address?
Protein engineering aims to design proteins with specific functions, but accurately predicting how a protein's fitness will change with mutations is a significant challenge, especially when experimental data is scarce. Traditional machine learning approaches often require large datasets for training, which are expensive and time-consuming to generate. While zero-shot methods offer a starting point, they lack the precision needed for practical applications. This paper tackles the "few-shot learning" problem in protein engineering: how to make accurate fitness predictions with only a handful of experimental measurements.
Methods
PRIMO is a transformer-based model that uses a hybrid masked language modeling (MLM) approach for pre-training. It unifies sequence information, auxiliary zero-shot predictions (from models like ProGen), and sparse experimental labels into a single token set. A key innovation is the use of a "preference-based loss function" during pre-training, which teaches the model to rank variants correctly based on their relative fitness.
For adapting to new, unseen protein assays, PRIMO employs test-time training (TTT). This means the model's weights are briefly fine-tuned on the limited available experimental data for that specific assay before making predictions. This TTT step is crucial for overcoming the distribution shift that can occur when applying a pre-trained model to a new task. PRIMO also uniquely handles both single amino acid substitutions and insertions/deletions (indels).
Datasets
The authors pre-trained PRIMO on a large collection of Deep Mutational Scanning (DMS) assays from the ProteinGym benchmark. This benchmark includes assays measuring various protein properties like Stability, Enzymatic activity, Abundance, Fluorescence, and Binding. For evaluation, they used a held-out subset of ProteinGym assays designed to minimize overlap with the training data. They also curated a new benchmark focused on natural evolution, featuring assays that span broader sequence spaces, to test the models' ability to extrapolate.
Key Insights and Ideas
- TTT is crucial for adaptation: While in-context learning (ICL) alone showed limited improvement, test-time training (TTT) significantly boosted PRIMO's performance by allowing it to adapt to the specific characteristics of new assays.
- Preference learning is powerful: Training the model to predict relative fitness (which variant is better) rather than absolute fitness is highly effective for few-shot learning in this domain.
- Pre-training on diverse assays is key: Leveraging a large and diverse set of existing experimental data (DMS assays) is essential for building a robust foundation model that can generalize to new tasks.
- Handling indels matters: Many existing methods struggle with indel mutations, but PRIMO's ability to model them broadens its applicability in protein engineering.
Key Results
PRIMO, especially when combined with TTT, significantly outperforms zero-shot baselines and fully supervised methods in few-shot settings.
- Overall Performance: With TTT, PRIMO achieved an average Spearman correlation of 0.67 with 128 labeled samples, outperforming GP and Ridge regression baselines which reached 0.53 and 0.58 respectively. Even at very low sample counts (e.g., 4 shots), PRIMO with TTT showed substantial improvements.
- Indel vs. Substitution: PRIMO demonstrated strong performance on both substitution and indel mutations, with TTT consistently improving results for both.
- Natural Evolution Benchmark: PRIMO outperformed other baselines on a challenging benchmark of natural evolution, highlighting its ability to generalize to more distant sequence spaces, especially with TTT.
Limitations and Future Work
- Data Splitting: The authors emphasize the critical importance of appropriate data splitting to avoid inflated performance due to data leakage, noting that previous benchmarks might have suffered from this.
- ICL Limitations: While TTT was effective, the direct application of ICL alone was found to be limiting, suggesting that the pre-training data might not fully capture the diversity of all possible downstream tasks.
- Future Work: The authors suggest exploring more flexible property type encodings, potentially using natural language descriptions of experimental protocols. They also propose investigating other protein language models (pLMs) beyond ESM-2 and exploring selective fine-tuning of pLMs. They also highlight the need for dedicated data splitting regimes and detailed performance reporting for future research.
Summary updated