Data Collection & Curation — All Variants & Tricks

Updated July 2026 with 2025–2026 SOTA additions — new entries marked ★. Algorithm names link to their papers (arXiv / project page).

April 2026 · Version 1.0 Algorithm names link to their original papers (arXiv / project page).


Contents

  1. Why Data Is the Moat
  2. Data Sources
  3. Web Crawling and Common Crawl
  4. Quality Filtering
  5. Deduplication
  6. Multimodal Datasets
  7. Captioning at Scale
  8. Synthetic Data
  9. Human Labeling and Annotation
  10. Preference Data for RLHF / DPO
  11. Reasoning Data
  12. Safety and Alignment Data
  13. Tokenization-Aware Curation
  14. Curation Pipeline Architecture
  15. Data Mixture and Curriculum
  16. Long-Context Data
  17. Data Ethics and Legal
  18. Data Engines (Production Loops)
  19. Tools and Infrastructure
  20. Evaluation of Data Quality
  21. Multimodal Data Specifics
  22. Frontier 2025–2026
  23. Production Stack 2026

Appendix A: Twenty-Five Things to Know Appendix B: Decision Tree — "How Do I Get Data?" Appendix C: Year-by-Year Data Milestones

1. Why Data Is the Moat

1.1 The thesis

Key

Modern AI quality is dominated by data quality and curation, not model architecture. At fixed compute, the team with better data wins by 2–10×. Architecture innovations matter; data dominates.

1.2 Evidence (2022–2026)

1.3 The pipeline at a glance

Source → filter → dedupe → score / rank → mix → tokenize → pack → shard → stream to training.

1.4 Per-stage data needs

Stage Volume Quality bar
Pretraining trillions of tokens moderate (filtered web)
Continued pretraining (long ctx) 100B+ tokens moderate, length-stratified
SFT (instruction) 10k–500k examples high (curated demos)
RLHF (RM training) 50k–1M pairs high (quality preferences)
DPO / GRPO 10k–500k pairs / prompts high
Reasoning RL 1k–100k verifiable problems very high
Safety / red-team 1k–50k examples very high

1.5 Data Pareto frontier

For pretraining, the curve is roughly: quality matters at small scale; quantity matters at large scale. FineWeb-Edu beats raw web at small token budget; raw web with dedup wins at multi-trillion budget.

1.6 The Chinchilla revision

2. Data Sources

2.1 Text sources

2.2 Image sources

2.3 Video sources

2.4 Audio sources

2.5 3D sources

2.6 Robot data

2.7 Synthetic from generative models

2.8 Source quality hierarchy

3. Web Crawling and Common Crawl

3.1 Common Crawl 101

3.2 Major web-derived corpora

Corpus Origin Volume Notable
C4 (T5) CC, single dump 750GB first-gen filtered
mC4 CC multilingual 6TB 101 languages
The Pile CC + 22 sources 825GB EleutherAI 2020
RefinedWeb CC + filtering 5T tokens Falcon training
RedPajama v1/v2 CC + others 30T tokens (v2) Together
Dolma CC + others 3T tokens AI2 OLMo
DCLM-baseline CC, classifier-filtered 4T tokens DataComp-LM 2024
FineWeb CC, all dumps + filter 15T tokens HuggingFace
FineWeb-Edu FineWeb + edu classifier 1.3T tokens high-quality
Nemotron-CC NVIDIA's cleaned CC 6T tokens 2024
ZyDA, ZyDA-2 CC + others 1.4T+ tokens Zyphra

3.3 C4 (Colossal Clean Crawled Corpus)

T5's training data. Filters: keep only English; min line / doc length; remove placeholder text; remove offensive content (controversial blocklist).

3.4 The Pile (EleutherAI)

Community-curated; explicitly mixes 22 high-quality sources alongside CC. Influential design.

3.5 RefinedWeb (Falcon)

Demonstrated CC alone, well-filtered + deduped, beats Pile-style mixes. Heavy URL/exact/fuzzy dedup.

3.6 Dolma (AI2)

Open-source preprocessed corpus + open processing toolkit. Reproducibility-first.

3.7 DCLM-baseline (DataComp-LM, 2024)

3.8 FineWeb / FineWeb-Edu (HuggingFace 2024)

3.9 Robots.txt and ethics

★ 2026 SOTA update — FineWeb2 multilingual pipeline

  • FineWeb2: HuggingFace 2025; one pipeline scaled to 1000+ languages across 96 CC dumps; 4.5B docs / 20TB; per-language dedup + rehydration; beats prior multilingual corpora.

★ 2026 SOTA update — 2025 open web corpora

  • Nemotron-CC-v2: NVIDIA 2025; adds 2024-2025 CC dumps, global dedup, Qwen3-30B synthetic rephrasing + multilingual (15-lang) QA; feeds Nemotron Nano 2.
  • Essential-Web v1.0: Essential AI 2025; 24T tokens, every doc labeled with 12-category EAI-Taxonomy (via 0.5B EAI-Distill); SQL-filter to build competitive math/code/STEM/medical sets.
  • Common Pile v0.1: 2025; 8TB from 30 public-domain / openly-licensed sources; trains Comma 7B competitive with Llama 1/2 without unlicensed text.

4. Quality Filtering

4.1 Heuristic filters

4.2 Gopher heuristics (DeepMind)

First well-documented quality-filter recipe:

Industry default until classifier-based filters (DCLM, FineWeb-Edu).

4.3 Classifier-based filtering

4.4 Educational quality (FineWeb-Edu)

4.5 Toxicity / NSFW filters

4.6 PII filters

4.7 Code quality filters

4.8 Domain / topic filters

4.9 DSIR (Data Selection by Importance Resampling)

4.10 Quality vs quantity

Key

Empirical pattern: strict filtering wins at small training budget; lenient at huge. FineWeb-Edu 1.3T > FineWeb 15T at 1B-param scale; reverses at 70B-param at 15T-token budget. Pick filter based on your scale.

★ 2026 SOTA update — Verification-based filtering

  • Ultra-FineWeb: OpenBMB 2025; cheap verification loop scores a filter's impact on LLM training before committing; optimizes fastText classifier seed selection; yields ~1T EN + 120B ZH high-quality tokens from FineWeb.

5. Deduplication

5.1 Why dedupe?

5.2 Exact dedup

5.3 Near-duplicate detection (MinHash + LSH)

5.4 SemDeDup (semantic dedup)

5.5 Document-level vs span-level

5.6 URL / domain dedup

Drop multiple pages from same URL pattern; cap per-domain count to prevent over-representation of large sites.

5.7 Cross-corpus dedup

5.8 N-gram-overlap deduplication

5.9 Practical dedup tools

6. Multimodal Datasets

6.1 Image-text pair datasets

Dataset Size Source Notes
Conceptual Captions 3M alt-text cleaned
LAION-400M 400M CC + alt-text open
LAION-5B 5.85B CC + alt-text largest open
LAION-Aesthetic 600M LAION + aesthetic high-quality subset
COYO-700M 747M CC + alt-text Korean+English
DataComp-1B 1.4B CC, classifier-filtered DataComp 2023
DFN-2B 2B DFN-curated CC Apple data filter
MetaCLIP 2.5B CC, balanced Meta
PixelProse 16M web, re-captioned dense captions

6.2 Interleaved multimodal datasets

6.3 Video-text datasets

6.4 Audio-text datasets

6.5 3D datasets

6.6 Robot datasets

6.7 AV datasets

★ 2026 SOTA update — Open VLM training data

  • FineVision: HuggingFace 2025; 24.3M samples / 17.3M images from 200+ sources unified, dedup + benchmark-decontaminated; largest open SOTA VLM training mix.
  • PixMo (Molmo): AI2 2024; open dense-caption data via 60-90s spoken descriptions (PixMo-Cap ~200 words), plus AskModelAnything / points / CapQA; open-data VLMs beating GPT-4o.

7. Captioning at Scale

7.1 Why re-caption?

Web alt-text is poor:

Re-captioning with strong VLM dramatically improves downstream training.

7.2 Re-captioning pipelines

  1. Sample images from raw web data.
  2. Generate dense caption with strong VLM (GPT-4V, Qwen-VL, BLIP-2).
  3. Filter: ensure faithfulness, diversity.
  4. Use re-captioned pairs for downstream training.

Used by Sora, FLUX, SD3, DALL-E 3.

7.3 Multi-aspect captions

Generate multiple captions per image:

7.4 DALL-E 3's recaptioning

7.5 Sora's recaptioning

Re-captioned all training videos with detailed VLM-generated descriptions. Critical for prompt fidelity.

7.6 LAION-Aesthetic + recaption pattern

Open community workflow: filter LAION by aesthetic score, then re-caption with open VLM (LLaVA / Qwen-VL). Used in many open T2I / T2V training runs.

7.7 Caption-quality eval

8. Synthetic Data

8.1 The synthetic-data thesis

Curated synthetic data often beats unfiltered real data.

Phi-1 demonstrated: "textbook-quality" synthetic Python data trains a 1.3B model to outperform many larger models on coding.

8.2 Self-Instruct (Wang et al. 2022)

  1. Seed: 175 hand-written instructions.
  2. Generate: LLM produces new instructions + responses.
  3. Filter: rule-based + diversity check.
  4. Iterate: bootstrap from generated set.

Foundation of many instruction-tuned open models.

8.3 Phi family pattern (Microsoft)

8.4 R1-Distill (DeepSeek 2025)

Generate ~800k long-CoT traces from R1; SFT smaller models on those traces. Strong reasoning at small scale.

8.5 Distillation from frontier APIs

8.6 Constitutional AI synthetic data

8.7 Rejection-sampling fine-tuning (RFT, RAFT)

Cheaper than PPO; often competitive.

8.8 Synthetic image / video for CV

8.9 Synthetic robot data

8.10 Quality control for synthetic data

Watch out

Model collapse: training models on their own outputs degrades over generations. Mix synthetic with real data; use frontier teachers, not your own previous-gen model.

★ 2026 SOTA update — Prompt-free instruction synthesis

  • Magpie: ICLR 2025; feeds only a chat pre-query template to an aligned LLM (Llama-3, Qwen2.5) to self-generate instruction + response pairs at scale; no seed prompts; extends to multi-turn / DPO / multilingual.

9. Human Labeling and Annotation

9.1 The labeling industry

9.2 Labeling cost models

9.3 Active learning

  1. Train initial model.
  2. Identify uncertain examples (high-loss / ensemble disagreement).
  3. Label only uncertain.
  4. Re-train.
  5. Iterate.

~10× label efficiency vs random sampling.

9.4 Weak supervision (Snorkel)

9.5 LLM-as-labeler

9.6 Inter-annotator agreement

9.7 Labeler training and calibration

9.8 Quality assurance (QA)

10. Preference Data for RLHF / DPO

10.1 Pairwise preferences (Bradley-Terry)

For prompt \(x\), two responses \((y_w, y_l)\) with \(y_w\) preferred. Standard for RM training and DPO.

10.2 Listwise preferences (Plackett-Luce)

Rank K responses ordered worst-to-best. More efficient per-prompt.

10.3 Single-response thumbs (KTO data)

Per-response +/− flag (no pairs). Cheaper to collect.

10.4 Best-of-N rejection sampling

10.5 Pair generation strategies

10.6 Preference data quality

Critical:

10.7 Iterative / online preference data

Tracks model's evolving distribution; avoids stale data issue.

10.8 Self-Rewarding / SPIN

10.9 Dataset releases (open)

11. Reasoning Data

11.1 Math reasoning

11.2 Code reasoning

11.3 Long-CoT distillation

11.4 Process Reward Model (PRM) training data

11.5 Verifiable-reward data (R1 style)

11.6 Curating reasoning datasets

11.7 Multi-step reasoning data quality

★ 2026 SOTA update — Open reasoning data recipes

  • OpenThoughts: 2025; 1000+ ablations on the long-CoT SFT pipeline; OpenThoughts3-1.2M (QwQ-32B teacher) trains OpenThinker3-7B to SOTA open reasoning (53% AIME25).
  • s1 / s1K: 2025; just 1000 difficulty/diversity/quality-selected reasoning traces + 'budget forcing'; SFT Qwen2.5-32B rivals o1-preview — less-is-more for reasoning SFT.

12. Safety and Alignment Data

12.1 Red-team prompts

12.2 Refusal data

12.3 Constitutional pairs

Anthropic's CAI flow.

12.4 Truthfulness data

12.5 Bias / fairness data

12.6 Safety datasets (open)

12.7 Continuous safety pipeline

13. Tokenization-Aware Curation

13.1 Per-tokenizer effects

The same data tokenizes differently under different vocabs. CJK languages are 2–5× as many tokens under Llama 2 vs Llama 3.

13.2 Number tokenization

13.3 Code tokenization

13.4 Multilingual fairness

13.5 Special tokens for instruction-tuning

14. Curation Pipeline Architecture

14.1 Standard pipeline stages

  1. Raw data ingestion (S3, GCS).
  2. Format conversion (HTML → text, image → standardized).
  3. Deduplication.
  4. Quality filtering.
  5. Domain / topic classification.
  6. PII / safety filtering.
  7. Tokenization + length-stratification.
  8. Sharding into training-ready format.

14.2 Distributed processing

14.3 Data lake vs object store

14.4 Streaming formats for training

14.5 Versioning and lineage

14.6 Dolma toolkit (AI2)

Open-source data curation toolkit; reproducible OLMo data pipeline. Reference implementation.

14.7 Other open toolkits

14.8 Production data engineering teams

Modern frontier labs have dedicated data teams (5–50 engineers) building the curation pipeline. Often considered as critical as model architecture team.

15. Data Mixture and Curriculum

15.1 Mixture weights

What fraction from each source. Critical hyperparameter; massive quality impact.

15.2 Common mixtures

15.3 DoReMi (Domain Reweighting)

15.4 Quality-weighted sampling

15.5 Curriculum strategies

15.6 Long-context data mixing

15.7 Annealing on high-quality

Many recipes: pre-train on bulk web; final ~100B tokens on highest-quality (math, code, instruction). Polish.

★ 2026 SOTA update — Automated data-mixture search

  • RegMix: ICLR 2025; train many 1M-param proxies on random mixtures, fit regression, extrapolate optimal mix; matches DoReMi at far less compute, fully parallel.
  • CLIMB: NVIDIA 2025; embed + k-means cluster unlabeled web into pseudo-domains, then iteratively bootstrap mixtures with a proxy model + predictor; 1B model beats Llama-3.2-1B, DoReMi, RegMix.

16. Long-Context Data

16.1 The challenge

Most natural docs are short. Training a 100K-context model needs millions of long examples. Sources are scarce.

16.2 Sources of natural long-context

16.3 Synthetic long-context

16.4 Length stratification

Sort docs by length; sample by length bucket to ensure training sees full range. Avoid all-short or all-long batches.

16.5 Quality at long context

16.6 Long-context evaluation data

17.2 Per-jurisdiction regulation

17.3 PII handling

17.4 Right to be forgotten (data unlearning)

17.5 Licensing

17.6 C2PA provenance

17.7 Watermarking outputs

17.8 Avoiding data contamination

17.9 Ethical sourcing

18. Data Engines (Production Loops)

18.1 Tesla's data engine (AV reference)

The original "data engine" pattern:

  1. Deploy current model in production.
  2. Detect failures (uncertainty / disagreement).
  3. Surface to labelers.
  4. Label.
  5. Retrain.
  6. Deploy.
  7. Repeat.

Continuously improves over millions of operating hours.

18.2 Pattern adopted across AI

Now standard in:

18.3 Long-tail mining

18.4 Auto-labeling

18.5 Human-in-the-loop QA

18.6 Continuous improvement loop

  1. Production model deployed.
  2. Telemetry on errors.
  3. Auto-label most; human-label hardest.
  4. Continuous training (or periodic retrain).
  5. Canary / A-B before swap.

18.7 Labeler ops at scale

18.8 Anthropic / OpenAI labeler teams

19. Tools and Infrastructure

19.1 Curation toolkits

Tool Provider Notes
dolma AI2 end-to-end OLMo pipeline
datatrove HuggingFace FineWeb-style processing
NeMo Curator NVIDIA production-scale
RedPajama Tools Together Pile / RedPajama recipes
slimpajama-dedup Cerebras dedup specifically
text-dedup HuggingFace dedup utilities
text-cleaner various per-domain cleaners

19.2 Distributed compute

19.3 Storage

19.4 Streaming / loading

19.5 Labeling tools

19.6 Eval tools

19.7 Observability

20. Evaluation of Data Quality

20.1 Direct metrics

20.2 Held-out perplexity

Train small proxy model; measure perplexity on held-out high-quality set (Wikipedia, eval suites). Use as ranking signal for data variants.

20.3 Downstream eval correlation

20.4 Scaling laws for data

20.5 Mix ablations

20.6 Counterfactual auditing

20.7 Long-running data eval cadence

21. Multimodal Data Specifics

21.1 Image-text quality filters

21.2 Image deduplication

21.3 Video quality filters

21.4 Action-labeled data for VLAs

21.5 3D data normalization

21.6 Synthetic image data

22. Frontier 2025–2026

22.1 Synthetic data dominance

22.2 Continual learning data flywheel

22.3 Verifiable-reward data

22.4 Multimodal data scarcity

22.5 Privacy-preserving data

22.6 Open data benchmarks

22.7 Open research questions

23. Production Stack 2026

Use case Default approach Notes
LLM pretraining (open) FineWeb / FineWeb-Edu / Nemotron-CC Open recipes
LLM pretraining (closed) In-house CC + curated tier-1 + synthetic Frontier labs
SFT data (instruction) Tulu / OpenHermes / Self-Instruct + curation Open or synthetic
RLHF preference data Surge / in-house labelers + iterative collect High quality
DPO data UltraFeedback / Nectar / synthetic 50k–500k pairs
GRPO reasoning data NuminaMath + verifiable-reward problems Programmatic check
Long-CoT distillation R1 traces filtered by correctness 800k example reference
Code training The Stack v2 + dedup + license filter Permissive-only
Multimodal (image-text) DataComp / DFN + recaption with VLM Re-captioning critical
Multimodal (video) Panda-70M / HD-VG / InternVid + recaption Re-captioning critical
Robot training Open-X-Embodiment + DROID teleop + own Cross-embodiment
Continual / data engine Production telemetry + HITL QA + auto-label Tesla pattern
Safety / red-team Constitutional + HarmBench + adversarial gen Continuous
Tools (curation) datatrove / dolma / NeMo Curator Open + production
Tools (labeling) Label Studio / Surge / in-house By task

Appendix A: Twenty-Five Things to Know

  1. Data quality dominates architecture for frontier models.
  2. Common Crawl is the foundation of nearly every LLM corpus.
  3. C4 / The Pile / RefinedWeb / Dolma / DCLM / FineWeb lineage.
  4. FineWeb-Edu: classifier-filtered > raw at small scale.
  5. DCLM-baseline: small classifier filter beats hand rules.
  6. Gopher heuristics for rule-based filtering.
  7. MinHash + LSH for near-duplicate dedup.
  8. SemDeDup for semantic dedup via embeddings.
  9. Re-captioning is critical for image / video training (Sora, FLUX, DALL-E 3).
  10. Phi-1: textbook synthetic data → small model wins.
  11. R1-Distill: 800k long-CoT traces transfer reasoning.
  12. Self-Instruct foundation for synthetic instructions.
  13. Constitutional AI generates safety data via critique-revise.
  14. Best-of-N rejection sampling (RAFT, RFT) cheap alternative to PPO.
  15. HH-RLHF, UltraFeedback, Nectar are the canonical open preference datasets.
  16. PRM800K, Math-Shepherd, OmegaPRM for process reward data.
  17. NuminaMath: 860k math reasoning problems.
  18. LAION-5B, COYO-700M, DataComp-1B, DFN-2B for image-text.
  19. OBELICS for interleaved multimodal.
  20. Open-X-Embodiment 1.4M trajectories for robot foundation.
  21. Tesla's data engine: deploy → failure detect → label → retrain.
  22. DoReMi for domain-mixture optimization.
  23. dolma / datatrove / NeMo Curator for production curation.
  24. WebDataset / Mosaic Streaming for training data loading.
  25. Per-license, per-jurisdiction compliance is now mandatory.

Appendix B: Decision Tree — "How Do I Get Data?"

  1. Pretraining LLM, frontier budget?
    → Common Crawl via FineWeb / DCLM pipeline + tier-1 sources + synthetic.
  2. Pretraining LLM, modest budget?
    → FineWeb-Edu at small scale; FineWeb at larger.
  3. SFT instruction-tuning?
    → Tulu / OpenHermes or Self-Instruct on top of frontier teacher.
  4. RLHF preferences?
    → Iterative pairs from current model; label via Surge / in-house.
  5. Reasoning RL?
    → NuminaMath + verifiable-reward problems (math, code).
  6. Long-CoT distillation?
    → Sample from R1 / o3; filter by correct final answer.
  7. Image generation training?
    → DataComp / DFN + re-caption with strong VLM.
  8. Video generation training?
    → Panda-70M / HD-VG / InternVid + re-caption.
  9. Robot foundation model?
    → Open-X-Embodiment + own teleop fleet.
  10. Safety / alignment?
    → HH-RLHF / Constitutional + red-team gen + adversarial pairs.
  11. Production deployment improvement?
    → Data-engine pattern: telemetry → label → retrain.

Appendix C: Year-by-Year Data Milestones