Talking Heads: Understanding Inter-layer Communication in Transformer Language Models
Not on the map. Why?
Abstract (arXiv)
Although it is known that transformer language models (LMs) pass features from early layers to later layers, it is not well understood how this information is represented and routed by the model. We analyze a mechanism used in two LMs to selectively inhibit items in a context in one task, and find that it underlies a commonly used abstraction across many context-retrieval behaviors. Specifically, we find that models write into low-rank subspaces of the residual stream to represent features which are then read out by later layers, forming low-rank communication channels (Elhage et al., 2021) between layers. A particular 3D subspace in model activations in GPT-2 can be traversed to positionally index items in lists, and we show that this mechanism can explain an otherwise arbitrary-seeming sensitivity of the model to the order of items in the prompt. That is, the model has trouble copying the correct information from context when many items ``crowd" this limited space. By decomposing attention heads with the Singular Value Decomposition (SVD), we find that previously described interactions between heads separated by one or more layers can be predicted via analysis of their weight matrices alone. We show that it is possible to manipulate the internal model representations as well as edit model weights based on the mechanism we discover in order to significantly improve performance on our synthetic Laundry List task, which requires recall from a list, often improving task accuracy by over 20%. Our analysis reveals a surprisingly intricate interpretable structure learned from language model pretraining, and helps us understand why sophisticated LMs sometimes fail in simple domains, facilitating future analysis of more complex behaviors.
Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Builds on 44 of its 58 references that are in the map. First posted on arXiv 13 Jun 2024.
Builds on
44 of 58 references.
References · 44
- 2017Attention Is All You Needcited by 59,932
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Toy Models of Superpositioncited by 928
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
32 more
- 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 658
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2021Compacter: Efficient Low-Rank Hypercomplex Adapter Layerscited by 458
- 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 454
- 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 412
- 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2023Low-Resource Languages Jailbreak GPT-4cited by 290
- 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 249
- 2024SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compressioncited by 231
- 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2023Localizing Model Behavior with Path Patchingcited by 182
- 2020Compositional Explanations of Neuronscited by 172
- 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 171
- 2024Language-Specific Neurons: The Key to Multilingual Capabilities in Large Language Modelscited by 124
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
- 2020Predicting trends in the quality of state-of-the-art neural networks without access to training or testing datacited by 113
- 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
- 2023How do Language Models Bind Entities in Context?cited by 102
- 2023LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuningcited by 92
- 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 86
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
- 2023Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation Patchingcited by 75
- 2024LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameterscited by 73
- 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
- 2023Understanding Addition in Transformerscited by 34
- 2024Anchored Answers: Unravelling Positional Bias in GPT-2's Multiple-Choice Questionscited by 15
- 2022The SVD of Convolutional Weights: A CNN Interpretability Frameworkcited by 7
- 2023Instilling Inductive Biases with Subnetworkscited by 6
- 2024TriLoRA: Integrating SVD for Advanced Style Personalization in Text-to-Image Generationcited by 5
Built on by
Citing papers per year: 2024: 6; 2025: 19; 2026: 14.
39 papers.
Sort:
By area:
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
- 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connectionscited by 27
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Relational Composition in Neural Networks: A Survey and Call to Actioncited by 23
- 2025Beyond Prompt Engineering: Robust Behavior Control in LLMs via Steering Target Atomscited by 23
- 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformerscited by 16
- 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformerscited by 16
- 2024A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoningcited by 15
- 2025The Geometry of Self-Verification in a Task-Specific Reasoning Modelcited by 12
- 2025HiProbe-VAD: Video Anomaly Detection via Hidden States Probing in Tuning-Free Multimodal LLMscited by 8
- 2025LLMs Process Lists With General Filter Headscited by 7
27 more
- 2024When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Modelscited by 6
- 2025Mechanistic Interpretability Needs Philosophycited by 6
- 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuitscited by 6
- 2025Identifying Sparsely Active Circuits Through Local Loss Landscape Decompositioncited by 5
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Modelscited by 5
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernelcited by 5
- 2026Do Language Models Track Entities Across State Changes?cited by 5
- 2025HARP: Hallucination Detection via Reasoning Subspace Projectioncited by 4
- 2025Toward a Theory of Generalizability in LLM Mechanistic Interpretability Researchcited by 4
- 2025In-Context Algebracited by 4
- 2026Bi-Orthogonal Factor Decomposition for Vision Transformerscited by 4
- 2025Capturing AI's Attention: Physics of Repetition, Hallucination, Bias and Beyondcited by 3
- 2025Start Making Sense(s): A Developmental Probe of Attention Specialization Using Lexical Ambiguitycited by 3
- 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariancescited by 3
- 2026A Few Bad Neurons: Isolating and Surgically Correcting Sycophancycited by 2
- 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformerscited by 2
- 2025Promote, Suppress, Iterate: How Language Models Answer One-to-Many Factual Queriescited by 1
- 2025I Have No Mouth, and I Must Rhyme: Uncovering Internal Phonetic Representations in LLaMA 3.2cited by 1
- 2026Singular Vectors of Attention Heads Align with Featurescited by 1
- 2026The Communication Map of a Transformercited by 1
- 2025Direct Multi-Token Decodingcited by 0
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarizationcited by 0
- 2026Query Lens: Interpreting Sparse Key-Value Features with Indirect Effectscited by 0
- 2026Relation Geometry in Semantic Space of Language Modelscited by 0
- 2026Can Graph Learning Learn Circuits?cited by 0
- 2026Logical subspace in LLMscited by 0
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMscited by 0
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMs28 Sep 2026
- 2026Logical subspace in LLMs26 Sep 2026
- 2026The Communication Map of a Transformer22 Aug 2026
- 2026Can Graph Learning Learn Circuits?9 Aug 2026
- 2026Relation Geometry in Semantic Space of Language Models29 Jul 2026
- 2026Query Lens: Interpreting Sparse Key-Value Features with Indirect Effects30 May 2026
- 2026Do Language Models Track Entities Across State Changes?28 May 2026
- 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformers2 Apr 2026
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarization25 Feb 2026
- 2026Singular Vectors of Attention Heads Align with Features13 Feb 2026
- 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariances4 Feb 2026
- 2026A Few Bad Neurons: Isolating and Surgically Correcting Sycophancy26 Jan 2026
27 more
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernel15 Jan 2026
- 2026Bi-Orthogonal Factor Decomposition for Vision Transformers8 Jan 2026
- 2025In-Context Algebra18 Dec 2025
- 2025Start Making Sense(s): A Developmental Probe of Attention Specialization Using Lexical Ambiguity26 Nov 2025
- 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuits25 Nov 2025
- 2025LLMs Process Lists With General Filter Heads30 Oct 2025
- 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformers24 Oct 2025
- 2025Direct Multi-Token Decoding13 Oct 2025
- 2025Toward a Theory of Generalizability in LLM Mechanistic Interpretability Research26 Sep 2025
- 2025HARP: Hallucination Detection via Reasoning Subspace Projection15 Sep 2025
- 2025I Have No Mouth, and I Must Rhyme: Uncovering Internal Phonetic Representations in LLaMA 3.24 Aug 2025
- 2025HiProbe-VAD: Video Anomaly Detection via Hidden States Probing in Tuning-Free Multimodal LLMs23 Jul 2025
- 2025Mechanistic Interpretability Needs Philosophy23 Jun 2025
- 2025Beyond Prompt Engineering: Robust Behavior Control in LLMs via Steering Target Atoms23 May 2025
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers19 May 2025
- 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Models21 Apr 2025
- 2025The Geometry of Self-Verification in a Task-Specific Reasoning Model19 Apr 2025
- 2025Capturing AI's Attention: Physics of Repetition, Hallucination, Bias and Beyond6 Apr 2025
- 2025Identifying Sparsely Active Circuits Through Local Loss Landscape Decomposition31 Mar 2025
- 2025Promote, Suppress, Iterate: How Language Models Answer One-to-Many Factual Queries27 Feb 2025
- 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connections13 Feb 2025
- 2024Inferring Functionality of Attention Heads from their Parameters16 Dec 2024
- 2024Hymba: A Hybrid-head Architecture for Small Language Models20 Nov 2024
- 2024A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning6 Nov 2024
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysis2 Aug 2024
- 2024Relational Composition in Neural Networks: A Survey and Call to Action19 Jul 2024
- 2024When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Models19 Jun 2024
- 2024A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoningcited by 15
- 2025The Geometry of Self-Verification in a Task-Specific Reasoning Modelcited by 12
- 2025HARP: Hallucination Detection via Reasoning Subspace Projectioncited by 4
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMscited by 0
- 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMs28 Sep 2026
- 2025HARP: Hallucination Detection via Reasoning Subspace Projection15 Sep 2025
- 2025The Geometry of Self-Verification in a Task-Specific Reasoning Model19 Apr 2025
- 2024A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning6 Nov 2024
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
- 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connectionscited by 27
- 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
- 2024Relational Composition in Neural Networks: A Survey and Call to Actioncited by 23
- 2025Beyond Prompt Engineering: Robust Behavior Control in LLMs via Steering Target Atomscited by 23
- 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
- 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformerscited by 16
- 2025HiProbe-VAD: Video Anomaly Detection via Hidden States Probing in Tuning-Free Multimodal LLMscited by 8
- 2025LLMs Process Lists With General Filter Headscited by 7
- 2024When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Modelscited by 6
- 2025Mechanistic Interpretability Needs Philosophycited by 6
- 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuitscited by 6
12 most cited of 33 All 33 (JSON)
- 2026Logical subspace in LLMs26 Sep 2026
- 2026The Communication Map of a Transformer22 Aug 2026
- 2026Can Graph Learning Learn Circuits?9 Aug 2026
- 2026Relation Geometry in Semantic Space of Language Models29 Jul 2026
- 2026Query Lens: Interpreting Sparse Key-Value Features with Indirect Effects30 May 2026
- 2026Do Language Models Track Entities Across State Changes?28 May 2026
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarization25 Feb 2026
- 2026Singular Vectors of Attention Heads Align with Features13 Feb 2026
- 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariances4 Feb 2026
- 2026A Few Bad Neurons: Isolating and Surgically Correcting Sycophancy26 Jan 2026
- 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernel15 Jan 2026
- 2026Bi-Orthogonal Factor Decomposition for Vision Transformers8 Jan 2026
12 newest of 33 All 33 (JSON)