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 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

TL;DR

The researchers at the Allen Institute for AI (AI2) have released Dolma, a massive, open-source English corpus containing three trillion tokens designed for language model pretraining. Alongside the data, they’ve open-sourced the Dolma Toolkit, a high-performance curation pipeline, and provided a detailed "recipe" to help the community move away from the "black box" nature of modern LLM training data.

What Problem Does This Paper Address?

In the current AI landscape, the data used to train top-tier models is often a closely guarded secret. Even "open" models like Llama 2 are frequently released without their training sets or the specific cleaning "recipes" used to create them. This lack of transparency creates a massive hurdle for scientific research: if we don't know exactly what a model was fed, we can't truly understand why it succeeds, where it fails, or how social biases and memorization issues emerge.

Dolma aims to solve this by providing a massive, high-quality, and fully documented dataset that allows researchers to study the relationship between pretraining data and model capabilities in a controlled, reproducible way.

Methods

The authors developed the Dolma Toolkit, a high-performance Rust-based system designed to process hundreds of terabytes of text. The pipeline is built around two core operations:

  1. Filtering: This includes language identification (using FastText), quality filtering (combining heuristics from Gopher and C4), toxicity detection, and PII (Personally Identifiable Information) masking.
  2. Mixing: This handles cross-file operations like up/down-sampling, deduplication, and test-set decontamination.

A key innovation is their multi-stage deduplication strategy. They perform exact URL and document-level deduplication early in the pipeline to drastically reduce the computational load, followed by a final paragraph-level deduplication using Bloom filters to remove boilerplate content (like headers and navigation elements).

Datasets

The Dolma corpus is a diverse mixture of six primary sources, totaling approximately 3 trillion tokens:

Table 1: The Dolma corpus at-a-glance.

For evaluation, the authors used Paloma, a benchmark for measuring how well a model fits diverse textual domains, and a suite of eight downstream tasks including HellaSwag, PIQA, and WinoGrande.

Key Insights and Ideas

  • The Compounding Effect of Filters: One of the most important findings is that data curation steps are not just additive; they are compounding. Stacking quality filters, deduplication, and content filters leads to significantly better downstream performance than using any single method alone.
Figure 3: We find a positive compounding effect on 1.2B model performance, evaluated across training iter- ations, when stacking quality filtering, content filtering and paragraph-level deduplication, over a no-filtering baseline. We show results on HellaSwag here; all figures for other evaluation datasets are in the Appendix §O.
  • Simplicity Wins in Social Media: When processing Reddit data, the authors tested complex ways to reconstruct conversation threads. Surprisingly, treating every post and comment as an independent "atomic" document yielded better model performance than trying to format them as multi-round dialogues.
  • Code is for Reasoning: Corroborating prior research, the authors found that including code in the pretraining mix improves a model's performance on reasoning tasks, even when those tasks have nothing to do with programming.
  • Diversity Over Scale: Models trained on diverse, multi-source data (like Dolma or the Pile) show a much better "fit" across various domains (lower perplexity) compared to models trained on massive but single-source web crawls, even when the web crawls are much larger.

Key Results

To validate Dolma, the authors trained OLMo-1B, a 1.2-billion parameter model. Despite its relatively small size, OLMo-1B (trained on Dolma) achieved an average score of 60.3 across their evaluation suite, outperforming other popular open models of similar scale like Pythia and TinyLlama.

Table 2: Comparison of OLMo-1B and other similarly-sized language models.

The authors also demonstrated that their quality filtering strategy (combining Gopher and C4 rules) was superior to using either set of rules in isolation, particularly for improving performance on common-sense reasoning tasks like HellaSwag.

Limitations and Future Work

  • English-Only: Dolma is currently limited to English. The authors acknowledge this reinforces English as the "default" for NLP and hope to expand to other languages in future versions.
  • Scale of Ablations: Due to compute costs, the detailed ablation studies (testing different filtering choices) were performed at the 1B parameter scale. It is possible that some design decisions might shift when training much larger models (e.g., 70B+).
  • Representativeness: While diverse, Dolma cannot represent all possible data curation practices, especially those involving proprietary or non-redistributable content.
  • Manual Inspection: At 3 trillion tokens, it is impossible to manually verify every document. The authors rely on programmatic tools and acknowledge that potential harms or biases may still exist within the corpus.

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 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