What is training data curation?
Training data curation is the deliberate design of a model's training dataset. Selecting sources, filtering raw data, removing duplicates, setting domain mixture proportions and documenting the result are its steps.
Data quality filtering is one step that removes low-quality examples. Curation decides as a whole which sources enter the dataset and in what proportion, treating the dataset as a design object like a model architecture.
- Topic
- Infrastructure and runtime
- Also known as
- Data curation, dataset design, data selection
- Origin
- 2023, a benchmark that made dataset design the object of research
How training data curation works
- Sources and domains are chosen, such as encyclopaedias, books, web text or internal documents.
- Text is extracted from raw data, filters are applied and duplicates are removed.
- Domain mixture proportions are set; they greatly affect language model performance.
- Each design choice is tested by training models with fixed training code and comparing results.
- The dataset's motivation, composition, collection process and recommended uses are documented.
In more detail
Dataset documentation
A 2018 proposal suggests, by analogy with electronic component datasheets, that every dataset be accompanied by a datasheet documenting its motivation, composition, collection process and recommended uses. The lack of a standardised process for documenting datasets can lead to severe consequences in high-stakes domains. Datasheets aim to improve communication between dataset creators and consumers and to prioritise transparency.
Commonly confused terms
| Term | How it differs |
|---|---|
| AI training data provenance | Training data provenance focuses on recording where data came from and how it was collected. Curation is the design process that decides which data enters the dataset, in what proportion and through which processing; provenance records are one input to those decisions. |
Why training data curation matters for on-premises AI
A language model's performance depends heavily on the quality and size of its pretraining data. A 2024 study showed that a 15-trillion-token dataset derived from 96 web crawl snapshots produces better models than other open pretraining datasets. In a 2023 image-text benchmark a model trained on a curated dataset beat its comparison model by 3.7 percentage points with the same training procedure and compute.
Before continued pre-training of an in-house model on its own documents, an insurer collects policy texts, claims correspondence and regulatory documents as separate domains. It filters and deduplicates each, tunes the mixture with small experiments and documents the final dataset.
Common questions
Is more data always better?
No. In a 2023 study a model fine-tuned on only 1,000 carefully curated prompts and responses performed strongly. A study of semantic deduplication also removed half of a web-scale dataset with minimal performance loss.
How are mixture proportions set?
By hand or by experiment. A 2023 method trains a small proxy model with robust optimisation over domains, without knowledge of downstream tasks, to produce domain weights; with them a 30 times larger model trained more efficiently and gained 6.5 points of average few-shot accuracy.
Related terms
- Training data
- AI data quality filtering
- Training data deduplication
- AI training data provenance
- Pre-training
Sources
- DataComp: In search of the next generation of multimodal datasets, NeurIPS, 2023
- The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale, arXiv, 2024
- DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining, NeurIPS, 2023
- Datasheets for Datasets, CACM, 2021
In the glossary: Glossary, R to Z