NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DataComp-LM: In search of the next generation of training sets for language models

Jeffrey Li, Alex Fang, Georgios Smyrnis, Maor Ivgi, Matt Jordan, Samir Gadre, Hritik Bansal, Etash Guha, Sedrick Keh, Kushal Arora, Saurabh Garg, Rui Xin, Niklas Muennighoff, Reinhard Heckel, Jean Mercat, Mayee Chen, Suchin Gururangan, Mitchell Wortsman, Alon Albalak, Yonatan Bitton, Marianna Nezhurina, Amro Abbas, Cheng-Yu Hsieh, Dhruba Ghosh, Josh Gardner, Maciej Kilian, Hanlin Zhang, Rulin Shao, Sarah Pratt, Sunny Sanyal, Gabriel Ilharco, Giannis Daras, Kalyani Marathe, Aaron Gokaslan, Jieyu Zhang, Khyathi Chandu, Thao Nguyen, Igor Vasiljevic, Sham Kakade, Shuran Song, Sujay Sanghavi, Fartash Faghri, Sewoong Oh, Luke Zettlemoyer, Kyle Lo, Alaaeldin El-Nouby, Hadi Pouransari, Alexander Toshev, Stephanie Wang, Dirk Groeneveld, Luca Soldaini, Pang Wei Koh, Jenia Jitsev, Thomas Kollar, Alexandros G. Dimakis, Yair Carmon, Achal Dave, Ludwig Schmidt, Vaishaal Shankar

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:

  1. 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.
  2. 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:

  1. Select a Scale: Researchers choose from five compute scales (from 400M to 7B parameters) to test their data strategies.
  2. Build a Dataset: Participants can either filter the provided DCLM-POOL or mix it with external sources.
  3. Standardized Training: Models are trained using a fixed, decoder-only Transformer recipe (based on the OpenLM framework) to ensure data is the only variable.
  4. Evaluation: Models are tested on a suite of 53 downstream tasks.
The DCLM workflow: Select scale, build dataset, train, and evaluate.

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.
Figure 3: Datasets rank consistently across competition scales in DCLM. This makes it possible to iterate on data curation at small scales.
  • 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).
Figure 1: Improving training sets leads to better models that are cheaper to train. Using DataComp-LM, we develop a high-quality dataset, DCLM-BASELINE, which we use to train models with state-of-the-art trade-offs between compute and performance. We compare on both (left) a CORE set of tasks and on (right) MMLU 5-shot. Specifically DCLM-BASELINE (orange) shows favorable performance relative to both closed-source models (crosses) and other open-source datasets and models (circles). Models in this figure are from [4, 10, 22, 46, 73, 103, 103, 106, 128, 137, 157, 162, 164, 168–170, 198]. Table 33 provides a table version of this figure.

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

BibTeX
@inproceedings{li2024datacomp,
  author = {Jeffrey Li and Alex Fang and Georgios Smyrnis and Maor Ivgi and Matt Jordan and Samir Gadre and Hritik Bansal and Etash Guha and Sedrick Keh and Kushal Arora and Saurabh Garg and Rui Xin and Niklas Muennighoff and Reinhard Heckel and Jean Mercat and Mayee Chen and Suchin Gururangan and Mitchell Wortsman and Alon Albalak and Yonatan Bitton and Marianna Nezhurina and Amro Abbas and Cheng-Yu Hsieh and Dhruba Ghosh and Josh Gardner and Maciej Kilian and Hanlin Zhang and Rulin Shao and Sarah Pratt and Sunny Sanyal and Gabriel Ilharco and Giannis Daras and Kalyani Marathe and Aaron Gokaslan and Jieyu Zhang and Khyathi Chandu and Thao Nguyen and Igor Vasiljevic and Sham Kakade and Shuran Song and Sujay Sanghavi and Fartash Faghri and Sewoong Oh and Luke Zettlemoyer and Kyle Lo and Alaaeldin El-Nouby and Hadi Pouransari and Alexander Toshev and Stephanie Wang and Dirk Groeneveld and Luca Soldaini and Pang Wei Koh and Jenia Jitsev and Thomas Kollar and Alexandros G. Dimakis and Yair Carmon and Achal Dave and Ludwig Schmidt and Vaishaal Shankar},
  title = {{DataComp-LM: In search of the next generation of training sets for language models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=CNWdWn47IE},
}
Figure