Skip to content
mlmentorship

Evaluation validity and benchmark contamination

Check that an evaluation measures the claimed ability, uses independent data, and still predicts performance on the target task.

Published · 8 min read ·Core ·Intermediate

Visual quick review

Distinguish an evaluation that provides independent confirmation from one that has become part of development through repeated feedback.

A feedback arrow changes the benchmark's role

A feedback arrow changes the benchmark's rolePublic benchmark B feeds model selection and therefore becomes development evidence. In a separate lane, M2 freezes before hidden fresh set H is opened once. There is deliberately no return arrow from H into that already-selected model. Later selection would require new confirmation.DEVELOPMENTCONFIRMATIONPublic set Bscore + errorsvisible to teamSelect revisedM2using B feedbackB now shapes M2Freeze selectedM2before opening HFresh hidden Hscore oncerecord scopeNo return arrowinto this selectionRevising M2 after H uses H as developmentevidence.Confirm the revised system on anotherindependent source.
The loop on B makes it development feedback. The one-way H path confirms only the frozen system and tested scope. Further selection needs another independent evaluation.
Check: When does the benchmark become development data rather than independent confirmation?
Full explanation 8 min read

Summary

An evaluation is valid when its score supports the decision or claim being made. Benchmark contamination occurs when test content, answers, or close variants influence training or model selection.

Why AI labs care

A model can improve on a benchmark without improving the intended ability.

Possible causes include:

  • test examples appeared in training data;
  • the team tuned prompts or checkpoints on the test set;
  • a format change made the test easier;
  • the grader rewards style instead of correctness;
  • the benchmark covers only a narrow part of the task;
  • the score no longer predicts production or research outcomes.

A high score is useful only when the evaluation supports the target claim.

Start from the claim

Write the claim before choosing the metric.

Examples:

  • “The model can solve new algebra problems.”
  • “The coding agent can repair unfamiliar repositories.”
  • “The assistant refuses unsafe requests without blocking normal help.”

Each claim implies a data distribution, allowed tools, failure cost, and level of generalization.

A test of memorized textbook questions cannot support a broad claim about new problem solving.

Main forms of validity

Task validity

Does the test contain the work named in the claim? A code benchmark that measures only final unit tests may miss unsafe edits, weakened tests, or excessive patch scope.

Population validity

Do test users, languages, domains, and difficulty levels match the target use? An English-only average does not support a multilingual claim.

Grader validity

Does the scoring rule reward the intended behavior? A model judge may reward length or polished style. A unit test may miss an important invariant.

Predictive validity

Does the offline score predict later human, production, or research outcomes? Track this relation over time.

How contamination happens

Training contamination

Exact test items, answers, source documents, or generated variants enter pretraining or fine-tuning data.

Selection contamination

The team repeatedly checks the same test set while choosing data, prompts, checkpoints, and methods. The test set becomes part of development.

Grader contamination

A model or policy learns details of the grader. It may exploit those details without learning the target ability.

Source overlap

Train and test items come from the same repository, author, template, benchmark family, or generated source. Exact deduplication may miss this link.

Learning objective: distinguish an evaluation that provides independent confirmation from one that has become part of development through repeated feedback.

Match evidence to the claim; later data is not automatically independent confirmation

Match evidence to the claim; later data is not automatically independent confirmationStart with the claim, target population, allowed tools, and failure costs. Check task coverage, population match, grader validity, and prediction of later behavior. Benchmark feedback used for training or selection becomes development evidence. Lock the choice before independent confirmation. Later variants from the same source family can still overlap. A withheld family needs audited independence, and independence alone does not establish the four validity conditions.Start with the claim, not the highestbenchmark scoreExample claim: repair unfamiliarrepositoriesTask: the actual permittedrepair work??Population: unfamiliarrepositories??Grader: detects unsafe orout-of-scope edits??Prediction: later real-taskbehavior??F2 feedback guides prompt orcheckpoint choiceLock the choiceLater F2 variantXStill dependentWithheld F9OKEligible testonlyToy F9 assumes no overlap, trainingexposure, or selection feedback.Audit source families, not just exacttext or timestamps.Independence is necessary, notsufficient: the four validityquestions still require evidence.Known-repository test passes alone donot certify unfamiliar, safe, usefulrepairs.
Read it this way: Start with the claim, target population, allowed tools, and failure costs. Check task coverage, population match, grader validity, and prediction of later behavior. Benchmark feedback used for training or selection becomes development evidence. Lock the choice before independent confirmation. Later variants from the same source family can still overlap. A withheld family needs audited independence, and independence alone does not establish the four validity conditions. Does merely later evidence restore independence?
Reference drawing

Match evidence to the claim; later data is not automatically independent confirmation

Match evidence to the claim; later data is not automatically independent confirmationStart with the claim, target population, allowed tools, and failure costs. Check task coverage, population match, grader validity, and prediction of later behavior. Benchmark feedback used for training or selection becomes development evidence. Lock the choice before independent confirmation. Later variants from the same source family can still overlap. A withheld family needs audited independence, and independence alone does not establish the four validity conditions.Start with the claim, not the highestbenchmark scoreExample claim: repair unfamiliarrepositoriesTask: the actual permittedrepair work??Population: unfamiliarrepositories??Grader: detects unsafe orout-of-scope edits??Prediction: later real-taskbehavior??F2 feedback guides prompt orcheckpoint choiceLock the choiceLater F2 variantXStill dependentWithheld F9OKEligible testonlyToy F9 assumes no overlap, trainingexposure, or selection feedback.Audit source families, not just exacttext or timestamps.Independence is necessary, notsufficient: the four validityquestions still require evidence.Known-repository test passes alone donot certify unfamiliar, safe, usefulrepairs.
Derivation
A feedback arrow changes the benchmark's rolePublic benchmark B feeds model selection and therefore becomes development evidence. In a separate lane, M2 freezes before hidden fresh set H is opened once. There is deliberately no return arrow from H into that already-selected model. Later selection would require new confirmation.DEVELOPMENTCONFIRMATIONPublic set Bscore + errorsvisible to teamSelect revisedM2using B feedbackB now shapes M2Freeze selectedM2before opening HFresh hidden Hscore oncerecord scopeNo return arrowinto this selectionRevising M2 after H uses H as developmentevidence.Confirm the revised system on anotherindependent source.
The loop on B makes it development feedback. The one-way H path confirms only the frozen system and tested scope. Further selection needs another independent evaluation.
Check: When does the benchmark become development data rather than independent confirmation?
Read it this way: Start with the claim, target population, allowed tools, and failure costs. Check task coverage, population match, grader validity, and prediction of later behavior. Benchmark feedback used for training or selection becomes development evidence. Lock the choice before independent confirmation. Later variants from the same source family can still overlap. A withheld family needs audited independence, and independence alone does not establish the four validity conditions. Does merely later evidence restore independence?

Reduce contamination risk

  1. Track source and transformation history for training and evaluation data.
  2. Remove exact and near duplicates.
  3. Split by source, time, repository, author, or task family where needed.
  4. Keep a final set hidden from model and prompt development.
  5. Use fresh examples after major tuning cycles.
  6. Record every use of a test set.
  7. Check suspicious gains on an independent evaluation.
  8. Report known overlap instead of claiming perfect removal.

No decontamination method proves that a model has never seen related knowledge.

Benchmark saturation

A benchmark is saturated when many systems score near its ceiling or when common development choices have been tuned to it.

Signs:

  • small score changes depend on formatting;
  • rankings change across prompt templates;
  • most examples are easy for all models;
  • errors cluster in ambiguous or broken items;
  • benchmark gains do not move human or production outcomes.

Keep useful old tests for regression. Add harder and more representative tests for model selection.

Small example

A coding agent improves pass rate on a public benchmark.

Before claiming better repository repair:

  1. Check whether benchmark repositories appeared in training data.
  2. Split evaluation by repository age and source.
  3. Review whether the agent changed or removed tests.
  4. Measure patch scope and regression failures.
  5. Test private tasks from different repositories.
  6. Ask humans to review a sample of passing patches.

If the gain disappears on new repositories, the broad claim is not supported.

Adaptive evaluation

As models improve, evaluators add harder tasks. This keeps the test useful and introduces a risk: task writers may choose examples based on known model failures.

Keep separate sets for:

  • stable regression tracking;
  • current frontier comparison;
  • final independent confirmation.

Version the evaluator and state which version supports each result.

In an interview

Use this order:

  1. State the exact claim and decision.
  2. Define the target population and task.
  3. Explain the grader and its failure modes.
  4. Check training, selection, source, and grader contamination.
  5. Use held-out task families or sources.
  6. Confirm important gains on fresh data.
  7. Track whether offline scores predict the real outcome.
  8. Report limits on the claim.

Common mistakes

  • Treating a public benchmark as an independent test after repeated tuning.
  • Using exact deduplication as proof of no contamination.
  • Reporting one aggregate score.
  • Ignoring broken or ambiguous benchmark items.
  • Changing the prompt and calling the result a model gain.
  • Letting the model under test grade itself without validation.
  • Claiming general ability from one narrow task family.

Related: foundation-model data curation, LLM-as-judge evaluation, and critique an ML paper.