Citation and evidence

FineWeb-Edu

9 min full readUpdated 10 references

This article's verification

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

Data & DatasetsLarge Language ModelsMachine Learning

Cite this article

FineWeb-Edu is an open, English-language pretraining dataset of roughly 1.3 trillion tokens, built by filtering the much larger FineWeb web corpus down to the documents that an automatic classifier judges to be the most educational. It was released in 2024 by a Hugging Face team led by Guilherme Penedo and Hynek Kydlíček, and it is documented alongside FineWeb in the paper "The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale" (arXiv:2406.17557), which appeared at the NeurIPS 2024 Datasets and Benchmarks track [1][2]. The dataset is distributed on the Hugging Face Hub as HuggingFaceFW/fineweb-edu under the permissive Open Data Commons Attribution License (ODC-By v1.0) [3].

Hugging Face logo
Hugging Face logo, from the official website huggingface.co. Trademark of its owner.

The central idea is to push data quality ahead of raw quantity. A large language model trained on FineWeb-Edu reaches the same accuracy on knowledge and reasoning benchmarks as a model trained on a much bigger pile of generic web text, while seeing far fewer tokens. That result helped make educational filtering a standard ingredient in open pretraining recipes through 2024 and 2025.

Motivation

By 2023 it was widely accepted that what a model learns is shaped at least as much by what it reads as by how big it is. The pretraining corpora behind the strongest open models of the time, including Llama 3 and Mixtral, were not released, and very little was published about how they had been cleaned or filtered [1]. FineWeb set out to close that gap with a fully documented 15 trillion token corpus drawn from 96 Common Crawl snapshots, ablating each filtering decision in the open [1][2].

FineWeb-Edu took the argument a step further. Microsoft's Phi models had popularized the "textbooks are all you need" hypothesis: that training on clean, instructional, textbook-like material can teach reasoning more efficiently than training on the open web, even with far less data. The Phi work leaned heavily on synthetic textbooks and never fully disclosed its data. The FineWeb team asked a related question: instead of generating textbooks, could you simply find the textbook-like pages that already exist on the web and keep only those? FineWeb-Edu is the answer to that question, and it pairs naturally with synthetic data efforts like Cosmopedia, which generate instructional text rather than mining it.

The educational-quality classifier

The filter at the heart of FineWeb-Edu is a small classifier trained on annotations from a much larger model. The team sampled roughly 460,000 documents from FineWeb and prompted Llama-3-70B-Instruct to rate each one for educational value on an additive scale from 0 to 5, where a 0 is not educational at all and a 5 is a clear, self-contained piece suitable for teaching at a primary or grade-school level [1][3]. Using a strong instruction-tuned model as the annotator was the key trick: it produced hundreds of thousands of consistent quality judgments far more cheaply than human raters could.

Those scores then trained a lightweight predictor that could be run over the whole corpus. The classifier is a single linear regression head placed on top of the frozen Snowflake-arctic-embed-m text-embedding model, trained on 410,000 of the annotations (the classifier's model card gives 450,000) for 20 epochs at a learning rate of 3e-4 [1]. On a held-out validation split of 50,000 examples (the model card reports a 46,867-sample hold-out set) [8], treating a predicted score of 3 or higher as the positive class, the regressor reached an F1 score of about 82 percent, which the authors judged good enough to drive large-scale filtering [1][3].

Running this classifier across all 15 trillion tokens of FineWeb cost roughly 6,000 H100 GPU-hours, a tiny fraction of what training a model on the data would cost [1]. Keeping only documents that scored 3 or above removed about 92 percent of FineWeb and left the 1.3 trillion educational tokens that make up the main release [1][3].

Sizes, variants, and licensing

FineWeb-Edu ships in two main flavors that differ only in how strict the quality cutoff is. The headline dataset keeps documents scoring 3 or higher. A second release, HuggingFaceFW/fineweb-edu-score-2, lowers the bar to a score of 2 and so keeps far more material, about 5.4 trillion tokens [1][4]. The looser variant trades some average quality for the larger unique-token budget that long training runs need, while the stricter 1.3T set gives the cleanest signal per token.

VariantScore thresholdApprox. tokensHugging Face IDLicense
FineWeb-Eduscore ≥ 3~1.3 trillionHuggingFaceFW/fineweb-eduODC-By v1.0
FineWeb-Edu-score-2score ≥ 2~5.4 trillionHuggingFaceFW/fineweb-edu-score-2ODC-By v1.0
Source corpus (FineWeb)none~15 trillionHuggingFaceFW/finewebODC-By v1.0

Expanded article table

Both variants are English-only, stored as Parquet, and carry per-document metadata including the original URL, the Common Crawl dump it came from, a token count, and the predicted educational score. The team also published the annotation set (fineweb-edu-llama3-annotations) and the trained classifier (fineweb-edu-classifier) so the whole pipeline can be reproduced or retargeted [3][8]. The ODC-By license permits commercial use with attribution, and use is also subject to the Common Crawl terms of service.

Ablation results

The case for FineWeb-Edu rests on controlled comparisons in which the only thing that changes is the training data. Across these ablations, models trained on FineWeb-Edu beat models trained on FineWeb itself and on every other public web dataset the team tested, including C4, Dolma, RefinedWeb, The Pile, SlimPajama, and RedPajama2, on knowledge and reasoning benchmarks such as MMLU, ARC, and OpenBookQA [1][2].

The size of the jump is what drew attention. Substituting FineWeb-Edu for FineWeb raised MMLU accuracy from about 33 percent to about 37 percent and ARC from about 46 percent to about 57 percent at a matched token budget [1][2]. The efficiency angle is even more striking: the authors report that FineWeb-Edu matches the MMLU accuracy of the strongest baseline using roughly 10 times fewer tokens: it reaches 33.6 percent on MMLU after 38 billion tokens, while Matrix (the second-best dataset on that metric) needs about 300 billion tokens to get there [1]. In the paper's larger ablation, a 1.71 billion parameter model trained on 350 billion FineWeb-Edu tokens outperforms the same model trained on an equal 350 billion token sample of FineWeb [1].

The filtering is not free of trade-offs. Pushing the score threshold above 3 keeps squeezing out gains on knowledge-heavy benchmarks but starts to hurt performance on HellaSwag and PIQA, which reward commonsense and everyday language more than academic prose [1][3]. A score of 3 was chosen as the balance point that helps reasoning without gutting the broader distribution.

Adoption

FineWeb-Edu quickly became a default high-quality component in open pretraining mixes. Hugging Face's own SmolLM models were trained on the SmolLM-Corpus, which pairs a deduplicated 220 billion token slice of FineWeb-Edu with the synthetic Cosmopedia v2 textbooks (about 28 billion tokens generated by Mixtral-8x7B-Instruct) and a Python-Edu code subset [5][6]. That pairing is a clean illustration of the two routes to instructional data sitting side by side: mined educational web pages from FineWeb-Edu and generated educational text from synthetic data pipelines.

The influence spread beyond Hugging Face. Allen Institute for AI's OLMo 2 reused the FineWeb-Edu classifier to score and select high-quality web text for the later, quality-focused stage of its training mix [7]. The classifier itself, fine-tuned from Arctic Embed M on over 400,000 Llama-3-70B labels, became a reusable artifact that other groups apply to their own corpora. The dataset was also updated after release: later versions (v1.2.0 in January 2025 and v1.4.0 in July 2025, the latest listed on the dataset card as of November 2026) folded in additional Common Crawl snapshots covering 2024 and the first half of 2025 [3]. Follow-on research such as Ultra-FineWeb has tried to refine the same model-based filtering recipe further [9].

Limitations

The quality of FineWeb-Edu is only as good as the judgments baked into its classifier, and several caveats follow from that. The labels come from a single annotator model, Llama-3-70B-Instruct, so any biases that model holds about what counts as educational are inherited by the filter [8]. At the high end of the scale the classifier tends to reward content that simply looks academic, which can favor formal, polished prose over equally useful but plainer material [8].

The notion of "educational" used here is also fairly narrow. The annotation prompt was oriented toward primary and grade-school learning, so the classifier can be less reliable on advanced, higher-education, or specialized technical content, and on text that differs from the FineWeb distribution it was trained on [8]. Each page is scored on its own, without any view of broader context, which can misjudge documents that only make sense as part of a larger whole.

Two structural limits round out the picture. The dataset is English-only, so it does nothing for multilingual training on its own, a gap the separate multilingual FineWeb2 dataset, first released in December 2024, was created to address [10]. And because the headline gains are measured on academic benchmarks like MMLU and ARC, there is a real risk of optimizing the data toward those tests; the observed drop on HellaSwag and PIQA at higher thresholds is a concrete reminder that aggressive educational filtering narrows the distribution as well as cleaning it [1].

Continue reading

More to read

Topics:Data & DatasetsLarge Language ModelsMachine Learning

References

  1. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15Penedo, Guilherme; Kydlíček, Hynek; Ben Allal, Loubna; Lozhkov, Anton; Mitchell, Margaret; Raffel, Colin; von Werra, Leandro; Wolf, Thomas. "The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale." arXiv:2406.17557, 2024. arxiv.org/...2406.17557
  2. ^1 ^2 ^3 ^4Penedo, Guilherme; et al. "The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale." Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track. papers.neurips.cc/...sets_and_Benchmarks_Track.pdf
  3. ^1 ^2 ^3 ^4 ^5 ^6 ^7"HuggingFaceFW/fineweb-edu." Hugging Face Datasets. huggingface.co/...fineweb-edu
  4. ^"HuggingFaceFW/fineweb-edu-score-2." Hugging Face Datasets. huggingface.co/...fineweb-edu-score-2
  5. ^Ben Allal, Loubna; et al. "SmolLM: blazingly fast and remarkably powerful." Hugging Face blog, 2024. huggingface.co/...smollm
  6. ^Ben Allal, Loubna; et al. "Cosmopedia: how to create large-scale synthetic data for pre-training Large Language Models." Hugging Face blog, 2024. huggingface.co/...cosmopedia
  7. ^OLMo Team. "2 OLMo 2 Furious." arXiv:2501.00656, 2025. arxiv.org/...2501.00656
  8. ^1 ^2 ^3 ^4 ^5"HuggingFaceFW/fineweb-edu-classifier." Hugging Face. huggingface.co/...fineweb-edu-classifier
  9. ^Wang, Yudong; et al. "Ultra-FineWeb: Efficient Data Filtering and Verification for High-Quality LLM Training Data." arXiv:2505.05427, 2025. arxiv.org/...2505.05427
  10. ^"HuggingFaceFW/fineweb-2." Hugging Face Datasets. huggingface.co/...fineweb-2

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

5 revisions · v5 · 1,760 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Reviewer note: Independent fact-check of the full article against its cited sources (55 claims, 11 sources fetched); 1 material + 9 minor fixed

Cite this page: AI Wiki. "FineWeb-Edu." aiwiki.ai, updated 1 Nov 2026, fact-checked 4 Nov 2026. CC BY 4.0. https://aiwiki.ai/wiki/fineweb_edu

Edit article