A Bitter Lesson for Data Filtering

Christopher Mohri, John Duchi, Tatsunori Hashimoto

TL;DR

Pretraining on "high-quality" filtered data is a cornerstone of modern LLM development, but this paper suggests we might be over-filtering. Through extensive scaling studies, the authors demonstrate that while filters help in compute-constrained regimes, sufficiently large models trained for long enough eventually perform better on unfiltered data. In the limit of high compute, the "bitter lesson" applies: human-engineered data filters are eventually outperformed by simply scaling on the raw, noisy pool.

What Problem Does This Paper Address?

To train a state-of-the-art language model, researchers typically filter massive datasets like Common Crawl (CC), often discarding over 98% of the raw text to keep only "high-quality" tokens. This practice is driven by the intuition that "junk" data hurts performance.

However, this creates a tension with scaling laws: as we build larger models, we need exponentially more data, but aggressive filtering makes data increasingly scarce. The authors investigate whether this filtering is actually a necessity or merely a crutch for low-compute settings. They ask: if we have enough compute and a large enough model, can we stop filtering and just use the whole internet?

Methods

The researchers conducted a massive empirical study, training Llama-style dense transformers ranging from 15 million to 7 billion parameters. Their approach involved:

  1. Scaling Down to Scale Up: They took a 670-million-token subset of Common Crawl and compared training on the raw pool versus five increasingly aggressive filtered versions (including industry standards like RefinedWeb and DCLM-Baseline).
  2. Data Injection: To test the limits of robustness, they deliberately poisoned the data pool with "junk"—either completely random strings or documents where the word order was randomly shuffled.
  3. Crossing Point Analysis: They identified the "crossing point"—the moment in training (measured in tokens/compute) where the model trained on the raw pool finally overtakes the model trained on filtered data.
  4. Scaling Law Projections: By tracking these crossing points across different model sizes, they built scaling laws to predict when no-filter training becomes optimal for the full 240-trillion-token Common Crawl corpus.

Datasets

  • Training: The DCLM-Pool, a 240-trillion-token version of Common Crawl (pre-2023).
  • Evaluation: Validation loss (negative log-likelihood) on C4, Fineweb-Edu, and Cosmopedia.
  • Downstream Benchmarks: ARC-Easy, PIQA, and SocialIQA were used to verify that validation loss improvements translated to actual reasoning capabilities.
  • Synthetic "Junk": Custom datasets of random character strings and shuffled-word versions of CC documents.

Key Insights and Ideas

  • The Capacity to Ignore: The authors hypothesize that large models have enough "rank" or capacity to absorb noisy, orthogonal tasks (like modeling random strings) without interfering with the primary task of modeling natural language. Small models, conversely, suffer from "interference" where the noise drowns out the signal.
  • Shuffled Data is Still Data: Surprisingly, models trained on documents with shuffled word orders eventually outperformed models trained on the raw pool alone. Even without syntax, the unigram distribution (which words appear together) provides a useful signal that large models can exploit.
  • The Bitter Lesson for Data: The results echo Richard Sutton’s famous "Bitter Lesson": general methods that leverage compute (like training on everything) eventually win out over specialized human knowledge (like hand-crafted data filters).
Figure 1: Comparison of models on 670M token CC pool and five filtered subsets. For sufficiently large models (330M+), the unfiltered pool (black) outperforms all five filters (colors) after sufficiently many optimization steps (x-axis, tokens under multiple epochs).

Key Results

  • Filters are for the Compute-Poor: For a 15M parameter model, filters always helped. However, for models with 330M parameters or more, the unfiltered pool eventually achieved the lowest loss.
  • Earlier Crossing Points: As model size increases, the "crossing point" happens earlier. A 1B parameter model overtakes the filtered baselines much faster than a 330M model.
  • The $10^{30}$ FLOPs Prediction: The authors project that for the full 240T token Common Crawl to be the optimal training set (beating all filters), we would need roughly $10^{30}$ FLOPs of compute. For context, current frontier models are estimated to be around $5 \times 10^{26}$ FLOPs.
Figure 2: Pareto frontier of Figure 1 showing that in high-compute regimes, pool becomes optimal.

Limitations and Future Work

  • The Compute Gap: While $10^{30}$ FLOPs is theoretically reachable by 2030, it is currently far beyond the reach of most researchers, meaning filtering remains a practical necessity for now.
  • Factuality vs. Noise: The study shows models are robust to noise (shuffled words, random strings), but it notes that misinformation (e.g., "The capital of France is Copenhagen") might still be actively harmful. The authors found that in CC, supporting evidence for facts generally outweighs refutations by an order of magnitude, which helps explain the model's resilience.
  • Architecture Specifics: The study focused on dense transformers. It remains to be seen if more efficient architectures like Mixture-of-Experts (MoEs) exhibit the same robustness to unfiltered data.
  • Post-Training: The impact of "junk" pretraining data on subsequent instruction tuning or RLHF was not explored.

Summary updated

BibTeX
@inproceedings{mohri2026bitter,
  author = {Christopher Mohri and John Duchi and Tatsunori Hashimoto},
  title = {{A Bitter Lesson for Data Filtering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1bGfOCtPWO},
}
Figure