An LLM Curator Beats Rule-Based Web Cleaning: 13.5x More Tokens, Up to 12.9% Lower Loss

Generative Curation Yields Bigger and Better Data for Pretraining LLMs

Michael J. Ryan, William Held, Suhas Kotha, Yejin Choi, Diyi Yang, Percy Liang

cs.CL, cs.AI

2026-12-01

A spec-driven LLM replaces rule-based web curation: 13.5x more tokens than DCLM, up to 12.9% lower bpb, scaled to the 17.1T-token Atlantic-CC.

What problem this solves

Open pretraining pipelines (DCLM, FineWeb, Nemotron-CC) clean Common Crawl with chains of rule-based extractors and lightweight classifiers, because only something this cheap can cover trillions of tokens. The imprecision compounds down the chain: in the paper's Figure 2, DCLM drops an entire math page because its language-ID and 7-gram repetition heuristics misfire, and mangles the code on the same page. The web's long tail is bigger than any rule set.

The ideal would be a human reviewing and reformatting every site. Humans cannot scale to that; strong LLMs are close. This paper replaces both extraction and filtering with a single LLM plus a natural-language spec, and raises the ceiling on how much data a fixed pool of pages can yield.

Method

GC-LLM has three designed pieces:

The bottleneck is cost. An 8B pass over the full Common Crawl would take 1.78x10^26 FLOPs, roughly half a GPT-4.5 pretrain. GC-Cascade distills it: a three-stage filter of FastText, a 25.9M-parameter pooled transformer, and a 68M-parameter ModernBERT variant (94M parameters total), trained on labels sampled from 474M pages of LLM decisions, agreeing with the LLM on 94.6% of filtering decisions at 921x the throughput. The extractor is a Rust port of Resiliparse, moved by Claude Fable 5 and then improved by an agent-driven loop for 179 cycles, lifting ROUGE-5 agreement with the 8B from 0.625 to 0.707. A full cascade pass costs at most 5.3x10^21 FLOPs, on the order of pretraining GPT-2.

Results

Six pipelines run over the same WARC files (the DCLM 400M-1x pool):

PipelineTokens produced
DCLM9.5B
FineWeb44.8B
Nemotron-CC95.2B (69.2B organic)
GC-Cascade103.5B
GC-LLM128.3B
Resiliparse, unfiltered387.5B

GC-LLM yields 13.5x DCLM's tokens and 1.3x Nemotron-CC's. All corpora were re-weighted with Olmix and used to train 500+ models at 157M/1B/2.9B across 12 compute budgets:

On hallucination, the distilled 8B produces major errors on 2.0% of pages (invented API routes, repetition loops) and GLM-5.3 on only 0.3%, so scale mitigates it; the cascade's rule-based extractor cuts it to 0.1%. Run over the full Common Crawl, the cascade produced Atlantic-CC, a 17.1T-token dataset released under the commoncrawl org on HuggingFace, with code and models.

Why it matters

Open corpora have been stuck between 4-15T tokens. Atlantic-CC moves the ceiling to 17.1T, enough headroom for Qwen3-style 36T-token runs; it covers at least 87.3% of DCLM's and 82.8% of FineWeb-Edu's documents, and its topic distribution tracks the raw web instead of a filter's bias. The methodological shift may matter more: the pipeline becomes a readable, iterable spec instead of rules scattered across code and classifier weights, and "filter permissively, mix later" separates what to keep from what ratio to want. Both are directly reusable by anyone building pretraining data.

Limitations

Author-stated: the LLM makes editorial calls beyond the spec and refuses unsafe or adult content, so model preferences can taint the corpus; hallucination is contained by the rule-based extractor rather than solved; changing the spec means relabeling 90M pages (8x10^21 FLOPs) and retraining the classifiers. Reading closely: validation stops at 2.9B parameters, so frontier-scale benefits are extrapolated; the evidence is bpb and choice log-prob, not downstream accuracy; extraction quality is graded by gemini-3-flash, an LLM judging LLMs; their data was decontaminated while the baselines were not; FineWeb looks worst partly because it filters code while the eval suite has 19 coding tasks; and DCLM still wins at the smallest budgets, which the paper concedes.

Terms

Source

What people are saying

Related papers

All paper explainers