Learning to Focus: Causal Attention Distillation via Gradient-Guided Token Pruning
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Large language models (LLMs) have demonstrated significant improvements in contextual understanding. However, their ability to attend to truly critical information during long-context reasoning and generation still falls behind the pace. Specifically, our preliminary experiments reveal that certain distracting patterns can misdirect the model's attention during inference, and removing these patterns substantially improves reasoning accuracy and generation quality. We attribute this phenomenon to spurious correlations in the training data, which obstruct the model's capacity to infer authentic causal instruction-response relationships. This phenomenon may induce redundant reasoning processes, potentially resulting in significant inference overhead and, more critically, the generation of erroneous or suboptimal responses. To mitigate this, we introduce a two-stage framework called Learning to Focus (LeaF) leveraging intervention-based inference to disentangle confounding factors. In the first stage, LeaF employs gradient-based comparisons with an advanced teacher to automatically identify confounding tokens based on causal relationships in the training corpus. Then, in the second stage, it prunes these tokens during distillation to enact intervention, aligning the student's attention with the teacher's focus distribution on truly critical context tokens. Experimental results demonstrate that LeaF not only achieves an absolute improvement in various mathematical reasoning, code generation and multi-hop question answering benchmarks but also effectively suppresses attention to confounding tokens during inference, yielding a more interpretable and reliable reasoning model.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 49 of its 58 references that are in the map. First posted on arXiv 9 Jun 2025.
Builds on
49 of 58 references.
References · 49
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
37 more
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
- 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,136
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
- 2024SpinQuant: LLM quantization with learned rotationscited by 471
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
- 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMscited by 273
- 2025TokenSkip: Controllable Chain-of-Thought Compression in LLMscited by 249
- 2024Token-Budget-Aware LLM Reasoningcited by 247
- 2023Using an LLM to Help With Code Understandingcited by 228
- 2017Survey of the State of the Art in Natural Language Generation: Core tasks, applications and evaluationcited by 206
- 2022The Carbon Footprint of Machine Learning Training Will Plateau, Then Shrinkcited by 184
- 2025CoT-Valve: Length-Compressible Chain-of-Thought Tuningcited by 169
- 2022Distilling Reasoning Capabilities into Smaller Language Modelscited by 158
- 2021MasakhaNER: Named Entity Recognition for African Languagescited by 155
- 2024Rho-1: Not All Tokens Are What You Needcited by 133
- 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
- 2024Make Your LLM Fully Utilize the Contextcited by 119
- 2023Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMscited by 115
- 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 113
- 2024Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoningcited by 108
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 93
- 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoningcited by 86
- 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capabilitycited by 83
- 2024Can Language Models Learn to Skip Steps?cited by 59
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
- 2024Enhancing Contextual Understanding in Large Language Models through Contrastive Decodingcited by 49
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2024Break the Chain: Large Language Models Can be Shortcut Reasonerscited by 32
- 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generationcited by 29
- 2024Distilling Mathematical Reasoning Capabilities into Small Language Modelscited by 14
- 2024Distilling Reasoning Ability from Large Language Models with Adaptive Thinkingcited by 13
- 2023Program Translation via Code Distillationcited by 10
- 2023Distilling Rule-based Knowledge into Large Language Modelscited by 9
Built on by
Citing papers per year: 2025: 2; 2026: 11.
13 papers.
Sort:
By area:
- 2026Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolationcited by 184
- 2026TIP: Token Importance in On-Policy Distillationcited by 104
- 2026Not All Disagreement Is Learnable: Token Teachability in On-Policy Distillationcited by 51
- 2026Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipecited by 49
- 2025Sculptor: Empowering LLMs with Cognitive Agency via Active Context Managementcited by 18
- 2026SPOT: Sparse Probing and Outcome Calibration for On-Policy Distillationcited by 8
- 2025Revisiting Long-context Modeling from Context Denoising Perspectivecited by 5
- 2026Less Noise, More Voice: Reinforcement Learning for Reasoning via Instruction Purificationcited by 0
- 2026Token-Sparse Medical Multimodal Reasoning via Dual-Stream Reinforcement Learningcited by 0
- 2026Learning What Matters: Supervising Global Context Pruning with Causal Evidence Setscited by 0
- 2026Teach Yourself Where to Look: On-Policy Attention Self-Distillation for Reasoningcited by 0
- 2026Unbiased Top-k Estimation for On-Policy Distillationcited by 0
- 2026MCD: Causal Distillation of Multimodal In-Context Learning in Large Vision-Language Models30 Sep 2026
- 2026Unbiased Top-k Estimation for On-Policy Distillation28 Sep 2026
- 2026Teach Yourself Where to Look: On-Policy Attention Self-Distillation for Reasoning27 Sep 2026
- 2026SPOT: Sparse Probing and Outcome Calibration for On-Policy Distillation5 Aug 2026
- 2026Learning What Matters: Supervising Global Context Pruning with Causal Evidence Sets23 Jul 2026
- 2026Token-Sparse Medical Multimodal Reasoning via Dual-Stream Reinforcement Learning30 Jun 2026
- 2026Not All Disagreement Is Learnable: Token Teachability in On-Policy Distillation26 May 2026
- 2026Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipe5 May 2026
- 2026TIP: Token Importance in On-Policy Distillation15 Apr 2026
- 2026Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolation12 Feb 2026
- 2026Less Noise, More Voice: Reinforcement Learning for Reasoning via Instruction Purification29 Jan 2026
- 2025Revisiting Long-context Modeling from Context Denoising Perspective7 Oct 2025
1 more
- 2026Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolationcited by 184
- 2026TIP: Token Importance in On-Policy Distillationcited by 104
- 2026Not All Disagreement Is Learnable: Token Teachability in On-Policy Distillationcited by 51
- 2026Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipecited by 49
- 2026SPOT: Sparse Probing and Outcome Calibration for On-Policy Distillationcited by 8
- 2026Learning What Matters: Supervising Global Context Pruning with Causal Evidence Setscited by 0
- 2026Unbiased Top-k Estimation for On-Policy Distillationcited by 0
- 2026Unbiased Top-k Estimation for On-Policy Distillation28 Sep 2026
- 2026SPOT: Sparse Probing and Outcome Calibration for On-Policy Distillation5 Aug 2026
- 2026Learning What Matters: Supervising Global Context Pruning with Causal Evidence Sets23 Jul 2026
- 2026Not All Disagreement Is Learnable: Token Teachability in On-Policy Distillation26 May 2026
- 2026Uni-OPD: Unifying On-Policy Distillation with a Dual-Perspective Recipe5 May 2026
- 2026TIP: Token Importance in On-Policy Distillation15 Apr 2026
- 2026Learning beyond Teacher: Generalized On-Policy Distillation with Reward Extrapolation12 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Pruning via Causal Attribution Preserves Reasoning Performance in Large Language Models
- 2025ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without Training
- 2025Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models
- 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrieval
- 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models
- 2026Token-level Response-visual Attention Guidance for Multimodal LLMs Knowledge Distillation
- 2024Eliciting Causal Abilities in Large Language Models for Reasoning Tasks
- 2024Deconfounded Causality-aware Parameter-Efficient Fine-Tuning for Problem-Solving Improvement of LLMs