A systematic evaluation of in-context learning in large language models for antibody characterization
Abstract Large language models can learn new tasks through in-context learning (ICL), yet this ability remains underexplored for biological sequence classification. We evaluate ICL across 20 large language models on three antibody tasks: species-origin, antibody specificity, and isotype class classification. Few-shot prompting improves over zero-shot performance, but matching the performance of protein language model classifiers requires sequence-similar demonstrations. Building on this observation, we introduce a sequence similarity-based strategy for ICL in antibody sequence classification, Sim-ICL. Using 32-shot prompting, Sim-ICL achieves competitive performance on two of three tasks. Its simplicity makes few-shot ICL promising for antibody characterization, especially for researchers with limited coding expertise.
Authors
- Sin-Hang Fung (ORCID: https://orcid.org/0000-0002-0847-4564)
- Chenyang Hong (ORCID: https://orcid.org/0000-0001-8965-3961)
- Jingying Zhou (ORCID: https://orcid.org/0000-0002-9740-6159)
- Qin Cao (ORCID: https://orcid.org/0000-0002-3106-562X)
- Brian Shing‐Hei Wong
- Stephen Kwok‐Wing Tsui (ORCID: https://orcid.org/0000-0003-0686-4259)
- Kelly Yichen Li (ORCID: https://orcid.org/0000-0001-7377-5729)
- Zhenghao Zhang (ORCID: https://orcid.org/0000-0001-7866-1106)
- Miao Chen (ORCID: https://orcid.org/0000-0002-0575-7198)
- Kevin Y. Yip
- Ran Wang
Institutions
- Chinese University of Hong Kong (HK)
- Sanford Burnham Prebys Medical Discovery Institute (US)
- Discovery Institute (US)
- Chinese University of Hong Kong, Shenzhen (CN)
Publication Details
- Journal
- Genome biology
- Published
- 2026-08-13
- DOI
- https://doi.org/10.1186/s13059-026-04240-6
- Primary Topic
- vaccines and immunoinformatics approaches
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Faculty of Medicine, Chinese University of Hong Kong