Introduction
In the development of Large Language Models (LLMs), research has traditionally focused on model architectures and compute scaling laws. However, the data used for training remains largely a "black box." Most state-of-the-art models, such as GPT-4 or Llama 3, utilize proprietary datasets with undisclosed filtering and mixing recipes. This lack of transparency hinders systematic progress; it is often unclear whether a model's superiority stems from its architecture or simply cleaner training data.
DataComp-LM (DCLM) addresses this gap by providing a massive, open-source testbed designed to turn data curation into a rigorous science. By offering a standardized pool of 240 trillion tokens and a multi-scale evaluation framework, DCLM allows researchers to experiment with data-cleaning strategies in a controlled environment.
The DCLM Workflow
The authors propose a standardized pipeline for dataset construction from raw web crawls. This workflow ensures that improvements in model performance can be directly attributed to data curation strategies rather than architectural tweaks.
The workflow consists of four primary stages:
- Select a Scale: Researchers choose from five compute scales (400M to 7B parameters), allowing for rapid iteration at smaller scales that correlate with large-scale performance.
- Build a Dataset: This involves text extraction using resiliparse, heuristic filtering (sanity checks for length and repetition), deduplication via Bloom filters, and model-based filtering.
- Train a Model: Models are trained using a fixed, standardized recipe to isolate the impact of the data.
- Evaluate: Performance is measured across a suite of 53 downstream tasks, including MMLU, HellaSwag, and ARC.
Datasets and Evaluation
DCLM introduces several key resources:
- DCLM-POOL: A corpus of 240 trillion tokens from Common Crawl (2013–2022), representing the largest public pool of raw text for research.
- DCLM-BASELINE: A 3.8T token high-quality dataset curated using the authors' optimal filtering strategy.
- Evaluation Suite: A comprehensive collection of 53 tasks measuring reasoning, mathematics, and general knowledge.
Key Insights
A primary finding is that model-based filtering is essential for state-of-the-art performance. Interestingly, simple classifiers like fastText often outperform more complex LLM-based filters when trained on high-quality reference data (e.g., OpenHermes). The study also highlights a "human disconnect," where human-judged "quality" does not always align with the linguistic patterns necessary for effective model pretraining.
Crucially, the research demonstrates that data quality can substitute for compute. By using superior data, the authors trained a 7B model that matches Llama 3 8B while requiring 6.6x less training compute.
Results
The flagship DCLM-7B model, trained on 2.6 trillion tokens from the DCLM-BASELINE, sets a new benchmark for models trained on open data.
DCLM-7B achieved 64% on MMLU (5-shot), outperforming previous open-data leaders like MAP-Neo while using 40% less compute. It remains highly competitive with top-tier proprietary-data models like Mistral-7B-v0.3 (63%) and Llama 3 8B (66%).
Conclusion
DataComp-LM shifts the focus of LLM research toward the systematic study of training data. While DCLM-7B excels in general language understanding, future work is needed to close the gap in specialized domains like mathematics and coding. By releasing the pool, models, and code, the authors provide the community with the tools necessary to refine the "art" of data curation into a predictive science.
Summary updated