Data at 2,000 ft¶
A model is a compressed description of its training data, so every question about what a model knows, what it gets wrong and whom it fails is first a question about data. This track follows data through its whole life: where it comes from and whether you may use it, how it is filtered and deduplicated, how humans turn judgement into labels, and how it keeps changing once the model is in production.
10,000 ft
Architectures converge and recipes spread within months; data is where models differ. The largest public evidence is in pre-training: DataComp-LM held the model and training code fixed and varied only the data, and its best filtered corpus trained a 7B model to 64% on 5-shot MMLU with 2.6T tokens, 6.6 points above the previous best open-data model while using 40% less compute (Li et al., 2024). Post-training is the same story at a smaller scale: instruction tuning, reward models and evals are each a dataset of human (or model) judgements with a training loop attached. And the supply is tightening: the stock of public human text is finite, and the open web is increasingly closed to crawlers. This track is the engineering, statistics and law of the input that every other track takes for granted.
The life of a dataset¶
Data moves through five stages, and each stage answers one question. A failure at any stage shows up later as a model failure that no amount of training fixes.
| Stage | The question it answers | What goes wrong if you skip it | Page |
|---|---|---|---|
| Collect | What part of the world will the model see? | the model is good at what was easy to scrape, not what you need | Collection, licensing and curation |
| Clear rights | Are we allowed to use it, and can we take it out again? | copyright and privacy exposure; no way to honour an opt-out | Collection, licensing and curation |
| Filter and deduplicate | Which of it is worth learning from, and how often? | wasted compute on junk; memorised duplicates; test sets leaking into training | Quality filtering and deduplication |
| Label | What is the right answer, and how sure are we? | label noise becomes model error and caps measurable accuracy | Labelling and human feedback |
| Operate | Is it still true now that the model is live? | silent decay; pipeline bugs; models that learn from their own decisions | Data in production |
The stages form a loop rather than a line. Production logs are the richest new data you will collect, the failures you find in production decide what to label next, and the outputs of today's models are already part of the web that tomorrow's crawlers will collect.
Three numbers that frame the track¶
- Demand. Compute-optimal training wants about 20 tokens per parameter (Hoffmann et al., 2022), and labs train well past that because smaller models are cheaper to serve: Llama 3's 8B model saw about 15T tokens (Llama 3 team, 2024).
- Supply. Epoch AI estimates the effective stock of public human-written text at around 400T tokens and projects frontier training sets reaching it between 2026 and 2032 (Villalobos et al., 2024). Meanwhile, in one year about 5% of all tokens in the C4 corpus, and 28% or more of its most critical sources, became fully restricted by robots.txt (Longpre et al., 2024).
- Error. Even celebrated benchmarks are wrong in places: an average of at least 3.3% label errors across the test sets of ten widely used datasets, and at least 6% of the ImageNet validation set (Northcutt et al., 2021).
Put together: you need more data than exists, you are allowed to use less of it every year, and some of what you have is wrong. Hence filtering, careful mixtures, repetition budgets, synthetic data, licensing deals, and the statistics of noisy labels.
Ideas that recur across the track¶
A handful of tools turn up on several pages in different clothes. Learning to recognise them is most of the skill.
| Idea | Where you meet it | The one-line version |
|---|---|---|
| Density ratios | quality classifiers (filtering); domain classifiers and importance weights (production) | a classifier that separates two samples tells you, through its odds, how to re-weight one into the other |
| Sampling design | mixture weights and temperature sampling (curation); active learning (labelling); exploration (production) | which examples the model sees is a decision, and a biased decision becomes a biased model |
| Hashing and sketches | MinHash, LSH, Bloom filters, suffix arrays (filtering); contamination checks (eval hygiene) | approximate set similarity at trillion-token scale, with error rates you can compute |
| Labels as noisy measurements | agreement statistics, Dawid–Skene, confident learning (labelling); user feedback (production) | every label has an instrument, an operator and an error; model the error instead of ignoring it |
| Provenance | licences, opt-outs, datasheets (curation); versioned snapshots and logged model versions (production) | if you cannot say where a row came from, you can neither remove it nor debug it |
| Feedback loops | training on model outputs (synthetic data); selective labels and degenerate ranking loops (production) | a model that influences its own future data needs some data it did not influence |
The map of this track¶
The four topic pages of this track are the boxes in the middle; the outer boxes are where each one hands over to another track. Collection is the root: it decides what exists to be filtered or labelled. Filtering feeds the pre-training pipeline; labelling feeds post-training and evaluation; production closes the loop by turning a live system's logs into the next round of collection. Generated data, the fifth source, is covered from the model's side in distillation and synthetic data.
How to work through this track¶
Times are for studying properly (working the examples, running the code, answering the questions), not for reading.
- Collection, licensing and curation (60 min). Start here whatever your goal: sources, crawling etiquette, the four legal questions, mixture weights as sampling design, and documentation.
- Then choose by what you build.
- Pre-training or foundation models: quality filtering and deduplication (75 min, advanced; read pre-training data first for the pipeline at a glance).
- Fine-tuning, RLHF or evaluation: labelling and human feedback (60 min), then reward models.
- Shipping a product: data in production (70 min), then MLOps.
- Finish the other two. Together the four pages take about 4½ hours. The second pass is where the cross-links (density ratios, sampling design, feedback loops) start to pay off.
If you have only an hour, read the 10,000-ft and 2,000-ft boxes of all four pages and the worked example on each; you will have the map and one concrete calculation per stage.
Pages in this track¶
-
Collection, licensing and curation
Five sources of data, inside a web crawl, how much text exists, copyright, contracts, personal data and opt-outs, mixture weights and temperature sampling, datasheets.
-
Quality filtering and deduplication
Cascades of cheap tests, quality classifiers as density-ratio estimators, MinHash and LSH derived, suffix arrays, Bloom filters and semantic dedup.
-
Guidelines as specifications, agreement statistics, Dawid–Skene, confident learning, weak supervision, active learning, preference data and LLMs as labellers.
-
Data in production: drift, monitoring, feedback loops
Training–serving skew, covariate, label and concept shift, PSI and two-sample tests, correction without labels, and models that write their own training data.
The five best resources for this track¶
- The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale — Penedo et al., 2024, with the interactive blog version. The most complete public account of building a pre-training corpus, every filtering and deduplication choice ablated.
- Datasheets for Datasets — Gebru et al., 2018. The questions every dataset should answer about its motivation, composition, collection and uses; the basis of modern data documentation.
- Introduction to Data-Centric AI — Anish Athalye, Curtis Northcutt and Jonas Mueller, MIT IAP. Lectures and labs on label errors, class imbalance, distribution shift, dataset curation and data for LLMs.
- Data Distribution Shifts and Monitoring — Chip Huyen, 2022. The practitioner's view of data after deployment; the long version is in her book Designing Machine Learning Systems.
- “Everyone wants to do the model work, not the data work”: Data Cascades in High-Stakes AI — Sambasivan et al., CHI 2021. Interviews with 53 practitioners on how neglected data work compounds into failures downstream; the case for this track in one paper.
Before you start¶
This track assumes, and links back to:
- Probability from first principles and MLE, MAP and Bayes: labels as noisy observations, the Beta–binomial model of annotator accuracy, EM for label aggregation.
- Entropy, cross-entropy and KL divergence: mixtures, perplexity filters and drift scores are all divergences.
- Statistics for experiments and evals: confidence intervals for filtering ablations and label budgets, two-sample tests for drift.
- Metrics, validation and leakage and logistic regression: held-out evaluation, calibration and the classifiers used as filters and drift detectors.
- Large language models at 2,000 ft: enough to know what pre-training and post-training are, for the pages that serve them.
You need Python with NumPy (your workbench); every code block on this track runs in seconds on a laptop.
Where this leads¶
- Pre-training data: the full pipeline from Common Crawl to a training batch, which this track's filtering page goes underneath.
- Reward models and preference data: what happens to human comparisons once they are collected.
- Distillation and synthetic data: the generated source, and its limits.
- Contamination and evaluation hygiene: keeping test data out of training data with the same hashing tools.
- MLOps: experiments, pipelines, monitoring: the infrastructure under data in production.