An Empirical Exploration in Quality Filtering of Text Data
Leo Gao
TL;DR
The work challenges the assumption that harsher data filtering from large internet corpora always yields better language model quality. By systematically varying a Pareto-based, shallow classifier filter and training a 1.3B GPT-Neo on 40 GB chunks, it reveals a non-monotonic relationship between filtering aggressiveness and downstream task performance across 13 tasks. The decline at high filtering levels is linked to misalignment between the proxy objective and true data quality (Goodhart's law) and is further associated with loss of domain-relevant content. The findings motivate developing more robust filtering objectives and conducting thorough analyses of data-curation choices to understand their practical impact on generalization.
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.
