Your fine-tune gained 8 points on your benchmark. How do you know the gain is real and not contamination?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Assume it is contaminated until proven otherwise, especially if any of the training data is synthetic.
Full worked answer
Assume it is contaminated until proven otherwise, especially if any of the training data is synthetic.
Where contamination gets in:
- Your training data contains the eval items directly, scraped from the same source.
- Your teacher saw the benchmark during pretraining, so distilled synthetic data reproduces eval items or the exact reasoning that solves them. This is the sneaky one: you never touched the test set, but your teacher did.
- The eval is public, so the base model was already contaminated. Your "before" number is inflated too, just differently, and the delta is meaningless.
- You split before deduping, so near-duplicates straddle train and test.
Checks, cheapest first:
- n-gram overlap between every eval item and the training set (13-gram is the common convention), plus embedding nearest-neighbour search, since paraphrases sail straight past n-grams. Report the contaminated fraction and re-score with those items removed.
- Dedup, then split. Split by source or entity if items cluster, not randomly.
- Memorisation probe: can the model complete an eval answer from a truncated prompt? Is loss on the eval anomalously below comparable fresh data? Both are flags.
- The one that matters: a private eval your team wrote after the training data was frozen, never posted anywhere, never in a prompt. Plus a temporal holdout of data created after the base model's cutoff. This is exactly why rolling evals like LiveBench and LiveCodeBench exist.
- Perturbation: rename entities, change numbers, shuffle multiple-choice option order. Genuine capability survives; memorisation collapses. A large drop from shuffling option order is a classic tell.
- Read the newly-correct items. If the 8 points are all one template, it memorised a template.
And the outer loop: 8 benchmark points is not the goal. Does it move the production metric? Contamination cannot fake a live A/B test, which is why I gate ships on that and treat the benchmark as a smoke test.
What a good answer covers
- Assume it is contaminated until proven otherwise, especially if any of the training data is synthetic
- Where contamination gets in
- This is the sneaky one: you never touched the test set, but your teacher did
- Your "before" number is inflated too, just differently, and the delta is meaningless
- Checks, cheapest first: 1
Key terms: Where contamination gets in · Checks, cheapest first · The one that matters
In the glossary: Contamination · Memorisation · A/B test
Interviewer follow-ups to expect
You find 3% n-gram overlap and removing it costs you 2 of the 8 points. Do you ship?
How would you detect that your synthetic-data teacher was contaminated, given you cannot inspect its training set?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep