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

Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research

Luca Soldaini, Rodney Kinney, Akshita Bhagia, Dustin Schwenk, David Atkinson, Russell Authur, Ben Bogin, Khyathi Raghavi Chandu, Jennifer Dumas, Yanai Elazar, Valentin Hofmann, Ananya Harsh Jha, Sachin Kumar, Li Lucy, Xinxi Lyu, Nathan Lambert, Ian Magnusson, Jacob Morrison, Niklas Muennighoff, Aakanksha Naik, Crystal Nam, Matthew E. Peters, Abhilasha Ravichander, Kyle Richardson, Zejiang Shen, Emma Strubell, Nishant Subramani, Oyvind Tafjord, Pete Walsh, Luke Zettlemoyer, Noah A. Smith, Hannaneh Hajishirzi, Iz Beltagy, Dirk Groeneveld, Jesse Dodge, Kyle Lo

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:

  1. Language Filtering: Using FastText classifiers to ensure content is primarily English.
  2. 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).
  3. Content Filtering: Custom classifiers to identify and remove toxic and NSFW content.
  4. PII Masking: High-speed tools to mask personally identifiable information.
  5. Deduplication: A three-stage process (URL, document, and paragraph-level) using Bloom filters to remove redundant content.
Impact of quality filtering heuristics on HellaSwag accuracy.

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.

Compounding effects of quality filtering, deduplication, and content filtering on model performance.

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

BibTeX
@inproceedings{soldaini2024dolma,
  author = {Luca Soldaini and Rodney Kinney and Akshita Bhagia and Dustin Schwenk and David Atkinson and Russell Authur and Ben Bogin and Khyathi Raghavi Chandu and Jennifer Dumas and Yanai Elazar and Valentin Hofmann and Ananya Harsh Jha and Sachin Kumar and Li Lucy and Xinxi Lyu and Nathan Lambert and Ian Magnusson and Jacob Morrison and Niklas Muennighoff and Aakanksha Naik and Crystal Nam and Matthew E. Peters and Abhilasha Ravichander and Kyle Richardson and Zejiang Shen and Emma Strubell and Nishant Subramani and Oyvind Tafjord and Pete Walsh and Luke Zettlemoyer and Noah A. Smith and Hannaneh Hajishirzi and Iz Beltagy and Dirk Groeneveld and Jesse Dodge and Kyle Lo},
  title = {{Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Research}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.840},
}
Figure