Datasets, Documents, and Repetitions: The Practicalities of Unequal Data Quality
Alex Fang, Hadi Pouransari, Matt Jordan, Alexander Toshev, Vaishaal Shankar, Ludwig Schmidt, Tom Gunter
TL;DR
The paper investigates how data filtering interacts with training scale for large language models, focusing on the tension between data quality and data quantity. It systematically studies repeating filtered datasets and, crucially, documents-level repetition strategies, showing that multi-epoch repetition of high-quality filtered data can outperform larger, less filtered datasets when the training recipe is properly adjusted, including weight-decay scheduling. A key contribution is demonstrating that document-level manipulation and count-based oversampling can further improve dataset effectiveness under tight token budgets, offering practical guidance for smaller models and specialized pre-training. The findings argue that data filtering remains a valuable and practical research direction as models scale, providing actionable strategies for dataset construction and training regimes under varied compute constraints.
Abstract
Data filtering has become a powerful tool for improving model performance while reducing computational cost. However, as large language model compute budgets continue to grow, the limited data volume provided by heavily filtered and deduplicated datasets will become a practical constraint. In efforts to better understand how to proceed, we study model performance at various compute budgets and across multiple pre-training datasets created through data filtering and deduplication. We find that, given appropriate modifications to the training recipe, repeating existing aggressively filtered datasets for up to ten epochs can outperform training on the ten times larger superset for a single epoch across multiple compute budget orders of magnitude. While this finding relies on repeating the dataset for many epochs, we also investigate repeats within these datasets at the document level. We find that not all documents within a dataset are equal, and we can create better datasets relative to a token budget by explicitly manipulating the counts of individual documents. We conclude by arguing that even as large language models scale, data filtering remains an important direction of research.
