Task- and dataset-specific information in protein language models
Not on the map. Why?
Abstract (arXiv)
Protein language models (PLMs) have transferred the latest advances from natural language processing to computational biology. These models, trained on large corpora of protein sequence data, are widely used to translate amino acid sequences into latent-space embeddings, ready for use in diverse downstream tasks (DTs). By consensus, embeddings from the models' last layers are used, while the models' internal behavior remains poorly understood. We analyzed 13 PLMs across 15 DTs and 9 datasets to assess the value of embeddings from intermediate PLM layers. We trained probe models on embeddings from each layer, compared their performance, and showed that the last layers of PLMs rarely produced embeddings that led to the best results on downstream tasks. Furthermore, we identified a connection between how models learn a certain DT and the similarity between that DT and the pre-training objective. For example, for residue-level downstream tasks, we observed a steady increase in performance across almost all PLM layers, which we attributed to their similarity to most PLMs' pre-training objectives. To allow the community to capitalize on our findings, we provide PLMSommelier, a Python package that automatically identifies the best PLM layer for a given DT with ~98% accuracy and creates a truncated model using only the early layers up to the best-performing layer. This will help users save time and memory during inference and yield better predictive performance.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 18 of its 64 references that are in the map. First posted on arXiv 12 Aug 2026.
Builds on
18 of 64 references.
References · 18
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2013Visualizing and Understanding Convolutional Networkscited by 2,290
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2019Designing and Interpreting Probes with Control Taskscited by 640
- 2025Layer by Layer: Uncovering Hidden Representations in Language Modelscited by 311
- 2018Estimating the intrinsic dimension of datasets by a minimal neighborhood informationcited by 250
- 2019Evaluating Protein Transfer Learning with TAPEcited by 231
- 2022ProGen2: Exploring the Boundaries of Protein Language Modelscited by 159
6 more
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2023The geometry of hidden representations of large transformer modelscited by 112
- 2020BERTology Meets Biology: Interpreting Attention in Protein Language Modelscited by 85
- 2020Hierarchical nucleation in deep neural networkscited by 31
- 2025The underlying structures of self-attention: symmetry, directionality, and emergent dynamics in Transformer trainingcited by 9
- 2025Layer Probing Improves Kinase Functional Prediction with Protein Language Modelscited by 1
Built on by
Not cited yet.