paper-with-me

Papers

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

2025-05-19 · Andrew Nam, Henry Conklin, Yukang Yang, Thomas Griffiths, Jonathan Cohen, Sarah-Jane Leslie

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, 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.

📄 PDF Abstract BibTeX arXiv:2505.13737

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningInstruction FollowingMathematical Reasoning

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

Interpreting CLIP's Image Representation via Text-Based Decomposition

2023-10-09 · Yossi Gandelsman, Alexei A. Efros, Jacob Steinhardt

We investigate the CLIP image encoder by analyzing how individual model components affect the final representation. We decompose the image representation as a sum across individual image patches, model layers, and attent…

Decomposing and Interpreting Image Representations via Text in ViTs Beyond CLIP

2024-06-03 · Sriram Balasubramanian, Samyadeep Basu, Soheil Feizi

Recent work has explored how individual components of the CLIP-ViT model contribute to the final representation by leveraging the shared image-text representation space of CLIP. These components, such as attention heads …

Image Retrieval

Investigating Gender Bias in Language Models Using Causal Mediation Analysis

2020-12-01 · NeurIPS 2020 12 · Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian 외

Many interpretation methods for neural models in natural language processing investigate how information is encoded inside hidden representations. However, these methods can only measure whether the information exists, n…

Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Bias

2020-04-26 · Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian 외

Common methods for interpreting neural models in natural language processing typically examine either their structure or their behavior, but not both. We propose a methodology grounded in the theory of causal mediation a…

Interpreting Language Models Through Concept Descriptions: A Survey

2025-10-01 · Nils Feldhus, Laura Kopf arxiv

Understanding the decision-making processes of neural networks is a central goal of mechanistic interpretability. In the context of Large Language Models (LLMs), this involves uncovering the underlying mechanisms and ide…