Sam Babichenko

Reading notes / Training data

Choosing pretraining data

Sorscher et al., 2022; Muennighoff et al., 2023; Xie et al., 2023; Li et al., 2024

Data and budget
PPpool of candidate examples
D⊆PD\subseteq Pthe training set chosen
zzone example: an image-caption pair, a document or a token
q(z)q(z)a filter's score; the filter keeps a top fraction
BBexamples or tokens seen in training, fixed per scale
B/∣D∣B/|D|passes over DD the budget forces
NNparameters; for the perceptron, also the input dimension
Di,D_i, mmdomain ii of the corpus and the number of domains
α\alphamixture: domain weights αi≥0\alpha_i\ge0 with ∑iαi=1\sum_i\alpha_i=1
Perceptron theory
x,x, yya standard Gaussian input in RN\mathbb R^N and its label sign⁡(w⋆⋅x)\operatorname{sign}(w_\star\cdot x)
w⋆,w_\star, wwteacher weights and student weights (the maximum-margin separator of the kept data)
wprobe,w_{\rm probe}, ϕ\phiprobe weights that rank examples by margin, and their angle to the teacher
fffraction of the pool kept
fmin⁡(ϕ)f_{\min}(\phi)smallest useful fraction kept for a probe at angle ϕ\phi
ε\varepsilontest error of the student
ρ,\rho, S,S, IIkept examples per weight, log-volume of consistent students, information per example (gloss only)
Scores
θ\thetaparameters of the model being trained (or of a proxy)
ℓθ(z),\ell_\theta(z), ℓref(z)\ell_{\rm ref}(z)loss of the trained model and of the reference model on zz
ℓθ(z)−ℓref(z)\ell_\theta(z)-\ell_{\rm ref}(z)excess loss
λt,i,\lambda_{t,i}, η\etaDoReMi's batch excess loss per token of domain ii at step tt, and its step size (gloss only)
Repetition and filtering
UUunique tokens
RRrepetitions, epochs minus one, so B=U(1+R)B=U(1+R)
B′B'effective tokens, the unique-token count worth the same
δ\deltafraction of value lost per repetition
R∗R^*(1−δ)/δ(1-\delta)/\delta, the repetitions after which a pass keeps 1/e1/e of its value
a,a, ddscale and irreducible error in a bucket's error aBb+daB^b+d
bbutility of a data bucket, the exponent of its error curve
τ\taupasses over which ∣b∣|b| halves
jjnumber of earlier passes
Deduplication
JJJaccard similarity of two documents' sets of word 5-grams; FineWeb writes ss
Constants
R∗≈15.4,R^*\approx15.4, 5.35.3Muennighoff et al.'s fitted values for repeated data and for excess parameters
b=−0.18,b=-0.18, τ=4.36\tau=4.36Goyal et al.'s fit for the top 10% T-MARS bucket
b=−0.10,b=-0.10, τ=1.55\tau=1.55Goyal et al.'s fit for the 30 to 40% T-MARS bucket
fmin⁡=24%,f_{\min}=24\%, 46%46\%Sorscher et al.'s values at ϕ=10∘\phi=10^\circ and 20∘20^\circ
Paper symbols
θ,\theta, T,T, Jprobe,J_{\rm probe}, α\alphawhat Sorscher et al. write for ϕ\phi, w⋆w_\star, wprobew_{\rm probe} and ρ\rho
L[y∣x;θho]L[y\mid x;\theta_{\rm ho}]what Mindermann et al. write for ℓref(z)\ell_{\rm ref}(z), the irreducible loss
LΔ(xi)L_\Delta(x_i)what Lin et al. write for a token's excess loss
D,D, D′,D', UD,U_D, RD,R_D, RD∗R_D^*what Muennighoff et al. write for BB, B′B', UU, RR, R∗R^*
n,n, k,k, yywhat Goyal et al. write for BB, jj and the error
k,k, xxwhat Xie et al. write for mm and zz
n,n, xxwhat Liu et al. write for mm and α\alpha

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 parts 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 the candidate examples a selection rule may draw from, such as image-caption pairs or web documents, a model, its training recipe, and a total examples or tokens seen during training, held fixed across data choices at a given scale. A data choice picks a subset D⊆PD\subseteq P, a weighting of its parts, or both. Most filters assign each example z∈Pz\in P a score a classifier probability, rubric rating, similarity, or loss; the filter keeps examples above a percentile of qq over PP and keep a top fraction. With BB fixed, training visits a smaller subset B/∣D∣B/|D| times, so a filter wins only when its quality gain outweighs the extra repetition. DataComp (Gadre et al., 2023) fixes BB 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 D1,…,DmD_1,\dots,D_m, a a weight vector α=(α1,…,αm)\alpha=(\alpha_1,\dots,\alpha_m) with αi≥0\alpha_i\ge0 and ∑iαi=1\sum_i\alpha_i=1, 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 x∈RNx\in\mathbb R^N are standard Gaussian with noiseless labels y=sign⁡(w⋆⋅x)y=\operatorname{sign}(w_\star\cdot x) from a a fixed unit vector drawn uniformly from the sphere that labels every input without noise. A student w∈RNw\in\mathbb R^N finds the the ww classifying every kept example with largest minimum margin y w⋅x/∥w∥y\,w\cdot x/\|w\|, to which gradient descent on separable data converges of the kept set. A a vector at angle ϕ\phi to the teacher, standing in for a briefly trained network that ranks examples by margin ∣wprobe⋅x∣|w_{\rm probe}\cdot x| at angle ϕ\phi to the teacher ranks the pool by margin, treating small margins as hard, and the filter keeps a fraction ff. With a perfect probe (ϕ=0\phi=0), 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 ff, keeping the hardest examples still leaves test error ε\varepsilon decaying as one over kept examples per weight once the pool is large. Shrinking ff as the pool grows makes ε\varepsilon fall why: let SS be the log-volume per weight of students consistent with the kept data; at large data S≈ln⁡εS\approx\ln\varepsilon up to a constant, with ε\varepsilon a typical consistent student's error, and each kept example lowers SS by its information II. Random points mostly agree with earlier ones, giving I≈1/ρI\approx1/\rho at ρ\rho kept examples per weight and ε∝1/ρ\varepsilon\propto1/\rho. Shrinking ff with pool size keeps II bounded away from zero (1 nat for a perfect probe), so ε\varepsilon falls at least as e−ρe^{-\rho} in kept examples per weight. That speedup demands a nearly exact probe. At angle ϕ\phi, keeping less than a floor smallest useful kept fraction for a probe at angle ϕ\phi, growing linearly in ϕ\phi for small ϕ\phi brings no further gain and restores power-law decay: fmin⁡=24%f_{\min}=24\% at ϕ=10∘\phi=10^\circ and 46%46\% at 20∘20^\circ.

Deep networks show the same easy-to-hard switch, with smaller gains. On CIFAR-10 with norm 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, increase 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 a 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 ℓθ(z)\ell_\theta(z) be the current model's loss on example zz and ℓref(z)\ell_{\rm ref}(z) the reference model's loss. Their difference is the excess lossℓθ(z)−ℓref(z).\ell_\theta(z)-\ell_{\rm ref}(z).Already-learned points score low because ℓθ\ell_\theta 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 picking 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 about 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 further next-token training of an already pretrained model on a new corpus of TinyLlama-1.1B on 15B tokens of about 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 a 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 Hoffmann 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 BB with an effective token count B′B', where each extra pass loses a fixed fraction δ\delta of the previous pass's value. For unique tokens in the training set, seen 1+R1+R times so B=U(1+R)B=U(1+R) unique tokens repeated RR times (so 1+R1+R epochs), writing R∗=(1−δ)/δR^*=(1-\delta)/\delta for small δ\delta givesB′=U∑j=0R(1−δ)j≈U+UR∗(1−e−R/R∗).\begin{aligned}B'&=U\textstyle\sum_{j=0}^{R}(1-\delta)^j\\&\approx U+UR^*\big(1-e^{-R/R^*}\big).\end{aligned}Fitting 182 runs yields R∗≈15.4R^*\approx15.4: four epochs equal 3.7 epochs of unique data, sixteen equal 10.6, and infinite repetition caps at 16.4 U16.4\,U unique tokens (computed from the fit). Excess parameters beyond the compute-optimal count for UU follow the same decay with R∗≈5.3R^*\approx5.3, losing value faster than repeated tokens. Under limited data, extra compute should therefore favor epochs over parameters. At 9.3×10219.3\times10^{21} 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 a public archive of web pages released as periodic crawl snapshots since 2007, underlying most open pretraining corpora, training paired 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 evaluated 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 cosine 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 BB samples as aBb+daB^b+d. Its exponent of the bucket's error curve; larger ∣b∣|b| means each fresh sample lowers error faster halves in magnitude every τ\tau passes, giving bj+1=b⋅2−j/τb_{j+1}=b\cdot2^{-j/\tau} after jj earlier passes. On buckets ranked by a 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 b=−0.18, τ=4.36b=-0.18,\ \tau=4.36 and the 30 to 40% bucket has b=−0.10, τ=1.55b=-0.10,\ \tau=1.55. 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 tokens per parameter minimizing loss at fixed compute. Reading note: Chinchilla scaling) or 40 (“2x”). At 1B scale, the heuristic pipeline of a 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 DCLM'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 linear 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 a public collection of instruction-response pairs, mostly model-generated plus questions and top-voted answers from a 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 57-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. prompting 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 grade-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 permissively 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 164 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 estimates Jaccard similarity JJ 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 1−(1−J8)141-(1-J^8)^{14} (56% at J=0.7J=0.7, 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 an 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 distributionally robust optimization (Sagawa et al., 2020), minimizing worst-case group loss by playing domain weights against model updates. At each step, at step tt, αt,i∝αt−1,ieηλt,i\alpha_{t,i}\propto\alpha_{t-1,i}e^{\eta\lambda_{t,i}} with η=1\eta=1 and λt,i\lambda_{t,i} domain ii's batch excess loss per token (each token's excess clipped at zero), mixed with uniform weights at 10−310^{-3} 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 the 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 α\alpha, 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 α\alpha. On an 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 parameters 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 gradient-boosted decision-tree ensemble (Ke et al., 2017), here 1,000 trees mapping mixture weights to proxy loss regressor predicts validation loss on the 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 r=0.84r=0.84, 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 B/∣D∣B/|D| 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 fmin⁡(ϕ)f_{\min}(\phi), 24% at 10°, 46% at 20°; the power law returns
Excess loss
ℓθ(z)−ℓref(z)\ell_\theta(z)-\ell_{\rm ref}(z): 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
B′≈U+UR∗(1−e−R/R∗)B'\approx U+UR^*(1-e^{-R/R^*}), R∗≈15.4R^*\approx15.4: 4 epochs worth 3.7, 16 worth 10.6, cap 16.4 U16.4\,U
Compute-aware filter
bj+1=b⋅2−j/τb_{j+1}=b\cdot2^{-j/\tau}; 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

Connected notes

  • Online SGD's overlap with a hidden direction grows at the rate signal2^2/noise, which is tiny near a random start, so escaping takes about dk⋆−1d^{k^\star-1} samples for information exponent k⋆k^\star (the order of the first nonzero Hermite term) and almost all the samples are used up before the overlap grows.

  • Under μ\muP 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.

  • With effects θi\theta_i 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 θi\theta_i 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.

  • At dimension 8, below about 2142^{14} pretraining tasks more data per task pulls the transformer toward the Bayes rule for the tasks it saw, and above 2152^{15} toward ridge, with the threshold growing roughly linearly in dimension.

Threads