mlsanityData to 7 Oct 2026

Talking Heads: Understanding Inter-layer Communication in Transformer Language Models

arXiv 2406.09519 ↗First posted 13 Jun 2024cs.CL cs.AIcited by 39

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  6. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  7. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
  8. 2017Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)cited by 1,309
  9. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  10. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  11. 2022Toy Models of Superpositioncited by 928
  12. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
32 more
  1. 2023The Linear Representation Hypothesis and the Geometry of Large Language Modelscited by 679
  2. 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 658
  3. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  4. 2021Compacter: Efficient Low-Rank Hypercomplex Adapter Layerscited by 458
  5. 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 454
  6. 2024Sparse Feature Circuits: Discovering and Editing Interpretable Causal Graphs in Language Modelscited by 412
  7. 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 328
  8. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
  9. 2023Low-Resource Languages Jailbreak GPT-4cited by 290
  10. 2023Large Language Models Sensitivity to The Order of Options in Multiple-Choice Questionscited by 249
  11. 2024SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compressioncited by 231
  12. 2023How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelcited by 199
  13. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  14. 2023Localizing Model Behavior with Path Patchingcited by 182
  15. 2020Compositional Explanations of Neuronscited by 172
  16. 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 171
  17. 2024Language-Specific Neurons: The Key to Multilingual Capabilities in Large Language Modelscited by 124
  18. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
  19. 2020Predicting trends in the quality of state-of-the-art neural networks without access to training or testing datacited by 113
  20. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 105
  21. 2023How do Language Models Bind Entities in Context?cited by 102
  22. 2023LQ-LoRA: Low-rank Plus Quantized Matrix Decomposition for Efficient Language Model Finetuningcited by 92
  23. 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 86
  24. 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
  25. 2023Is This the Subspace You Are Looking for? An Interpretability Illusion for Subspace Activation Patchingcited by 75
  26. 2024LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameterscited by 73
  27. 2023Break It Down: Evidence for Structural Compositionality in Neural Networkscited by 44
  28. 2023Understanding Addition in Transformerscited by 34
  29. 2024Anchored Answers: Unravelling Positional Bias in GPT-2's Multiple-Choice Questionscited by 15
  30. 2022The SVD of Convolutional Weights: A CNN Interpretability Frameworkcited by 7
  31. 2023Instilling Inductive Biases with Subnetworkscited by 6
  32. 2024TriLoRA: Integrating SVD for Advanced Style Personalization in Text-to-Image Generationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 6; 2025: 19; 2026: 14.

39 papers.

Sort:

By area:

  1. 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
  2. 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connectionscited by 27
  3. 2024The Quest for the Right Mediator: Surveying Mechanistic Interpretability Through the Lens of Causal Mediation Analysiscited by 24
  4. 2024Relational Composition in Neural Networks: A Survey and Call to Actioncited by 23
  5. 2025Beyond Prompt Engineering: Robust Behavior Control in LLMs via Steering Target Atomscited by 23
  6. 2024Inferring Functionality of Attention Heads from their Parameterscited by 17
  7. 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformerscited by 16
  8. 2025Head Pursuit: Probing Attention Specialization in Multimodal Transformerscited by 16
  9. 2024A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoningcited by 15
  10. 2025The Geometry of Self-Verification in a Task-Specific Reasoning Modelcited by 12
  11. 2025HiProbe-VAD: Video Anomaly Detection via Hidden States Probing in Tuning-Free Multimodal LLMscited by 8
  12. 2025LLMs Process Lists With General Filter Headscited by 7
27 more
  1. 2024When Parts Are Greater Than Sums: Individual LLM Components Can Outperform Full Modelscited by 6
  2. 2025Mechanistic Interpretability Needs Philosophycited by 6
  3. 2025Beyond Components: Singular Vector-Based Interpretability of Transformer Circuitscited by 6
  4. 2025Identifying Sparsely Active Circuits Through Local Loss Landscape Decompositioncited by 5
  5. 2025Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Modelscited by 5
  6. 2026Measuring Affinity between Attention-Head Weight Subspaces via the Projection Kernelcited by 5
  7. 2026Do Language Models Track Entities Across State Changes?cited by 5
  8. 2025HARP: Hallucination Detection via Reasoning Subspace Projectioncited by 4
  9. 2025Toward a Theory of Generalizability in LLM Mechanistic Interpretability Researchcited by 4
  10. 2025In-Context Algebracited by 4
  11. 2026Bi-Orthogonal Factor Decomposition for Vision Transformerscited by 4
  12. 2025Capturing AI's Attention: Physics of Repetition, Hallucination, Bias and Beyondcited by 3
  13. 2025Start Making Sense(s): A Developmental Probe of Attention Specialization Using Lexical Ambiguitycited by 3
  14. 2026Decomposing Query-Key Feature Interactions Using Contrastive Covariancescited by 3
  15. 2026A Few Bad Neurons: Isolating and Surgically Correcting Sycophancycited by 2
  16. 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformerscited by 2
  17. 2025Promote, Suppress, Iterate: How Language Models Answer One-to-Many Factual Queriescited by 1
  18. 2025I Have No Mouth, and I Must Rhyme: Uncovering Internal Phonetic Representations in LLaMA 3.2cited by 1
  19. 2026Singular Vectors of Attention Heads Align with Featurescited by 1
  20. 2026The Communication Map of a Transformercited by 1
  21. 2025Direct Multi-Token Decodingcited by 0
  22. 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarizationcited by 0
  23. 2026Query Lens: Interpreting Sparse Key-Value Features with Indirect Effectscited by 0
  24. 2026Relation Geometry in Semantic Space of Language Modelscited by 0
  25. 2026Can Graph Learning Learn Circuits?cited by 0
  26. 2026Logical subspace in LLMscited by 0
  27. 2026Layer-Informed Fine-Tuning via Three-Stage Functional Segmentation of LLMscited by 0