arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.07118cs.CLcs.LG
收藏

TRIM:基于令牌注意力的显著性用于数据高效的指令微调

TRIM: Token-wise Attention-Derived Saliency for Data-Efficient Instruction Tuning

Electrical and Computer Engineering, Purdue University(普渡大学电子与计算机工程系)

Manish Nagaraj, Sakshi Choudhary, Utkarsh Saxena, Deepak Ravikumar, Kaushik Roy

AI总结:

TRIM通过令牌层面的注意力分析提升数据效率,利用少量高质量样本构建指令微调数据集,显著优于现有方法,在部分任务中甚至超越全数据微调。

摘要:

指令微调是将大型语言模型对齐下游任务的关键步骤,通常依赖大规模多样化语料库。然而,小规模高质量子集(称为核心集)可提供相同比例或更优结果,但筛选仍具挑战性。现有方法多依赖粗粒度样本级信号如梯度,计算成本高且忽略细粒度特征。为此,我们引入TRIM(通过可解释多层注意力的令牌相关性),是一种前向仅、以令牌为中心的框架。TRIM不依赖梯度,而是通过少量目标样本的注意力“指纹”识别底层表征模式。此方法使TRIM高效且对定义任务的结构特征敏感。由我们方法选出的核心集在下游任务中一致优于现有最先进基线,甚至在某些情况下超越全数据微调性能。通过避免昂贵的反向传递,TRIM在计算成本上仅为传统方法的分数。这些发现确立了TRIM作为构建高质量指令微调数据集的可扩展且高效的替代方案。

英文摘要:

Instruction tuning is essential for aligning large language models (LLMs) to downstream tasks and commonly relies on large, diverse corpora. However, small, high-quality subsets, known as coresets, can deliver comparable or superior results, though curating them remains challenging. Existing methods often rely on coarse, sample-level signals like gradients, an approach that is computationally expensive and overlooks fine-grained features. To address this, we introduce TRIM (Token Relevance via Interpretable Multi-layer Attention), a forward-only, token-centric framework. Instead of using gradients, TRIM operates by matching underlying representational patterns identified via attention-based "fingerprints" from a handful of target samples. Such an approach makes TRIM highly efficient and uniquely sensitive to the structural features that define a task. Coresets selected by our method consistently outperform state-of-the-art baselines by up to 9% on downstream tasks and even surpass the performance of full-data fine-tuning in some settings. By avoiding expensive backward passes, TRIM achieves this at a fraction of the computational cost. These findings establish TRIM as a scalable and efficient alternative for building high-quality instruction-tuning datasets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑