Model-based quality filtering on raw Common Crawl HTML outweighs both source mixing and deduplication tweaks, pushing a standard 7B dense Transformer trained on 2.6T tokens from DCLM-Baseline to 63.7% 5-shot MMLU (64% rounded). Across 416 controlled experiments built on a 240T-token Common Crawl pool (DCLM-Pool) and 53 downstream tasks, DataComp for Language Models (DCLM) isolates each curation step under fixed OpenLM hyperparameters so teams can tell dataset gains apart from architecture or schedule changes.
Most public model comparisons confound data curation with training recipes: Llama, Mistral, and Gemma hide their corpora while changing tokenizers, learning rates, and token counts together. DCLM standardizes five compute scales from 400M-1x (8.2B tokens, 26 H100 hours) to 7B-2x (276B tokens, 7,300 H100 hours), and verifies that small-scale CORE rankings (22 low-variance tasks) correlate tightly with 7B-1x outcomes (r = 0.838 at 400M, r = 0.956 at 1B, r = 0.982 at 3B).
- Beats open-data SOTA with 40% less compute: at 2.6T tokens (plus StarCoder and ProofPile2), the 7B model reaches 63.7% MMLU, beating MAP-Neo-7B (57.1% at 4.5T tokens) by
+6.6ppand approaching Llama-3-8B (66.2% at 15T tokens, 6.6x more compute). - Re-extracting HTML beats WET files: pulling text directly with
resiliparse(24.1CORE) ortrafilatura(24.5CORE) beats Common Crawl’s WET files (20.7CORE) by over 3.4 points at1B-1x, withresiliparserunning 8x faster. - Simple
fastTextbeats LLM judges: scoring documents with a binaryfastTextclassifier trained on OpenHermes 2.5 plus topr/ExplainLikeImFiveposts (OH-2.5 + ELI5, top 10%) hits 30.2 CORE at1B-1x, beating AskLLM (28.6), CCNet perplexity (29.0), and Top-k logits (29.2). - Human intuition misfires on data quality: across 499 documents labeled by 16 AI researchers,
AskLLMmatched human judgments best (~82%ROC-AUC) yet trained worse models (~28.5CORE) thanfastText(~73%ROC-AUC, over31CORE).
Building DCLM-Baseline step by step
Starting from Common Crawl HTML, the pipeline drops roughly 98.6% of raw documents before pretraining begins. First, resiliparse extracts clean prose without the menu chrome that plagues Common Crawl’s pre-extracted WET files, followed by RefinedWeb-style heuristic filters (language, URL blocklists, length, repetition, and symbol ratios), which leave 50.8% of documents.
Second, instead of running global MinHash plus suffix-array substring deduplication, DCLM adapts the Big Friendly Filter (BFF), a paragraph-and-document Bloom filter using 13-grams, a 0.01 false-positive rate, and a 0.8 overlap threshold across 100 shards (~700GB each). At 1B-1x, BFF scores 26.8 CORE (matching Exact + MinHash + Suffix Array’s 26.8) while cutting the pool to 13.7% of original documents and scaling cleanly beyond 10TB.
Third, a lightweight fastText bigram classifier trained on 400k positive (OH-2.5 + ELI5) and negative (RefinedWeb) documents keeps only the top 10% (1.4% of raw docs), yielding the 3.8T-token DCLM-Baseline.
Key findings that broke conventional wisdom
Two results in DCLM challenge standard pretraining recipes. First, mixing in “curated” sources can hurt: adding 33% RedPajama extras (Wikipedia, Books, StackExchange, arXiv, GitHub) boosts weaker pools like C4 (+2.2 CORE) and RefinedWeb (+1.4 CORE) at 1B-1x, but drops DCLM-Baseline from 31.1 to 29.9 CORE (-1.2), even when those external sources are filtered by the exact same fastText classifier (31.7 down to 30.0 to 31.5).
Second, test-set contamination is not driving the gain. Stripping detected MMLU and HellaSwag overlaps from DCLM-Baseline at 7B-2x leaves accuracy intact or slightly higher (51.8% to 52.7% MMLU; 77.9% to 78.4% HellaSwag).
Caveats and builder takeaway
Three caveats matter for practitioners comparing DCLM-Baseline with peers like FineWeb or Nemotron-CC. First, OH-2.5 + ELI5 selects for English reasoning and prose; by itself, DCLM-Baseline is weak on code and math, requiring the authors to mix StarCoder and ProofPile2 for their 2.6T flagship run. Second, keeping only 1.4% of raw documents limits unique token headroom for multi-trillion-token runs unless paired with synthetic rephrasing, and 100-shard BFF leaves 85% global MinHash fuzzy duplicates untouched. Third, large-scale runs are single-seed and tied to the GPT-NeoX tokenizer.
For builders curating a web corpus, start by fixing HTML extraction (resiliparse over WET) and iterate quickly on cheap fastText positive/negative reference sets at 400M to 1B scale rather than trusting human spot-checks or expensive LLM filters.


