atlas

Research map / Large language models / Language, safety and interpretability

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

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes causal head gating (CHG), learning soft L1-regularized gates over attention heads via next-token NLL to classify heads as facilitating, interfering, or irrelevant, and extends it to contrastive CHG for separating ICL from instruction-following circuits in Llama 3 models.

Problem

Interpreting the functional causal roles of attention heads in LLMs without hypothesis-driven prompt templates or labeled target outputs, and capturing distributed, interdependent sub-circuits.

Approach

Fit a multiplicative soft gate per attention head with frozen model weights, using next-token NLL plus a signed L1-style regularizer (lambda>0 and lambda<0) to separate facilitating, interfering, and irrelevant heads; a contrastive variant jointly forgets one task formulation while retaining another.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fit CCHG to retain ICL and forget instruction-followingLlama-3.2-3B-Instruct · Singular-plural ICLaccuracy: 98% → 92%Hurt
Fit CCHG to retain ICL and forget instruction-followingLlama-3.2-3B-Instruct · Singular-plural instruction promptaccuracy: 98% → 0%Hurt
Fit CCHG to retain instruction-following and forget ICLLlama-3.2-3B-Instruct · Singular-plural ICLaccuracy: 98% → 0%Hurt
Fit CCHG to retain instruction-following and forget ICLLlama-3.2-3B-Instruct · Singular-plural instruction promptaccuracy: 98% → 21%Hurt
Use CHG facilitation scores to rank heads, then ablate themCHG · OpenMathInstruct2, BIG-Bench syntax, CommonsenseQAtarget log-probabilityHurt
Use CHG irrelevance scores to rank heads, then ablate themCHG · OpenMathInstruct2, BIG-Bench syntax, CommonsenseQAtarget log-probabilityNo clear effect
Use CHG interference scores to rank heads, then ablate themCHG · OpenMathInstruct2, BIG-Bench syntax, CommonsenseQAtarget log-probabilityHelped
Identify CMA-mediating heads and compare their maximum CHG facilitation scores with other headsCHG · Function vector tasksfacilitation score: t(23.05) = 8.52, p < 10^{-8}Helped
Identify CMA-mediating heads and compare their maximum CHG facilitation scores with other headsCHG · ABA/ABB symbolic reasoning tasksfacilitation score: t(53.77) = 11.18, p < 10^{-15}Helped
Fit contrastive gates to forget ICL while retaining instruction-followingCCHG on Llama-3.2-3B-Instruct · Function vector tasks, held-out taskaccuracyMixed
Fit contrastive gates to forget instruction-following while retaining ICLCCHG on Llama-3.2-3B-Instruct · Function vector tasks, held-out taskaccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: OpenMathInstruct-2 CommonsenseQA BIG-Bench syntax function vector tasks ABA/ABB symbolic reasoning

Benchmarks: OpenMathInstruct2 CommonsenseQA BIG-Bench syntax function vector tasks ABA/ABB symbolic reasoning

Metrics: target log-probability difference task accuracy facilitation/interference/irrelevance scores Pearson correlation t-test

Baselines: causal mediation analysis Gumbel-based gating

Builds on: causal mediation analysis function vectors Gumbel-softmax gating

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy