Benchmark contamination is the exposure of a model to evaluation benchmark data during training, which distorts the scores the model later earns on that benchmark. A 2024 survey of the problem calls it benchmark data contamination (BDC) and defines it as exposure of a large language model to benchmark data during training that "leads to distorted evaluation results." Other papers call it test set contamination or data contamination.
Contamination causes a model's performance on a target benchmark to be overestimated relative to non-contaminated counterparts. The worst case is a model trained on a benchmark's test split and then evaluated on that same benchmark. Contamination is hard to prove, because the pretraining data of proprietary models is often not public.
Benchmark Contamination at a Glance
| Also called | Benchmark data contamination (BDC), test set contamination, data contamination |
|---|---|
| What it does | Inflates a model's score on a benchmark, so the score overstates the model's real capability on the task |
| Where it's used in model development | Enters through training data; large pretraining corpora are a primary source, and it can also enter through fine-tuning data and model-generated synthetic data |
| The human role | Domain experts write and validate fresh test items; manual evaluation by human experts is the reference for checking detection methods such as guided instruction |
| Limits | N-gram filters miss paraphrased items; for closed models, training data is often not public, so detection relies on indirect tests |
How Benchmark Contamination Happens
Benchmark contamination happens when test data reaches a model during training or fine-tuning, and the Xu et al. survey names large pretraining datasets as one of its primary sources. These datasets are often compiled from news articles, online forums, social media posts and other publicly available text. The survey judges the risk to be much lower in fine-tuning, which uses smaller datasets in a more controlled process. Synthetic data is a newer path. Yang et al. found benchmark contamination in synthetic datasets generated by GPT-3.5 and GPT-4.
Four levels of contamination
The same survey sorts contamination into four levels, from least to most severe:
- Semantic level: exposure to identical or derivative content, often on the same topic or from the same source as the benchmark.
- Information level: exposure to information about the benchmark, such as metadata, time distributions, label distributions and external reviews.
- Data level: exposure to test inputs without their labels.
- Label level: exposure to test items with their labels, which lets a model memorize the answers.
Severity rises toward the label level, but detection gets harder in the other direction: label-level exposure is relatively easy to catch, while semantic and information-level contamination are harder to detect and mitigate.
How Benchmark Contamination Is Detected
Benchmark contamination is detected either by searching training data for test items or by testing the model's behavior for signs that it has seen them. The Xu et al. survey divides detection methods into two subcategories: matching-based and comparison-based.
Matching against training data
Most decontamination applies string matching, such as n-gram overlap, between benchmark items and training text. Deng et al. built a retrieval-based system to find overlaps between benchmarks and pretraining corpora. Matching has a known gap: Yang et al. showed that paraphrased or translated test items bypass n-gram filters. Their LLM-based decontamination method found that 8% to 18% of the HumanEval benchmark overlaps with pretraining sets such as RedPajama-Data-1T and StarCoder-Data.
Testing the model's behavior
When training data is closed, evaluators probe the model directly:
- Guided instruction: the model gets the dataset name, the partition and the start of a test instance, and is asked to complete it. An exact or near-exact match flags contamination. Golchin and Surdeanu report that their best method reached 92% to 100% accuracy on seven datasets when contrasted with manual evaluation by human experts.
- Testset Slot Guessing: a wrong answer option is masked and the model is asked to fill it in. On MMLU, ChatGPT and GPT-4 guessed the missing options with exact match rates of 52% and 57%.
- Order testing: a contaminated model finds the benchmark's canonical example order more likely than shuffled orders. Oren et al. showed the test works on models as small as 1.4 billion parameters and test sets of 1,000 examples.
- Parallel held-out sets: GSM1k mirrors the style and complexity of GSM8k. Leading models showed accuracy drops of up to 8% on GSM1k, and several model families showed evidence of systematic overfitting.
Findings vary by model. Oren et al. found little evidence of pervasive contamination in five popular publicly accessible language models they audited.
How Teams Reduce Benchmark Contamination
Teams reduce benchmark contamination by evaluating on items a model has not seen and by applying stronger decontamination to training data. The survey groups mitigation into three strategies: curating new data, refactoring existing data and benchmark-free evaluation.
- Live benchmarks: LiveBench draws questions from recent math competitions, arXiv papers, news articles and datasets, scores them against objective ground truth, and adds and updates questions monthly. LiveCodeBench collects new problems over time from LeetCode, AtCoder and CodeForces.
- Fresh expert-written sets: Yang et al. call for fresh one-time exams. GPQA, cited in NIST's draft guidance, uses questions developed and validated by PhD students or graduates and intended to be hard to answer even with internet searches.
- Inspection and reporting: NIST's draft practices tell evaluators selecting a benchmark to manually inspect its test items when possible. Where existing benchmarks don't fit, evaluators may modify them or create new ones. Sainz et al. argue that contamination should be measured for each benchmark.
Fresh items bring their own pitfalls. The LiveBench authors note that benchmarks that crowdsource new prompts and evaluations from human or LLM judges can introduce significant biases and break down when scoring hard questions.
Benchmark Contamination vs. Benchmark Saturation
Benchmark contamination means a score is inflated by exposure to test data, while benchmark saturation means models have improved enough that a clean benchmark no longer separates them. Both call for new items.
| Aspect | Benchmark contamination | Benchmark saturation |
|---|---|---|
| Cause | Test data or close variants appeared in training data | Newer, stronger models outgrow the benchmark |
| What the score means | Overstates real capability | Can be valid but no longer tells strong models apart |
| Main check | Overlap search and behavioral tests | Whether the benchmark still distinguishes between strong models |
| Fix | Decontaminate training data; evaluate on unseen items | Add harder tasks and versions over time |
LiveCodeBench was built because HumanEval and MBPP are no longer sufficient for newer models. LiveBench adds harder task versions over time to keep distinguishing models as they improve.
Benchmark Contamination at Hugo
Hugo builds dedicated teams of domain experts who write original STEM and specialist prompts, verified reference solutions and the rubrics that grade them, through its STEM and domain-expert prompt generation service. Prompts are checked for search-resistance and overlap with public benchmarks, and duplicates and benchmark overlap are removed from the set. A second expert verifies every reference solution, re-running calculations and executing code. Difficulty is calibrated against current models, so the set stays challenging as models improve.
Related Terms
- Large Language Model (LLM)
- AI Agent Evaluation
- SWE-Bench
- Synthetic Data
- Supervised Fine-Tuning (SFT)
- LLM Post-Training
- Reward Hacking
Benchmark Contamination FAQs
What is benchmark contamination in LLMs?
Benchmark contamination in LLMs is when a model has seen benchmark test data during training, so its score on that benchmark overstates its real ability. Researchers also call it test set contamination or data contamination. A 2024 survey sorts it into four levels: semantic, information, data and label. Label-level contamination, where test items appear with their answers, is the most severe and lets a model memorize the answers. The survey names large pretraining datasets as one of the primary sources. Before trusting a public benchmark score, check whether the model's developer reports a contamination analysis for that benchmark.
How do you detect benchmark contamination?
Benchmark contamination is detected by searching training data for test items or by probing the model for signs of memorization. With open data, teams run n-gram overlap or retrieval-based searches. With closed models, they use behavioral tests: guided instruction asks the model to complete a test instance, Testset Slot Guessing asks it to fill in a masked wrong answer, and order testing checks whether the benchmark's original example order is unusually likely. A parallel held-out set, such as GSM1k for GSM8k, shows a score gap directly. Because string matching misses paraphrased items, pair a matching method with a behavioral one.
Does n-gram decontamination prevent benchmark contamination?
N-gram decontamination does not fully prevent benchmark contamination, because it misses rephrased test items. Yang et al. showed that paraphrasing or translating test data bypasses string-matching filters. A 13B model trained on such variants reached performance on par with GPT-4 on the contaminated benchmark. With a stronger LLM-based method, the same team found 8% to 18% of HumanEval overlapped with pretraining sets such as RedPajama-Data-1T and StarCoder-Data. Use semantic or LLM-based overlap checks alongside n-gram matching, especially for widely used benchmarks such as MMLU, GSM8k and HumanEval, where the authors validated the effect.
How much does contamination inflate benchmark scores?
The inflation from benchmark contamination varies by model and benchmark, so no single figure applies. When leading models were tested on GSM1k, a new set built to mirror GSM8k, accuracy dropped by up to 8%, and several model families showed evidence of systematic overfitting. The authors found a positive relationship (Spearman's r^2 = 0.36) between a model's probability of generating GSM8k examples and that gap. Many frontier models showed minimal signs of overfitting. The size of the effect cannot be assumed in advance, so measure it on your own held-out items.
What is a contamination-free benchmark?
A contamination-free or contamination-limited benchmark keeps adding test items from recent sources, so a model is less likely to have seen them in training. LiveBench draws questions from recent math competitions, arXiv papers, news articles and datasets, updates them monthly and scores answers against objective ground truth. LiveCodeBench collects new problems over time from LeetCode, AtCoder and CodeForces, and hosted 400 problems published between May 2023 and May 2024. Compare a model's results only on items released after its training cutoff.
Can synthetic data cause benchmark contamination?
Synthetic data can carry benchmark contamination into training. Yang et al. found benchmark overlap in synthetic datasets generated by GPT-3.5 and GPT-4, and called it a potential risk of unintentional contamination. The Xu et al. survey judges the risk lower in fine-tuning overall, because fine-tuning datasets are smaller and more controlled. Run the same overlap checks on synthetic and fine-tuning data that you run on pretraining corpora before the data enters training.
How should an outside team build an uncontaminated evaluation set?
An outside team builds an uncontaminated evaluation set by writing original items, checking them against public benchmarks and keeping them out of public circulation. Yang et al. call for fresh one-time exams. GPQA shows one design: questions developed and validated by PhD students or graduates and intended to be hard to answer even with internet searches. NIST's draft practices also advise manually inspecting test items. Ask a provider how it checks for paraphrased overlap, not only exact matches, and who verifies each reference answer.
Sources
- Cheng Xu, Shuhao Guan, Derek Greene, M-Tahar Kechadi. Benchmark Data Contamination of Large Language Models: A Survey. Accessed November 10, 2026.
- Oscar Sainz, Jon Ander Campos, Iker García-Ferrero, Julen Etxaniz, Oier Lopez de Lacalle, Eneko Agirre. NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmark. Updated October 27, 2023. Accessed November 10, 2026.
- Shahriar Golchin, Mihai Surdeanu. Time Travel in LLMs: Tracing Data Contamination in Large Language Models. Updated February 21, 2024. Accessed November 10, 2026.
- Yonatan Oren, Nicole Meister, Niladri Chatterji, Faisal Ladhak, Tatsunori B. Hashimoto. Proving Test Set Contamination in Black Box Language Models. Updated November 24, 2023. Accessed November 10, 2026.
- Shuo Yang, Wei-Lin Chiang, Lianmin Zheng, Joseph E. Gonzalez, Ion Stoica. Rethinking Benchmark and Contamination for Language Models with Rephrased Samples. Updated November 11, 2023. Accessed November 10, 2026.
- Chunyuan Deng, Yilun Zhao, Xiangru Tang, Mark Gerstein, Arman Cohan. Investigating Data Contamination in Modern Benchmarks for Large Language Models. Updated April 3, 2024. Accessed November 10, 2026.
- Hugh Zhang, Jeff Da, Dean Lee, et al. A Careful Examination of Large Language Model Performance on Grade School Arithmetic. Updated November 22, 2024. Accessed November 10, 2026.
- Colin White, Samuel Dooley, Manley Roberts, et al. LiveBench: A Challenging, Contamination-Limited LLM Benchmark. Updated April 18, 2025. Accessed November 10, 2026.
- Naman Jain, King Han, Alex Gu, et al. LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code. Updated June 6, 2024. Accessed November 10, 2026.
- National Institute of Standards and Technology, Center for AI Standards and Innovation. Practices for Automated Benchmark Evaluations of Language Models. NIST AI 800-2 (Initial Public Draft). Updated January 2026. Accessed November 10, 2026.




