mlsanityData to 7 Oct 2026

Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammars

arXiv 2312.01429 ↗First posted 3 Dec 2023cs.LG cs.CL stat.MLcited by 30

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

  1. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  2. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,404
  3. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  4. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  5. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  6. 2022In-context Learning and Induction Headscited by 930
  7. 2019Attention is not Explanationcited by 916
  8. 2020On Layer Normalization in the Transformer Architecturecited by 906
  9. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  10. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  11. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  12. 2020A Primer in BERTology: What we know about how BERT workscited by 807
38 more
  1. 2019Are Sixteen Heads Really Better than One?cited by 803
  2. 2016The Mythos of Model Interpretabilitycited by 716
  3. 2019Attention is not not Explanationcited by 629
  4. 2019Designing and Interpreting Probes with Control Taskscited by 608
  5. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  6. 2019Is Attention Interpretable?cited by 387
  7. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
  8. 2019Revealing the Dark Secrets of BERTcited by 300
  9. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
  10. 2022Transformers Learn Shortcuts to Automatacited by 260
  11. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
  12. 2020Understanding the Difficulty of Training Transformerscited by 210
  13. 2020Proving the Lottery Ticket Hypothesis: Pruning is All You Needcited by 200
  14. 2015Visualizing and Understanding Neural Models in NLPcited by 199
  15. 2021Thinking Like Transformerscited by 182
  16. 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 153
  17. 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
  18. 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
  19. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
  20. 2019Open Sesame: Getting Inside BERT's Linguistic Knowledgecited by 119
  21. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  22. 2019On Identifiability in Transformerscited by 115
  23. 2020When BERT Plays the Lottery, All Tickets Are Winningcited by 114
  24. 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
  25. 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
  26. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  27. 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 101
  28. 2021An Interpretability Illusion for BERTcited by 94
  29. 2022Vision Transformers provably learn spatial structurecited by 92
  30. 2019Do Attention Heads in BERT Track Syntactic Dependencies?cited by 87
  31. 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
  32. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  33. 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
  34. 2020Optimal Lottery Tickets via SubsetSum: Logarithmic Over-Parameterization is Sufficientcited by 81
  35. 2022Impossibility Theorems for Feature Attributioncited by 78
  36. 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
  37. 2019Sequential Neural Networks as Automatacited by 54
  38. 2020How Can Self-Attention Networks Recognize Dyck-n Languages?cited by 51

50 most cited of 61 All 61 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 18; 2025: 5; 2026: 5.

30 papers.

Sort:

By area:

  1. 2024In-Context Language Learning: Architectures and Algorithmscited by 86
  2. 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
  3. 2024ICLR: In-Context Learning of Representationscited by 49
  4. 2024Theoretical limitations of multi-layer Transformercited by 43
  5. 2024Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficientcited by 39
  6. 2024Transformers Can Represent n-gram Language Modelscited by 31
  7. 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
  8. 2024Linear Transformers are Versatile In-Context Learnerscited by 28
  9. 2023Interpretability Illusions in the Generalization of Simplified Modelscited by 24
  10. 2024Training Neural Networks as Recognizers of Formal Languagescited by 23
  11. 2023Grokking Group Multiplication with Cosetscited by 22
  12. 2024Decomposing and Editing Predictions by Modeling Model Computationcited by 19
18 more
  1. 2024Algorithmic Capabilities of Random Transformerscited by 17
  2. 2024Analyzing (In)Abilities of SAEs via Formal Languagescited by 16
  3. 2024Towards a theory of model distillationcited by 14
  4. 2024Attention Meets Post-hoc Interpretability: A Mathematical Perspectivecited by 11
  5. 2025On the Query Complexity of Verifier-Assisted Language Generationcited by 10
  6. 2024The Heuristic Core: Understanding Subnetwork Generalization in Pretrained Language Modelscited by 9
  7. 2025Can Interpretation Predict Behavior on Unseen Data?cited by 8
  8. 2024Promises and Pitfalls of Generative Masked Language Modeling: Theoretical Framework and Practical Guidelinescited by 6
  9. 2025Transformers Meet In-Context Learning: A Universal Approximation Theorycited by 4
  10. 2024Interpretation of Intracardiac Electrograms Through Textual Representationscited by 2
  11. 2026Dissociating Decodability and Causal Use in Bracket-Sequence Transformerscited by 2
  12. 2025Small but Mighty: Enhancing Time Series Forecasting with Lightweight LLMscited by 1
  13. 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attentioncited by 1
  14. 2026Discovering a Zeta Map Algorithm on Dyck Paths via Mechanistic Interpretabilitycited by 1
  15. 2024The Mysterious Case of Neuron 1512: Injectable Realignment Architectures Reveal Internal Characteristics of Meta's Llama 2 Modelcited by 0
  16. 2025An Efficient Private GPT Never Autoregressively Decodescited by 0
  17. 2026SMolLM: Small Language Models Learn Small Molecular Grammarcited by 0
  18. 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Testcited by 0