Sparse crosscoders identify antibody features learned during fine-tuning of protein language models

Wiona Sophie Glänzer, Sai T. Reddy, Alexander Yermanos

I Can't Believe It's Not Better (ICBINB): Failure Modes of AI in Biology
NeurIPS 2026 Workshop (Spotlight)

Two-stage fine-tuning from ProtBert to IgBert-unpaired to IgBert, and the crosscoder architecture with one shared encoder and three model-specific decoders
A sparse crosscoder learns one shared dictionary of latents for ProtBert, IgBert-unpaired and IgBert. Comparing the model-specific decoder norms of each latent shows which features are shared and which are gained or lost during antibody fine-tuning.

Abstract

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.

Results

Relative decoder norms of crosscoder latents across the three models, domain specificity of latent categories, and comparison of crosscoder variants
Crosscoders detect gained latents during antibody fine-tuning. a. Relative decoder norms comparing latent activations in the three model-specific decoders for crosscoders trained on layer 20 activations of unpaired antibody sequences (left), paired antibody sequences (center) and a 50:50 mix of antibodies and other proteins (right). Each dot represents one latent. b. Domain specificity of latents, shown as the log-ratio of latent firing on antibodies vs. proteins from other families and colored by latent category. c. Percentage of latents per category that are antibody-specific or specific for other proteins. d. Relative IgBert decoder norm for the 3-model crosscoder, the 2-model crosscoder and the Delta-crosscoder. None of the variants surface latents gained during fine-tuning on paired antibody sequences.
Antibody region detector latents, their activation along an example heavy chain, and UMAP projections of the latent space
Crosscoder latents map to antibody and other protein features. a. Number of latents detecting each antibody region, split into latents shared by all models and latents gained during fine-tuning on unpaired antibodies. b. F1 scores of the top 100 latents for each antibody region; lines show the threshold to count as a detector. c. Relative firing frequency of region detector latents on antibodies and other proteins. d. Activation of region detectors along an example heavy chain sequence. e. UMAP of active latent vectors colored by latent category. f. Latents colored by log relative firing frequency on antibodies. g. Latents that detect a Swiss-Prot concept.

BibTeX

@inproceedings{antibody-crosscoders,
  title={Sparse crosscoders identify antibody features learned during fine-tuning of protein language models},
  author={Wiona Sophie Glänzer and Sai T. Reddy and Alexander Yermanos},
  booktitle={I Can't Believe It's Not Better (ICBINB): Failure Modes of AI in Biology, Workshop at NeurIPS 2026},
  year={2026},
  url={https://openreview.net/pdf?id=BwUX3MoiAg}
}

Wiona Sophie Glänzer1, Sai T. Reddy1,3, Alexander Yermanos2,3
1Dep. of Biosystems Science and Engineering, ETH Zürich
2Center for Translational Immunology, University Medical Center Utrecht
3Botnar Institute of Immune Engineering, Basel