Data Contamination
“If the test was in the training data, the score may be measuring memory, not skill.”
The bottom line
A public benchmark score alone cannot tell you the model has not seen the test items; check fresh, private questions.
Keep in mind: A gap is a warning sign, not a verdict; a small gap is reassuring but not proof.
See it in a real case: Fresh grade-school math problems, lower scores
Reviewed 19 Oct 2026 · 5 sources · v1.4 · Cite
Details
- Source types
- 4 peer-reviewed or classic, 1 report
- Evidence base
- Well sourced. 5 sources, 4 peer-reviewed or classic (from 4 separate lead authors). This counts sources, not how large or certain the effect is; the Evidence section says what the studies found. How this is rated
- Name
- Established term: This name is used in the research literature.
- Version
- v1.4, published 5 Oct 2026
Evidence base: Well sourcedEstablished termIndependent, not peer reviewed. Status
In plain terms
If a model saw the test questions while it was training, a high score may only mean it remembers them. Fresh or private questions are the strongest check, as long as they stay private.
Takeaways #
- Large models train on huge scrapes of the internet, and public benchmarks live on the internet.
- Contaminated scores overstate how well a model handles problems it hasn’t seen.
- You usually can’t inspect a model’s training data, so contamination has to be tested indirectly.
- Fresh, private, or post-cutoff test sets are the strongest defense, if they stay private and are genuinely new.
What it means #
Contamination, a close relative of what researchers call leakage, happens when information from the test gets into training. In classic machine learning it’s usually a pipeline bug, like normalizing data before splitting it. With large language models it’s often invisible and hard to avoid, because nobody outside the lab knows exactly what went into training. A model that has seen the questions, or close paraphrases, can score well without the skill the test was built to measure.
The evidence #
reviewed 19 Oct 2026Fresh questions, lower scores. Zhang et al. (2024) had human annotators write GSM1k, a new set of grade school math problems matched to the popular GSM8K benchmark. Some model families dropped up to 8% in accuracy. Models that assigned higher probability to the GSM8K test items tended to show bigger gaps (the paper reports a Spearman statistic of 0.36, written as r² in its abstract), which suggests partial memorization, though the authors note outliers and say contamination is likely not the full story. Many frontier models showed little or no gap, which the authors say could reflect better generalization or more careful data handling, so this is a check to run, not a blanket verdict.
Measure it per benchmark. Sainz et al. (2023) argue that contamination should be measured for each benchmark and model, because contaminated results lead to wrong conclusions in published research.
Leakage spans fields. Kapoor and Narayanan (2023) compiled 22 earlier papers that found leakage errors in 17 scientific fields that use ML, collectively affecting 294 papers, a count the authors treat as a lower bound. They also proposed a taxonomy of leakage types.
Still a current problem. The International AI Safety Report 2026 lists test questions that already appear in training data as one reason benchmark scores fail to reflect real-world use (Bengio et al., 2026).
Use it #
- Build a small private test set from your own data that has never been posted online, and keep it out of any vendor service that may train on your inputs. Balloccu et al. (2024) estimated that GPT-3.5 and GPT-4 were exposed to about 4.7 million samples from 263 benchmarks, partly through data sent in by users.
- Compare scores on public items against freshly written look-alike items. A big gap is a red flag.
- Check the benchmark’s release date against the model’s training cutoff. Treat this as a rough screen: cutoffs are approximate, and new items can be rewrites of older ones.
- Ask vendors what contamination checks they ran and how.
- In your own pipelines, split data by time, user, or source before any preprocessing.
Questions to ask #
For vendor reviews, model cards, and launch reviews.
Where this doesn’t apply #
Many frontier models showed little or no gap on fresh questions, so contamination is a check to run, not a verdict. A small gap is not proof of no contamination either. A freshly written test set, or documentation of what training data was excluded, reduces the concern.
Origins #
Leakage has been a known hazard in statistics and machine learning for decades. The scale of web-trained language models turned it from an occasional bug into a standing concern for every public benchmark.
Sources #
- [1]Balloccu, S., Schmidtová, P., Lango, M., & Dušek, O. (2024). Leak, cheat, repeat: Data contamination and evaluation malpractices in closed-source LLMs.Proceedings of EACL 2024 (Volume 1: Long Papers), 67-93Open ↗ (opens in a new tab)
- [2]Bengio, Y., et al. (2026). International AI Safety Report 2026.International AI Safety Report; arXiv:2602.21012 ReportOpen ↗ (opens in a new tab)
- [3]Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science.Patterns, 4(9), 100804Open ↗ (opens in a new tab)
- [4]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 2023Open ↗ (opens in a new tab)
- [5]Zhang, H., Da, J., Lee, D., Robinson, V., Wu, C., et al. (2024). A careful examination of large language model performance on grade school arithmetic.NeurIPS 2024 Datasets and Benchmarks TrackOpen ↗ (opens in a new tab)
Cite this pattern #
AI Evaluation Field Guide. (2026, October 5). Data Contamination (v1.4). https://evalfieldguide.com/patterns/data-contamination@misc{efg-data-contamination,
title = {Data Contamination},
author = {{AI Evaluation Field Guide}},
year = {2026},
month = oct,
note = {Version 1.4},
howpublished = {\url{https://evalfieldguide.com/patterns/data-contamination}}
}https://evalfieldguide.com/patterns/data-contaminationRevision history #
- v1.419 Oct 2026Stated the GSM1k correlation as the paper reports it (a Spearman statistic of 0.36, written as r² in its abstract).
- v1.319 Oct 2026Reworded the aphorism to match the evidence on the page. Tightened the bottom line and its caveat.
- v1.219 Oct 2026Added a one-sentence bottom line with its main caveat.
- v1.119 Oct 2026Corrected how the GSM1k link between memorization and score gaps is measured, added the authors' caveats, counted Kapoor and Narayanan's leakage figure as a lower bound, and warned that private test sets can leak through vendor services.
- v1.05 Oct 2026Published.
Full changelog · Spot a mistake or a better source? Report it. Corrections are logged in the changelog.