AIR: Post-training Data Selection for Reasoning via Attention Head Influence

Jinrui Liu, Jeff Wu, Xuanguang Pan, Gavin Cheung, Shuai Ma +1 more
12/15/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

LLMs achieve remarkable multi-step reasoning capabilities, yet effectively transferring these skills via post-training distillation remains challenging. Existing data selection methods, ranging from manual curation to heuristics based on length, entropy, or overall loss, fail to capture the causal importance of individual reasoning steps, limiting distillation efficiency. To address this, we propose Attention Influence for Reasoning (AIR), a principled, unsupervised and training-free framework that leverages mechanistic insights of the retrieval head to select high-value post-training data. AIR first identifies reasoning-critical attention heads of an off-the-shelf model, then constructs a weakened reference model with disabled head influence, and finally quantifies the resulting loss divergence as the Attention Influence Score. This score enables fine-grained assessment at both the step and sample levels, supporting step-level weighted fine-tuning and global sample selection. Experiments across multiple reasoning benchmarks show that AIR consistently improves reasoning accuracy, surpassing heuristic baselines and effectively isolating the most critical steps and samples. Our work establishes a mechanism-driven, data-efficient approach for reasoning distillation in LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025air,
  title  = {AIR: Post-training Data Selection for Reasoning via Attention Head Influence},
  author = {Jinrui Liu and Jeff Wu and Xuanguang Pan and Gavin Cheung and Shuai Ma and Chongyang Tao},
  year   = {2025},
  eprint = {2512.13279},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.13279v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.13279.svg)](https://codeofpaper.com/paper/2512.13279)

Discussion