Archive of AI

Source Snapshot / 2024-04-15-ai2-dolma-copyright-consent-and-impact-license-2

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

Linked event: 2024-04-15 · Dolma Corpus Switches to ODC-BY After Open-Source Licensing Controversy, Highlighting Unauthorized Scraping and Copyright Clearance Boundaries

Publisher
arXiv
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 18f88298a7a21193
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] The authors acknowledge that explicit-consent data frameworks would limit representativeness goals and note that with current tools it is not possible to reliably detect copyrighted materials in a corpus of this size.

[正文前段节选] arXiv is now an independent nonprofit!

Back to arXiv

License: CC BY 4.0

arXiv:2402.00159v2 [cs.CL] 06 Jun 2024

Dolma: an Open Corpus of Three Trillion Tokens

for Language Model Pretraining Research

Luca Soldaini

Rodney Kinney

Akshita Bhagia

Dustin Schwenk

Email: lucas@allenai.org

David Atkinson

Russell Authur

Khyathi Chandu

Email: kylel@allenai.org

Jennifer Dumas

Yanai Elazar

Valentin Hofmann

Ananya Harsh Jha

Sachin Kumar

Nathan Lambert

Ian Magnusson

Jacob Morrison

Niklas Muennighoff

Aakanksha Naik

Matthew E. Peters

Abhilasha Ravichander

Kyle Richardson

Zejiang Shen

Emma Strubell

Nishant Subramani

Oyvind Tafjord

Luke Zettlemoyer

Noah A. Smith

Hannaneh Hajishirzi

Dirk Groeneveld

Affiliation:

Affiliation: Allen Institute for AI  University of California, Berkeley  Carnegie Mellon University

Affiliation: Spiffy AI Massachusetts Institute of Technology  University of Washington

Information about pretraining corpora used to train the current best-performing language models is seldom discussed:

commercial models rarely detail their data, and

even open models are often released without accompanying training data or recipes to reproduce them.

As a result, it is challenging to conduct and advance scientific research on language modeling, such as understanding how training data impacts model capabilities and limitations.

To facilitate scientific research on language model pretraining, we curate and release Dolma, a three-trillion-token English corpus, built from a diverse mixture of web content, scientific papers, code, public-domain books, social media, and encyclopedic materials.

We extensively document

Dolma, including its design principles, details about its construction, and a summary of its contents.

We present analyses and experimental results on intermediate states of Dolma to share what we have learned about important data curation practices.

Finally, we open-source our data curation toolkit

to enable reproduction of our work as well as support further research in large-scale data curation.11

This manuscript was prepared for Dolma v.1.6. As our work on open data for language modeling continues, we will continue to improve Dolma. Updated versions can be found in the provided links.

hf.co/datasets/allenai/dolma

github.com/allenai/dolma

Common Crawl

social media

Semantic Scholar

Project Gutenberg

Wikipedia, Wikibooks

encyclopedic

The Dolma corpus at-a-glance.

It consists of three trillion tokens sampled from a diverse set of domains; sourced from approximately 200 TB of raw text before curation down to an 11 TB dataset.

It has been extensively cleaned for language model pretraining use. Tokens calculated using the LLaMA tokenizer.

00footnotetext: \varheartsuit{}^{\varheartsuit}Core authors. See Appendix B for list of contributions.

1 Introduction

Language models are now central to tackling myriad natural language processing tasks, including few-shot learning, summarization, question answering, and more.

Increasingly, the most powerful language models are built by a few organizations who withhold most model development details (Anthropic, 2023; OpenAI, 2023; Anil et al., 2023; Gemini Team et al., 2023).

In particular, the composition of language model pretraining data is often vaguely described, even in cases where the model itself is released for public use, such as Llama 2 (Touvron et al., 2023b).

This hinders understanding of the effects of pretraining corpus composition on model capabilities and limitations, with impacts on scientific progress as well as on the public who interfaces with these models.

Our aim is to increase participation in scientific research of language models through open corpora:

Data transparency helps developers and users of applications that rely on language models to make more informed decisions (Gebru et al., 2021).

For example, models have shown to perform better on tasks that are more similar to their pretraining data (Razeghi et al., 2022; Kandpal et al., 2023),

or social biases in models’ pretraining data may necessitate additional consideration when using them (Feng et al., 2023; Navigli et al., 2023; Seshadri et al., 2023).

Open pretraining data is necessary to analyze

how its composition influences model behavior, allowing those training models to interrogate and improve current data practices (Longpre et al., 2023; Gao, 2021; Elazar et al., 2023).

Examples of this research include memorization (Carlini et al., 2022; Chang et al., 2023), deduplication (Lee et al., 2022), adversarial attacks (Wallace et al., 2021), benchmark contamination (Magar and Schwartz, 2022), and training data attribution (Hammoudeh and Lowd, 2022; Grosse et al., 2023).

To support broader participation and inquiry in these lines of research, we present Data for Open Language Models’ Appetite (Dolma), an open corpus of three trillion tokens designed to support language model pretraining research.

We source much of our data from sources similar to those present in past work, including a mix of web text from Common Crawl, scientific research from Semantic Scholar, code from GitHub, public domain books, social media posts from Reddit, and encyclopedic materials from Wikipedia.

Compared to other publicly-available pretraining corpora, Dolma offers a larger pool of tokens at comparable quality while maintaining diverse data composition.

In summary, our contributions are two-fold:

We release the Dolma Corpus, a diverse, multi-source collection of 3T tokens11

We follow the definition of “token” as a subword obtained using a tokenizer (such as LLaMA’s or GPT-NeoX’s), which is distinct from “word”, as in a unit of text as defined by the Unicode text segmentation standard. across over 4B documents acquired from 6 different data sources that are (i) commonly seen in large-scale language model pretraining and (ii) made accessible to the general public.

Table 1 provides a high-level overview of the amount of data from each source.

We open source the Dolma Toolkit, a high-performance, portable tool designed to efficiently curate large datasets for language model pretraining.

Through this toolkit, practitioners can not only reproduce our dataset, but also study and improve data curation practices.

2 Related Work

Closed data curation practices in language model pretraining research.

Pretraining data practices for language model research have grown increasingly closed, both with respect to access to data as well as documentation of key details about the data itself or its curation practices that would enable reproduction efforts or further scientific study.

Proprietary models (e.g., GPT-4, OpenAI, 2023; PaLM 2, Anil et al., 2023; Claude, Anthropic, 2023) disclose little to no information (not even corpus size, or data provenance), and do not share data artifacts.

Despite increasing access to powerful open models, few are released alongside their training data; exceptions include T5 on C4 (Raffel et al., 2020), BLOOM (Leong et al., 2022) on ROOTS (Piktus et al., 2023), GPT-J (Wang and Komatsuzaki, 2021), GPT-NeoX (Black et al., 2022), Pythia (Biderman et al., 2023) on Pile (Gao et al., 2020), and INCITE (Together Computer, 2023c) on RedPajama v1 (Together Computer, 2023a).

The most powerful open models (e.g., Llama 2 (Touvron et al., 2023b), Mistral (Jiang et al., 2023), Yi (Bai et al., 2023), Qwen (01.AI, 2023)) do not share their data nor provide sufficient details for reproduction.

Among large-scale language model pretraining efforts, the ones accompanied with transparent data curation documentation include LLaMA (Touvron et al., 2023a) (released model, unreleased data), Gopher (Rae et al., 2021) (unreleased model and data), and Falcon (Almazrouei et al., 2023) (released model, released partial data).

[...内容已截断,完整版请查看原文或 Wayback 快照]