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.6pp and 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.1 CORE) or trafilatura (24.5 CORE) beats Common Crawl’s WET files (20.7 CORE) by over 3.4 points at 1B-1x, with resiliparse running 8x faster.
  • Simple fastText beats LLM judges: scoring documents with a binary fastText classifier trained on OpenHermes 2.5 plus top r/ExplainLikeImFive posts (OH-2.5 + ELI5, top 10%) hits 30.2 CORE at 1B-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, AskLLM matched human judgments best (~82% ROC-AUC) yet trained worse models (~28.5 CORE) than fastText (~73% ROC-AUC, over 31 CORE).
How DCLM-Baseline filters 240T crawl tokens down to 3.8T tokens (and 1B-1x CORE impact)
1. HTML extraction + heuristics
resiliparse + RefinedWeb rules (50.8% kept)
RefinedWeb reproduction baseline27.5 CORE
2. Bloom filter dedup (BFF)
13-gram, 0.01 FPR, 100 shards (13.7% kept)
Matches Exact+MinHash+SA within 0.2pp at 7B-2x26.8 CORE
3. fastText OH-2.5 + ELI5 (top 10%)
DCLM-Baseline = 1.4% of raw docs (3.8T tokens)
Best of 7 model-based quality filters30.2 CORE

Retention shares from raw documents; CORE scores at 1B-1x (28.8B tokens). Source: Li et al. (2024), Figure 4 and Tables 4, 17.

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.

Choice of positive reference set dominates 7B-1x filter performance
Classic web proxies

Top-10% fastText trained on OpenWebText2 (34.7 CORE, 25.0 MMLU) or Wikipedia (35.7 CORE, 27.0 MMLU) trails GPT-3 Approx (37.5 CORE).

Instruction + ELI5 proxy

Top-10% OH-2.5 + ELI5 jumps to 41.0 CORE and 29.2 MMLU at 7B-1x; relaxing to top 20% drops CORE to 38.7 and MMLU to 24.2.

2.6T-token 7B scaling

2T base + souped 70/30 cooldown (top-7% DCLM + ProofPile) + 100B 8K extension reaches 63.7% MMLU and 57.1 CORE.

Source: Li et al. (2024), Tables 5, 8, and Appendix Q.

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.