Fine-tuning adapts a machine learning model pre-trained on a large corpus to a narrower context. In biological sequence modeling, fine-tuning has been applied to specialize general protein language models to the antibody domain, and further to paired-chain antibodies, for which little data is available. While fine-tuning improves masked language modeling performance on antibody sequences, it is unclear what antibody-specific features are learned during fine-tuning and which protein features may be lost. Better understanding this process would help us develop fine-tuning techniques to learn more relevant antibody features on smaller datasets. Here, we apply sparse crosscoders, a model diffing technique from mechanistic interpretability, to the protein language model ProtBert and its antibody fine-tuned variants IgBert-unpaired and IgBert. We find that most crosscoder latents are shared across all three models and latents that are specific to the fine-tuned models fire predominantly on antibody sequences. These include detectors of antibody regions and V genes. In contrast, we find no latents that distinguish IgBert from IgBert-unpaired. This could mean that fine-tuning on paired antibody sequences alters the model’s representations less than expected, or that more sensitive interpretability techniques are needed to detect the difference.
@inproceedings{glaenzer2026crosscoders,title={Sparse crosscoders identify antibody features learned during fine-tuning of protein language models},author={Glänzer, Wiona Sophie and Reddy, Sai T. and Yermanos, Alexander},booktitle={I Can't Believe It's Not Better (ICBINB): Failure Modes of AI in Biology, Workshop at NeurIPS 2026},year={2026},note={Spotlight},url={https://openreview.net/pdf?id=BwUX3MoiAg},}
Antibody language models (LMs) trained on immune receptor sequences have been applied to diverse immunological tasks such as humanization and prediction of antigen specificity. While promising, these models are often trained on datasets with limited donor diversity, raising concerns that biases in the training data may hinder their generalizability. To quantify the impact of biased training data, we introduce an open-source processing pipeline for the 2.4 billion unpaired antibody sequences in the Observed Antibody Space (OAS) database, enabling customizable filtering and balanced sampling by donor, species, chain type and other metadata. Analysis of OAS revealed that 13 individuals contribute over 70% of human antibody sequences. Using our pipeline, we trained 17 RoBERTa antibody LMs on datasets of different compositions. Models failed to generalize across chain types and showed limited transfer between human and mouse repertoires. Both individual- and batch-specific effects influenced model performance, and expanding donor diversity did not improve generalization to unseen individuals from unseen publications.
@inproceedings{glaenzer2025oasexplore,title={Revealing bias in antibody language models through systematic training data processing with OAS-explore},author={Glänzer, Wiona Sophie and Reddy, Sai T. and Yermanos, Alexander},booktitle={2nd Workshop on Multi-modal Foundation Models and Large Language Models for Life Sciences at NeurIPS 2025},year={2025},url={https://openreview.net/pdf?id=JkKS5vvWLd},}