TL;DR
This paper introduces DataComp-LM (DCLM), a comprehensive benchmark and testbed for rigorously evaluating data curation strategies for large language models (LLMs). By providing a standardized framework and a massive dataset, DCLM aims to accelerate research into what makes high-quality training data, leading to more performant and efficient LLMs.
What Problem Does This Paper Address?
The rapid progress in LLMs has been heavily driven by scaling up training data. However, the field currently lacks a controlled environment to systematically study the impact of data curation techniques (like filtering, deduplication, and mixing) on LLM performance. Researchers often compare models trained with different architectures, compute budgets, and hyperparameters, making it difficult to isolate the true effect of data quality. Furthermore, details about the training data for many state-of-the-art open-weight models are scarce, hindering reproducible research. DCLM addresses this by providing a standardized benchmark where participants can experiment with data curation strategies on a massive, common corpus, enabling direct comparison of their impact on LLM performance.
Methods
DCLM employs a structured workflow:
- Scale Selection: Participants choose from five compute scales (400M to 7B parameters) to match their resources.
- Dataset Curation: Participants can either filter a provided pool of data (DCLM-POOL) or mix their own data sources.
- Model Training: LLMs are trained using a fixed, standardized recipe (OpenLM framework, decoder-only Transformer) at each scale.
- Evaluation: Models are evaluated on a suite of 53 downstream tasks.
The paper also details extensive experiments on various data curation techniques, including:
- Text Extraction: Comparing resiliparse, trafilatura, and WET files, finding resiliparse to be efficient and effective.
- Deduplication: Investigating MinHash, Suffix Arrays, and Bloom Filters, ultimately favoring a Bloom Filter approach for its scalability and effectiveness.
- Model-Based Filtering: Exploring various classifiers, with fastText trained on instruction-formatted data (OH-2.5 + ELI5) emerging as a strong performer.
- Data Mixing: Analyzing the impact of combining data sources, finding that for highly filtered data, mixing can sometimes be counterproductive.
- Decontamination: Developing methods to assess and mitigate the impact of test set contamination.
Datasets
- DCLM-POOL: A massive, unfiltered corpus of 240 trillion tokens extracted from Common Crawl (pre-2023).
- DCLM-BASELINE: A high-quality, curated subset derived from DCLM-POOL, serving as a state-of-the-art baseline dataset.
- Evaluation Tasks: A suite of 53 downstream tasks, categorized into CORE (22 tasks) and EXTENDED (53 tasks), covering a wide range of language understanding capabilities.
Key Insights and Ideas
- Data Curation is Paramount: The paper strongly emphasizes that dataset design and curation are critical drivers of LLM performance, often more so than minor architectural tweaks.
- Model-Based Filtering is Key: Using learned models (specifically fastText classifiers) for quality filtering proved to be a highly effective strategy for assembling high-quality training sets.
- Human Judgment is Limited: Human annotators' ability to reliably identify high-quality training data for LLMs was found to be surprisingly limited, with correlations to downstream performance being weak.
- Scaling Trends are Consistent: The ranking of different data curation strategies remained largely stable across different model scales, suggesting that insights gained at smaller scales can inform larger ones.
- Standardized Benchmarking is Crucial: The DCLM benchmark provides a much-needed controlled environment for comparing data curation methods, accelerating progress in the field.
Key Results
- DCLM-BASELINE Dataset: The paper introduces DCLM-BASELINE, a new state-of-the-art open-data training set.
- Performance Gains: Training a 7B parameter LLM on DCLM-BASELINE achieved 63% 5-shot accuracy on MMLU, outperforming previous open-data models by 6 percentage points while using 40% less compute.
- Efficiency: The DCLM-BASELINE model is competitive with models like Mistral-7B and Llama 3 8B on MMLU, despite being trained with significantly less compute.
- Scalability: The DCLM framework and findings are shown to be effective across various model scales, from 412M to 7B parameters.
- Open-Source Release: The DCLM benchmark, framework, models, and datasets are publicly released to foster further research.
Limitations and Future Work
- Compute Constraints: Due to computational costs, the authors could not test all possible data curation strategies at larger scales or train models beyond 7B parameters.
- Run-to-Run Variation: Exploring run-to-run variation was not sufficiently covered.
- Multilingual and Code/Math Performance: While DCLM-BASELINE excels in language understanding, it doesn't perform as well on code and math tasks, suggesting a need for domain-specific data augmentation.
- Fairness, Multilinguality, Safety: Future work should expand DCLM to cover these critical dimensions.
- Alignment: The instruction-tuned models presented do not undergo advanced alignment procedures like PPO or DPO, which is a direction for future research.
Summary updated