Can Large Language Models ''Read'' Biological Sequences? A Systematic Evaluation of In-Context Learning for Antibody Characterization
Sin-Hang FungiD, Zhenghao ZhangiD, Ran WangiD, Miao CheniD, Brian Shing‐Hei WongiD, Kelly Yichen LiiD, Chenyang HongiD, Jingying ZhouiD, Kevin Y. YipiD, Stephen Kwok‐Wing TsuiiD, Qin CaoiD
Abstract
Large language models (LLMs) can learn new tasks by in-context learning (ICL), but it is unknown whether this ability reliably transfers to biological sequence classification. Here, we systematically evaluate how demonstration selection, shot count, and prompting strategies affect performance across 20 general-purpose LLMs. Using antibody characterization as a representative test case, we compare zero-shot, few-shot, and chain-of-thought (CoT) ICL on three classification tasks: humanness, antigen specificity, and isotype. Our results reveal a clear performance hierarchy: while zero-shot prompting performs near chance, few-shot prompting with randomly selected demonstrations improves performance, showing that LLMs can perform ICL using biological sequences from minimal supervision. However, matching protein-language model (pLM)-based classifier accuracy is only achieved when using label-diverse demonstrations drawn from antibodies similar to the query sequence. To leverage this insight, we introduce Sim-ICL, a framework that automatically retrieves such demonstrations. Using only 32-shot prompting, Sim-ICL achieves performance competitive with pLM-based classifiers, matching or outperforming them in two of the three tasks. Furthermore, reasoning-oriented prompts yield marginal gains and often produce fluent but biologically incorrect rationales, suggesting that current CoT explanations function as after-the-fact rationalizations rather than capturing mechanistic determinants of antibody properties. From these experiments, we derive practical design principles for ICL on biological sequences: use similarity-based, label-diverse demonstrations and modest shot counts, and treat reasoning prompts primarily as post hoc narratives rather than drivers of performance. Sim-ICL implements these principles in a streamlined, prompt-based framework for antibody sequence classification and, in principle, could be adapted to other biological sequence tasks.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- FWCI
- 0.00
- Field percentile
- top 47%
- 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
- Evo 2 as a classification machine: evidence from in-context learning and mechanistic interpretability
Lorenzo Bertolini, Fabiola Curion, … Mario Ceresa·bioRxiv·Sep 30, 2026
- Ab-VS: Evaluating Large Language Models for Virtual Antibody Screening via Antibody-Antigen Interaction Prediction
Yiming Zhang, Koji Tsuda·IEEE International Conference on Bioinformatics and Biomedicine (BIBM)Peer-reviewed·Dec 15, 2025
- Enhancing Antibody Language Models with Structural Information
Justin Barton, Jacob D. Galson, Jinwoo Leem·bioRxiv·Dec 12, 2023
- Out-of-the-box bioinformatics capabilities of large language models (LLMs)
Varsha Rajesh, Maceo Blumberg, … Geoffrey Siwo·BioinformaticsPeer-reviewed·Oct 29, 2026
- A generative foundation model for antibody sequence understanding
Justin Barton, Aretas Gaspariunas, … Jacob D. Galson·bioRxiv·May 22, 2024
- Language modelling for biological sequences - curated datasets and baselines
José Juan Almagro Armenteros, Alexander Rosenberg Johansen, … Henrik Nielsen·bioRxiv·Mar 9, 2020