The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale
TL;DR. FineWeb is a 15T-token English dataset built from 96 Common Crawl snapshots. Each pipeline step was chosen by training 1.71B-parameter models on 28B tokens (350B for deduplication) and comparing benchmark scores. The two most important findings: extract text yourself from WARC files, and deduplicate each snapshot separately rather than globally. FineWeb-Edu then uses Llama-3-70B-Instruct to rate pages for educational value, distils those ratings into a small classifier, and keeps the top-rated 1.3T tokens. That subset gives large gains on MMLU and ARC.
Why it matters now. Before FineWeb, frontier labs described their data pipelines in a paragraph. FineWeb gave the open community both the data and the ablations, and FineWeb-Edu showed that LLM-labelled quality classifiers work at web scale. For an IR researcher this is familiar ground: the quality filter is a relevance classifier for one fixed query, trained on LLM-judge labels and distilled into an embedding model. The questions you would ask of a relevance pipeline (label bias, threshold, recall loss) apply directly.
Key idea
Section titled “Key idea”Ablate every step with small models. Each choice is tested by training identical 1.71B Llama-style models on 28B tokens from the candidate data (about Chinchilla-optimal for that size) and averaging a set of benchmarks chosen to be stable at small scale.
Pipeline.
- Extraction. Text extracted with trafilatura from raw WARC files beats Common Crawl’s own WET text.
- Base filtering. URL blocklist, fastText English score ≥ 0.65, and MassiveText quality and repetition rules, which leaves about 36T tokens.
- Per-snapshot MinHash. 5-grams, 112 hashes in 14 buckets of 8, targeting documents at least 75% similar. The candidate probability is
which is 0.05 at , 0.77 at and 0.9996 at . This leaves about 20T tokens.
- C4 rules without terminal punctuation, plus three custom filters, giving the final 15T.
FineWeb-Edu. Llama-3-70B-Instruct scores 460k pages from 0 to 5 with an additive educational rubric. A linear regression head on frozen Snowflake-arctic-embed-m is trained on 410k of these labels. Its scores are rounded, and documents with score ≥ 3 are kept, giving 1.3T tokens.
Key results
Section titled “Key results”- Deduplication (§3.4). Global MinHash over all snapshots left 4T tokens and trained barely better than no deduplication. In the 2013-48 snapshot, the 31B tokens kept trained worse than the 171B (self-deduplicated) tokens removed. Per-snapshot deduplication gave 20T tokens and matched RefinedWeb. Extra URL or line-level deduplication on top was worse (App. E).
- C4 filters (§3.5). The terminal-punctuation filter alone gave the largest boost but removed about 30% of tokens. All other C4 filters together beat it while removing about 7%.
- Custom filters (§3.6). Three new document-level rules remove about 22% of tokens and add about 1% to the aggregate score at 28B tokens, surpassing C4.
- Comparison (§3.7). At 350B tokens, FineWeb is compared with RefinedWeb, C4, Dolma’s CC part, The Pile, SlimPajama, RedPajama2, Matrix and others. The authors describe FineWeb as strong, and FineWeb-Edu outperforms every compared dataset on the aggregate.
- FineWeb-Edu (§4). At 1.71B / 350B tokens: MMLU 33% → 37% and ARC 46% → 57% over FineWeb. It reaches 33.6% MMLU after only 38B tokens, matching Matrix at 300B (almost 10× fewer tokens). Threshold 3 beat other thresholds in the 28B-token sweep. The classifier’s F1 against the LLM labels is 82%, and scoring all of FineWeb took 6,000 H100 hours.
Limitations & open questions
Section titled “Limitations & open questions”- Small-model proxies. Decisions at 1.71B / 28B tokens may not hold for 70B models trained on 15T tokens; the deduplication episode shows small proxies can mislead.
- English only. The pipeline and filters are tuned for English.
- Benchmark-shaped quality. “Educational” quality is defined by a rubric that resembles MMLU and ARC; gains on other abilities are smaller.
- Judge bias. FineWeb-Edu inherits whatever Llama-3-70B prefers. The prompt explicitly steers it away from technical pages, showing how sensitive the label is to wording.
- No human calibration. Unlike DCLM’s appendix, the paper does not compare classifier choices with human quality labels.
Connections
Section titled “Connections”- DCLM — a parallel benchmark that compares many filters on a fixed pool; it uses a fastText classifier rather than LLM labels.
- Dolma — rule-based filtering and Bloom-filter deduplication; FineWeb compares against its CC part.
- Data-constrained scaling — strict filters shrink unique tokens and make repetition rules relevant.
- UMBRELA — LLM relevance labels for IR evaluation; same “LLM as annotator” pattern.
- Knowledge distillation — the Edu classifier is a distilled student of an LLM teacher.
- Q2D-Web — a web-scale retrieval benchmark over a large crawl; its relevance-judgment sets raise the same questions about judge bias and thresholds.
- Llama 3 — the model family used as the annotator.
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
FineWeb's MinHash uses 112 hash functions split into 14 buckets of 8. Two documents become a duplicate candidate if all 8 hashes match in at least one bucket. Derive the probability of becoming a candidate as a function of Jaccard similarity s, evaluate it at s = 0.5, 0.75 and 0.9, and explain how you would move the threshold to about 0.85.
What a strong answer covers
- One hash matches with probability s, so a whole bucket of 8 matches with s⁸. The chance that no bucket matches is (1 − s⁸)¹⁴, so P(candidate) = 1 − (1 − s⁸)¹⁴.
- s = 0.5: s⁸ ≈ 0.0039, P ≈ 0.053. s = 0.75: s⁸ ≈ 0.100, P ≈ 0.77. s = 0.9: s⁸ ≈ 0.430, P ≈ 0.9996.
- The S-curve is steepest near (1/b)^(1/r) = (1/14)^(1/8) ≈ 0.72, which matches the paper's target of documents at least 75% similar.
- To move the threshold up, use more hashes per bucket (larger r) or fewer buckets (smaller b); for example r = 13 and b = 8 puts (1/b)^(1/r) near 0.85. More hashes per bucket also make the curve sharper.
- Mechanism
FineWeb first deduplicated all 96 snapshots globally, which left 4T tokens and trained no better than the non-deduplicated data. Explain the mechanism the authors found, using their experiment on the 2013-48 snapshot, and why per-snapshot deduplication (20T tokens) worked better.
What a strong answer covers
- Global deduplication ran from the newest snapshot back to the oldest, so old snapshots lost up to 90% of their data to matches in later crawls.
- In 2013-48, the 10% that survived (about 31B tokens) trained a worse model than the 90% that was removed (about 171B tokens after deduplicating it on its own).
- Content that is repeated across crawls tends to be stable, well-maintained pages; what is unique to one crawl is more often ads, keyword lists and broken formatting. Global deduplication therefore up-weights junk.
- Per-snapshot deduplication removes within-crawl copies but keeps popular pages once per snapshot, an implicit quality up-weighting. A random sample of the 20T matched RefinedWeb.
- Small ablations are a poor test of deduplication: after the largest clusters are gone, a 28B-token sample from 20T rarely contains a duplicate, so effects only appear at larger training sizes (they used 350B).
- What if…
C4's terminal-punctuation rule (drop lines that do not end in punctuation) gave the biggest single gain in FineWeb's C4-filter ablation, yet FineWeb did not adopt it. Explain the trade-off with the paper's numbers and how they recovered the gain with their own heuristics.
What a strong answer covers
- Alone, the terminal-punctuation filter gave the largest boost but removed about 30% of tokens.
- All the other C4 filters together (without terminal punctuation) did better than terminal punctuation alone while removing only about 7% of tokens; FineWeb kept those.
- They then searched over many document statistics and picked three new filters: fraction of lines ending in punctuation, fraction of characters in duplicated lines, and fraction of lines shorter than 30 characters.
- Together they remove about 22% of tokens and raise the aggregate score by about 1% at 28B tokens, surpassing C4 while removing less data.
- The general lesson: judge a filter on quality gained per token removed, because removed tokens must later be replaced or repeated.
- Connect
FineWeb-Edu asks Llama-3-70B-Instruct to score 460k pages for educational value (0–5), trains a linear head on a frozen embedding model to predict that score, and keeps pages scoring at least 3. Map each step onto an IR relevance pipeline and say what is lost and gained relative to labelling every page with the LLM.
What a strong answer covers
- The LLM scoring is like LLM-judged relevance labels (for example UMBRELA-style grading): a strong but expensive judge on a sample.
- The linear head on Snowflake-arctic-embed-m is a distilled, cheap scorer, like distilling a cross-encoder into a bi-encoder. Classifying the 15T tokens still took about 6,000 H100 hours.
- There is a single fixed "query" (educational value), so filtering is one-query ranking over the web with a threshold cut-off rather than top-k per query.
- Lost: the judge's nuance; the classifier's F1 against the LLM at threshold 3 is 82%, and its errors are correlated with embedding-space neighbours. Gained: a cost that is cheap enough to score everything.
- The ground truth is the LLM's opinion, so judge bias (such as preferring technical text, which the prompt counters by focusing on grade-school knowledge) passes into the corpus.
- Design
You want a pretraining corpus for a scientific-QA retriever: a FineWeb-Edu-style "science usefulness" filter on top of FineWeb. Design the annotation, classifier and threshold choice, and say which ablation you would run to pick the threshold.
What a strong answer covers
- Annotation: an additive 0–5 rubric (the paper found additive point-scoring prompts beat single-rating prompts), a strong open judge, and a few hundred thousand random pages; keep a human-labelled check set.
- Classifier: frozen embedding plus regression head, chosen by held-out F1 against the judge, then run over the whole corpus.
- Threshold: sweep keep-thresholds (for example ≥2, ≥3, ≥4) and train small models on each at a fixed token budget; FineWeb-Edu chose 3 as the best balance between knowledge benchmarks and general ones like HellaSwag.
- Measure both retrieval-relevant tasks and general language tasks, plus how many unique tokens remain, since a strict filter may force repetition.
- Critique
FineWeb-Edu raises MMLU from 33% to 37% and ARC from 46% to 57% at 1.71B parameters and 350B tokens. Argue whether this shows the classifier selects "better" data or data closer to the benchmarks, and propose an analysis to separate the two.
What a strong answer covers
- The rubric asks for school-level educational content, which is close in style and topic to MMLU and ARC questions, so gains may reflect a domain shift toward the test distribution.
- HellaSwag-style commonsense tasks gain less, which the authors themselves trade off when choosing the threshold.
- Analysis: measure n-gram or embedding overlap between kept data and benchmark items; test on held-out knowledge tasks not used in tuning; check whether gains persist after decontaminating near-duplicates of test questions.
- A cleaner signal is loss or accuracy on tasks the rubric does not target (for example code or conversational data) to see what was traded away.