# Data Contamination

- **Canonical URL:** https://getaimath.com/dictionary/data-contamination/
- **Topics:** [Model Training & Optimization](https://getaimath.com/dictionary/category/model-training-and-optimization/), [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Also called:** Benchmark Contamination
- **Last updated:** 2026-11-25

## What is Data Contamination?

**In one sentence:** Data contamination is when test or benchmark questions accidentally end up in a model's training data.

If a model saw the test answers while training, its high score might come from memory, not real skill. Because LLMs train on huge chunks of the internet, where benchmarks are often posted, contamination is a real and common problem.

![How an AI Goes to School: 3 Steps from Bookworm to Assistant — Simple 3-step cartoon showing an AI 1. Reading the whole library (Pre-training) to become a Bookworm, 2. Practicing polite Q&A with a teacher (Fine-tuning), and 3. Getting thumbs-up and thumbs-down feedback from humans (RLHF).](https://getaimath.com/diagrams/model-training-and-optimization.png)
*Napkin Diagram (Model Training & Optimization): First the model reads the internet to learn facts; next it practices answering questions; finally humans coach its manners.*

## What is an example of Data Contamination?

A model scoring 95% on a coding benchmark because the exact problems were in its training data is contaminated.

## Why does Data Contamination matter?

Contamination can make models look much better than they really are.

## Related Concepts

- [Curriculum Learning](https://getaimath.com/dictionary/curriculum-learning/): Curriculum learning trains a model on easier examples first and harder ones later, like a school curriculum.
- [Scaling Laws](https://getaimath.com/dictionary/scaling-laws/): Scaling laws are patterns showing that models get predictably better as you increase their size, data and compute.
- [Calibration](https://getaimath.com/dictionary/calibration/): Calibration in quantization means running sample data through a model to learn the typical range of its values before compressing it.
- [Data Augmentation](https://getaimath.com/dictionary/data-augmentation/): Data augmentation creates extra training examples by slightly changing existing ones.
- [Compute-Optimal Training](https://getaimath.com/dictionary/compute-optimal-training/): Compute-optimal training means choosing the best balance of model size and training data for a fixed computing budget.
- [Robustness](https://getaimath.com/dictionary/robustness/): Robustness is how well an AI keeps working correctly when inputs are unusual, noisy or deliberately tricky.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/data-contamination/)
