Open Sesame: Getting Inside BERT's Linguistic Knowledge
Not on the map. Why?
Abstract (arXiv)
How and to what extent does BERT encode syntactically-sensitive hierarchical information or positionally-sensitive linear information? Recent work has shown that contextual representations like BERT perform well on tasks that require sensitivity to linguistic structure. We present here two studies which aim to provide a better understanding of the nature of BERT's representations. The first of these focuses on the identification of structurally-defined elements using diagnostic classifiers, while the second explores BERT's representation of subject-verb agreement and anaphor-antecedent dependencies through a quantitative assessment of self-attention vectors. In both cases, we find that BERT encodes positional information about word tokens well on its lower layers, but switches to a hierarchically-oriented encoding on higher layers. We conclude then that BERT's representations do indeed model linguistically relevant aspects of hierarchical structure, though they do not appear to show the sharp sensitivity to hierarchical structure that is found in human processing of reflexive anaphora.
Key facts. Cited by 119 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 38; 2022: 28; 2023: 28; 2024: 14; 2025: 8; 2026: 3.
119 papers.
Sort:
By area:
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
- 2021Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Docited by 178
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Superbizarre Is Not Superb: Derivational Morphology Improves BERT's Interpretation of Complex Wordscited by 63
- 2022VL-InterpreT: An Interactive Visualization Tool for Interpreting Vision-Language Transformerscited by 53
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
- 2023AttentionViz: A Global View of Transformer Attentioncited by 50
38 more
- 2023Quantifying Context Mixing in Transformerscited by 43
- 2021TR-BERT: Dynamic Token Reduction for Accelerating BERT Inferencecited by 40
- 2021The World of an Octopus: How Reporting Bias Influences a Language Model's Perception of Colorcited by 32
- 2022Word Order Does Matter (And Shuffled Language Models Know It)cited by 32
- 2021Local Interpretations for Explainable Natural Language Processing: A Surveycited by 31
- 2021The Stem Cell Hypothesis: Dilemma behind Multi-Task Learning with Transformer Encoderscited by 31
- 2021Does Pretraining for Summarization Require Knowledge Transfer?cited by 30
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
- 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29
- 2021Awakening Latent Grounding from Pretrained Language Models for Semantic Parsingcited by 28
- 2022UniTE: Unified Translation Evaluationcited by 28
- 2021Accounting for Agreement Phenomena in Sentence Comprehension with Transformer Language Models: Effects of Similarity-based Interference on Surprisal and Attentioncited by 26
- 2022Visualizing and Understanding Patch Interactions in Vision Transformercited by 26
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformerscited by 24
- 2021The Case for Translation-Invariant Self-Attention in Transformer-Based Language Modelscited by 23
- 2022STNDT: Modeling Neural Population Activity with a Spatiotemporal Transformercited by 23
- 2023The Life Cycle of Knowledge in Big Language Models: A Surveycited by 23
- 2023How poor is the stimulus? Evaluating hierarchical generalization in neural networks trained on child-directed speechcited by 22
- 2024Unveiling Linguistic Regions in Large Language Modelscited by 22
- 2021How much pretraining data do language models need to learn syntax?cited by 21
- 2021Solving Aspect Category Sentiment Analysis as a Text Generation Taskcited by 21
- 2022Downstream Datasets Make Surprisingly Good Pretraining Corporacited by 20
- 2021Transformers Generalize Linearlycited by 19
- 2021Interpreting Deep Learning Models in Natural Language Processing: A Reviewcited by 19
- 2022Acceptability Judgements via Examining the Topology of Attention Mapscited by 19
- 2022Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusioncited by 18
- 2023Retentive or Forgetful? Diving into the Knowledge Memorizing Mechanism of Language Modelscited by 18
- 2023Incorporating Distributions of Discourse Structure for Long Document Abstractive Summarizationcited by 17
- 2021Of Non-Linearity and Commutativity in BERTcited by 16
- 2021The heads hypothesis: A unifying statistical approach towards understanding multi-headed attention in BERTcited by 15
- 2022Visual Comparison of Language Model Adaptationcited by 14
- 2024Tokenization and Morphology in Multilingual Language Models: A Comparative Analysis of mT5 and ByT5cited by 14
- 2021Regulatory Compliance through Doc2Doc Information Retrieval: A case study in EU/UK legislation where text similarity has limitationscited by 13
- 2023Why do universal adversarial attacks work on large language models?: Geometry might be the answercited by 13
- 2023Homophone Disambiguation Reveals Patterns of Context Mixing in Speech Transformerscited by 13
- 2023How Abstract Is Linguistic Generalization in Large Language Models? Experiments with Argument Structurecited by 13
- 2021Enriching Transformers with Structured Tensor-Product Representations for Abstractive Summarizationcited by 11
- 2025Learning Task Representations from In-Context Learningcited by 11
50 most cited of 119 All 119 (JSON)
- 2026Analysis of Quantized and Efficiently Adapted Protein Language Models30 Sep 2026
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2026Where meaning lives: Layer-wise accessibility of psycholinguistic features in encoder and decoder language models7 Jan 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Probing the Embedding Space of Transformers via Minimal Token Perturbations22 Jun 2025
- 2025Are We Paying Attention to Her? Investigating Gender Disambiguation and Attention in Machine Translation13 May 2025
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic review9 Apr 2025
- 2025Construction Identification and Disambiguation Using BERT: A Case Study of NPN24 Mar 2025
- 2025Learning Task Representations from In-Context Learning8 Feb 2025
- 2025FinchGPT: a Transformer based language model for birdsong analysis1 Feb 2025
- 2025Reverse Probing: Evaluating Knowledge Transfer via Finetuned Task Embeddings for Coreference Resolution31 Jan 2025
- 2024Beyond Human-Like Processing: Large Language Models Perform Equivalently on Forward and Backward Scientific Text17 Nov 2024
38 more
- 2024Controlled Evaluation of Syntactic Knowledge in Multilingual Language Models12 Nov 2024
- 2024Tokenization and Morphology in Multilingual Language Models: A Comparative Analysis of mT5 and ByT515 Oct 2024
- 2024Investigating large language models for their competence in extracting grammatically sound sentences from transcribed noisy utterances7 Oct 2024
- 2024Unveiling Language Competence Neurons: A Psycholinguistic Approach to Model Interpretability24 Sep 2024
- 2024Cultural Value Differences of LLMs: Prompt, Language, and Model Size17 Jun 2024
- 2024Concentrate Attention: Towards Domain-Generalizable Prompt Optimization for Language Models15 Jun 2024
- 2024What Should Embeddings Embed? Autoregressive Models Represent Latent Generating Distributions6 Jun 2024
- 2024Learning Syntax Without Planting Trees: Understanding Hierarchical Generalization in Transformers25 Apr 2024
- 2024What do Transformers Know about Government?22 Apr 2024
- 2024Can AI Models Appreciate Document Aesthetics? An Exploration of Legibility and Layout Quality in Relation to Prediction Confidence27 Mar 2024
- 2024What has LeBenchmark Learnt about French Syntax?4 Mar 2024
- 2024Topic Aware Probing: From Sentence Length Prediction to Idiom Identification how reliant are Neural Language Models on Topic?4 Mar 2024
- 2024Unveiling Linguistic Regions in Large Language Models22 Feb 2024
- 2023Towards Probing Contact Center Large Language Models26 Dec 2023
- 2023Deep de Finetti: Recovering Topic Distributions from Large Language Models21 Dec 2023
- 2023Helping Language Models Learn More: Multi-dimensional Task Prompt for Few-shot Tuning13 Dec 2023
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars3 Dec 2023
- 2023How Well Do Text Embedding Models Understand Syntax?14 Nov 2023
- 2023How Abstract Is Linguistic Generalization in Large Language Models? Experiments with Argument Structure8 Nov 2023
- 2023Retrofitting Light-weight Language Models for Emotions using Supervised Contrastive Learning29 Oct 2023
- 2023Understanding the Role of Input Token Characters in Language Models: How Does Information Loss Affect Performance?26 Oct 2023
- 2023Large Language Models are biased to overestimate profoundness22 Oct 2023
- 2023Disentangling the Linguistic Competence of Privacy-Preserving BERT17 Oct 2023
- 2023Homophone Disambiguation Reveals Patterns of Context Mixing in Speech Transformers15 Oct 2023
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?4 Sep 2023
- 2023Explainability for Large Language Models: A Survey2 Sep 2023
- 2023Why do universal adversarial attacks work on large language models?: Geometry might be the answer1 Sep 2023
- 2023Decoding Layer Saliency in Language Transformers9 Aug 2023
- 2023Switch-BERT: Learning to Model Multimodal Interactions by Switching Attention and Input25 Jun 2023
- 2023Incorporating Distributions of Discourse Structure for Long Document Abstractive Summarization26 May 2023
- 2023Retentive or Forgetful? Diving into the Knowledge Memorizing Mechanism of Language Models16 May 2023
- 2023AttentionViz: A Global View of Transformer Attention4 May 2023
- 2023The Life Cycle of Knowledge in Big Language Models: A Survey14 Mar 2023
- 2023Input-length-shortening and text generation via attention values14 Mar 2023
- 2023Spelling convention sensitivity in neural language models6 Mar 2023
- 2023Does Deep Learning Learn to Abstract? A Systematic Probing Framework23 Feb 2023
- 2023False perspectives on human language: why statistics needs linguistics17 Feb 2023
- 2023Quantifying Context Mixing in Transformers30 Jan 2023
50 newest of 119 All 119 (JSON)
- 2023Explainability for Large Language Models: A Surveycited by 331
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
- 2021Large Pre-trained Language Models Contain Human-like Biases of What is Right and Wrong to Docited by 178
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2021Knowledgeable or Educated Guess? Revisiting Language Models as Knowledge Basescited by 107
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2021Superbizarre Is Not Superb: Derivational Morphology Improves BERT's Interpretation of Complex Wordscited by 63
- 2022VL-InterpreT: An Interactive Visualization Tool for Interpreting Vision-Language Transformerscited by 53
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 50
- 2023AttentionViz: A Global View of Transformer Attentioncited by 50
12 most cited of 117 All 117 (JSON)
- 2026Analysis of Quantized and Efficiently Adapted Protein Language Models30 Sep 2026
- 2026The Grammar of Transformers: A Systematic Review of Interpretability Research on Syntactic Knowledge in Language Models9 Jan 2026
- 2026Where meaning lives: Layer-wise accessibility of psycholinguistic features in encoder and decoder language models7 Jan 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Probing the Embedding Space of Transformers via Minimal Token Perturbations22 Jun 2025
- 2025Are We Paying Attention to Her? Investigating Gender Disambiguation and Attention in Machine Translation13 May 2025
- 2025Linguistic Interpretability of Transformer-based Language Models: a systematic review9 Apr 2025
- 2025Construction Identification and Disambiguation Using BERT: A Case Study of NPN24 Mar 2025
- 2025Learning Task Representations from In-Context Learning8 Feb 2025
- 2025FinchGPT: a Transformer based language model for birdsong analysis1 Feb 2025
- 2025Reverse Probing: Evaluating Knowledge Transfer via Finetuned Task Embeddings for Coreference Resolution31 Jan 2025
- 2024Beyond Human-Like Processing: Large Language Models Perform Equivalently on Forward and Backward Scientific Text17 Nov 2024
12 newest of 117 All 117 (JSON)