thebestai.co encyclopedia

Data and Information Systems

1 article12 min read12 topics

#Training Data, Contamination and Provenance

#Concise Definition

Training data is the collection of examples from which a machine-learning model's parameters are fitted. Contamination is the presence of evaluation material (or near copies of it) in the training data, which makes evaluation scores overstate performance on unseen inputs. Provenance is the documented origin, licensing, collection method and processing history of a data set.

#Overview & Significance

For modern language and multimodal models, the composition of the training corpus is among the most consequential design decisions and, for closed models, one of the least disclosed. Three problems recur in the literature. Quality: web-scale corpora contain duplicated, machine-generated, toxic and low-value text, so filtering choices change model behaviour. Validity of evaluation: if test items appear in training, benchmark scores measure memorisation as well as capability (see CAP-BENCH-001 AI Evaluation). Accountability: licensing, consent, privacy and copyright questions depend on knowing what was collected from where (see SAFE-IP-001 Copyright and Intellectual Property and SAFE-PRIV-001 Privacy and Data Protection in AI).

This article describes the technical mechanisms and the evidence. It does not state legal conclusions, which vary by jurisdiction and are covered in the governance volume.

#Historical Development

Early supervised learning relied on curated, hand-labelled sets. As language modelling moved to self-supervised pretraining, corpora grew by crawling the web. The Common Crawl archive became a standard raw source, and filtered derivatives such as the Colossal Clean Crawled Corpus (C4) were documented after the fact: Dodge et al. (2021) audited C4 and reported that blocklist-based filtering removed a disproportionate share of text from and about minority individuals, that the corpus contained machine-generated text, and that it contained evaluation examples from other NLP benchmarks.

Gao et al. (2020) assembled the Pile, an English corpus of roughly 825 GiB combining 22 subsets, many from academic and professional sources, and reported that models trained on it outperformed those trained on raw Common Crawl and CC-100 on its components. Penedo et al. (2024) described FineWeb, about 15 trillion tokens from 96 Common Crawl snapshots, releasing the curation code and ablations of filtering choices; this was a rare detailed public account of web-corpus construction at frontier scale. Frontier developers typically describe their data only in general terms; where a model's data are not disclosed, this article treats them as undisclosed.

On documentation, Gebru et al. (2018) proposed "datasheets for datasets", standardised questions on a data set's motivation, composition, collection and recommended uses, modelled on electronics datasheets. On provenance at scale, Longpre et al. (2023) audited more than 1,800 text data sets and reported license omission above 70% and error rates above 50% on popular hosting sites.

#Technical / Conceptual Explanation

#4.1 Corpus construction pipeline

A typical web-text pipeline has these stages, described in the construction papers cited above: (1) obtain raw crawl snapshots; (2) extract text from markup; (3) filter by language, heuristic quality rules and, in some pipelines, learned classifiers; (4) remove duplicates; (5) mix sources with sampling weights; (6) tokenise (see TECH-TOK-001 Tokenization and Embeddings). Each step encodes judgments that Dodge et al. (2021) and Penedo et al. (2024) show can change downstream behaviour.

#4.2 Deduplication

Lee et al. (2022) found that existing language-modelling data sets contain many near-duplicate examples and long repeated substrings; in their experiments, over 1% of unprompted text from models trained on such data was copied from the training set, deduplicated training reduced the frequency of memorised output roughly tenfold, and deduplication reduced train-test overlap that they report affecting more than 4% of standard validation sets. Deduplication can be exact (hash-based), suffix-array based for repeated substrings, or approximate (e.g., MinHash-style near-duplicate detection).

#4.3 Memorisation and extraction

Language models can reproduce training sequences. Carlini et al. (2021) extracted hundreds of verbatim sequences from GPT-2, including personal contact information, code and chat logs, some of which appeared in only one training document, and reported that larger models were more vulnerable. Memorisation is thus a property of the model-data pair, not only of duplicated text.

#4.4 Contamination

Following the definitions of Sainz et al. (2023), contamination occurs when a model is trained on the test data of a benchmark on which it is later evaluated. Magar and Schwartz (2022) separate two effects: memorisation of contaminated examples and exploitation of them to raise downstream scores. In their controlled BERT pretraining experiments, exploitation occurred in some settings and mere memorisation in others, depending on factors including the number of duplicates and model size.

Detection approaches fall into: (a) n-gram or string overlap between training and test text, which requires access to the training data; (b) black-box statistical tests, such as the exchangeability test of Oren et al. (2023), which compares the likelihood of a benchmark in its canonical order with shuffled orders and requires only likelihood access; (c) construction of benchmarks from material created after a model's training cutoff, as in LiveCodeBench, which continuously collects contest problems (Jain et al., 2024). Brown et al. (2020) reported a contamination analysis of the GPT-3 benchmarks as part of that model's technical report, noting overlap in some evaluations; this is an example of a developer disclosing the problem.

#4.5 Synthetic data and model collapse

As model-generated text enters web crawls, training on it is a growing concern. Shumailov et al. (2024) report that indiscriminate training on model-generated content causes "model collapse", in which the tails of the original data distribution disappear, demonstrated for language models, variational autoencoders and Gaussian mixtures. The result concerns recursive, indiscriminate training; whether and how much mixed real-and-synthetic data pipelines are affected in practice, and the effect of careful curation, is a separate question (see section 7).

#Types, Components & Classifications

  • By source: web crawl, curated books and papers, code repositories, user-generated or licensed content, human-written demonstrations and preference labels (see TECH-ALIGN-001 Pretraining, Fine-Tuning and RLHF), synthetic data.
  • By contamination type (Sainz et al., 2023; Magar & Schwartz, 2022): exact or near-exact test-set inclusion; inclusion of test inputs without labels; inclusion of derived or paraphrased material; indirect leakage through discussions of benchmark items online.
  • By documentation level: undocumented, datasheet-documented (Gebru et al., 2018), or audited with provenance tracing (Longpre et al., 2023).
  • By access: open corpora (Pile, C4, FineWeb) versus undisclosed proprietary corpora.

#Applications & Concrete Examples

  • Open corpora enabling replication: C4, the Pile and FineWeb are documented, public data sets used for open model training and for studying data effects (Dodge et al., 2021; Gao et al., 2020; Penedo et al., 2024).
  • Privacy auditing: extraction attacks serve as an audit of what a trained model retains (Carlini et al., 2021).
  • Evaluation hygiene: time-segmented benchmarks and black-box tests are used to qualify reported scores (Jain et al., 2024; Oren et al., 2023). Oren et al. audited five public models and reported little evidence of pervasive contamination in that audit; that result applies to the models and benchmarks tested.
  • Governance practice: dataset documentation and training-data transparency are subjects of regulation; see GOV-LAW-001 AI Governance for the current legal position, which this article does not summarise.

#Advantages, Limitations & Unresolved Questions

Strengths of current practice. Deduplication has measurable benefits for memorisation and evaluation (Lee et al., 2022). Documentation templates are cheap and widely adopted as a norm.

Limitations. (1) Detection of contamination is imperfect: overlap checks need data access; black-box tests need likelihoods and have power limits (Oren et al. report tests on models as small as 1.4B parameters and test sets of about 1,000 examples; power depends on test-set size and on how the data were duplicated in training). (2) Sainz et al. (2023) argue the extent of the problem is hard to measure, so published scores for closed models can rarely be fully qualified. (3) Provenance metadata are frequently missing or wrong (Longpre et al., 2023). (4) Quality filters embed value judgments with disparate effects (Dodge et al., 2021).

Unresolved. The real-world impact of synthetic data on future model quality is contested between worst-case recursive results (Shumailov et al., 2024) and practice that mixes curated and synthetic data; this article does not assert a consensus. How much benchmark contamination changes rankings among frontier systems is not established in general.

#Current State of Knowledge

As of 2026-10-15: the following are well documented in peer-reviewed or archival sources: duplicates and memorisation in web corpora (Lee et al., 2022; Carlini et al., 2021), documented quality and bias effects of filtering (Dodge et al., 2021), the prevalence of weak licensing metadata (Longpre et al., 2023), and statistical methods for black-box contamination testing (Oren et al., 2023). Frontier models' training corpora generally remain undisclosed. Statistics such as corpus sizes, licensing agreements and the share of synthetic data in current frontier training are fast-moving and are not tabulated here; see MODEL-001 and FACT-001.

#Future Trajectory & Strategic Outlook

Observed trends. Dataset documentation, time-segmented benchmarks, and licensing audits are increasingly used. Open pipelines (FineWeb) show that filtering recipes are an active research variable.

Forecast. The record below is a qualitative, testable expectation.

Field Content
Forecast ID FCST-DATA-001
Forecast Statement Major public AI benchmarks used for headline model comparison will increasingly be accompanied by explicit contamination controls (time-segmented items or private held-out sets).
Operational Definition Among the benchmarks cited in a sample of ten frontier-model technical reports published in a given year, the share that use time-segmented, private-held-out, or dynamically refreshed test items rises from the 2024 sample share to a majority in the 2028 sample.
Time Horizon 2028
Assumptions Continued reliance on benchmarks for model comparison; continued public pressure on evaluation validity.
Confidence Level Medium (roughly 55-65%)
Alternative Scenarios Static public benchmarks remain dominant because of reproducibility needs; or evaluation shifts to agentic, task-based assessments where contamination is defined differently.
Review Schedule October 2027; final evaluation December 2028
Status Active

Medium and long term. The balance between scarce high-quality human text and abundant synthetic data is unresolved; this article makes no quantitative prediction about it.

Sources, evidence and revision historyReferences · Evidential Classification Matrix · Revision History

#References & Foundational Literature

  1. Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., Daumé III, H., & Crawford, K. (2018). Datasheets for Datasets. arXiv:1803.09010 (later published in Communications of the ACM, 2021). https://arxiv.org/abs/1803.09010. [Proposes standardised dataset documentation modelled on electronics datasheets.]
  2. Dodge, J., Sap, M., Marasović, A., Agnew, W., Ilharco, G., Groeneveld, D., Mitchell, M., & Gardner, M. (2021). Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpus. Proceedings of EMNLP 2021. https://arxiv.org/abs/2104.08758. [Audit of C4: blocklist filtering effects, machine-generated text, benchmark examples in the corpus.]
  3. Gao, L., Biderman, S., Black, S., Golding, L., Hoppe, T., Foster, C., Phang, J., He, H., Thite, A., Nabeshima, N., Presser, S., & Leahy, C. (2020). The Pile: An 800GB Dataset of Diverse Text for Language Modeling. arXiv:2101.00027. [Composition and evaluation of a 22-subset open corpus.]
  4. Penedo, G., Kydlíček, H., Ben Allal, L., Lozhkov, A., Mitchell, M., Raffel, C., von Werra, L., & Wolf, T. (2024). The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale. arXiv:2406.17557. [Open web-corpus construction at roughly 15 trillion tokens with documented ablations.]
  5. Lee, K., Ippolito, D., Nystrom, A., Zhang, C., Eck, D., Callison-Burch, C., & Carlini, N. (2022). Deduplicating Training Data Makes Language Models Better. Proceedings of ACL 2022. https://arxiv.org/abs/2107.06499. [Duplicate prevalence, memorisation and train-test overlap reduction from deduplication.]
  6. Carlini, N., Tramèr, F., Wallace, E., Jagielski, M., Herbert-Voss, A., Lee, K., Roberts, A., Brown, T., Song, D., Erlingsson, Ú., Oprea, A., & Raffel, C. (2021). Extracting Training Data from Large Language Models. USENIX Security Symposium 2021. https://arxiv.org/abs/2012.07805. [Verbatim extraction of training sequences from GPT-2.]
  7. Magar, I., & Schwartz, R. (2022). Data Contamination: From Memorization to Exploitation. Proceedings of ACL 2022. https://arxiv.org/abs/2203.08242. [Distinguishes memorisation from exploitation of contaminated data in controlled experiments.]
  8. Sainz, O., Campos, J. A., García-Ferrero, I., Etxaniz, J., Lopez de Lacalle, O., & Agirre, E. (2023). NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmark. Findings of EMNLP 2023. https://arxiv.org/abs/2310.18018. [Position paper defining contamination levels and calling for per-benchmark measurement.]
  9. Oren, Y., Meister, N., Chatterji, N., Ladhak, F., & Hashimoto, T. B. (2023). Proving Test Set Contamination in Black Box Language Models. arXiv:2310.17623 (ICLR 2024). [Black-box exchangeability test for contamination.]
  10. Jain, N., Han, K., Gu, A., Li, W.-D., Yan, F., Zhang, T., Wang, S., Solar-Lezama, A., Sen, K., & Stoica, I. (2024). LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code. arXiv:2403.07974. [Time-segmented benchmark design as contamination control.]
  11. Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language Models are Few-Shot Learners. Advances in Neural Information Processing Systems 33. https://arxiv.org/abs/2005.14165. [Technical report including a contamination analysis of the evaluated benchmarks.]
  12. Longpre, S., Mahari, R., Chen, A., Obeng-Marnu, N., Sileo, D., Brannon, W., Muennighoff, N., Khazam, N., Kabbara, J., Perisetla, K., Wu, X., Shippole, E., Bollacker, K., Wu, T., Villa, L., Pentland, S., & Hooker, S. (2023). The Data Provenance Initiative: A Large Scale Audit of Dataset Licensing & Attribution in AI. arXiv:2310.16787. [Audit of 1,800+ text data sets; license omission and error rates.]
  13. Shumailov, I., Shumaylov, Z., Zhao, Y., Papernot, N., Anderson, R., & Gal, Y. (2024). AI models collapse when trained on recursively generated data. Nature, 631(8022), 755–759. https://doi.org/10.1038/s41586-024-07566-y. [Model collapse under indiscriminate recursive training on generated data.]

#Evidential Classification Matrix

Section / Claim Evidence Category Supporting Source Confidence / Status
Web corpora contain duplicates; deduplication reduces memorised output Well Supported Lee et al. (2022) High
Models can regurgitate training sequences Well Supported Carlini et al. (2021) High
C4 filtering and composition findings Well Supported (single audit) Dodge et al. (2021) Moderate to High
Contamination inflates evaluation; extent is hard to measure Well Supported (position and experiments) Sainz et al. (2023); Magar & Schwartz (2022) Moderate
Black-box contamination test Preliminary (single-group method) Oren et al. (2023) Moderate
Licensing metadata often missing or wrong Well Supported (large audit) Longpre et al. (2023) Moderate to High
Model collapse under recursive generated-data training Well Supported for the tested conditions; practical impact Contested Shumailov et al. (2024) Moderate
Frontier training corpora composition Undisclosed n/a n/a
Benchmark contamination-control trend Forecast FCST-DATA-001 Medium

#Revision History

  • v0.1.0 (2026-10-15): Initial draft. Citations checked against arXiv/Crossref/publisher pages where marked; not independently fact-checked.
12 topics this chapter covers
  • 16.1Data collection
  • 16.2Data preprocessing
  • 16.3Data quality
  • 16.4Data labeling
  • 16.5Structured and unstructured data
  • 16.6Data governance
  • 16.7Training, validation, and test datasets
  • 16.8Data contamination
  • 16.9Dataset bias
  • 16.10Synthetic data
  • 16.11Data provenance
  • 16.12Privacy-preserving data practices