The Pile (dataset) explained

The Pile is an 886.03 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 ones.

Creation

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.[5] Compared to other datasets, the Pile's main distinguishing features are that it is a curated selection of data chosen by researchers at EleutherAI to contain information they thought language models should learn and that it is the only such dataset that is thoroughly documented by the researchers who developed it.[6]

Contents and filtering

Artificial intelligences do not learn all they can from data on the first pass, so it is common practice to train an AI on the same data more than once with each pass through the entire dataset referred to as an "epoch".[7] Each of the 22 sub-datasets that make up the Pile was assigned a different number of epochs according to the perceived quality of the data. The table below shows the relative size of each of the 22 sub-datasets before and after being multiplied by the number of epochs. Numbers have been converted to GB, and asterisks are used to indicate the newly introduced datasets.

Sub-datasets of The Pile
Component Original size Epochs Effective size
Pile-CC 243.87 GB 1 243.87 GB
PubMed Central96.93 GB 2 193.86 GB
Books3 108.40 GB 1.5 162.61 GB
OpenWebText2* 67.40 GB 2 134.80 GB
arXiv60.36 GB 2 120.71 GB
GitHub102.18 GB 1 102.18 GB
Free Law54.92 GB 1.5 82.39 GB
Stack Exchange34.57 GB 2 69.14 GB
USPTO Backgrounds* 24.59 GB 2 49.19 GB
PubMed Abstracts* 20.68 GB 2 41.37 GB
11.68 GB 2.5 29.20 GB
OpenSubtitles 13.94 GB 1.5 20.91 GB
6.85 GB 3 20.54 GB
DeepMind Mathematics 8.32 GB 2 16.63 GB
Ubuntu Freenode IRC logs* 5.93 GB 2 11.84 GB
BookCorpus2* 6.76 GB 1.5 10.15 GB
4.93 GB 2 9.85 GB
Hacker News4.19 GB 2 8.38 GB
YouTube Subtitles* 4.01 GB 2 8.02 GB
PhilPapers2.56 GB 2 5.11 GB
NIH ExPorter* 2.03 GB 2 4.07 GB
0.95 GB 2 1.89 GB
Total 886.03 GB 1346.69 GB

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.

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.

Some potential sub-datasets were excluded for various reasons, such as the US Congressional Record, which was excluded due to its racist content.

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.

Use

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 OpenPre-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.[20] [21]

DMCA takedown

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]

See also

Notes and References

  1. Leo. Gao. Stella. Biderman. Sid. Black. Laurence. Golding. Travis. Hoppe. Charles. Foster. Jason. Phang. Horace. He. Anish. Thite. Noa. Nabeshima. Shawn. Presser. Connor. Leahy. 2101.00027. The Pile: An 800GB Dataset of Diverse Text for Language Modeling. cs.CL. 31 December 2020.
  2. Web site: The Pile: An 800GB Dataset of Diverse Text for Language Modeling. 13 February 2020. EleutherAI Website. EleutherAI. 4 June 2023.
  3. Tom B. Brown. Benjamin. Mann. Nick. Ryder. Melanie. Subbiah. etal. 2005.14165. Language Models are Few-Shot Learners. cs.CL. 22 Jul 2020.
  4. Web site: Turing-NLG: A 17-billion-parameter language model by Microsoft. Rosset. Corby. 13 February 2020. Microsoft Blog. Microsoft. 31 December 2020.
  5. Web site: The Pile Replication Code. Gao. Leo. Biderman. Stella. Hoppe. Travis. Grankin. Mikhail. researcher2. trisongz. sdtblck. 15 June 2021. github.com. 6 June 2023.
  6. The Subjects and Stages of AI Dataset Development: A Framework for Dataset Accountability. Mehtab. Khan. Alex. Hanna. 13 September 2022. 4217148 .
  7. Web site: Difference Between a Batch and an Epoch in a Neural Network. Jason. Brownlee. 10 August 2022. 2 June 2023. machinelearningmastery.com.
  8. Web site: GPT-Neo 125M. 8 December 2022. huggingface.co. 7 June 2023.
  9. Web site: GPT-Neo 1.3B. 8 December 2022. huggingface.co. 7 June 2023.
  10. Web site: GPT-Neo 2.7B. 8 December 2022. huggingface.co. 7 June 2023.
  11. Web site: Microsoft and Nvidia team up to train one of the world's largest language models. 11 October 2021. 8 March 2023.
  12. Web site: AI: Megatron the Transformer, and its related language models. 24 September 2021. 8 March 2023.
  13. Susan. Zhang. Stephen. Roller. Naman. Goyal. Mikel. Artetxe. Moya. Chen. Shuohui. Chen. Christopher. Dewan. Mona. Diab. Xian. Li. Xi Victoria. Lin. Todor. Mihaylov. Myle. Ott. Sam. Shleifer. Kurt. Shuster. Daniel. Simig. Punit Singh. Koura. Anjali. Sridhar. Tianlu. Wang. Luke. Zettlemoyer. 2205.01068. OPT: Open Pre-trained Transformer Language Models. cs.CL. 21 June 2022.
  14. Touvron. Hugo. Lavril. Thibaut. Izacard. Gautier. Grave. Edouard. Lample. Guillaume. etal. 2302.13971. LLaMA: Open and Efficient Foundation Language Models. cs.CL. 27 February 2023.
  15. Taylor. Ross. Kardas. Marcin. Cucurull. Guillem. Scialom. Thomas. Hartshorn. Anthony. Saravia. Elvis. Poulton. Andrew. Kerkez. Viktor. Stojnic. Robert. 2211.09085. Galactica: A Large Language Model for Science. cs.CL. 16 November 2022.
  16. Web site: Model Card for BioMedLM 2.7B. huggingface.co. 5 June 2023.
  17. WuDaoCorpora: A super large-scale Chinese corpora for pre-training language models. Sha. Yuan. Hanyu. Zhao. Zhengxiao. Du. Ming. Ding. Xiao. Liu. Yukuo. Cen. Xu. Zou. Zhilin. Yang. Jie. Tang. 1 January 2021. AI Open. 2. 65–68. 8 March 2023. ScienceDirect. 10.1016/j.aiopen.2021.06.001.
  18. Grabovskiy. Ilya. 2022. Yandex publishes YaLM 100B, the largest GPT-like neural network in open source. Yandex. 5 June 2023.
  19. Mehta . Sachin . OpenELM: An Efficient Language Model Family with Open Training and Inference Framework . 2024-05-01 . 2404.14619 . Sekhavat . Mohammad Hossein . Cao . Qingqing . Horton . Maxwell . Jin . Yanzi . Sun . Chenfan . Mirzadeh . Iman . Najibi . Mahyar . Belenko . Dmitry. cs.CL .
  20. Rae. Jack W. Borgeaud. Sebastian. Cai. Trevor. Millican. Katie. Hoffmann. Jordan. Song. Francis. Aslanides. John. Henderson. Sarah. Ring. Roman. Young. Susannah. etal. 2112.11446. Scaling Language Models: Methods, Analysis & Insights from Training Gopher. cs.CL. 21 Jan 2022.
  21. Web site: Jurassic-1: Technical Details and Evaluation. Lieber. Opher. Sharir. Or. Lenz. Barak. Shoham. Yoav. 1 August 2021. AI21 Labs. 5 June 2023.
  22. The Battle Over Books3 Could Change AI Forever . wired.com . 13 October 2023 . Knibbs . Kate .
  23. Web site: Rights Alliance removes the illegal Books3 dataset used to train artificial intelligence . 14 August 2023 . Rights Alliance . 29 August 2023.
  24. Web site: The Pile An 800GB Dataset of Diverse Text for Language Modeling . academictorrents.com . 29 August 2023.
  25. Web site: monology/pile-uncopyrighted - Dataset at Hugging Face. 22 April 2024 .