Why better education data is changing LLM training
LLMs By What The Future Newsroom · June 3, 2024 · 4 min read

Why better education data is changing LLM training

FineWeb-Edu suggests that large language models can gain more from carefully filtered educational content than from larger piles of general web text. Hugging Face researchers found that models trained on FineWeb-Edu outperformed models trained on other public web datasets, especially on knowledge and logical reasoning tasks.

A new Hugging Face dataset is putting a familiar AI training assumption under pressure: more data is not always better data. FineWeb-Edu shows that carefully selected education data can give large language models a major performance advantage over broader public web datasets.

The dataset is built from FineWeb, a filtered web dataset containing 15 trillion tokens from 96 CommonCrawl snapshots. By narrowing that material to content with stronger educational value, researchers created a smaller dataset that performed better in model training tests.

How FineWeb-Edu Was Built

FineWeb-Edu starts with FineWeb, but it does not treat all web text as equally useful. Hugging Face researchers used a classifier trained on the results of a Llama-3-70B-Instruct model's evaluation of FineWeb articles. That classifier was then used to identify educational content inside the larger dataset.

The filtering process used an educational scale. Only text data that scored at least 3 out of 5 was included in FineWeb-Edu. The result is a dataset with 1.3 trillion tokens, less than 10% of the original FineWeb collection.

That reduction is central to the finding. FineWeb-Edu is much smaller than FineWeb, yet it produced stronger results in training. The work suggests that the usefulness of training data depends heavily on what the data teaches, not just how much of it exists.

What The Training Results Showed

To test the dataset, the researchers trained a set of 1.82 billion parameter LLMs. Each model was trained on 350 billion tokens from FineWeb-Edu and other datasets, then evaluated across various benchmarks.

The FineWeb-Edu-trained models outperformed the unfiltered FineWeb dataset and all other public web datasets. The advantage was especially clear on tasks requiring knowledge and logical reasoning.

Other datasets needed far more material to match the same level of performance. According to the source article, datasets like C4 or Dolma need up to 10 times more training data to reach the performance of FineWeb-Edu.

That comparison makes FineWeb-Edu important for a practical reason. Training language models is not only about scale; it is also about selecting data that carries useful structure, facts, explanations, and reasoning patterns.

Why Web Data Quality Matters

The broader web contains useful material, but it also contains large amounts of low-value content. AI expert Andrej Karpathy shares the Hugging Face team's view that average web text is often poor material for learning.

"You'd think it's random articles but it's not, it's weird data dumps, ad spam and SEO, terabytes of stock ticker updates, etc. And then there are diamonds mixed in there, the challenge is pick them out," he writes.

FineWeb-Edu is an attempt to pick out more of those useful pieces. The dataset focuses on educational content rather than trying to preserve the full shape of the web. That makes the data more targeted for training models that need to answer questions, reason through problems, and draw on knowledge.

The finding also connects to earlier work from Microsoft. The source article points to Microsoft's "Textbooks is all you need" research and tiny Phi models as another example of the value of high-quality educational data. The difference is that Microsoft has not made its classifier and dataset publicly available.

Quality, Scale, And Availability

Hugging Face researchers are releasing both the 1.3 trillion token FineWeb-Edu dataset, described as very high educational content, and a less heavily filtered 5.4 trillion token version, described as high educational content. Both datasets are freely available on Hugging Face, and the researchers also detail their process for compiling the dataset.

This matters because public access changes who can test and build on the work. If researchers and developers can inspect the process, compare results, and train models from the same material, the field can better evaluate how much educational filtering changes model performance.

The researchers also hope to apply the FineWeb-Edu findings to other languages in the future. The goal is to make high-quality web data available for different languages, not only for the language coverage represented in the current work.

What This Means For Future AI Models

The research points toward a training strategy where data quality and diversity can matter more than sheer size. Very large datasets will still be important for scale, but FineWeb-Edu shows that a smaller, better-selected dataset can outperform larger alternatives in key areas.

The source article also notes that synthetically generated data with human quality control could help fill specific gaps in datasets or help reach the scale needed for new flagship models. In that view, future AI training may combine filtered web data, curated educational sources, and controlled synthetic data rather than relying mainly on bulk web scraping.

This also helps explain why OpenAI and other LLM developers are interested in deals with established publishers. Textbooks, news articles, and scientific papers are high-quality data sources that can improve model training. The source article adds that some of this material has already been used in GPT-4 and others, but without permission.

FineWeb-Edu does not end the debate over AI training data. It sharpens it. The dataset shows that better educational content can make models stronger, while also highlighting why access, permission, and data selection are becoming central issues in the future of LLM development.

← Back to the wire

Read next