BERTology Meets Biology: Interpreting Attention in Protein Language Models
Not on the map. Why?
Abstract (arXiv)
Transformer architectures have proven to learn useful representations for protein classification and generation tasks. However, these representations present challenges in interpretability. In this work, we demonstrate a set of methods for analyzing protein Transformer models through the lens of attention. We show that attention: (1) captures the folding structure of proteins, connecting amino acids that are far apart in the underlying sequence, but spatially close in the three-dimensional structure, (2) targets binding sites, a key functional component of proteins, and (3) focuses on progressively more complex biophysical properties with increasing layer depth. We find this behavior to be consistent across three Transformer architectures (BERT, ALBERT, XLNet) and two distinct protein datasets. We also present a three-dimensional visualization of the interaction between attention and protein structure. Code for visualization and analysis is available at https://github.com/salesforce/provis.
Key facts. Cited by 85 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 18; 2023: 17; 2024: 9; 2025: 15; 2026: 17.
85 papers.
Sort:
By area:
- 2021Large-Scale Chemical Language Representations Capture Molecular Structure and Propertiescited by 203
- 2021Pre-trained Language Models in Biomedical Domain: A Systematic Surveycited by 87
- 2021Graph Representation Learning in Biomedicinecited by 79
- 2022OntoProtein: Protein Pretraining With Gene Ontology Embeddingcited by 70
- 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Taskscited by 70
- 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
- 2022Regression Transformer: Concurrent sequence regression and generation for molecular language modelingcited by 49
- 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?cited by 46
- 2022Learning to Estimate Shapley Values with Vision Transformerscited by 44
- 2023Ankh: Optimized Protein Language Model Unlocks General-Purpose Modellingcited by 44
- 2023Graph Denoising Diffusion for Inverse Protein Foldingcited by 44
- 2022Structure-aware Protein Self-supervised Learningcited by 33
38 more
- 2023BEND: Benchmarking DNA Language Models on biologically meaningful taskscited by 27
- 2025Sparse Autoencoders for Hypothesis Generationcited by 24
- 2024ProteinGPT: Multimodal LLM for Protein Property Prediction and Structure Understandingcited by 23
- 2021Pre-training Co-evolutionary Protein Representation via A Pairwise Masked Language Modelcited by 20
- 2022Exploring evolution-aware & -free protein language models as protein function predictorscited by 20
- 2021Transformers with Competitive Ensembles of Independent Mechanismscited by 19
- 2024ProtChatGPT: Towards Understanding Proteins with Large Language Modelscited by 18
- 2025Protein Large Language Models: A Comprehensive Surveycited by 18
- 2021Cross-lingual Transfer of Monolingual Modelscited by 14
- 2023A Hierarchical Training Paradigm for Antibody Structure-sequence Co-designcited by 13
- 2025Towards Interpretable Protein Structure Prediction with Sparse Autoencoderscited by 12
- 2024Less can be more for predicting properties with large language modelscited by 10
- 2022Generative power of a protein language model trained on multiple sequence alignmentscited by 9
- 2022Influence Functions for Sequence Tagging Modelscited by 9
- 2022Protein language models trained on multiple sequence alignments learn phylogenetic relationshipscited by 7
- 2022Linguistically inspired roadmap for building biologically reliable protein language modelscited by 7
- 2024Linguistic Laws Meet Protein Sequences: A Comparative Analysis of Subword Tokenization Methodscited by 6
- 2022Transformers and the representation of biomedical background knowledgecited by 5
- 2023Enhancing the Protein Tertiary Structure Prediction by Multiple Sequence Alignment Generationcited by 5
- 2023Comparative Performance Evaluation of Large Language Models for Extracting Molecular Interactions and Pathway Knowledgecited by 5
- 2023A Meta-Learning Perspective on Transformers for Causal Language Modelingcited by 5
- 2022ReLSO: A Transformer-based Model for Latent Space Optimization and Generation of Proteinscited by 4
- 2022Visualizing and Explaining Language Modelscited by 4
- 2023Do Language Models Learn Semantics of Code? A Case Study in Vulnerability Detectioncited by 4
- 2024A Critical Study of What Code-LLMs (Do Not) Learncited by 4
- 2021Automated and Explainable Ontology Extension Based on Deep Learning: A Case Study in the Chemical Domaincited by 3
- 2023Protein Representation Learning via Knowledge Enhanced Primary Structure Modelingcited by 3
- 2024Extracting Protein-Protein Interactions (PPIs) from Biomedical Literature using Attention-based Relational Context Informationcited by 3
- 2025The geometry of BERTcited by 3
- 2025ProtSAE: Disentangling and Interpreting Protein Language Models via Semantically-Guided Sparse Autoencoderscited by 3
- 2026Protein Counterfactuals via Diffusion-Guided Latent Optimizationcited by 3
- 2022ImmunoLingo: Linguistics-based formalization of the antibody languagecited by 2
- 2023Ontology Pre-training for Poison Predictioncited by 2
- 2023Insights Into the Inner Workings of Transformer Models for Protein Function Predictioncited by 2
- 2023GPCR-BERT: Interpreting Sequential Design of G Protein Coupled Receptors Using Protein Language Modelscited by 2
- 2023Identification of Knowledge Neurons in Protein Language Modelscited by 2
- 2026Protein Language Models Diverge from Natural Language: Comparative Analysis and Improved Inferencecited by 2
- 2022Prompt-Guided Injection of Conformation to Pre-trained Protein Modelcited by 1
50 most cited of 85 All 85 (JSON)
- 2026Interpreting Latent Protein Language Model Features with Geometric Annotations26 Aug 2026
- 2026Interpreting Protein Language Model Embeddings via Orthogonal Projection for Protein Fitness Prediction26 Aug 2026
- 2026Protein Structure Prediction: From Evolutionary Constraints to Generative Modeling17 Aug 2026
- 2026Task- and dataset-specific information in protein language models12 Aug 2026
- 2026Evolution-Aware MSA Reasoning for Subsampling via Factor Graphs24 Jul 2026
- 2026Protein contacts are already in the attention: a single-forward-pass alternative to the Categorical Jacobian20 Jun 2026
- 2026Position: Genomic Model Research Must Move Beyond Anecdotal Evaluation of Interpretability Methods29 May 2026
- 2026Protein Thoughts: Interpretable Reasoning with Tree of Thoughts and Embedding-Space Flow Matching for Protein-Protein Interaction Discovery19 May 2026
- 2026ProteinJEPA: Latent prediction improves protein language model pretraining8 May 2026
- 2026Retrieval and competition: how a protein foundation model starts a protein5 May 2026
- 2026Sampling at intermediate temperatures is optimal for training large language models in protein structure prediction31 Mar 2026
- 2026Protein Counterfactuals via Diffusion-Guided Latent Optimization11 Mar 2026
38 more
- 2026Discovery of a Hematopoietic Manifold in scGPT Yields a Method for Extracting Performant Algorithms from Biological Foundation Model Internals10 Mar 2026
- 2026Reverse Distillation: Consistently Scaling Protein Language Model Representations8 Mar 2026
- 2026Induction Meets Biology: Mechanisms of Repeat Detection in Protein Language Models26 Feb 2026
- 2026Protein Language Models Diverge from Natural Language: Comparative Analysis and Improved Inference24 Feb 2026
- 2026Exploring the limits of pre-trained embeddings in machine-guided protein design: a case study on predicting AAV vector viability16 Feb 2026
- 2025Quantifying the Role of OpenFold Components in Protein Structure Prediction6 Nov 2025
- 2025Machine learning approaches for interpretable antibody property prediction using structural data28 Oct 2025
- 2025Directed Evolution of Proteins via Bayesian Optimization in Embedding Space5 Sep 2025
- 2025ProtSAE: Disentangling and Interpreting Protein Language Models via Semantically-Guided Sparse Autoencoders26 Aug 2025
- 2025A Comprehensive Review of Transformer-based language models for Protein Sequence Analysis and Design18 Jul 2025
- 2025Enhancing Safe and Controllable Protein Generation via Knowledge Preference Optimization15 Jul 2025
- 2025Automated Neuron Labelling Enables Generative Steering and Interpretability in Protein Language Models8 Jul 2025
- 2025Leveraging Natural Language Processing to Unravel the Mystery of Life: A Review of NLP Approaches in Genomics, Transcriptomics, and Proteomics2 Jun 2025
- 2025PLM-eXplain: Divide and Conquer the Protein Embedding Space9 Apr 2025
- 2025Interpretable Multimodal Learning for Tumor Protein-Metal Binding: Progress, Challenges, and Perspectives4 Apr 2025
- 2025Towards Interpretable Protein Structure Prediction with Sparse Autoencoders11 Mar 2025
- 2025Protein Large Language Models: A Comprehensive Survey21 Feb 2025
- 2025The geometry of BERT17 Feb 2025
- 2025Sparse Autoencoders for Hypothesis Generation5 Feb 2025
- 2025Transformers trained on proteins can learn to attend to Euclidean distance3 Feb 2025
- 2024Linguistic Laws Meet Protein Sequences: A Comparative Analysis of Subword Tokenization Methods26 Nov 2024
- 2024Computational design of target-specific linear peptide binders with TransformerBeta7 Oct 2024
- 2024ProteinGPT: Multimodal LLM for Protein Property Prediction and Structure Understanding21 Aug 2024
- 2024Towards Interpretable Visuo-Tactile Predictive Models for Soft Robot Interactions16 Jul 2024
- 2024Less can be more for predicting properties with large language models25 Jun 2024
- 2024A Critical Study of What Code-LLMs (Do Not) Learn17 Jun 2024
- 2024Extracting Protein-Protein Interactions (PPIs) from Biomedical Literature using Attention-based Relational Context Information8 Mar 2024
- 2024ProtChatGPT: Towards Understanding Proteins with Large Language Models15 Feb 2024
- 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?7 Feb 2024
- 2023Identification of Knowledge Neurons in Protein Language Models17 Dec 2023
- 2023BEND: Benchmarking DNA Language Models on biologically meaningful tasks21 Nov 2023
- 2023Do Language Models Learn Semantics of Code? A Case Study in Vulnerability Detection7 Nov 2023
- 2023Understanding the Natural Language of DNA using Encoder-Decoder Foundation Models with Byte-level Precision4 Nov 2023
- 2023A Hierarchical Training Paradigm for Antibody Structure-sequence Co-design30 Oct 2023
- 2023GPCR-BERT: Interpreting Sequential Design of G Protein Coupled Receptors Using Protein Language Models30 Oct 2023
- 2023A Meta-Learning Perspective on Transformers for Causal Language Modeling9 Oct 2023
- 2023AntiBARTy Diffusion for Property Guided Antibody Design22 Sep 2023
- 2023Insights Into the Inner Workings of Transformer Models for Protein Function Prediction7 Sep 2023
50 newest of 85 All 85 (JSON)
- 2023Graph Denoising Diffusion for Inverse Protein Foldingcited by 44
- 2023Graph Denoising Diffusion for Inverse Protein Folding29 Jun 2023
- 2021Large-Scale Chemical Language Representations Capture Molecular Structure and Propertiescited by 203
- 2021Pre-trained Language Models in Biomedical Domain: A Systematic Surveycited by 87
- 2021Graph Representation Learning in Biomedicinecited by 79
- 2022OntoProtein: Protein Pretraining With Gene Ontology Embeddingcited by 70
- 2023A Comprehensive Survey on Applications of Transformers for Deep Learning Taskscited by 70
- 2022What Do They Capture? -- A Structural Analysis of Pre-Trained Language Models for Source Codecited by 50
- 2022Regression Transformer: Concurrent sequence regression and generation for molecular language modelingcited by 49
- 2024A Sober Look at LLMs for Material Discovery: Are They Actually Good for Bayesian Optimization Over Molecules?cited by 46
- 2022Learning to Estimate Shapley Values with Vision Transformerscited by 44
- 2023Ankh: Optimized Protein Language Model Unlocks General-Purpose Modellingcited by 44
- 2022Structure-aware Protein Self-supervised Learningcited by 33
- 2023BEND: Benchmarking DNA Language Models on biologically meaningful taskscited by 27
12 most cited of 81 All 81 (JSON)
- 2026Interpreting Latent Protein Language Model Features with Geometric Annotations26 Aug 2026
- 2026Interpreting Protein Language Model Embeddings via Orthogonal Projection for Protein Fitness Prediction26 Aug 2026
- 2026Protein Structure Prediction: From Evolutionary Constraints to Generative Modeling17 Aug 2026
- 2026Task- and dataset-specific information in protein language models12 Aug 2026
- 2026Protein contacts are already in the attention: a single-forward-pass alternative to the Categorical Jacobian20 Jun 2026
- 2026Position: Genomic Model Research Must Move Beyond Anecdotal Evaluation of Interpretability Methods29 May 2026
- 2026ProteinJEPA: Latent prediction improves protein language model pretraining8 May 2026
- 2026Retrieval and competition: how a protein foundation model starts a protein5 May 2026
- 2026Sampling at intermediate temperatures is optimal for training large language models in protein structure prediction31 Mar 2026
- 2026Protein Counterfactuals via Diffusion-Guided Latent Optimization11 Mar 2026
- 2026Discovery of a Hematopoietic Manifold in scGPT Yields a Method for Extracting Performant Algorithms from Biological Foundation Model Internals10 Mar 2026
- 2026Reverse Distillation: Consistently Scaling Protein Language Model Representations8 Mar 2026
12 newest of 81 All 81 (JSON)