Multi-Peptide Prompting Enables In-Context Learning in Protein Language
Joshua AlmonteiD, Minh Triet Vu, Andrew Ahn, Erik H. ThiedeiD
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.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- PepBERT: Lightweight language models for bioactive peptide representation
Zhenjiao Du, Doina Caragea, … Yonghui Li·Future FoodsPeer-reviewed·Mar 21, 2026
- Scaling SMILES-Based Chemical Language Models for Therapeutic Peptide Engineering
Aaron L. Feller, Maxim Secor, … Kristine Deibler·Journal of Chemical Information and ModelingPeer-reviewed·Jul 13, 2026
- AINN-P1: A Compact Sequence-Only Protein Language Model Achieves Competitive Fitness Prediction on ProteinGym
Roger W. Wang, Kevin Jin, Lurong Pan·bioRxiv·Mar 30, 2026
- MULAN: Multimodal Protein Language Model for Sequence and Structure Encoding
Daria Frolova, Marina A. Pak, … Ivan Valer'evich Oseledets·Bioinformatics AdvancesPeer-reviewed·Dec 26, 2024
- Prot2Token: A multi-task framework for protein language processing using autoregressive language modeling
Mahdi Pourmirzaei, Farzaneh Esmaili, … Dong He Xu·bioRxiv·May 31, 2024
- Fine-tuning protein language models boosts predictions across diverse tasks
Robert Schmirler, Michael Heinzinger, Burkhard Rost·Nature CommunicationsPeer-reviewed·Aug 28, 2024