Saved in:
Bibliographic Details
Main Authors: Mizrahi, David, Larsen, Anders Boesen Lindbo, Allardice, Jesse, Petryk, Suzie, Gorokhov, Yuri, Li, Jeffrey, Fang, Alex, Gardner, Josh, Gunter, Tom, Dehghan, Afshin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.12466
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909691893776384
author Mizrahi, David
Larsen, Anders Boesen Lindbo
Allardice, Jesse
Petryk, Suzie
Gorokhov, Yuri
Li, Jeffrey
Fang, Alex
Gardner, Josh
Gunter, Tom
Dehghan, Afshin
author_facet Mizrahi, David
Larsen, Anders Boesen Lindbo
Allardice, Jesse
Petryk, Suzie
Gorokhov, Yuri
Li, Jeffrey
Fang, Alex
Gardner, Josh
Gunter, Tom
Dehghan, Afshin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_12466
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Language Models Improve When Pretraining Data Matches Target Tasks
Mizrahi, David
Larsen, Anders Boesen Lindbo
Allardice, Jesse
Petryk, Suzie
Gorokhov, Yuri
Li, Jeffrey
Fang, Alex
Gardner, Josh
Gunter, Tom
Dehghan, Afshin
Computation and Language
Machine Learning
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.
title Language Models Improve When Pretraining Data Matches Target Tasks
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2507.12466