Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars
Not on the map. Why?
Abstract (arXiv)
Interpretability methods aim to understand the algorithm implemented by a trained model (e.g., a Transofmer) by examining various aspects of the model, such as the weight matrices or the attention patterns. In this work, through a combination of theoretical results and carefully controlled experiments on synthetic data, we take a critical view of methods that exclusively focus on individual parts of the model, rather than consider the network as a whole. We consider a simple synthetic setup of learning a (bounded) Dyck language. Theoretically, we show that the set of models that (exactly or approximately) solve this task satisfy a structural characterization derived from ideas in formal languages (the pumping lemma). We use this characterization to show that the set of optima is qualitatively rich; in particular, the attention pattern of a single layer can be ``nearly randomized'', while preserving the functionality of the network. We also show via extensive experiments that these constructions are not merely a theoretical artifact: even after severely constraining the architecture of the model, vastly different solutions can be reached via standard training. Thus, interpretability claims based on inspecting individual heads or weight matrices in the Transformer can be misleading.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 61 of its 82 references that are in the map. First posted on arXiv 3 Dec 2023.
Builds on
61 of 82 references.
References · 61
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2022In-context Learning and Induction Headscited by 930
- 2019Attention is not Explanationcited by 916
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
- 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
38 more
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2016The Mythos of Model Interpretabilitycited by 716
- 2019Attention is not not Explanationcited by 629
- 2019Designing and Interpreting Probes with Control Taskscited by 608
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019Is Attention Interpretable?cited by 387
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2019Revealing the Dark Secrets of BERTcited by 300
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2020Proving the Lottery Ticket Hypothesis: Pruning is All You Needcited by 200
- 2015Visualizing and Understanding Neural Models in NLPcited by 199
- 2021Thinking Like Transformerscited by 182
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
- 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
- 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 119
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2019On Identifiability in Transformerscited by 115
- 2020When BERT Plays the Lottery, All Tickets Are Winningcited by 114
- 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 101
- 2021An Interpretability Illusion for BERTcited by 94
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
- 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2020Optimal Lottery Tickets via SubsetSum: Logarithmic Over-Parameterization is Sufficientcited by 81
- 2022Impossibility Theorems for Feature Attributioncited by 78
- 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
- 2019Sequential Neural Networks as Automatacited by 54
- 2020How Can Self-Attention Networks Recognize Dyck-n Languages?cited by 51
50 most cited of 61 All 61 (JSON)
Built on by
Citing papers per year: 2023: 2; 2024: 18; 2025: 5; 2026: 5.
30 papers.
Sort:
By area:
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024ICLR: In-Context Learning of Representationscited by 49
- 2024Theoretical limitations of multi-layer Transformercited by 43
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 39
- 2024Transformers Can Represent n-gram Language Modelscited by 31
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 24
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 23
- 2023Grokking Group Multiplication with Cosetscited by 22
- 2024Decomposing and Editing Predictions by Modeling Model Computationcited by 19
18 more
- 2024Algorithmic Capabilities of Random Transformerscited by 17
- 2024Analyzing (In)Abilities of SAEs via Formal Languagescited by 16
- 2024Towards a theory of model distillationcited by 14
- 2024Attention Meets Post-hoc Interpretability: A Mathematical Perspectivecited by 11
- 2025On the Query Complexity of Verifier-Assisted Language Generationcited by 10
- 2024The Heuristic Core: Understanding Subnetwork Generalization in Pretrained Language Modelscited by 9
- 2025Can Interpretation Predict Behavior on Unseen Data?cited by 8
- 2024Promises and Pitfalls of Generative Masked Language Modeling: Theoretical Framework and Practical Guidelinescited by 6
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theorycited by 4
- 2024Interpretation of Intracardiac Electrograms Through Textual Representationscited by 2
- 2026Dissociating Decodability and Causal Use in Bracket-Sequence Transformerscited by 2
- 2025Small but Mighty: Enhancing Time Series Forecasting with Lightweight LLMscited by 1
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attentioncited by 1
- 2026Discovering a Zeta Map Algorithm on Dyck Paths via Mechanistic Interpretabilitycited by 1
- 2024The Mysterious Case of Neuron 1512: Injectable Realignment Architectures Reveal Internal Characteristics of Meta's Llama 2 Modelcited by 0
- 2025An Efficient Private GPT Never Autoregressively Decodescited by 0
- 2026SMolLM: Small Language Models Learn Small Molecular Grammarcited by 0
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Testcited by 0
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Test30 May 2026
- 2026Discovering a Zeta Map Algorithm on Dyck Paths via Mechanistic Interpretability28 May 2026
- 2026SMolLM: Small Language Models Learn Small Molecular Grammar7 May 2026
- 2026Dissociating Decodability and Causal Use in Bracket-Sequence Transformers24 Apr 2026
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention2 Feb 2026
- 2025Can Interpretation Predict Behavior on Unseen Data?8 Jul 2025
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theory5 Jun 2025
- 2025An Efficient Private GPT Never Autoregressively Decodes21 May 2025
- 2025Small but Mighty: Enhancing Time Series Forecasting with Lightweight LLMs5 Mar 2025
- 2025On the Query Complexity of Verifier-Assisted Language Generation17 Feb 2025
- 2024ICLR: In-Context Learning of Representations29 Dec 2024
- 2024Theoretical limitations of multi-layer Transformer4 Dec 2024
18 more
- 2024Training Neural Networks as Recognizers of Formal Languages11 Nov 2024
- 2024Analyzing (In)Abilities of SAEs via Formal Languages15 Oct 2024
- 2024Algorithmic Capabilities of Random Transformers6 Oct 2024
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficient3 Oct 2024
- 2024Promises and Pitfalls of Generative Masked Language Modeling: Theoretical Framework and Practical Guidelines22 Jul 2024
- 2024The Mysterious Case of Neuron 1512: Injectable Realignment Architectures Reveal Internal Characteristics of Meta's Llama 2 Model4 Jul 2024
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architectures13 Jun 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2024Transformers Can Represent n-gram Language Models23 Apr 2024
- 2024Decomposing and Editing Predictions by Modeling Model Computation17 Apr 2024
- 2024Towards a theory of model distillation14 Mar 2024
- 2024The Heuristic Core: Understanding Subnetwork Generalization in Pretrained Language Models6 Mar 2024
- 2024Linear Transformers are Versatile In-Context Learners21 Feb 2024
- 2024Attention Meets Post-hoc Interpretability: A Mathematical Perspective5 Feb 2024
- 2024Interpretation of Intracardiac Electrograms Through Textual Representations2 Feb 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023Grokking Group Multiplication with Cosets11 Dec 2023
- 2023Interpretability Illusions in the Generalization of Simplified Models6 Dec 2023
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024ICLR: In-Context Learning of Representationscited by 49
- 2024Theoretical limitations of multi-layer Transformercited by 43
- 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 39
- 2024Transformers Can Represent n-gram Language Modelscited by 31
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 24
- 2023Grokking Group Multiplication with Cosetscited by 22
- 2024Decomposing and Editing Predictions by Modeling Model Computationcited by 19
- 2024Algorithmic Capabilities of Random Transformerscited by 17
12 most cited of 28 All 28 (JSON)
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Test30 May 2026
- 2026Discovering a Zeta Map Algorithm on Dyck Paths via Mechanistic Interpretability28 May 2026
- 2026SMolLM: Small Language Models Learn Small Molecular Grammar7 May 2026
- 2026Dissociating Decodability and Causal Use in Bracket-Sequence Transformers24 Apr 2026
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention2 Feb 2026
- 2025Can Interpretation Predict Behavior on Unseen Data?8 Jul 2025
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theory5 Jun 2025
- 2025An Efficient Private GPT Never Autoregressively Decodes21 May 2025
- 2025Small but Mighty: Enhancing Time Series Forecasting with Lightweight LLMs5 Mar 2025
- 2024ICLR: In-Context Learning of Representations29 Dec 2024
- 2024Theoretical limitations of multi-layer Transformer4 Dec 2024
- 2024Analyzing (In)Abilities of SAEs via Formal Languages15 Oct 2024
12 newest of 28 All 28 (JSON)