DataComp-LM: In search of the next generation of training sets for language models
TL;DR. DCLM makes “what data should we train on?” a controlled experiment. Participants start from the same 240T-token Common Crawl pool (DCLM-Pool), train with a fixed recipe at one of five scales (400M to 7B parameters), and are scored on 53 tasks. The authors use this to compare extraction, deduplication, filtering and mixing choices. A simple bigram fastText classifier, trained to separate OpenHermes-2.5 instructions and ELI5 answers from random web pages, keeps the top 10% and produces DCLM-Baseline (3.8T tokens). A 7B model trained on it reaches 64% MMLU.
Why it matters now. Data quality is now the main lever in pretraining, but most comparisons confound data with model, recipe and compute. DCLM holds everything but the data fixed. For an IR researcher, the core move is familiar: data selection is one-query ranking, and the main finding (agreement with human labels does not predict usefulness) is a warning about how we validate LLM relevance judges.
Key idea
Section titled “Key idea”The benchmark. DCLM-Pool contains about 200B documents (240T GPT-NeoX tokens) extracted with resiliparse from Common Crawl up to 2022. Each scale fixes model size, tokens and starting-pool size:
| Scale | Params | Tokens | FLOPs | Pool |
|---|---|---|---|---|
| 400M-1x | 412M | 8.2B | 2.0e19 | 469B |
| 1B-1x | 1.4B | 28.8B | 2.4e20 | 1.64T |
| 3B-1x | 2.8B | 55.9B | 9.4e20 | 3.18T |
| 7B-1x | 6.9B | 138B | 5.7e21 | 7.85T |
| 7B-2x | 6.9B | 276B | 1.1e22 | 15.7T |
The “1x” tokens are about Chinchilla-optimal (, about 20 tokens per parameter). Results are reported as Core (centred accuracy on 22 low-variance tasks) and Extended (all 53).
The filter as a ranker. Train a fastText classifier (unigrams plus bigrams) on about 400k documents: positives from OH-2.5 and top ELI5 posts, negatives sampled from a RefinedWeb-style reproduction. Score every document and keep the top 10%:
where is the 90th percentile of scores. This is a one-query relevance model whose “query” is the positive set.
Key results
Section titled “Key results”- Extraction (Table 3). Resiliparse and trafilatura beat WET text by at least 2.5 Core at 1B-1x; resiliparse is 8× faster.
- Deduplication. MinHash and a near-duplicate Bloom filter are within 0.2 Core at 7B-2x; the Bloom filter scales more easily beyond 10TB.
- Filters (Table 4, 1B-1x). Core for RefinedWeb reproduction 27.5, PageRank 26.1, SemDedup 27.1, BGE-feature classifier 27.2, AskLLM 28.6, perplexity 29.0, top-k average logits 29.2, fastText OH-2.5 + ELI5 30.2.
- fastText ablations (Table 5, 7B-1x). Core 41.0 for OH-2.5 + ELI5 at top-10%, against 35.7 (Wikipedia), 34.7 (OpenWebText2), 37.5 (GPT-3-style); thresholds of 15% and 20% give 39.8 and 38.7.
- Mixing (Table 6, 1B-1x). Adding curated sources raises C4 by 2.2 Core but lowers DCLM-Baseline by 1.2.
- Final model. DCLM-Baseline plus StarCoder and ProofPile2 (4.1T tokens); 7B trained on 2.5T tokens, with two cool-downs on a math-heavier mix averaged as a model soup, then 100B tokens of context extension to 8k. It reaches 64% MMLU 5-shot, 6.6 points above MAP-Neo with 40% less compute, and is comparable to Mistral-7B-v0.3 (63%) and Llama 3 8B (66%) with 6.6× less compute than Llama 3 8B.
- Human judgment (App. N). On 499 documents, AskLLM agrees best with humans (about 82% ROC-AUC) but gives about 28.5 Core; fastText filters at about 73% reach over 31.
Limitations & open questions
Section titled “Limitations & open questions”- Benchmark-shaped positives. Instruction and ELI5 positives resemble the style of many evaluation tasks. The paper decontaminates MMLU and HellaSwag, but a filter that selects benchmark-like text remains a concern.
- Single fixed recipe. Hyperparameters are fixed per scale; a dataset might need a different recipe to show its value. The paper checks a few architecture and hyperparameter variants.
- Short context and English. Training uses 2,048-token context, mostly English web data.
- Why fastText wins is unexplained. The human-label study shows our notion of “quality” is not what helps training, but does not say what does.
Connections
Section titled “Connections”- FineWeb — a parallel effort; FineWeb-Edu uses LLM labels distilled into an embedding classifier instead of fastText on reference data.
- Dolma — rule-based filtering with similar Bloom-filter deduplication.
- Data-constrained scaling — the cost of the repetition a strict filter might force.
- Over-training scaling laws — from the same group; small-model results that transfer to large ones.
- UMBRELA — LLM relevance judges validated by human agreement, the same question Appendix N raises.
- Contamination — what to check when a filter favours benchmark-like data.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
The 7B-2x scale trains a 6.9B model on 276B tokens with a 15.7T-token starting pool, and the 1B-1x scale trains 1.4B on 28.8B tokens with a 1.64T pool. Check the training FLOPs with C ≈ 6ND, compute the pool-to-training-token ratio, and work out how many epochs you would need if your filter kept 10% or 1% of the pool.
What a strong answer covers
- 7B-2x: 6·6.9e9·276e9 ≈ 1.1×10²² FLOPs. 1B-1x: 6·1.4e9·28.8e9 ≈ 2.4×10²⁰. Both match the paper's table.
- Both scales give a pool about 57 times the training tokens (15.7T/276B and 1.64T/28.8B).
- Keeping 10% leaves about 5.7× the training budget, so no repetition is needed. Keeping 1% leaves about 0.57×, so about 1.8 epochs.
- The fixed ratio means a filter can be strict without forcing heavy repetition, and the comparison stays fair across scales. Data-constrained scaling suggests a few epochs would cost little anyway.
- Mechanism
The best filter is a bigram fastText classifier whose positives are OpenHermes-2.5 instructions and top r/ExplainLikeImFive posts and whose negatives are random pool documents. Explain why this cheap model can beat perplexity filtering, a BGE-embedding classifier and AskLLM, using the idea that the positives define a target distribution.
What a strong answer covers
- The classifier learns what separates the reference set from typical web text. Instruction and ELI5 data are question-driven, explanatory and well-formed, which is close to what benchmarks and users ask for.
- Perplexity filtering only rewards text that resembles the reference LM's training data (here Wikipedia, books, peS2o), which favours a style rather than usefulness.
- AskLLM asks an LM whether a page is helpful. It agrees well with humans but may reward surface quality that does not translate into training value.
- fastText is fast enough to score the whole pool and, with bigrams, captures short phrase patterns; the paper finds the choice of positives matters more than model capacity (3.5 Core points over conventional reference sets).
- What if…
At the 7B-1x scale, Table 5 compares the fastText positive set and the keep-threshold. Summarise what changing each did, and use Table 6 to explain why mixing in Wikipedia, books, Stack Exchange, arXiv and GitHub helped C4 but hurt DCLM-Baseline.
What a strong answer covers
- Positives at top-10%: OH-2.5 + ELI5 41.0 Core, against 37.5 for a GPT-3-style mix, 35.7 for Wikipedia and 34.7 for OpenWebText2.
- Threshold with OH-2.5 + ELI5: top-10% 41.0, top-15% 39.8, top-20% 38.7 Core; MMLU 29.2, 27.2 and 24.2. Stricter was better here.
- Mixing at 1B-1x (67% CC, 33% curated sources): C4 23.7 → 25.9, RPJ-CC 24.0 → 25.7, RefinedWeb 25.1 → 26.5, but DCLM-Baseline 31.1 → 29.9.
- Curated sources add value when the web part is weak. A strong filter already selects similar content, so the mix only displaces better web documents.
- Critique
Appendix N shows that AskLLM agrees with human quality labels at about 82% ROC-AUC but trains worse models (about 28.5 Core), while fastText filters at about 73% AUC reach above 31. Relate this to IR evaluation, where we validate LLM relevance judges by agreement with human assessors, and say what the finding implies for how quality filters should be validated.
What a strong answer covers
- Setup: 499 documents, 16 graduate students and professors, three labels each, 71% average agreement, 281 documents with full agreement.
- Agreement with human labels did not predict training value; for some tasks the relation was even reversed.
- In IR, judge validation also uses agreement (kappa or system-ranking correlation), but the final use of qrels is to rank systems. A judge can agree with humans and still distort what we care about.
- Quality filters should be validated by the downstream outcome (train a small model and compare), with human agreement as at most a sanity check. This is the DCLM design.
- Caveat: 499 documents and a binary "good for pretraining" label is a small, coarse test, so the comparison may be noisy.
- Design
You want to pretrain a small LM tuned for retrieval-augmented question answering. Using DCLM's method, design a quality filter and a validation plan, including the choice of positives, threshold sweep, scale and the risk that the filter overfits to your evaluation.
What a strong answer covers
- Positives: high-quality question–answer and explanatory text in the target domain (for example accepted answers and well-cited passages); negatives: random pool documents.
- Classifier: bigram fastText for speed; also try an embedding classifier as a check.
- Validation: train 400M-1x or 1B-1x models for each candidate; DCLM reports Pearson r of 0.84 to 0.98 between small-scale and 7B-1x rankings, so small scales are informative.
- Threshold sweep (for example 5/10/15/20%) and an evaluation set that includes held-out tasks not similar to the positives, to detect benchmark overfitting.
- Decontaminate against the evaluation queries, since a filter that learns benchmark-like text may pull in test questions.