Skip to content
#small language model Open access

Multi-Peptide Prompting Enables In-Context Learning in Protein Language Models

Aug 2026 · bioRxiv · 0 citations · 30 references
Biology

TL;DR

It is shown that single-sequence PLMs can perform in-context peptide learning without gradient updates, task-specific retraining, or architectural modification, and MPEP conditioning is established as a lightweight strategy for low-data peptide classification.

Abstract

Protein language models (PLMs) are trained primarily on individual protein sequences, yet many peptide-discovery problems require inference from only a small number of labeled examples. Here, we show that single-sequence PLMs can perform in-context peptide learning without gradient updates, task-specific retraining, or architectural modification. We introduce multi-peptide example prompts (MPEPs), in which demonstration peptides are concatenated with glycine spacers and used as context for scoring query peptides by their prompted probability. We evaluate this approach across a synthetic pattern-completion task, secondary-structure classification, and MHC-II binder prediction using both encoder-only ESM-2 models and decoder-only ProGen2 models. Across tasks, performance improves with the number of peptide examples and with model scale, indicating that PLMs can extract shared sequence-level properties from prompted examples. We further introduce a difference score that contrasts positive-example and negative-example MPEPs, reducing compositional biases in raw PLM probabilities and substantially improving classification. On MHC-II binder prediction, MPEP-based classification with larger ESM-2 models matches or exceeds low-data classifiers trained on frozen ESM-2 embeddings, while requiring no training. These results reveal an unexpected in-context inference capability in single-sequence PLMs and establish MPEP conditioning as a lightweight strategy for low-data peptide classification.

Read PDF

Similar papers

#machine learning Preprint Aug 2026

Task- and dataset-specific information in protein language models

Protein language models (PLMs) have transferred the latest advances from natural language processing to computational biology. These models, trained on large corpora of protein sequence data, are widely used to translate amino acid sequences into latent-space embeddings, ready for use in diverse downstream tasks (DTs)....

R. Joeres, Ilya S. Senatorov, A. Kolchina et al. · 0 citations
Open access Aug 2026

A systematic evaluation of in-context learning in large language models for antibody characterization

This work evaluates ICL across 20 large language models on three antibody tasks: species-origin, antibody specificity, and isotype class classification, and introduces a sequence similarity-based strategy for ICL in antibody sequence classification, Sim-ICL.

Sin-Hang Fung, Zheng-Hao Zhang, Ran Wang et al. · 0 citations
Open access Aug 2026

PG-LLM: Benchmarking General-Purpose Language Models for Protein Variant Ranking

PG-LLM shows that tool-free language models capture substantial protein-variant signal, outperforming many sequence-based predictors while remaining below the strongest specialized models.

Rohit Arora, L. Chen, Melissa Du et al. · 1 citation
Open access Aug 2026

Peptide language pragmatic analysis and two-stage hierarchical learning framework for therapeutic peptide prediction

TPpred-PepPA is developed, a two-stage hierarchical deep learning framework based on the ProtT5 pre-trained large language model that achieves state-of-the-art predictive performance and provides valuable interpretability for the discovery of multi-functional therapeutic peptides.

Ke Yan, Si-Yang Lu, Shutao Chen et al. · 0 citations
Open access Aug 2026

PLMView: collaborative protein language model representations for fast and scalable specialized protein function inference

Applications to thioredoxins, visual opsins, and Tara Oceans environmental diatom cold-shock proteins show that PLMView can move from interpretable residue-level determinants in well-studied protein families to large-scale environmental functional discovery, linking molecular specialization to ecological distribution a...

Vinh-Son Pho, Alessandro Natale Bianchi, Mattéo Scarsini et al. · 0 citations
Preprint Aug 2026

Unlocking Multimodal Protein Language Models at Inference Time

A three-stage investigation framework is established to empirically study the inference design space of multimodal pLMs across three representative pLMs and four fundamental tasks, and to derive conclusions about base models that differ from prior consensus.

Yi Zhou, Qiping Wang, Yunqing Liu et al. · 0 citations

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.