atlas

Research map / Large language models / Reasoning and chain of thought

Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models

ICLR 2025 · Large language models › Reasoning and chain of thought · approach: Chain-of-thought training and analysis · 0 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.

Shows that isolated demonstration tokens with low self-aggregation can distract few-shot CoT reasoning, and proposes Few-shot Attention Intervention (FAI), which blocks attention from such tokens to the output position, improving accuracy on several reasoning benchmarks.

Problem

Few-shot chain-of-thought performance is sensitive to demonstrations, and isolated tokens or segments within demonstrations can distract LLMs into incorrect reasoning, with no clear internal mechanism explaining this.

Approach

Tokens that have not aggregated information from other tokens (low self-attention relative to a position-based threshold) and directly feed the prediction position are identified per layer from attention matrices; FAI zeroes their attention to the output token in the next layer, suppressing the distraction while preserving CoT's positive effect.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply FAI attention interventionLlama3-70B · AQuAaccuracy: 66.14 -> 66.53Helped
apply FAI attention interventionLlama3-70B · GSM8Kaccuracy: 91.28 -> 91.28No clear effect
apply FAI attention interventionLlama3-70B · CSQAaccuracy: 77.31 -> 78.62Helped
apply FAI attention interventionLlama3-70B · Date Understandingaccuracy: 87.60 -> 88.0Helped
apply FAI attention interventionLlama3-70B · Sport Understandingaccuracy: 97.2 -> 98.0Helped
apply FAI attention interventionLlama3-70B · Last letter concatenationaccuracy: 84.00 -> 85.33Helped
block all attention flow from demonstrations to the prediction position at every layer (ablation)Llama-3-8B-Instruct · GSM_badaccuracyHelped
block all attention flow from demonstrations to the prediction position at every layer (ablation)Llama-3-8B-Instruct · GSM_goodaccuracyHurt
block all attention flow from demonstrations to the prediction position at every layer (ablation)Llama-3-8B-Instruct · GSM_bad and GSM_goodRAFRHurt
use FAI's targeted attention interventions instead of blocking all demonstration-to-prediction flow (ablation)Llama-3-8B-Instruct · GSM_goodaccuracyNo clear effect
use FAI's targeted attention interventions instead of blocking all demonstration-to-prediction flow (ablation)Llama-3-8B-Instruct · GSM_bad and GSM_goodRAFRNo clear effect
apply FAI in the 1-shot retrieval settingLlama-2-13B-Chat · GSM8Kaccuracy: 30.55% to 34.34%Helped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K AQuA CSQA BIG-Bench Hard date understanding BIG-Bench Hard sports understanding last letter concatenation

Benchmarks: AQuA GSM8K CSQA Date Understanding Sport Understanding Last letter concatenation

Metrics: accuracy rate of answer following rationale (RAFR)

Baselines: GPT2-XL GPT-NEO Llama-3-8B-Instruct Llama-3-70B-Instruct Llama-2-13B-Chat Mistral-7B-v0.2

Builds on: chain-of-thought prompting attention sink saliency-based attribution

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