AttentionInfluence:利用注意力头影响力进行弱到强预训练数据选择
AttentionInfluence: Adopting Attention Head Influence for Weak-to-Strong Pretraining Data Selection
AI总结:
本文提出无需监督的 AttentionInfluence,利用小模型检索头掩码后的损失差异筛选推理数据,并显著提升7B模型在多项知识与推理基准上的表现。
摘要:
近来,收集推理密集型预训练数据以提升大语言模型复杂推理能力的兴趣不断增长。以往方法通常依赖监督分类器识别此类数据,这需要人类或大语言模型进行标注,往往会引入特定领域的偏差。鉴于注意力头对上下文推理至关重要,我们提出 AttentionInfluence,这是一种简单有效、无需训练且不使用监督信号的方法。该方法通过简单的注意力头掩码操作,使小型预训练语言模型能够充当强大的数据选择器。具体而言,我们识别检索头,并计算掩码这些头时的损失差异。我们将 AttentionInfluence 应用于一个13亿参数的稠密模型,在包含2410亿 token 的 SmolLM 语料库上进行数据选择,并将 SmolLM 语料库与由730亿 token 组成的所选子集混合,使用1万亿训练 token 和 WSD 学习率调度来预训练一个70亿参数的稠密模型。实验结果表明,在若干知识密集型和重推理基准(即 MMLU、MMLU-Pro、AGIEval-en、GSM8K 和 HumanEval)上取得了1.4至3.5个百分点的显著提升。这证明了有效的弱到强扩展特性,即小模型能够改善大模型的最终性能,为以推理为中心的数据选择提供了一条有前景且可扩展的路径。
英文摘要:
Recently, there has been growing interest in collecting reasoning-intensive pretraining data to improve LLMs' complex reasoning ability. Prior approaches typically rely on supervised classifiers to identify such data, which requires labeling by humans or LLMs, often introducing domain-specific biases. Due to the attention heads being crucial to in-context reasoning, we propose AttentionInfluence, a simple yet effective, training-free method without supervision signal. Our approach enables a small pretrained language model to act as a strong data selector through a simple attention head masking operation. Specifically, we identify retrieval heads and compute the loss difference when masking these heads. We apply AttentionInfluence to a 1.3B-parameter dense model to conduct data selection on the SmolLM corpus of 241B tokens, and mix the SmolLM corpus with the selected subset comprising 73B tokens to pretrain a 7B-parameter dense model using 1T training tokens and WSD learning rate scheduling. Our experimental results demonstrate substantial improvements, ranging from 1.4pp to 3.5pp, across several knowledge-intensive and reasoning-heavy benchmarks (i.e., MMLU, MMLU-Pro, AGIEval-en, GSM8K, and HumanEval). This demonstrates an effective weak-to-strong scaling property, with small models improving the final performance of larger models-offering a promising and scalable path for reasoning-centric data selection.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。