Summary
First of two data lectures, covering where pre-training data comes from and which datasets the field has actually used. The first half is about access: what “trained on the internet” really means, how crawling works, and what technical and legal restrictions (robots.txt, terms of service, copyright, fair use) govern what can be collected. The second half is a chronological tour of pre-training corpora from BERT and GPT-2 through C4, The Pile, RefinedWeb, FineWeb, Dolma, DCLM, Nemotron, The Stack, and Common Pile, tracking how filtering strategy evolved from hand-written rules to model-based classifiers. It follows the evaluation lecture and sets up Lecture 14, which covers the processing pipeline itself.
Key Takeaways
- Model developers disclose architecture and training procedure but not data, for two reasons: data is the competitive differentiator, and naming your sources invites copyright liability. Llama 3’s paper is the canonical example.
- The trainable web is much smaller than the web. Dynamic app content and the deep web are not reachable by link-following crawlers, walled gardens (Facebook, X, LinkedIn, NYT) require authentication, and Longpre’s “Consent in Crisis” found robots.txt full-restriction rates jumping toward ~50% after mid-2023.
- Copyright covers expression, not ideas, requires no registration, and lasts 75 years; so essentially all web content is copyrighted, and lawful use runs through either a license (Creative Commons, or a paid deal) or a fair-use argument under the four Section 107 factors.
- Recent rulings split training from acquisition: training was held to be fair use in the Anthropic and Meta cases, but pirating books was not — Anthropic settled for $1.5B, roughly $3,000 a book, even though buying and scanning the same books would have been fine.
- Common Crawl releases WARC (raw HTTP responses) and WET (pre-extracted text) files; the DataComp-LM ablation shows that running your own extraction with trafilatura or resiliparse beats using WET, so the HTML-to-text step measurably affects model quality.
- High-value sources are distributed rather than crawled: Wikipedia and Stack Exchange publish periodic dumps, GitHub repos come over the git protocol with metadata via GitHub Archive’s hourly event stream, and arXiv offers bulk download with clear Creative Commons licensing.
- Quality filtering evolved through three ideas: proxy signals for quality (GPT-2’s Reddit outbound links with >3 karma), hand-written rules (C4’s punctuation/sentence-count/bad-word rules, which also stripped curly braces and therefore code), and trained classifiers (GPT-3, then DCLM’s fastText model using OpenHermes and ELI5 as positives against RefinedWeb negatives).
- Scale numbers show how aggressive filtering has become: DCLM-pool holds 240T unfiltered tokens and the released set keeps about 1.4% of it, while Nemotron argued DCLM over-filters and used LLM-scored educational value plus synthetic rephrasing to reach 6T tokens.
- Shadow-library data caused lasting damage: Books3, distributed via The Pile and used by Llama 1, traced back to Bibliotik and has since been stripped from derivatives like RedPajama V1 — one reason labs stopped describing their data at all.
- Common Pile tested the strict-licensing path, assembling 8TB of permissively licensed text and finding license laundering and collection-level licenses that don’t cover individual works; the resulting models beat 2023-era models but not contemporary Qwen.
Extracted Notes
- None yet.