Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers
Not on the map. Why?
Abstract (arXiv)
We present causal head gating (CHG), a scalable method for interpreting the functional roles of attention heads in transformer models. CHG learns soft gates over heads and assigns them a causal taxonomy - facilitating, interfering, or irrelevant - based on their impact on task performance. Unlike prior approaches in mechanistic interpretability, which are hypothesis-driven and require prompt templates or target labels, CHG applies directly to any dataset using standard next-token prediction. We evaluate CHG across multiple large language models (LLMs) in the Llama 3 model family and diverse tasks, including syntax, commonsense, and mathematical reasoning, and show that CHG scores yield causal, not merely correlational, insight validated via ablation and causal mediation analyses. We also introduce contrastive CHG, a variant that isolates sub-circuits for specific task components. Our findings reveal that LLMs contain multiple sparse task-sufficient sub-circuits, that individual head roles depend on interactions with others (low modularity), and that instruction following and in-context learning rely on separable mechanisms.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 43 of its 58 references that are in the map. First posted on arXiv 19 May 2025.
Builds on
43 of 58 references.
References · 43
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
31 more
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2025Gemma 3 Technical Reportcited by 1,824
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
- 2022Toy Models of Superpositioncited by 971
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019Designing and Interpreting Probes with Control Taskscited by 640
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
- 2023Function Vectors in Large Language Modelscited by 308
- 2020Information-Theoretic Probing with Minimum Description Lengthcited by 232
- 2020Information-Theoretic Probing for Linguistic Structurecited by 207
- 2024OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Datacited by 200
- 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 185
- 2022Structured Pruning Learns Compact and Accurate Modelscited by 170
- 2020Probing the Probing Paradigm: Does Probing Accuracy Entail Task Relevance?cited by 151
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2024What Matters in Transformers? Not All Attention is Neededcited by 84
- 2024Attention Heads of Large Language Models: A Surveycited by 67
- 2020How do Decisions Emerge across Layers in Neural Models? Interpretation with Differentiable Maskingcited by 63
- 2024LoFiT: Localized Fine-tuning on LLM Representationscited by 57
- 2021Differentiable Subset Pruning of Transformer Headscited by 47
- 2024Talking Heads: Understanding Inter-layer Communication in Transformer Language Modelscited by 41
- 2025Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Modelscited by 31
- 2024Holistic Safety and Responsibility Evaluations of Advanced AI Modelscited by 19
Built on by
Citing papers per year: 2025: 2; 2026: 14.
16 papers.
Sort:
By area:
- 2026Large Vision-Language Models Get Lost in Attentioncited by 5
- 2025Reallocating Attention Across Layers to Reduce Multimodal Hallucinationcited by 4
- 2025Model Science: getting serious about verification, explanation and control of AI systemscited by 3
- 2026Improving Chain-of-Thought for Logical Reasoning via Attention-Aware Interventioncited by 3
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gatingcited by 2
- 2026Diffusion-CAM: Faithful Visual Explanations for dMLLMscited by 1
- 2026Calibrating Overconfidence Without Sacrificing Confidence: Probe-Conditioned Head Intervention for LLMscited by 1
- 2026The Truth Stays in the Family: Enhancing Contextual Grounding via Inherited Truthful Heads in Model Lineagescited by 1
- 2026CircuitLens: Reasoning Circuits as Data Selection Signals for Reinforcement Learning with Verifiable Rewardscited by 1
- 2026MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptationcited by 0
- 2026Pruning via Causal Attribution Preserves Reasoning Performance in Large Language Modelscited by 0
- 2026Mind the Heads: Topological Representation Alignment for Multimodal LLMscited by 0
4 more
- 2026Gathered, Not Admitted: How Attention Brings a Latent Variable into Verbalizable Formcited by 0
- 2026Logical subspace in LLMscited by 0
- 2026The Commit-Abstain Circuit: Why Language Models Hallucinate Instead of Abstainingcited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparitiescited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparities30 Sep 2026
- 2026The Commit-Abstain Circuit: Why Language Models Hallucinate Instead of Abstaining26 Sep 2026
- 2026Logical subspace in LLMs26 Sep 2026
- 2026CircuitLens: Reasoning Circuits as Data Selection Signals for Reinforcement Learning with Verifiable Rewards7 Sep 2026
- 2026Gathered, Not Admitted: How Attention Brings a Latent Variable into Verbalizable Form15 Aug 2026
- 2026Mind the Heads: Topological Representation Alignment for Multimodal LLMs22 Jun 2026
- 2026The Truth Stays in the Family: Enhancing Contextual Grounding via Inherited Truthful Heads in Model Lineages14 Jun 2026
- 2026Calibrating Overconfidence Without Sacrificing Confidence: Probe-Conditioned Head Intervention for LLMs2 Jun 2026
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gating20 May 2026
- 2026Large Vision-Language Models Get Lost in Attention7 May 2026
- 2026Pruning via Causal Attribution Preserves Reasoning Performance in Large Language Models27 Apr 2026
- 2026Diffusion-CAM: Faithful Visual Explanations for dMLLMs13 Apr 2026
4 more
- 2026MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptation24 Feb 2026
- 2026Improving Chain-of-Thought for Logical Reasoning via Attention-Aware Intervention14 Jan 2026
- 2025Reallocating Attention Across Layers to Reduce Multimodal Hallucination11 Oct 2025
- 2025Model Science: getting serious about verification, explanation and control of AI systems27 Aug 2025
- 2026Large Vision-Language Models Get Lost in Attentioncited by 5
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gatingcited by 2
- 2026Diffusion-CAM: Faithful Visual Explanations for dMLLMscited by 1
- 2026The Truth Stays in the Family: Enhancing Contextual Grounding via Inherited Truthful Heads in Model Lineagescited by 1
- 2026Mind the Heads: Topological Representation Alignment for Multimodal LLMscited by 0
- 2026Mind the Heads: Topological Representation Alignment for Multimodal LLMs22 Jun 2026
- 2026The Truth Stays in the Family: Enhancing Contextual Grounding via Inherited Truthful Heads in Model Lineages14 Jun 2026
- 2026Mitigating Hallucinations in Large Vision-Language Models via Causal Route Gating20 May 2026
- 2026Large Vision-Language Models Get Lost in Attention7 May 2026
- 2026Diffusion-CAM: Faithful Visual Explanations for dMLLMs13 Apr 2026
- 2025Model Science: getting serious about verification, explanation and control of AI systemscited by 3
- 2026Calibrating Overconfidence Without Sacrificing Confidence: Probe-Conditioned Head Intervention for LLMscited by 1
- 2026CircuitLens: Reasoning Circuits as Data Selection Signals for Reinforcement Learning with Verifiable Rewardscited by 1
- 2026MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptationcited by 0
- 2026Gathered, Not Admitted: How Attention Brings a Latent Variable into Verbalizable Formcited by 0
- 2026Logical subspace in LLMscited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparitiescited by 0
- 2026Where's Waldo? Query-language Preference under Cross-lingual Knowledge Disparities30 Sep 2026
- 2026Logical subspace in LLMs26 Sep 2026
- 2026CircuitLens: Reasoning Circuits as Data Selection Signals for Reinforcement Learning with Verifiable Rewards7 Sep 2026
- 2026Gathered, Not Admitted: How Attention Brings a Latent Variable into Verbalizable Form15 Aug 2026
- 2026Calibrating Overconfidence Without Sacrificing Confidence: Probe-Conditioned Head Intervention for LLMs2 Jun 2026
- 2026MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptation24 Feb 2026
- 2025Model Science: getting serious about verification, explanation and control of AI systems27 Aug 2025
Similar, not cited
Close in wording, no citation either way
- 2026Pattern Selectivity is Not Task-Causal Structure: A Cross-Architecture Mechanistic Study of Composed-Task Circuits in 1B-Class Language Models
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
- 2026Interpreting Transformers Through Attention Head Intervention
- 2026Spectral Probe-Circuits: A Three-Step Recipe for Identifying Attention-Head Circuits in Pretrained Transformers
- 2025Disentangling Recall and Reasoning in Transformer Models through Layer-wise Attention and Activation Analysis
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Context
- 2026Where Computation Lives Inside TabPFN: Causal Localisation of Attention Head Function
- 2025Attention as Binding: A Vector-Symbolic Perspective on Transformer Reasoning