arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.12466cs.CLcs.LG
收藏

当预训练数据匹配目标任务时,语言模型得到改进

Language Models Improve When Pretraining Data Matches Target Tasks

Apple(苹果公司);University of Washington(华盛顿大学);Stanford(斯坦福大学)

David Mizrahi, Anders Boesen Lindbo Larsen, Jesse Allardice, Suzie Petryk, Yuri Gorokhov, Jeffrey Li, Alex Fang, Josh Gardner, Tom Gunter, Afshin Dehghan

AI总结:

提出基准目标排序(BETR)方法,通过预训练数据与基准样本相似度对齐目标任务,实验证明能显著提升计算效率与任务性能,并发现最优数据选择策略需随模型规模调整。

摘要:

每种数据选择方法本质上都有一个目标。在实践中,这些目标通常通过基准驱动的迭代隐式产生:研究人员开发选择策略,训练模型,测量基准性能,然后进行相应的改进。这引发了一个自然的问题:当我们使这种优化显式化时会发生什么?为了探索这一点,我们提出了基准目标排序(BETR),这是一种简单的方法,根据与基准训练样本的相似性来选择预训练文档。BETR将基准样本和预训练文档样本嵌入到共享空间中,根据与基准的相似性对该样本进行评分,然后训练一个轻量级分类器来预测整个语料库的这些分数。我们通过训练跨越$10^{19}$到$10^{22}$ FLOPs的超过500个模型并为其拟合缩放定律来比较数据选择方法。由此我们发现,使用BETR简单地将预训练数据与评估基准对齐,相对于DCLM-Baseline实现了2.1倍的计算乘数(相对于未过滤数据为4.7倍),并在所有规模下的10个任务中的9个上提高了性能。BETR也具有良好的泛化性:当针对与我们的评估套件不相交的多样化基准集合时,它仍然匹配或优于基线。我们的缩放分析进一步揭示了一个明显的趋势:较大的模型需要较少激进的过滤。总体而言,我们的研究结果表明,直接将预训练数据与目标任务匹配能够精确塑造模型能力,并强调最优选择策略必须适应模型规模。

英文摘要:

Every data selection method inherently has a target. In practice, these targets often emerge implicitly through benchmark-driven iteration: researchers develop selection strategies, train models, measure benchmark performance, then refine accordingly. This raises a natural question: what happens when we make this optimization explicit? To explore this, we propose benchmark-targeted ranking (BETR), a simple method that selects pretraining documents based on similarity to benchmark training examples. BETR embeds benchmark examples and a sample of pretraining documents in a shared space, scores this sample by similarity to benchmarks, then trains a lightweight classifier to predict these scores for the full corpus. We compare data selection methods by training over 500 models spanning $10^{19}$ to $10^{22}$ FLOPs and fitting scaling laws to them. From this, we find that simply aligning pretraining data to evaluation benchmarks using BETR achieves a 2.1x compute multiplier over DCLM-Baseline (4.7x over unfiltered data) and improves performance on 9 out of 10 tasks across all scales. BETR also generalizes well: when targeting a diverse set of benchmarks disjoint from our evaluation suite, it still matches or outperforms baselines. Our scaling analysis further reveals a clear trend: larger models require less aggressive filtering. Overall, our findings show that directly matching pretraining data to target tasks precisely shapes model capabilities and highlight that optimal selection strategies must adapt to model scale.

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

↑