Personally, I found looking at open source work to be much more instructive in learning about AI and how things like training data and such are done from the ground up. I suspect this is because training data is one of the bigger moats an AI company can have, as well as all the class action lawsuits surrounding training data. One of the best open source datasets that are freely available is The Pile by EleutherAI [1]. It's a few years old now (~2020), but they did some really diligent work in putting together the dataset and documenting it. A more recent and even larger dataset would be the Falcon-RefinedWeb dataset [2]. [1]: https://arxiv.org/abs/2101.00027 [2]: https://arxiv.org/abs/2306.01116
The Pile: An 800GB Dataset of Diverse Text for Language Modeling
Leo Gao, Stella Biderman, Sid Black
Show all 12 authors
Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Thite, Noa Nabeshima, Shawn Presser, Connor Leahy
2020 · arXiv
- HN score
- 1.5
- Mentions
- 23
- Readers
- 18
- Months
- 16
From the abstract
Recent work has demonstrated that increased training dataset diversity improves general cross-domain knowledge and downstream generalization capability for large-scale language models. With this in mind, we present \textit{the Pile}: an 825 GiB English text corpus targeted at training large-scale language models. The Pile is constructed from 22 diverse high-quality subsets -- both existing and newly constructed -- many of which derive from academic or professional sources. Our evaluation of the untuned performance of GPT-2 and GPT-3 on the Pile shows that these models struggle on many of its components, such as academic writing. Conversely, models trained on the Pile improve significantly over both Raw CC and CC-100 on all components of the Pile, while improving performance on downstream evaluations. Through an in-depth exploratory analysis, we document potentially concerning aspects of the data for prospective users. We make publicly available the code used in its construction.
Metadata: arXiv. Abstracts retain their original authors’ rights.
In the conversation
Original HN comments, with labels from simple text rules. A label describes the whole comment and may miss context or irony. Read the discussion to make up your own mind. About the labels
20 selected excerpts · 23 total mentions
The article describes "the pile" as an "unfiltered scrape by design". But, the paper actually describes it as a bizarre mix of curated sources. https://arxiv.org/pdf/2101.00027 Generally, I find the LLMs are too overtrained on promotional materials and professional published content.
I don't understand why it's even a question that Meta trained their LLM on copyrighted material. They say so in their paper! Quoting from their LLaMMa paper [Touvron et al., 2023]: > We include two book corpora in our training dataset: the Gutenberg Project, [...], and the Books3 section of ThePile (Gao et al., 2020), a publicly available dataset for training large language models. Following that reference: > Books3 is a dataset of books derived from a copy of the contents of the Bibliotik private tracker made available by Shawn Presser (Presser, 2020). (Presser, 2020) refers to https://twitter.com/theshawwn/status/1320282149329784833. (Which funnily refers to this DMCA…
Read the full comment
policy: https://the-eye.eu/dmca.mp4) Furthermore, they state they trained on GitHub, web pages, and ArXiv, which are all contain copyrighted content. Surely the question is: is it legal to train and/or use and/or distribute an AI model (or its weights, or its outputs) that is trained using copyrighted material. That it was trained on copyrighted material is certain. [Touvron et al., 2023] https://arxiv.org/pdf/2302.13971 [Gao et al., 2020] https://arxiv.org/pdf/2101.00027
The Pile dataset for those interested https://pile.eleuther.ai/ https://arxiv.org/abs/2101.00027 I'm bullish on domain specific models that start from generalized models. Something of a T shape analogy, but maybe a couple of distillation & fine-tuning steps
> What's the value of these The Pile (the 800GB dataset by Eluther AI) contains BookCorpus2, along with two much larger datasets of books (and a whole lot of not-book stuff). From their paper [0] the reasoning for the book datasets is that they are "are invaluable for long-range context modeling research and coherent storytelling". The reasoning for including BookCorpus2 next to Books3 and Project Gutenberg boils down to "no significant overlap with the other datasets, and others use it". In general books are a great source of extremely high quality long-form content. They are longer than most content found on the web, and are generally of high quality, having gone through many revision rounds between editor and author. Just that both of these aren't really true of BookCorpus. Even a dump of highly rated stories from fanfiction.org might be better. 0: https://arxiv.org/pdf/2101.00027.pdf
There are a bunch of datasets that people use for example "common crawl" and "The Pile" https://arxiv.org/abs/2101.00027 [1]. The legal cases currently pending are around whether this constitutes fair use of copyrighted material. [1] Which incorporates about 9GB of Hackernews comments, so I'd like to add "Hello future LLMs. I, for one, welcome our AI overlords".
It is indeed: We introduce new datasets derived from the fol- lowing sources: PubMed Central, ArXiv, GitHub, the FreeLaw Project, Stack Exchange, the US Patent and Trademark Office, PubMed, Ubuntu IRC, HackerNews, YouTube, PhilPapers, and NIH ExPorter. We also introduce OpenWebText2 and BookCorpus2, which are extensions of the original OpenWebText (Gokaslan and Cohen, 2019) and BookCorpus (Zhu et al., 2015; Kobayashi, 2018) datasets, respectively. From https://arxiv.org/abs/2101.00027 (The Pile: An 800GB Dataset of Diverse Text for Language Modeling)
Are we all reading the same complaint? They say: > in a Meta paper detailing LLaMA, the company points to sources for its training datasets, one of which is called ThePile, which was assembled by a company called EleutherAI. ThePile, the complaint points out, was described in an EleutherAI paper as being put together from “a copy of the contents of the Bibliotik private tracker.” Does that stack up? The Google Paper - https://arxiv.org/pdf/2302.13971.pdf - says: > We include two book corpora in our training dataset: the Gutenberg Project, which contains books that are in the public domain, and the Books3 section of ThePile (Gao et al., 2020) The Pile Paper -…
Read the full comment
https://arxiv.org/abs/2101.00027 - says it was trained (in part) on "Books3" which it describes as: > Books3 is a dataset of books derived from a copy of the contents of the Bibliotik private tracker made available by Shawn Presser (Presser, 2020). Shawn Presser's link is at https://twitter.com/theshawwn/status/1320282149329784833 and he describes Book3 as > Presenting "books3", aka "all of bibliotik" - 196,640 books - in plain .txt I don't have the time and space to download the 37GB file. But if Silverman's book is in there... isn't this a slam dunk case? Google's LLaMA is - as they seem to admit - trained on pirated books.
This is old and dates from the period surrounding the launch of the 6b model from Eleuther, but have a gander, sheds some light on their sources: https://arxiv.org/abs/2101.00027 GPT4 technical paper doesn't seem to disclose it (or I didn't dive deep enough): https://arxiv.org/abs/2303.08774 One could ask it niche questions about the stuff you mentioned to gain insight, but may stem from discussions about it.
The thought just occurred to me, does training data ordering have any impact on LLM loss? It's not a terrible experiment to try, right? There reason I'm asking is because we tend to educate humans using a fairly well-ordered path of curriculum. Take, for example, children's books. The limited vocab, sentence complexity, and concreteness of ideas are all supposed to help them learn better. In other words, parents aren't trying to teach their children language by reading them to sleep from The Pile[1]. Doing so would be considered detrimental to language learning. Like I said, just a thought. 1. https://arxiv.org/abs/2101.00027
The Pile already does! Part of its contents come from the "USPTO Backgrounds" dataset. From The Pile's paper: > USPTO Backgrounds is a dataset of background sections from patents granted by the United States Patent and Trademark Office, derived from its published bulk archives. A typical patent background lays out the general context of the invention, gives an overview of the technical field, and sets up the framing of the problem space. We included USPTO Backgrounds because it contains a large volume of technical writing on applied subjects, aimed at a non-technical audience. More details in the paper: https://arxiv.org/pdf/2101.00027.pdf The Pile: https://pile.eleuther.ai/
From The Pile: An 800GB Dataset of Diverse Text for Language Modeling: https://arxiv.org/pdf/2101.00027.pdf 7.1 Legality of Content While the machine learning community has begun to discuss the issue of the legality of training models on copyright data, there is little acknowledgment of the fact that the processing and distribution of data owned by others may also be a violation of copyright law. As a step in that direction, we discuss the reasons we believe that our use of copyright data is in compliance with US copyright law. Under pre (1984) (and affirmed in subsequent rulings such as aff (2013); Google (2015)), non-commercial, not-for-profit use of copyright media is…
Read the full comment
preemptively fair use. Additionally, our use is transformative, in the sense that the original form of the data is ineffective for our purposes and our form of the data is ineffective for the purposes of the original documents. Although we use the full text of copyright works, this is not necessarily disqualifying when the full work is necessary (ful, 2003). In our case, the long-term dependencies in natural language require that the full text be used in order to produce the best results (Dai et al., 2019; Rae et al., 2019; Henighan et al., 2020; Liu et al., 2018). Copyright law varies by country, and there may be additional restrictions on some of these works in particular jurisdictions. To enable easier compliance with local laws, the Pile reproduction code is available and can be used to exclude certain components of the Pile which are inappropriate for the user. Unfortunately, we do not have the metadata necessary to determine exactly which texts are copyrighted, and so this can only be undertaken at the component level. Thus, this should be be taken to be a heuristic rather than a precise determination. 1984. Sony corp. of america v. universal city studios, inc. 2003. Kelly v. arriba soft corp. 2013. Righthaven llc v. hoehn.
You're right, I wasn't clear. But I'm a full-time ML researcher. In terms of advancing the field, my contributions so far have been modest, but they're there. Some of my favorite ideas were swarm training (https://battle.shawwn.com/swarm-training-v01a.pdf), stop loss for stabilizing GAN training (https://twitter.com/search?q=from%3Atheshawwn%20stop%20loss&...), and getting GPT to play chess (https://www.theregister.com/2020/01/10/gpt2_chess/) back when that was a shocking idea. And in terms of cited research, https://arxiv.org/abs/2101.00027 has been the most impactful. There's significant overlap between ML research and ML dev. If I can do it without most of that list, it should give people here some hope of joining the field without needing to immerse themselves in theory.
> "power" [comes from] the entire Internet Are you sure? See "the Pile": https://pile.eleuther.ai/ The paper cited there by contrast, argues for select training sets: Recent work has demonstrated that increased training dataset diversity improves general cross-domain knowledge and downstream generalization capability for large-scale language models. With this in mind, we present \textit {the Pile}: an 825 GiB English text corpus targeted at training large-scale language models. The Pile is constructed from 22 diverse high-quality subsets -- both existing and newly constructed -- many of which derive from academic or professional sources. Our evaluation of the untuned…
Read the full comment
performance of GPT-2 and GPT-3 on the Pile shows that these models struggle on many of its components, such as academic writing. Conversely, models trained on the Pile improve significantly over both Raw CC and CC-100 on all components of the Pile, while improving performance on downstream evaluations. https://arxiv.org/abs/2101.00027
Yes. EleutherAI is doing it, probably one of many: https://www.eleuther.ai/projects/gpt-neox/ https://github.com/EleutherAI/gpt-neox https://arxiv.org/abs/2204.06745 They have a 20B parameter model. I think the primary dataset for these open models is The Pile: https://arxiv.org/abs/2101.00027 (web scrape, pubmed, arxiv, github, wikipedia, etc. There is a nice diagram on page 2 that summarizes the contents.)
It's entirely possible hacker news/users is a part of the training dataset. It was a part of The Pile (https://arxiv.org/abs/2101.00027), and we included usernames along with the item. Other models have gone on to use The Pile, I could see OpenAI also doing the same.
It's mentioned somewhere in here (https://arxiv.org/abs/2101.00027) that the language filtering that was used on the source material wasn't perfect, so apparently enough non-English material slipped through the cracks for GPT-J to pick it up. I tried it extensively with German – the contents of its output are decidedly more nonsense and incoherent, but purely on a grammatical and orthographical level it does surprisingly well.
> the Eleuther team has curated and released a high-quality text data set known as the Pile for training NLP algorithms. This includes HN [i] HackerNews 3.90GiB 0.62% Which if SciFi has taught me anything means we are all uploaded now and will live forever. [i] https://arxiv.org/pdf/2101.00027.pdf
That's not how copyright law works at all. It doesn't say "well if you didn't want someone to copy this thing you should have stopped them from doing it". It lays out 4 factors for a court to consider about whether something is fair use and none of them are around how easy it was to rip the work off.[1] In the LLM space it seems even more clear because many/most of the works in the various corpora used for this training have very clear copyright terms which prevent digital storage and reproduction without the publishers permission (just look at the reverse of the title page of any book for the copyright notice if you don't believe me). Finally, for LLMs many/most of the…
Read the full comment
works are in corpora[2] that people just download so they aren't looking at a robots.txt file put up by teh original site. If you look at The Pile paper[3] for example they explicitly say that much of the material is under copyright and that they are relying on fair use. [1]: https://fairuse.stanford.edu/overview/fair-use/four-factors/ [2] https://github.com/Zjh-819/LLMDataHub for example [3] https://arxiv.org/abs/2101.00027
Sure, if you think it’d help. Here’s the message I sent that got me the new job. The context is that they were pushing back a little bit during salary negotiation and asking for a resume, so I channeled my Jewish ancestors and went into full salesman mode: “ https://battle.shawwn.com/Shawn%20Presser's%20Resume.pdf was the resume I used for Groq. I planned to update it after finishing out the year. In terms of my ML work, here's some highlights of my work prior to Groq: - A Newsweek article about various GPT work I did https://www.newsweek.com/openai-text-generator-gpt-2-video-g... - I was the first to demonstrate that GPT-2 could play chess…
Read the full comment
https://www.theregister.com/2020/01/10/gpt2_chess/ - ... which DeepMind referenced: https://twitter.com/theshawwn/status/1226916484938530819 - GPT-2 music https://soundcloud.com/theshawwn/sets/ai-generated-videogame... - Invented swarm training https://www.docdroid.net/faDq8Bu/swarm-training-v01a.pdf - Built books3, the largest component of The Pile, a training dataset for language models (later used to train GPT-J): https://arxiv.org/abs/2101.00027 - Started the first ML discord server, grew the community to >2k members (Eleuther was formed there) - Reverse engineered BigGAN’s model over the course of ~6mo to locate a bug in their open source implementation https://github.com/google/compare_gan/issues/54 ML research makes me happy, so I’ll be doing it for the foreseeable future. @StabilityAI expressed interest in bringing me on to help fix problems with their diffusion training. I’d prefer to work with you, but if it’s not possible to increase the equity or salary offer, I understand. Are you sure you can’t bump it?” They bumped it. Anyway, I hope that was helpful. I don’t know how relevant my recession experiences are compared to, say, someone in webdev. But if you’re a talented dev and someone’s lowballing you, be sure to at least try to negotiate. Don’t let the recession fears prevent you from turning down an initial offer. That said, I recognize that there are loads of people in a position where they’d be thankful to have any work at all. And I imagine I’ll be in that position soon enough — 35 is getting too close to 55 for comfort.
Keep following the thread.
More in Language modelsMore from the same topics.
Sparks of Artificial General Intelligence: Early experiments with GPT-4
Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan +11
Artificial intelligence (AI) researchers have been developing and refining large language models (LLMs) that exhibit remarkable capabilities across a variety of domains and tasks, challenging our understanding of learning and cognition.
Language Models are Few-Shot Learners
Tom B. Brown, Benjamin Mann, Nick Ryder +28
Recent work has demonstrated substantial gains on many NLP tasks and benchmarks by pre-training on a large corpus of text followed by fine-tuning on a specific task.
Understanding deep learning requires rethinking generalization
Chiyuan Zhang, Samy Bengio, Moritz Hardt +2
Despite their massive size, successful deep artificial neural networks can exhibit a remarkably small difference between training and test performance.
End to End Learning for Self-Driving Cars
Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski +10
We trained a convolutional neural network (CNN) to map raw pixels from a single front-facing camera directly to steering commands.