TL;DR
Data filtering improves Large Language Model (LLM) performance but drastically shrinks dataset sizes, raising concerns about running out of training data as compute budgets scale. This paper demonstrates that repeating a highly filtered, high-quality dataset for up to 10 epochs—while adjusting weight decay—actually outperforms training on a 10x larger, lower-quality dataset for a single epoch. Furthermore, explicitly manipulating how often individual documents are repeated based on their quality yields even better models than standard deduplication techniques.
The Looming Data Wall
Scaling laws in machine learning dictate that better models require more compute and more data. Recently, the focus has shifted to high-quality data, usually obtained through aggressive data filtering. However, filtering throws away a massive amount of text.
As frontier LLMs scale up their parameter and token counts, developers face a looming "data wall": we risk running out of unique, high-quality tokens. The standard practice has been to train on data for only a single epoch to avoid overfitting and memorization. The authors tackle a critical question for the future of LLM training: Can we sustain the performance gains of aggressive data filtering by simply repeating the filtered data for multiple epochs? And if so, how do we optimize this repetition at both the dataset and individual document levels?
Methodology: Dataset and Document Repetition
The researchers approached the problem from two distinct angles: dataset-level repetition and document-level repetition.
1. Dataset-Level Repetition (Epochs) The team trained models ranging from 1B to 12.6B parameters on a highly filtered dataset (DCLM-baseline) for multiple epochs. They compared this to training on its 10x larger, less-filtered superset (RefinedWeb v2) for a single epoch, keeping the total compute (tokens seen) constant. Crucially, they modified the training recipe by increasing weight decay to act as a regularizer against the negative effects of data repetition.
2. Document-Level Repetition (Count Manipulation) Instead of treating the dataset as a monolithic block, the authors analyzed individual documents. They challenged standard global deduplication by using quality classifiers (like FastText) and natural duplication counts to explicitly dictate how many times a specific document should appear in the training set. They tested strategies like greedily keeping the best documents or scaling a document's presence linearly based on its quality score.
Models were evaluated on DCLM's "centered core metric" (an average across 22 downstream tasks including ARC, BoolQ, HellaSwag, PIQA, etc.), MMLU (few-shot), and C4 validation perplexity.
Key Insights and Results
Quality Beats Quantity, Even With Repeats You don't necessarily need fresh data if your existing data is stellar. Repeating top-tier data is a highly viable strategy for scaling compute when unique data is constrained. For a 12.6B parameter model trained on 252B total tokens, training for 10 epochs on DCLM-baseline achieved a Core score of ~0.523. This cleanly outperformed training for 1 epoch on the 10x larger RefinedWeb dataset, which scored ~0.49.
Weight Decay is the Secret to Multi-Epoch Training The traditional performance degradation (diminishing returns) caused by repeating data can be significantly offset by scaling weight decay. As shown in the results, applying 2x to 3x the standard weight decay rescues the model from overfitting. A good rule of thumb proposed by the authors is to scale weight decay by roughly the square root of the number of repeats.
Standard Deduplication Isn't Always Optimal Global deduplication can actually hurt performance. On the web, high-quality documents naturally occur as duplicates more often than low-quality ones. Stripping them out entirely reduces the overall quality density of the dataset.
Document Count Manipulation is the Future of Curation Treating a dataset as a collection of documents with individual "repetition dials" based on quality scores is vastly superior to uniform subsampling or blind deduplication. When constraining a 7B model to a 138B token budget, smart document count manipulation (e.g., allowing up to 4 copies of high-quality documents based on an ensemble metric) achieved a 46.0 Core score and 44.2 MMLU. By comparison, standard global deduplication performed terribly in this constrained setting (41.7 Core / 28.5 MMLU), and uniform subsampling hit 44.4 Core / 42.2 MMLU.
Limitations and Future Work
The authors acknowledge a few limitations. First, their understanding of model quality relies entirely on standard public benchmarks; it is possible that aggressive filtering and repetition degrade specific capabilities or knowledge not captured by these tests. Second, the study focuses strictly on web-scraped general language data; the dynamics of repetition might look very different for specialized domains like math or code. Finally, while their models (up to 12.6B parameters) are large, they are still smaller than frontier models. The observed trends must hold as scaling continues for these findings to apply to the next generation of massive LLMs.
Future work points toward developing even more fine-grained quality metrics to drive document count manipulation, allowing for highly principled, engineered datasets.
Summary updated