mlsanityData to 14 Oct 2026

Learning to Focus: Causal Attention Distillation via Gradient-Guided Token Pruning

arXiv 2506.07851 ↗First posted 9 Jun 2025cs.CLcited by 13

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

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  5. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  6. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  8. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  9. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  10. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  11. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  12. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
37 more
  1. 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,282
  2. 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,136
  3. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
  4. 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
  5. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 916
  6. 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 573
  7. 2024SpinQuant: LLM quantization with learned rotationscited by 471
  8. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
  9. 2024Step-DPO: Step-wise Preference Optimization for Long-chain Reasoning of LLMscited by 273
  10. 2025TokenSkip: Controllable Chain-of-Thought Compression in LLMscited by 249
  11. 2024Token-Budget-Aware LLM Reasoningcited by 247
  12. 2023Using an LLM to Help With Code Understandingcited by 228
  13. 2017Survey of the State of the Art in Natural Language Generation: Core tasks, applications and evaluationcited by 206
  14. 2022The Carbon Footprint of Machine Learning Training Will Plateau, Then Shrinkcited by 184
  15. 2025CoT-Valve: Length-Compressible Chain-of-Thought Tuningcited by 169
  16. 2022Distilling Reasoning Capabilities into Smaller Language Modelscited by 158
  17. 2021MasakhaNER: Named Entity Recognition for African Languagescited by 155
  18. 2024Rho-1: Not All Tokens Are What You Needcited by 133
  19. 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
  20. 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 125
  21. 2024Make Your LLM Fully Utilize the Contextcited by 119
  22. 2023Let's Sample Step by Step: Adaptive-Consistency for Efficient Reasoning and Coding with LLMscited by 115
  23. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Codingcited by 113
  24. 2024Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoningcited by 108
  25. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 93
  26. 2024Small Language Models Need Strong Verifiers to Self-Correct Reasoningcited by 86
  27. 2024Critical Tokens Matter: Token-Level Contrastive Estimation Enhances LLM's Reasoning Capabilitycited by 83
  28. 2024Can Language Models Learn to Skip Steps?cited by 59
  29. 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
  30. 2024Enhancing Contextual Understanding in Large Language Models through Contrastive Decodingcited by 49
  31. 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
  32. 2024Break the Chain: Large Language Models Can be Shortcut Reasonerscited by 32
  33. 2025LongProc: Benchmarking Long-Context Language Models on Long Procedural Generationcited by 29
  34. 2024Distilling Mathematical Reasoning Capabilities into Small Language Modelscited by 14
  35. 2024Distilling Reasoning Ability from Large Language Models with Adaptive Thinkingcited by 13
  36. 2023Program Translation via Code Distillationcited by 10
  37. 2023Distilling Rule-based Knowledge into Large Language Modelscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 11.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Pruning via Causal Attribution Preserves Reasoning Performance in Large Language Models
  2. 2025ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without Training
  3. 2025Don't Take Things Out of Context: Attention Intervention for Enhancing Chain-of-Thought Reasoning in Large Language Models
  4. 2025Attention Reveals More Than Tokens: Training-Free Long-Context Reasoning with Attention-guided Retrieval
  5. 2026ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models
  6. 2026Token-level Response-visual Attention Guidance for Multimodal LLMs Knowledge Distillation
  7. 2024Eliciting Causal Abilities in Large Language Models for Reasoning Tasks
  8. 2024Deconfounded Causality-aware Parameter-Efficient Fine-Tuning for Problem-Solving Improvement of LLMs