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:
- Filtering: This includes language identification (using FastText), quality filtering (combining heuristics from Gopher and C4), toxicity detection, and PII (Personally Identifiable Information) masking.
- 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:
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.
- 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.
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