Abstract: While conventional wisdom suggests that more aggressively filtering data from low-quality sources like Common Crawl always monotonically improves the quality of training data, we find that aggressive filtering can in fact lead to a decrease in model quality on a wide array of downstream tasks for a GPT-like language model. We speculate that this is because optimizing sufficiently strongly for a proxy metric harms performance on the true objective, suggesting a need for more robust filtering objectives when attempting to filter more aggressively. We hope this work leads to detailed analysis of the effects of dataset filtering design choices on downstream model performance in future work.
Introduction
In the development of Large Language Models (LLMs), the prevailing "conventional wisdom" has long been that cleaner data equals a better model. Since massive internet scrapes like Common Crawl are notoriously noisy, researchers often use "quality filters"—classifiers trained to distinguish "good" text (like Wikipedia) from "bad" text (like spam)—to prune the dataset. However, the assumption that more filtering is always better has rarely been tested systematically. This paper investigates whether aggressive pruning can actually harm model performance by discarding valuable, diverse information.
Methodology
To explore the relationship between filtering aggressiveness and model performance, we trained a series of 1.3 billion parameter GPT-Neo models. To ensure a fair comparison, the final training dataset size was held constant at 40GB for every run, regardless of the filtering level.
Filtering Mechanism
The key variable was the filtering aggressiveness, represented by the fraction of documents discarded. We used a "shallow" fasttext classifier trained to distinguish between raw Common Crawl and OpenWebText2 (a high-quality dataset of Reddit links with high upvotes). Instead of a simple hard cutoff, we employed a "Pareto distribution thresholding" method. This approach allows a hyperparameter to control how strictly the model favors high-scoring documents while still allowing some lower-scoring ones to remain, preventing the model from seeing only the most extreme examples of the classifier's preference.
Evaluation
The models were evaluated on 13 downstream tasks via the EleutherAI LM Evaluation Harness, covering reasoning (ANLI, BoolQ), common sense (Hellaswag, PiQA, COPA), and specialized domains (PubmedQA, MathQA).
Results: The Limits of Filtering
Our findings challenge the monotonic improvement assumption. Across almost all tasks, performance initially improved as filtering began, but then significantly decreased as filtering became too aggressive.
As shown in the aggregate data, average accuracy across tasks peaks when a significant portion of data is discarded, but the "most filtered" models (discarding >90%) were almost never the best performers. This suggests there is an optimal threshold for data cleaning beyond which the model loses critical information.
Domain Sensitivity and Information Loss
The decline in performance was not uniform across all tasks. Specialized domains showed the sharpest sensitivity to aggressive filtering. For example, PubmedQA (medical QA) and LAMBADA (narrative structure) experienced dramatic drops in accuracy at high discard rates.
Analysis revealed that as filtering increased, the proportion of "BookCorpus-like" and "Pubmed-like" data in the training set plummeted. Because the classifier was trained on web text (Reddit), it effectively "cleaned out" formal medical abstracts and book-like narratives because they did not resemble the narrow definition of "quality" defined by the proxy.
Discussion: Goodhart’s Law in Data Curation
The paper’s central thesis is a manifestation of Goodhart’s Law: "When a measure becomes a target, it ceases to be a good measure." In this context, the quality classifier acts as a proxy for the true goal (general model intelligence). While the classifier and model quality are correlated initially, the correlation breaks down at the extremes—a phenomenon known as regressional Goodharting.
By optimizing too strongly for the classifier's score, the resulting dataset becomes biased toward features that superficially resemble high quality (e.g., the style of a popular Reddit post) but lack the actual substance or diversity needed for broad downstream competence.
Conclusion
More filtering is not always better. Aggressive filtering can lead to a narrow, biased dataset that harms performance on specialized or diverse tasks. Future work should focus on developing more robust filtering objectives that explicitly value diversity and informational density rather than just stylistic similarity to a single "high-quality" source. We hope these results encourage a more nuanced approach to dataset design in the LLM community.
Summary updated