Skip to main content
QUICK REVIEW

[Paper Review] Metalic: Meta-Learning In-Context with Protein Language Models

Jacob Beck, Shikha Surana|arXiv (Cornell University)|Oct 10, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

Metalic proposes a novel meta-learning framework that combines in-context learning with fine-tuning over protein language model (PLM) embeddings to improve protein fitness prediction in low-data regimes. By meta-learning from a distribution of related fitness tasks and deferring fine-tuning to test time, Metalic achieves state-of-the-art performance on ProteinGym with 18× fewer parameters than prior models.

ABSTRACT

Predicting the biophysical and functional properties of proteins is essential for in silico protein design. Machine learning has emerged as a promising technique for such prediction tasks. However, the relative scarcity of in vitro annotations means that these models often have little, or no, specific data on the desired fitness prediction task. As a result of limited data, protein language models (PLMs) are typically trained on general protein sequence modeling tasks, and then fine-tuned, or applied zero-shot, to protein fitness prediction. When no task data is available, the models make strong assumptions about the correlation between the protein sequence likelihood and fitness scores. In contrast, we propose meta-learning over a distribution of standard fitness prediction tasks, and demonstrate positive transfer to unseen fitness prediction tasks. Our method, called Metalic (Meta-Learning In-Context), uses in-context learning and fine-tuning, when data is available, to adapt to new tasks. Crucially, fine-tuning enables considerable generalization, even though it is not accounted for during meta-training. Our fine-tuned models achieve strong results with 18 times fewer parameters than state-of-the-art models. Moreover, our method sets a new state-of-the-art in low-data settings on ProteinGym, an established fitness-prediction benchmark. Due to data scarcity, we believe meta-learning will play a pivotal role in advancing protein engineering.

Motivation & Objective

  • To address the challenge of limited labeled data in protein fitness prediction, especially in zero-shot and few-shot settings.
  • To improve generalization in protein engineering by leveraging meta-learning across diverse fitness prediction tasks.
  • To develop a computationally efficient method that combines in-context learning with post-meta-training fine-tuning for protein language models.
  • To demonstrate that in-context learning can be effective even in zero-shot scenarios, without relying on task-specific fine-tuning during meta-learning.
  • To establish a new SOTA benchmark for low-data protein fitness prediction using minimal model parameters.

Proposed method

  • Metalic uses protein language model (PLM) embeddings as a foundation for fitness prediction.
  • It performs meta-learning over a distribution of existing fitness prediction tasks to learn a generalizable initialization for new tasks.
  • The method employs in-context learning during inference, where the model attends to and reasons over a context of exemplar proteins to predict fitness.
  • Fine-tuning is applied only at test time, not during meta-training, enabling efficient adaptation to new tasks with minimal compute.
  • The model leverages axial attention mechanisms to capture dependencies between proteins in the context set.
  • It uses Reptile-style meta-learning for optimization, but defers fine-tuning to test time, avoiding costly higher-order gradients.
Figure 1: An overview of meta-learning for protein fitness prediction. PLMs are trained over massive quantities of unlabeled data. Using meta-learning, we also train over a smaller quantity of labelled fitness data. Using this extra data is critical given limited data for fine-tuning at test time.
Figure 1: An overview of meta-learning for protein fitness prediction. PLMs are trained over massive quantities of unlabeled data. Using meta-learning, we also train over a smaller quantity of labelled fitness data. Using this extra data is critical given limited data for fine-tuning at test time.

Experimental results

Research questions

  • RQ1Can in-context meta-learning improve protein fitness prediction in zero-shot and few-shot settings?
  • RQ2Does deferring fine-tuning to test time enable better generalization while remaining computationally efficient?
  • RQ3Can meta-learning over diverse fitness tasks improve performance on unseen tasks, even when no task-specific data is available?
  • RQ4How does Metalic's in-context learning capability compare to standard fine-tuning or other meta-learning baselines?
  • RQ5To what extent does unsupervised in-context learning emerge from the query set alone in the absence of labeled data?

Key findings

  • Metalic achieves state-of-the-art performance on the ProteinGym benchmark in both zero-shot and few-shot settings, outperforming prior methods.
  • With only 18 times fewer parameters than state-of-the-art models, Metalic achieves comparable or better performance in low-data regimes.
  • In the 128-shot setting, Metalic (45,000 training steps) outperforms Reptile-3-100 and the combined Metalic-Reptile approach when compute is controlled.
  • Attention maps show that proteins in the context set learn to attend to each other, not just themselves, indicating effective in-context reasoning even in zero-shot settings.
  • Ablation studies confirm that in-context learning is essential, as removing it leads to significant performance drops.
  • The method demonstrates unsupervised in-context learning, where the model learns useful representations from the query set alone without any labeled data.
(a) Meta-training
(a) Meta-training

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.