Attention Lens: A Tool for Mechanistically Interpreting the Attention Head Information Retrieval Mechanism
Not on the map. Why?
Abstract (arXiv)
Transformer-based Large Language Models (LLMs) are the state-of-the-art for natural language tasks. Recent work has attempted to decode, by reverse engineering the role of linear layers, the internal mechanisms by which LLMs arrive at their final predictions for text completion tasks. Yet little is known about the specific role of attention heads in producing the final token prediction. We propose Attention Lens, a tool that enables researchers to translate the outputs of attention heads into vocabulary tokens via learned attention-head-specific transformations called lenses. Preliminary findings from our trained lenses indicate that attention heads play highly specialized roles in language models. The code for Attention Lens is available at github.com/msakarvadia/AttentionLens.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 13 of its 18 references that are in the map. First posted on arXiv 25 Oct 2023.
Builds on
13 of 18 references.
References · 13
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2023Steering Language Models With Activation Engineeringcited by 824
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2023PMET: Precise Model Editing in a Transformercited by 170
- 2023The Hydra Effect: Emergent Self-repair in Language Model Computationscited by 145
- 2022Analyzing Transformers in Embedding Spacecited by 131
- 2023Backdoor Attacks for In-Context Learning with Language Modelscited by 92
Built on by
Citing papers per year: 2024: 9; 2025: 6; 2026: 6.
21 papers.
Sort:
By area:
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Finding Transformer Circuits with Edge Pruningcited by 58
- 2024A Concept-Based Explainability Framework for Large Multimodal Modelscited by 39
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 24
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformerscited by 16
- 2025Analyzing Finetuning Representation Shift for Multimodal LLMs Steeringcited by 15
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformerscited by 6
- 2024Trillion Parameter AI Serving Infrastructure for Scientific Discovery: A Survey and Visioncited by 5
9 more
- 2026Counting Circuits: Mechanistic Interpretability of Visual Reasoning in Large Vision-Language Modelscited by 3
- 2026Legible-by-Construction: Attention and End-to-End Transformerscited by 2
- 2024Universal Response and Emergence of Induction in LLMscited by 1
- 2025Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architecturescited by 1
- 2025InTraVisTo: Inside Transformer Visualisation Toolcited by 0
- 2025Interpret, prune and distill Donut : towards lightweight VLMs for VQA on documentcited by 0
- 2026KA2L: A Knowledge-Aware Active Learning Framework for LLMscited by 0
- 2026Training, Reading, and Editing Legible Transformerscited by 0
- 2026Interpreting Language Model Hidden States at Scalecited by 0
- 2026Interpreting Language Model Hidden States at Scale10 Aug 2026
- 2026Training, Reading, and Editing Legible Transformers9 Jul 2026
- 2026Legible-by-Construction: Attention and End-to-End Transformers5 Jul 2026
- 2026Counting Circuits: Mechanistic Interpretability of Visual Reasoning in Large Vision-Language Models19 Mar 2026
- 2026KA2L: A Knowledge-Aware Active Learning Framework for LLMs18 Mar 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformers24 Oct 2025
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformers3 Oct 2025
- 2025Interpret, prune and distill Donut : towards lightweight VLMs for VQA on document30 Sep 2025
- 2025Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architectures29 Sep 2025
- 2025InTraVisTo: Inside Transformer Visualisation Tool18 Jul 2025
- 2025Analyzing Finetuning Representation Shift for Multimodal LLMs Steering6 Jan 2025
9 more
- 2024Universal Response and Emergence of Induction in LLMs11 Nov 2024
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs27 Jul 2024
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Models2 Jul 2024
- 2024Finding Transformer Circuits with Edge Pruning24 Jun 2024
- 2024A Concept-Based Explainability Framework for Large Multimodal Models12 Jun 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
- 2024Mechanistic Interpretability for AI Safety -- A Review22 Apr 2024
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Models28 Feb 2024
- 2024Trillion Parameter AI Serving Infrastructure for Scientific Discovery: A Survey and Vision5 Feb 2024
- 2024A Concept-Based Explainability Framework for Large Multimodal Modelscited by 39
- 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformerscited by 16
- 2025Analyzing Finetuning Representation Shift for Multimodal LLMs Steeringcited by 15
- 2025Interpret, prune and distill Donut : towards lightweight VLMs for VQA on documentcited by 0
- 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformers24 Oct 2025
- 2025Interpret, prune and distill Donut : towards lightweight VLMs for VQA on document30 Sep 2025
- 2025Analyzing Finetuning Representation Shift for Multimodal LLMs Steering6 Jan 2025
- 2024A Concept-Based Explainability Framework for Large Multimodal Models12 Jun 2024
- 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 415
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 83
- 2024Finding Transformer Circuits with Edge Pruningcited by 58
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 24
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 22
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformerscited by 6
- 2024Trillion Parameter AI Serving Infrastructure for Scientific Discovery: A Survey and Visioncited by 5
- 2026Legible-by-Construction: Attention and End-to-End Transformerscited by 2
- 2024Universal Response and Emergence of Induction in LLMscited by 1
- 2025Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architecturescited by 1
12 most cited of 15 All 15 (JSON)
- 2026Interpreting Language Model Hidden States at Scale10 Aug 2026
- 2026Training, Reading, and Editing Legible Transformers9 Jul 2026
- 2026Legible-by-Construction: Attention and End-to-End Transformers5 Jul 2026
- 2026KA2L: A Knowledge-Aware Active Learning Framework for LLMs18 Mar 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025Decoupling Positional and Symbolic Attention Behavior in Transformers3 Oct 2025
- 2025Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architectures29 Sep 2025
- 2024Universal Response and Emergence of Induction in LLMs11 Nov 2024
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs27 Jul 2024
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Models2 Jul 2024
- 2024Finding Transformer Circuits with Edge Pruning24 Jun 2024
- 2024A Primer on the Inner Workings of Transformer-based Language Models30 Apr 2024
12 newest of 15 All 15 (JSON)