| Data and budget | |
|---|---|
| pool of candidate examples | |
| the training set chosen | |
| one example: an image-caption pair, a document or a token | |
| a filter's score; the filter keeps a top fraction | |
| examples or tokens seen in training, fixed per scale | |
| passes over the budget forces | |
| parameters; for the perceptron, also the input dimension | |
| domain of the corpus and the number of domains | |
| mixture: domain weights with | |
| Perceptron theory | |
| a standard Gaussian input in and its label | |
| teacher weights and student weights (the maximum-margin separator of the kept data) | |
| probe weights that rank examples by margin, and their angle to the teacher | |
| fraction of the pool kept | |
| smallest useful fraction kept for a probe at angle | |
| test error of the student | |
| kept examples per weight, log-volume of consistent students, information per example (gloss only) | |
| Scores | |
| parameters of the model being trained (or of a proxy) | |
| loss of the trained model and of the reference model on | |
| excess loss | |
| DoReMi's batch excess loss per token of domain at step , and its step size (gloss only) | |
| Repetition and filtering | |
| unique tokens | |
| repetitions, epochs minus one, so | |
| effective tokens, the unique-token count worth the same | |
| fraction of value lost per repetition | |
| , the repetitions after which a pass keeps of its value | |
| scale and irreducible error in a bucket's error | |
| utility of a data bucket, the exponent of its error curve | |
| passes over which halves | |
| number of earlier passes | |
| Deduplication | |
| Jaccard similarity of two documents' sets of word 5-grams; FineWeb writes | |
| Constants | |
| Muennighoff et al.'s fitted values for repeated data and for excess parameters | |
| Goyal et al.'s fit for the top 10% T-MARS bucket | |
| Goyal et al.'s fit for the 30 to 40% T-MARS bucket | |
| Sorscher et al.'s values at and | |
| Paper symbols | |
| what Sorscher et al. write for , , and | |
| what Mindermann et al. write for , the irreducible loss | |
| what Lin et al. write for a token's excess loss | |
| what Muennighoff et al. write for , , , , | |
| what Goyal et al. write for , and the error | |
| what Xie et al. write for and | |
| what Liu et al. write for and | |
Context. Every pretraining run trains on data someone chose. Curators filter web crawls with rules and quality classifiers, strip near-duplicates, prune image sets by how hard a probe network finds each example, and sample domainsparts of a corpus defined by where the text came from, such as a web crawl, GitHub, ArXiv, PubMed, or books at chosen weights. Earlier claims about these choices rested on models that also differed in architecture, hyperparameters, or compute. The twelve papers here hold the model fixed and vary only the data, most of them at equal training compute. Together they ask which examples or tokens to keep, how strictly to filter, and how to weight domains.
Which data pays off depends on how much unique data is available for the compute budget. With few examples per parameter, easy, typical examples help more; with many, hard ones do (Sorscher et al., 2022). Aggressive filtering shrinks the pool and forces repetition. Repeated tokens hold most of their value for roughly four epochs, then lose value fast past sixteen (Muennighoff et al., 2023). The best filter therefore loosens as compute grows (Goyal et al., 2024). Most learned selection rules judge data against a reference: a reference model's loss, a curated document set or rubric that trains a classifier, or a validation loss that a mixture minimizes. Curated sets, rubrics, and validation losses decide what the trained model becomes good for, whereas difficulty pruning and CLIP-score filtering use no reference. Small proxy runs are the standard way to pick corpora and mixtures. Whole-dataset rankings transfer cleanly to 7B, while DoReMi's domain weights shift with proxy size. The largest gains appear on noisy, abundant pools. Because the corpus benchmarks chose each filter by the scores it is reported on, how broadly those gains generalize remains open.
Setting. Fix a pool the candidate examples a selection rule may draw from, such as image-caption pairs or web documents, a model, its training recipe, and a budget total examples or tokens seen during training, held fixed across data choices at a given scale. A data choice picks a subset , a weighting of its parts, or both. Most filters assign each example a score a classifier probability, rubric rating, similarity, or loss; the filter keeps examples above a percentile of over and keep a top fraction. With fixed, training visits a smaller subset times, so a filter wins only when its quality gain outweighs the extra repetition. DataComp (Gadre et al., 2023) fixes for this reason: the pool and compute are the real limits, while filtered-set size is a choice. For a multi-source corpus with domains , a mixture a weight vector with and , giving the sampling probability of each domain sets the domain proportions. A proxy is a smaller or shorter run used only to pick data for the full-size target.
Sorscher et al. (2022) solve the pruning trade-off exactly for a perceptron. Inputs are standard Gaussian with noiseless labels from a teacher a fixed unit vector drawn uniformly from the sphere that labels every input without noise. A student finds the maximum-margin separatorthe classifying every kept example with largest minimum margin , to which gradient descent on separable data converges of the kept set. A probe a vector at angle to the teacher, standing in for a briefly trained network that ranks examples by margin at angle to the teacher ranks the pool by margin, treating small margins as hard, and the filter keeps a fraction . With a perfect probe (), keeping the hardest examples beats random pruning when the pool has many examples per weight. On a small pool it loses to random pruning, and keeping the easiest examples does better. In the authors' reading, easy examples fix the boundary's coarse orientation while hard ones refine it. At any fixed kept fraction , keeping the hardest examples still leaves test error decaying as one over kept examples per weight once the pool is large. Shrinking as the pool grows makes fall exponentiallywhy: let be the log-volume per weight of students consistent with the kept data; at large data up to a constant, with a typical consistent student's error, and each kept example lowers by its information . Random points mostly agree with earlier ones, giving at kept examples per weight and . Shrinking with pool size keeps bounded away from zero (1 nat for a perfect probe), so falls at least as in kept examples per weight. That speedup demands a nearly exact probe. At angle , keeping less than a floor smallest useful kept fraction for a probe at angle , growing linearly in for small brings no further gain and restores power-law decay: at and at .
Deep networks show the same easy-to-hard switch, with smaller gains. On CIFAR-10 with EL2N scoresnorm of the error vector (softmax minus one-hot label) averaged over briefly trained probe networks (here 10 networks for 20 epochs); larger values mark harder examples (Paul et al., 2021), a ResNet-18 does better keeping easy examples on a small pool and flips to hard ones on a large pool. Across SVHN, CIFAR-10, and ImageNet, the best error at each pruned size falls faster than the power law of random subsets. On ImageNet with a ResNet-50 at 80% kept, memorization scoresincrease in how often a trained network predicts an example's label when it is included in training versus held out, estimated across random subsets (Feldman and Zhang, 2020) led ten tested metrics at 90.66% top-5 accuracy, against 89.88% for a random 80% and 90.85% on the full set.
Real web data breaks the perceptron's noise-free setting: many highest-loss examples are mislabeled or ambiguous rather than informative. RHO-LOSS (Mindermann et al., 2022) separates useful hard points from noise by subtracting the loss of a fixed reference modela model trained beforehand and never updated: on held-out training-distribution data in RHO-LOSS, on a small curated corpus from the base model in Rho-1, and on the default mixture at proxy size in DoReMi trained on a held-out split of the training distribution. Let be the current model's loss on example and the reference model's loss. Their difference is the excess losscurrent model loss minus reference model loss on the same example or token; Mindermann et al. call it reducible holdout lossAlready-learned points score low because is small, mislabeled points because both losses are high, and rare outliers because the reference fits them poorly too. RHO-LOSS feeds this score into online batch selectionpicking each training batch from a larger random candidate batch using scores from the current model (Loshchilov and Hutter, 2015), training on the top tenth of each ten-times-larger candidate batch. With 10% randomized labels on CIFAR-10, CIFAR-100, and CINIC-10, raw training-loss selection picked far more corrupted points than uniform sampling, while RHO-LOSS picked fewer. On Clothing-1Mabout one million web-scraped clothing images in 14 classes with noisy labels from surrounding text, an ImageNet-pretrained ResNet-50 reached 69% accuracy in 2 epochs versus 30 for uniform shuffling, and steps fell 18× averaged over five architectures. Counting both candidate forward passes and reference training, RHO-LOSS used 2.7× fewer FLOPs to match uniform training's best accuracy on Clothing-1M. On clean CIFAR-10, CIFAR-100, and CINIC-10, the step saving shrank to 1.4 to 2.6× (2 to 4 seeds). The method assumes more data than training will consume, so skipping points costs nothing.
Rho-1 (Lin et al., 2024) applies the same excess-loss subtraction per token. It starts from the base model, trains a reference model on a small curated corpus, and backpropagates next-token loss only on the 60 to 70% of tokens with highest excess loss. During continual pretrainingfurther next-token training of an already pretrained model on a new corpus of TinyLlama-1.1B on 15B tokens of OpenWebMathabout 14.7B tokens of math-related web pages extracted from Common Crawl, average few-shot accuracy across nine math benchmarks rose from 21.6% for standard training on the same tokens to 38.1%. That reference corpus sits close to the tests: 0.5B tokens of curated and GPT-generated solutions, including sets built from the GSM8K and MATH training questions. Scoring tokens instead with a reference model trained on OpenWebMath itself, by its loss or entropy, lifted the average over six of those nine benchmarks from 21.5% to only 23.0 to 24.8%. On those same six benchmarks, the curated reference reached 44.1% (computed from the paper's table). Most of the headline gain therefore tracks the curated reference data, and no baseline trains on that data directly. All runs are single-seed continual pretraining up to 7B parameters and 80B tokens.
When filtering shrinks the pool, training must repeat kept tokens. Repetition holds most of its value for only a few epochs. Muennighoff et al. (2023) trained over 400 GPT-2-style models, from 10M to 9B parameters and up to 900B tokens, on subsets of C4a cleaned English web-text corpus from Common Crawl used to pretrain T5 repeated whole each epoch. Each comparison held parameters and total tokens fixed while varying unique tokens. At 4.2B parameters (five seeds), average accuracy across 19 downstream tasks did not separate from unique data up to four epochs. To extend Chinchilla's fitHoffmann et al.'s (2022) power-law fit of final loss in parameters and tokens, used to pick compute-optimal model size. Reading note: Chinchilla scaling to repeated data, they replace total tokens with an effective token count , where each extra pass loses a fixed fraction of the previous pass's value. For unique tokens in the training set, seen times so unique tokens repeated times (so epochs), writing for small givesFitting 182 runs yields : four epochs equal 3.7 epochs of unique data, sixteen equal 10.6, and infinite repetition caps at unique tokens (computed from the fit). Excess parameters beyond the compute-optimal count for follow the same decay with , losing value faster than repeated tokens. Under limited data, extra compute should therefore favor epochs over parameters. At FLOPs and 25B unique tokens, the fit's recommended model had 27% fewer parameters than Chinchilla's allocation and reached lower loss and stronger downstream scores. Almost all runs test one architecture on C4.
Filtering a pool and repeating the survivors helps mainly when the pool is noisy, and the best cutoff depends on how many passes the budget forces. In Muennighoff et al.'s runs, perplexity filtering helped on already-cleaned C4 only at 4.2B (one run) and deduplication did not help at all. Both helped on the noisier OSCAR corpus. DataComp tests web image-caption pairs from Common Crawla public archive of web pages released as periodic crawl snapshots since 2007, underlying most open pretraining corpora, training CLIPpaired image and text encoders trained so matched image-caption embeddings sit closer than mismatched pairs in the batch (Radford et al., 2021) models across four scales and scoring zero-shotevaluated without task fine-tuning, labeling an image by the closest class-name caption embedding accuracy across 38 tasks. At the large scale (ViT-B/16, 1.28B samples seen), keeping the top 30% by CLIP scorecosine similarity between a pretrained CLIP model's image and caption embeddings, here OpenAI CLIP ViT-L/14 reached 57.8% ImageNet zero-shot accuracy, against 51.6% for basic caption and size filters. Random subsets worsened monotonically as they shrank, whereas CLIP-filtered subsets peaked near 30%, where kept pairs repeat roughly three times. Goyal et al. (2024) swept budgets from 32M to 640M samples on DataComp's 128M medium pool with ViT-B/32. At 128M samples, the LAION filter (top 10%, CLIP score above 0.28) beat no filtering by 7.5 points across 18 zero-shot tasks. Past roughly 450M samples, where each kept pair had appeared about 32 times, it lost to the unfiltered pool.
Goyal et al. capture this crossover by fitting each quality bucket's zero-shot error after samples as . Its utility exponent of the bucket's error curve; larger means each fresh sample lowers error faster halves in magnitude every passes, giving after earlier passes. On buckets ranked by T-MARSa filter that masks in-image text before computing CLIP score so pairs matched only via printed text score low (Maini et al., 2023), the top 10% bucket has and the 30 to 40% bucket has . By its fifth pass, the top bucket therefore contributes less than the 30 to 40% bucket on its first pass (computed from the fit). Combining the buckets predicts that ImageNet zero-shot error is lowest with the top 10% up to about 100M samples seen, the top 20% up to 350M, and the top 30% beyond. Trained models match that schedule (one batch size, single seeds). Text filters shrink pools in the same way, leaving 3.8T tokens in DCLM-Baseline and 1.3T in FineWeb-Edu, so large token budgets face the same trade-off between strict filtering and repetition.
Learned filters beat hand-written heuristics across the corpus benchmarks, and the reference they train on governs what they keep. DCLM (Li et al., 2024) tests language-model data on a 240T-token web pool across scales from 412M parameters on 8.2B tokens to 6.9B on 276B tokens. Those scales run at 20 tokens per parameter (“1x”, near the compute-optimal ratiotokens per parameter minimizing loss at fixed compute. Reading note: Chinchilla scaling) or 40 (“2x”). At 1B scale, the heuristic pipeline of RefinedWeba Common Crawl corpus built with careful text extraction, length/repetition/stop-word heuristics, and fuzzy plus exact-substring deduplication (Penedo et al., 2023) scored 27.5 on COREDCLM's average over 22 low-variance few-shot tasks, each rescaled so 0 is chance and 1 is perfect. Seven model-based filters added on top ranged from 26.1 to 30.2, led by a fastTextlinear classifier over averaged word and word-pair embeddings (Joulin et al., 2017), fast enough to score a full web crawl classifier. At 7B-1x, DCLM held the 200k RefinedWeb negatives and 10% cutoff fixed and varied only the 200k positives. Positives from OpenHermes 2.5a public collection of instruction-response pairs, mostly model-generated plus questions and top-voted answers from r/ExplainLikeImFivea question-and-answer forum paired by DCLM using each question and its highest-voted answer (ELI5) reached 41.0 CORE. A GPT-3-style mix (Wikipedia, OpenWebText2, books) scored 37.5, and Wikipedia alone scored 35.7. At the higher of two learning rates, the OpenHermes-plus-ELI5 filter lifted 5-shot MMLU57-subject multiple-choice exam and textbook benchmark (Hendrycks et al., 2021); chance is 25% from 25.5% (chance) to 38.3% (one run each). Agreement with human quality ratings did not predict training value. On 499 documents labeled by sixteen AI graduate students and professors, fastText filters several CORE points apart matched human labels equally well. AskLLMprompting an instruction-tuned model (here Mistral-7B-Instruct) on whether a document suits pretraining and scoring by the probability of yes matched those ratings best yet produced one of the weaker datasets.
FineWeb-Edu (Penedo et al., 2024) replaces a positive document set with a written rubric. Llama-3-70B-Instruct rated 460k web pages from 0 to 5 for educational usefulness from primary to grade school. A linear regressor over a frozen embedding model then scored all of FineWeb, and pages scoring 3 or higher became FineWeb-Edu. On FineWeb's 1.71B model trained for 350B tokens (whole-answer scoring), FineWeb-Edu lifted MMLU from 33% to 37% and ARCgrade-school multiple-choice science questions (Clark et al., 2018) from 46% to 57% over FineWeb. The kept corpus shifts toward education and history as the rubric asks, and the FineWeb-Edu model has higher perplexity than FineWeb on broad web text and forums.
phi-1 (Gunasekar et al., 2023) applies rubric filtering to code and adds synthetic textbooks. GPT-4 rated roughly 100k Python files for their educational value to a student learning basic coding. A random forest on pretrained CodeGen embeddings then filtered 35B tokens from The Stackpermissively licensed GitHub source code (Kocetkov et al., 2022); phi-1 uses deduplicated Python files and StackOverflow down to about 6B. Under 1B tokens of GPT-3.5 Python textbooks completed the pretraining set. At 350M parameters, the filtered code alone reached 17.7% pass@1 on HumanEval164 Python functions given by signature and docstring, checked by unit tests (Chen et al., 2021); pass@1 is single-sample solve rate, whereas unfiltered code plateaued at 12.2% even after 200B tokens. At 1.3B, the base model reached 29% in 51B tokens against 17% in 76B tokens of unfiltered code. Fine-tuning on GPT-3.5 exercises then lifted HumanEval to 50.6%, with no matched baseline for that stage. Contamination checks cover only the fine-tuning data.
Deduplicating across all web crawls hurt FineWeb relative to deduplicating each crawl separately. FineWeb clusters near-duplicates with MinHashestimates Jaccard similarity of word 5-gram sets from minimum-hash agreement; 112 hashes split into 14 buckets of 8 flag a pair when any bucket matches, with probability (56% at , 77% at 0.75, 98.8% at 0.85) and keeps one document per cluster. Global MinHash across 96 crawls, run newest to oldest, stripped up to 90% of the oldest crawls and shrank the corpus to 4T tokens. A 1.71B model trained on 350B of those tokens barely beat no deduplication. Because newer crawls ran first, old-crawl survivors were pages never recrawled later, heavy with ads, keyword lists, and broken formatting. In crawl 2013-48, those survivors trained a worse model than the removed 90% deduplicated among themselves. Per-crawl deduplication kept 20T tokens and matched RefinedWeb. The authors hypothesize that deduplication pays off mainly by cutting massive clusters of hundreds of thousands of copies repeated in every crawl, while removing clusters smaller than the crawl count can hurt. DCLM points the same way: DCLM-Baseline was deduplicated in 100 separate shards, and global MinHash would still remove 85% of it with no evidence that the remaining duplicates hurt.
Domain proportions also move performance at fixed compute. Across 64 random mixtures of the Pilean open 800GB English corpus of 22 domains (Gao et al., 2020) whose default weights multiply domain sizes by hand-set pass counts, 1B models trained on 25B tokens ranged from 43.7 to 47.9 average score over thirteen benchmarks (Liu et al., 2025). Three methods pick domain weights with proxy runs, starting with DoReMi (Xie et al., 2023), which reuses excess loss. DoReMi first trains a reference model of the proxy's size on default weights, then trains a 280M proxy under Group DROgroup distributionally robust optimization (Sagawa et al., 2020), minimizing worst-case group loss by playing domain weights against model updates. At each step, exponentiated-gradientat step , with and domain 's batch excess loss per token (each token's excess clipped at zero), mixed with uniform weights at ascent raises each domain's weight using its per-token excess loss clipped at zero. DoReMi then passes the time-averaged weights to the target. Weight flows toward domains the reference learned that the proxy has not yet mastered, ignoring text already easy or hard for both. At 280M, weighting by raw proxy loss gave 2.62 mean log-perplexity across the 22 domains, worse than default weights at 2.32, while DoReMi reached 2.13. On an 8B target trained for 105B Pile tokens, DoReMi lifted one-shot exact match across five generative tasks by 6.5 points (20.03 to 26.56). It passed the baseline's final score at 75k of 200k steps and lowered log-perplexity on all 22 domains, including downweighted ones. On GLaMthe corpus behind GLaM and PaLM (six domains in DoReMi's table), whose weights were tuned on per-domain downstream scores and domain sizes's corpus, one round matched uniform weights and a second matched GLaM's downstream-tuned weights.
A second family fits validation loss directly as a function of the mixture weights. Data mixing laws (Ye et al., 2025) model each validation domain's loss as a floor plus the exponential of a linear function of , whose coefficients capture cross-domain transfer. The authors train 70M to 410M proxies, extrapolate each mixture's loss to target size and length with power laws in steps and parameters, and then pick . On RedPajamaan open 7-domain reproduction of LLaMA's corpus (CommonCrawl, C4, GitHub, books, ArXiv, Wikipedia, StackExchange) using LLaMA's default weights, their chosen mixture let a 1B model trained for 100B tokens match default weights' final Pile validation loss in 73% of the tokens. Those fitting runs cost about 5.7 times the 1B target (computed here from stated sizes; 4.5 times using non-embedding parameter counts).
RegMix (Liu et al., 2025) drops scaling laws and fits a regression directly on tiny proxies. It trains 512 models with 1M non-embedding parametersparameters outside the token-embedding table; at 50k vocabulary and width 256, embeddings add about 13M parameters for 1B tokens each on random mixtures of 17 Pile domains sampled around token shares. A LightGBMgradient-boosted decision-tree ensemble (Ke et al., 2017), here 1,000 trees mapping mixture weights to proxy loss regressor predicts validation loss on Pile-CCthe Pile's filtered Common Crawl web-text domain, and RegMix averages the top 100 ranked mixtures for the target. Those proxies cost about 2% of one 1B run, against 8% of DoReMi's 8B run for DoReMi's proxies. The chosen mixture lifted 1B models on 25B tokens from 45.1 (Pile default) to 47.3 over fourteen benchmarks, and a 7B model on 100B tokens from 54.5 to 56.5 over thirteen.
Across methods, the chosen mixture follows the validation target. On the Pile, DoReMi raised Pile-CC from 0.11 to 0.61 and RegMix put 0.87 on it. RegMix chose Pile-CC validation loss because, across random 1B models, it correlated more strongly with downstream tasks than any other domain's loss. The matched control is training on Pile-CC alone. At 1B, Pile-CC alone averaged 46.8, tying DoReMi and trailing RegMix by 0.5 points. In a five-run zero-shot check it trailed RegMix by 0.3 (41.2 ± 0.3 versus 41.5 ± 0.2). Giving web text its share accounts for almost all the gain over default Pile weights; mixture search adds 0.3 to 0.5 points, roughly the run-to-run spread. A different validation target pushes the other way. To minimize Pile validation loss on RedPajama, Ye et al. cut web text (CommonCrawl and C4) from 0.82 to 0.375. The shift favored ArXiv, GitHub, and StackExchange, matching the Pile's heavier academic and code share. At DCLM's 1B scale, mixing Wikipedia, books, ArXiv, GitHub, and StackExchange at Llama 1 proportions into C4 or RefinedWeb added 1.4 to 2.2 CORE points. Adding the same mix to strongly filtered DCLM-Baseline cost 1.2 points.
Both corpus benchmarks and mixture methods rely on small proxies, and proxy reliability depends on what is being chosen. Whole-dataset rankings transferred well across scale. Across ten datasets, DCLM's CORE scores at 400M, 1B, and 3B correlate with 7B-1x at , 0.96, and 0.98. That ordering also held across changes in learning rate, weight decay, and architecture. Deduplication, by contrast, cannot be judged at small scale because small samples rarely repeat. In FineWeb's simulated worst case, where every crawl copies every other, a random 1B-token sample held almost no duplicate documents. FineWeb therefore had to test deduplication at 350B tokens.
Domain weights carried less reliably across scale. DoReMi proxies of 70M, 150M, and 1B parameters lifted the 8B Pile target by only 1.1, 2.5, and 2.3 points, under half the 280M proxy's gain. The 1B proxy put peak weight on OpenWebText2 (0.33) instead of Pile-CC, and picking the best proxy size required an 8B target run per proxy. Across 20 mixtures trained at four sizes from 70M to 410M, Ye et al. found that at most 10 kept the same ordering at every size, which motivated their loss extrapolation. RegMix saw higher stability. Across 64 random mixtures, Spearman rank correlation between 1M-parameter proxies on 1B tokens and 1B-parameter targets on 25B tokens reached 0.97. At fixed proxy compute, more short runs also beat fewer long ones: 512 runs on 0.2B tokens beat 128 on 0.8B. Even so, high rank correlation across widely spread random mixtures can coexist with reordering among the near-best mixtures where the final pick sits (an inference here; neither paper tests it).
DataComp, DCLM, and FineWeb provide clean internal comparisons, yet say less about general value. Each benchmark chose filters by the scores it reports, and its references resemble those tests. FineWeb-Edu's school-knowledge rubric pays off most on exam-derived MMLU, ARC, and OpenBookQA. DCLM's positive examples are question-answer pairs that match the shape of its few-shot multiple-choice benchmarks, a resemblance the paper does not test. At DataComp's largest scale, adding an ImageNet-cluster filter on top of CLIP score raised ImageNet accuracy by 2.8 points and the 38-task average by 1.3. Removing copied MMLU and HellaSwag items from DCLM-Baseline left 7B-2x MMLU at 52.7% versus 51.8%, ruling out direct test copies. Decontamination, however, cannot catch filters that select test-like style. Evaluation harnesses shift rankings too. On 0-shot MMLU at 7B-2x, DCLM-Baseline beats FineWeb-Edu by about 10 points when scoring answer letters (DCLM's code), yet ties it when scoring whole answers (FineWeb's code). Apart from FineWeb's two seeds per data version, most dataset and mixture comparisons rely on single runs, and matched comparisons stop at 7B to 9B parameters.
Consequences and limits. Start by comparing the training budget with the unique data. Abundant noisy pools reward aggressive selection, either through excess loss or by keeping roughly the top 10% under a learned classifier. Once training passes over the kept set more than about four times, looser filters that preserve unique data beat heavier repetition. At fixed unique data, extra compute should go more to epochs than to parameters. On small clean datasets, theory favors keeping easy examples or skipping pruning. Every reference set, rubric, or validation loss steers capabilities: DCLM-Baseline alone trains models weak at code and math. Pick the reference to match the goal, and compare any searched mixture against its target-like domain alone. Whole datasets can be screened at 400M to 1B parameters (around 20 tokens per parameter). Deduplication requires hundreds of billions of tokens, and proxy-chosen mixtures need validation at target scale. The pruning theory rests on a perceptron backed by image classification. Whether these gains hold at larger scale, or whether upweighting a small domain still helps once it must be heavily repeated, remains untested.
Terms
- Fixed budget
- a smaller filtered set is seen times; a filter must add more quality than the repetition costs
- Pruning switch
- keep easy examples when the pool is small per weight, hard ones when it is large (perceptron theory, ResNet-18 on CIFAR-10)
- Imperfect probe
- no gain below , 24% at 10°, 46% at 20°; the power law returns
- Excess loss
- : skips learned, mislabeled and atypical data; per example (RHO-LOSS), per token (Rho-1), per domain with each token's excess clipped at zero (DoReMi)
- RHO-LOSS
- Clothing-1M: 18× fewer steps (five architectures), 2.7× fewer FLOPs for a ResNet-50, reference model included
- Rho-1 control
- curated reference: 21.5% to 44.1% on six math tasks; self-trained reference: to 23.0 to 24.8%
- Effective data
- , : 4 epochs worth 3.7, 16 worth 10.6, cap
- Compute-aware filter
- ; DataComp medium: top 10% best below 100M samples, top 20% to 350M, top 30% beyond
- Reference set
- DCLM fastText, same negatives and cutoff: instruction data and ELI5 41.0 CORE, Wikipedia 35.7 at 7B-1x
- Human judgment
- agreement with annotators' quality labels did not predict a filter's training value
- Deduplication
- global left the never-recrawled pages of old crawls and barely helped; per-crawl matched RefinedWeb
- DoReMi
- 280M proxies, 8B target on the Pile: one-shot exact match 20.03 to 26.56; gain 1.1 to 6.5 points depending on proxy size
- Web-text control
- Pile-CC alone 46.8 against 47.3 for RegMix and 45.1 for the default weights at 1B (0.3 gap over five runs)
- Proxy transfer
- dataset rankings: r 0.84 to 0.98 from 400M to 3B against 7B (DCLM); mixture rankings: Spearman 0.97 (RegMix), largest stable set 10 of 20 (Ye et al.)
- Limits
- filters chosen on the reported benchmarks, references that resemble them, at most 7B to 9B, mostly single runs
Sources
- Ben Sorscher, Robert Geirhos, Shashank Shekhar, Surya Ganguli, and Ari S. Morcos. Beyond neural scaling laws: beating power law scaling via data pruning. NeurIPS, 2022.
- Sören Mindermann et al. Prioritized Training on Points that are Learnable, Worth Learning, and Not Yet Learnt. ICML, 2022.
- Zhenghao Lin et al. Not All Tokens Are What You Need for Pretraining. NeurIPS, 2024.
- Niklas Muennighoff et al. Scaling Data-Constrained Language Models. NeurIPS, 2023.
- Sachin Goyal et al. Scaling Laws for Data Filtering--Data Curation cannot be Compute Agnostic. CVPR, 2024.
- Sang Michael Xie, Hieu Pham, Xuanyi Dong, Nan Du, Hanxiao Liu, Yifeng Lu, Percy Liang, Quoc V. Le, Tengyu Ma, and Adams Wei Yu. DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining. NeurIPS, 2023.
- Jiasheng Ye, Peiju Liu, Tianxiang Sun, Jun Zhan, Yunhua Zhou, and Xipeng Qiu. Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performance. ICLR, 2025.
- Qian Liu, Xiaosen Zheng, Niklas Muennighoff, Guangtao Zeng, Longxu Dou, Tianyu Pang, Jing Jiang, and Min Lin. RegMix: Data Mixture as Regression for Language Model Pre-training. ICLR, 2025.
- Samir Yitzhak Gadre et al. DataComp: In Search of the Next Generation of Multimodal Datasets. NeurIPS Datasets and Benchmarks Track, 2023.
- Jeffrey Li et al. DataComp-LM: In Search of the Next Generation of Training Sets for Language Models. NeurIPS Datasets and Benchmarks Track, 2024.
- Guilherme Penedo, Hynek Kydlíček, Loubna Ben allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf. The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. NeurIPS Datasets and Benchmarks Track, 2024.
- Suriya Gunasekar et al. Textbooks Are All You Need. arXiv preprint, 2023.
Connected notes
- The information exponentHigh-dimensional SGD · Abrupt transitions at a critical ratio
Online SGD's overlap with a hidden direction grows at the rate signal/noise, which is tiny near a random start, so escaping takes about samples for information exponent (the order of the first nonzero Hermite term) and almost all the samples are used up before the overlap grows.
- Maximal update parametrizationLazy training and feature learning · Predicting large runs from small ones
Under P the optimal learning rate, initialization scale and multipliers are nearly stable in width, so they can be tuned on a small proxy and copied, and a 40M proxy beat the published 6.7B GPT-3 at a tuning cost of 7% of its pretraining cost.
- Stein's paradox and the James-Stein estimatorBenign overfitting · Comparing noisy runs is an estimation problem
With effects spread around a common mean, the posterior mean pulls each raw estimate toward that mean, and Lindley's version of James-Stein estimates both the mean and the amount of pulling from the spread of the estimates themselves. It beats the raw estimates in total squared error for every configuration of the once there are four or more, and in Efron's batting example it cuts the total prediction error to 0.28 of that of the raw batting averages.
- In-context learning as implicit Bayesian inferenceIn-context learning · Abrupt transitions at a critical ratio
At dimension 8, below about pretraining tasks more data per task pulls the transformer toward the Bayes rule for the tasks it saw, and above toward ridge, with the threshold growing roughly linearly in dimension.