Introduction
The Allen Institute for AI (AI2) has released Dolma, a massive, open-source corpus of three trillion tokens designed for language model pretraining. In the current landscape of Large Language Models (LLMs), data curation is often treated as a proprietary secret. Even models marketed as "open" frequently lack transparency regarding their training set composition or the specific heuristics used for cleaning. This opacity creates a significant barrier to scientific research, making it difficult to understand model biases, memorization, or the impact of data mixtures. Dolma addresses this by providing both the dataset and the Dolma Toolkit, a fully transparent pipeline for high-quality, web-scale data curation.
Methodology and Data Curation
The authors developed a high-performance system to process hundreds of terabytes of raw text through a multi-stage pipeline:
- Language Filtering: Using FastText classifiers to ensure content is primarily English.
- Quality Filtering: A hybrid approach combining heuristics from Google’s C4 (e.g., requiring lines to end in punctuation) and DeepMind’s Gopher (e.g., symbol-to-word ratios).
- Content Filtering: Custom classifiers to identify and remove toxic and NSFW content.
- PII Masking: High-speed tools to mask personally identifiable information.
- Deduplication: A three-stage process (URL, document, and paragraph-level) using Bloom filters to remove redundant content.
The authors validated these steps through data ablations, training 1.2B parameter models on different data versions. As shown in Figure 3, specific quality heuristics significantly influence downstream performance, with the combination of C4 and Gopher-style filters yielding the highest accuracy on benchmarks like HellaSwag.
Key Insights: The Compounding Effect
A central finding of the Dolma research is that data cleaning steps are not redundant; they exhibit a positive compounding effect. Stacking quality filtering, deduplication, and content filtering leads to superior model performance compared to any single method alone.
Figure 5 illustrates how each successive layer of the curation pipeline—from basic quality filters to deduplication and finally content filtering—incrementally improves model accuracy. This suggests that different filtering techniques capture orthogonal signals of data quality.
Results and Performance
Dolma-trained models demonstrate competitive performance against established baselines. A 1.2B parameter model (OLMo-1B) trained on Dolma achieved an average score of 60.3 across eight standard benchmarks, outperforming similarly sized models like TinyLlama (59.4) and Pythia (54.5).
Efficiency gains were also substantial; URL-level deduplication alone filtered out over 53% of documents in the Common Crawl subset without hurting performance. Furthermore, perplexity analysis on the Paloma benchmark showed that Dolma-trained models achieve a better "fit" across diverse textual domains compared to models trained on single-source web scrapes.
Conclusion
Dolma represents a significant step toward transparency in LLM pretraining. While currently limited to English, the project is designed to be iterative, with the authors viewing it as a living project. By open-sourcing the "recipe" alongside the data, AI2 enables the research community to better understand the fundamental relationship between massive-scale data curation and model behavior.
Summary updated