TL;DR
DataComp-LM (DCLM) is a massive new benchmark and testbed designed to standardize how we study and curate training data for large language models. By providing a 240-trillion-token pool and a controlled experimental framework, the authors demonstrate that superior data curation allows a 7B parameter model to match the performance of Llama 3 8B while using 6.6x less training compute.
What Problem Does This Paper Address?
In the race to build better Large Language Models (LLMs), the "secret sauce" is often the training data. However, while model architectures are frequently open-sourced, the exact composition and curation strategies for training sets (like those for Llama or Mistral) remain largely proprietary.
This lack of transparency creates two major hurdles:
- Confounding Variables: It is currently impossible to tell if a new model is better because of its architecture, its training hyperparameters, or simply because it had better data.
- High Entry Barriers: Curating high-quality data from the "raw" web is computationally expensive and lacks a standardized "playground" where researchers can compare different filtering or mixing strategies fairly.
DCLM addresses this by providing a massive, standardized corpus and a fixed training recipe, allowing researchers to isolate and study the impact of data curation alone.
Methods
The authors introduce a systematic workflow for data experimentation:
- Select a Scale: Researchers choose from five compute scales (from 400M to 7B parameters) to test their data strategies.
- Build a Dataset: Participants can either filter the provided DCLM-POOL or mix it with external sources.
- Standardized Training: Models are trained using a fixed, decoder-only Transformer recipe (based on the OpenLM framework) to ensure data is the only variable.
- Evaluation: Models are tested on a suite of 53 downstream tasks.
To establish a baseline, the authors developed DCLM-BASELINE. Their pipeline involves:
- Text Extraction: Using resiliparse to pull clean text from raw HTML.
- Deduplication: A modified Bloom filter approach that handles both document and paragraph-level duplicates efficiently at the multi-terabyte scale.
- Model-Based Filtering: This was the "aha" moment. They found that a simple fastText classifier, trained to distinguish between "low-quality" web text and "high-quality" instruction data (from OpenHermes 2.5 and ELI5), was remarkably effective at identifying the best training samples.
Datasets
- DCLM-POOL: The core of the project, containing 240 trillion GPT-NeoX tokens extracted from Common Crawl. It is the largest public pool of raw text data available for LM training.
- DCLM-BASELINE: A 3.8T token high-quality subset derived from the pool.
- Evaluation Suite: A comprehensive set of 53 tasks, including MMLU (Massive Multitask Language Understanding) and a CORE set of 22 low-variance tasks designed to provide a stable signal even for smaller models.
Key Insights and Ideas
- Small Models are Great Proxies: One of the most practical findings is that data curation strategies tested on models as small as 400M parameters correlate highly with performance at the 7B scale. This allows for rapid, low-cost iteration on data strategies.
- Quality Over Quantity: The results challenge the "more is always better" mantra. By using better filtering, the authors achieved state-of-the-art results with significantly fewer tokens and less compute than previous open-data models.
- The Power of Instruction Data for Filtering: Using instruction-formatted data (like OpenHermes) to train a quality filter provides a massive performance boost (3.5 percentage points on the CORE metric) compared to traditional reference sets like Wikipedia.
- Mixing Can Backfire: Surprisingly, once you have a highly performant filter for web data, mixing in traditional "high-quality" sources like Wikipedia or ArXiv can actually decrease average performance, suggesting that high-quality web data might already capture much of that value.
Key Results
The DCLM-BASELINE model sets a new standard for open-data language models:
- Efficiency: A 7B model trained on 2.6T tokens from DCLM-BASELINE reached 64% on MMLU.
- Comparison: This outperforms the previous state-of-the-art open-data model, MAP-Neo, by 6.6 percentage points while using 40% less compute.
- Compute Parity: The model performs similarly to Llama 3 8B across 53 tasks despite being trained with 6.6x less compute (Llama 3 was trained on 15T tokens; DCLM-BASELINE on 2.6T).
Limitations and Future Work
- Domain Specificity: While excellent at general language understanding, the current DCLM-BASELINE lags behind specialized models in math and coding. The authors suggest that adding domain-specific data is a clear next step.
- Tokenizer Constraints: Most experiments used a single tokenizer (GPT-NeoX). Different tokenizers might yield different results, especially for multilingual or technical content.
- Scale Limits: Due to compute constraints, the benchmark currently tops out at 7B parameters. Whether these data insights hold at the 70B or 400B scale remains an open question.
- Future Directions: The authors hope to expand the benchmark to include explicit tracks for multilinguality, safety, and fairness.
Summary updated