Skip to content
Data for AI Foundation 8 min read

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

Data for AI: how the pages connect
Data for AI: how the pages connect. Data at 2,000 ft, Collection, licensing and curation, Quality filtering and deduplication, Labelling and human feedback, Data in production, Pre-training data (transformers track), Distillation and synthetic data, Reward models and preference data, Evals in practice, MLOps, raw web to tokens, commissioned data, the full pipeline, comparisons, golden sets, generaData for AI: how the pages connect. Data at 2,000 ft, Collection, licensing and curation, Quality filtering and deduplication, Labelling and human feedback, Data in production, Pre-training data (transformers track), Distillation and synthetic data, Reward models and preference data, Evals in practice, MLOps, raw web to tokens, commissioned data, the full pipeline, comparisons, golden sets, genera

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.

  1. 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.
  2. Then choose by what you build.
  3. 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.

  • Labelling and human feedback


    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

Before you start

This track assumes, and links back to:

You need Python with NumPy (your workbench); every code block on this track runs in seconds on a laptop.

Where this leads