| The Pile | |
|---|---|
| Size | 886.03 GB |
| Type | Open-source |
| Language | English |
| Creator(s) | EleutherAI |
| Date of release | December 31, 2020 |
| Main application(s) | Training large language models |
The Pile is an 886 GB diverse, open-source dataset of English text created as a training dataset for large language models (LLMs). It was constructed by EleutherAI in 2020 and publicly released on December 31 of that year. [1] [2] It is composed of 22 smaller datasets, including 14 new[ clarification needed ] ones. [1]
Training LLMs requires sufficiently vast amounts of data that, before the introduction of the Pile, most data used for training LLMs was taken from the Common Crawl. [3] However, LLMs trained on more diverse datasets are better able to handle a wider range of situations after training. [4] The creation of the Pile was motivated by the need for a large enough dataset that contained data from a wide variety of sources and styles of writing. [1] [5] Compared to other datasets as of 2022, the Pile's main distinguishing features were that it was a curated selection of data chosen by researchers at EleutherAI to contain information they thought language models should learn and that it was the only such dataset that was thoroughly documented by the researchers who developed it. [6]
Machine learning algorithms do not learn all they can from data on the first pass, so it is common practice to train an AI model on the same data more than once with each pass through the entire dataset referred to as an "epoch". [7] To indicate variation in the perceived quality of the data between the 22 sub-datasets that make up the Pile, each of them was assigned a different number of "epochs", which would affect relative frequencies at which samples would be drawn from each individual sub-dataset. [1] The table below shows the relative size of each of the 22 sub-datasets before and after being multiplied by the number of epochs. Sizes have been converted to GB, and asterisks are used to indicate the newly introduced datasets.
| Component | Original size, GB | Epochs | Effective size, GB |
|---|---|---|---|
| Pile-CC | 243.87 | 1 | 243.87 |
| PubMed Central* | 96.93 | 2 | 193.86 |
| Books3 | 108.40 | 1.5 | 162.61 |
| OpenWebText2* | 67.40 | 2 | 134.80 |
| arXiv* | 60.36 | 2 | 120.71 |
| GitHub* | 102.18 | 1 | 102.18 |
| Free Law* | 54.92 | 1.5 | 82.39 |
| Stack Exchange* | 34.57 | 2 | 69.14 |
| USPTO Backgrounds* | 24.59 | 2 | 49.19 |
| PubMed Abstracts* | 20.68 | 2 | 41.37 |
| Gutenberg (PG-19) | 11.68 | 2.5 | 29.20 |
| OpenSubtitles | 13.94 | 1.5 | 20.91 |
| Wikipedia | 6.85 | 3 | 20.54 |
| DeepMind Mathematics | 8.32 | 2 | 16.63 |
| Ubuntu Freenode IRC logs* | 5.93 | 2 | 11.84 |
| BookCorpus2* | 6.76 | 1.5 | 10.15 |
| EuroParl | 4.93 | 2 | 9.85 |
| Hacker News* | 4.19 | 2 | 8.38 |
| YouTube Subtitles* | 4.01 | 2 | 8.02 |
| PhilPapers* | 2.56 | 2 | 5.11 |
| NIH ExPorter* | 2.03 | 2 | 4.07 |
| Enron Emails | 0.95 | 2 | 1.89 |
| Total | 886.03 | 1346.69 |
EleutherAI chose the datasets to try to cover a wide range of topics and styles of writing, including academic writing, which models trained on other datasets were found to struggle with. [1]
All data used in the Pile was taken from publicly accessible sources. EleutherAI then filtered the dataset as a whole to remove duplicates. Some sub-datasets were also filtered for quality control. Most notably, the Pile-CC is a modified version of the Common Crawl in which the data was filtered to remove parts that are not text, such as HTML formatting and links. [1]
Some potential sub-datasets were excluded for various reasons, such as the US Congressional Record, which was excluded due to its racist content. [1]
Within the sub-datasets that were included, individual documents were not filtered to remove non-English, biased, or profane text. It was also not filtered on the basis of consent, meaning that, for example, the Pile-CC has all of the same ethical issues as the Common Crawl itself. However, EleutherAI has documented the amount of bias (on the basis of gender, religion, and race) and profanity as well as the level of consent given for each of the sub-datasets, allowing an ethics-concerned researcher to use only those parts of the Pile that meet their own standards. [1]
The Pile was originally developed to train EleutherAI's GPT-Neo models [8] [9] [10] but has become widely used to train other models, including Microsoft's Megatron-Turing Natural Language Generation, [11] [12] Meta AI's Open Pre-trained Transformers, [13] LLaMA, [14] and Galactica, [15] Stanford University's BioMedLM 2.7B, [16] the Beijing Academy of Artificial Intelligence's Chinese-Transformer-XL, [17] Yandex's YaLM 100B, [18] and Apple's OpenELM. [19]
In addition to being used as a training dataset, the Pile can also be used as a benchmark to test models and score how well they perform on a variety of writing styles. [2] [20] [21]
The Books3 component of the dataset contains copyrighted material compiled from Bibliotik, a pirate website. [22] In July 2023, the Rights Alliance took copies of The Pile down through DMCA notices. [23] [24] Users responded by creating copies of The Pile with the offending content removed. [25]