atlas

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

Cognitive Mirrors: Exploring the Diverse Functional Roles of Attention Heads in LLM Reasoning

NeurIPS 2025 · Large language models › Language, safety and interpretability · approach: Mechanistic analysis of attention and representations · 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.

Introduces CogQA, a dataset of cognitively annotated subquestion decompositions, and uses multi-class probing with gradient×activation attribution to identify sparse "cognitive heads" in six LLMs, validated by head masking and activation steering.

Problem

Understanding which attention heads in LLMs take on specialized cognitive functions during complex multi-step reasoning, which prior work has studied mainly on simple or synthetic tasks.

Approach

Decompose reasoning questions into chain-of-thought subquestions labeled with eight cognitive functions, train a multi-class MLP probe on per-head activations, and attribute class importance to heads via gradient×activation; then validate heads causally by masking and by steering along functional directions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Mask Retrieval heads instead of leaving the model unmodified (ablation)Llama3.1-8B · Extractive_QAaccuracy (%): 57.14 -> 0Hurt
Enhance Retrieval heads along their functional directionLlama3.1-8B · Extractive_QAaccuracy (%): 57.14 -> 63.26Helped
Mask Retrieval heads instead of leaving the model unmodified (ablation)Qwen3-8B · Extractive_QAaccuracy (%): 57.14 -> 14.29Hurt
Enhance Retrieval heads along their functional directionQwen3-4B · Extractive_QAaccuracy (%): 51.02 -> 69.38Helped
Mask Math Calculation heads instead of leaving the model unmodified (ablation)Llama3.1-8B · GSM8K_100accuracy (%): 82 -> 38Hurt
Enhance Math Calculation heads along their functional directionLlama3.1-8B · GSM8K_100accuracy (%): 82 -> 84Helped
Enhance Semantic Understanding heads along their functional directionQwen3-4B · GSM8K_100accuracy (%): 91 -> 93Helped
Mask cognitive heads rather than an equal number of random heads (ablation)Llama3.1-8B · CogQA retrieval interventionacc: 84.71 -> 8.24Hurt
Mask cognitive heads rather than an equal number of random heads (ablation)Llama3.1-8B · CogQA mathematical calculation interventionacc: 83.08 -> 66.17Hurt
Use top-k important answer tokens rather than first generated token to identify heads (ablation)Llama3.1-8B · Retrieval intervention, 30 heads maskedRetrieval(acc): 83.53 -> 46.47Helped
Use top-k important answer tokens rather than full-answer average to identify heads (ablation)Llama3.1-8B · Retrieval intervention, 30 heads maskedRetrieval(comet): 73.93 -> 70.05Helped
Mask Retrieval or Knowledge Recall heads during downstream high-order tasks (ablation)Llama3.1-8B-instruct · Math, Inference, Logical Reasoning, Decision-Makingaccuracy (%): 0.00; 66.67; 88.24; 93.10; 57.14; 76.92Mixed

Surprising findings

Limitations

Experimental setup

Datasets: AQuA CREAK ECQA e-SNLI GSM8K CogQA

Benchmarks: CogQA test set GSM8K_100 Extractive_QA (49 samples)

Metrics: COMET BLEU ROUGE semantic similarity accuracy probe test accuracy

Baselines: random head masking

Builds on: chain-of-thought prompting probing classifiers head pruning importance

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