mlsanityData to 14 Oct 2026

Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers

arXiv 2505.13737 ↗First posted 19 May 2025cs.AIcited by 16

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2023GPT-4 Technical Reportcited by 18,396
  6. 2024The Llama 3 Herd of Modelscited by 14,715
  7. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  8. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  9. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  10. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  11. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
  12. 2022Locating and Editing Factual Associations in GPTcited by 2,691
31 more
  1. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  2. 2025Gemma 3 Technical Reportcited by 1,824
  3. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  4. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  5. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  6. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  7. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
  8. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,059
  9. 2022Toy Models of Superpositioncited by 971
  10. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
  11. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  12. 2019Are Sixteen Heads Really Better than One?cited by 816
  13. 2019Designing and Interpreting Probes with Control Taskscited by 640
  14. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
  15. 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 438
  16. 2023Function Vectors in Large Language Modelscited by 308
  17. 2020Information-Theoretic Probing with Minimum Description Lengthcited by 232
  18. 2020Information-Theoretic Probing for Linguistic Structurecited by 207
  19. 2024OpenMathInstruct-2: Accelerating AI for Math with Massive Open-Source Instruction Datacited by 200
  20. 2024A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicitycited by 185
  21. 2022Structured Pruning Learns Compact and Accurate Modelscited by 170
  22. 2020Probing the Probing Paradigm: Does Probing Accuracy Entail Task Relevance?cited by 151
  23. 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
  24. 2024What Matters in Transformers? Not All Attention is Neededcited by 84
  25. 2024Attention Heads of Large Language Models: A Surveycited by 67
  26. 2020How do Decisions Emerge across Layers in Neural Models? Interpretation with Differentiable Maskingcited by 63
  27. 2024LoFiT: Localized Fine-tuning on LLM Representationscited by 57
  28. 2021Differentiable Subset Pruning of Transformer Headscited by 47
  29. 2024Talking Heads: Understanding Inter-layer Communication in Transformer Language Modelscited by 41
  30. 2025Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Modelscited by 31
  31. 2024Holistic Safety and Responsibility Evaluations of Advanced AI Modelscited by 19

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 14.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Pattern Selectivity is Not Task-Causal Structure: A Cross-Architecture Mechanistic Study of Composed-Task Circuits in 1B-Class Language Models
  2. 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
  3. 2026Interpreting Transformers Through Attention Head Intervention
  4. 2026Spectral Probe-Circuits: A Three-Step Recipe for Identifying Attention-Head Circuits in Pretrained Transformers
  5. 2025Disentangling Recall and Reasoning in Transformer Models through Layer-wise Attention and Activation Analysis
  6. 2025Selective Induction Heads: How Transformers Select Causal Structures In Context
  7. 2026Where Computation Lives Inside TabPFN: Causal Localisation of Attention Head Function
  8. 2025Attention as Binding: A Vector-Symbolic Perspective on Transformer Reasoning