You suspect your custom eval set leaked into a model's training data. Describe two practical tests you would run to detect contamination.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
You suspect your custom eval set leaked into a model's training data. Describe two practical tests you would run to detect contamination.
N-gram overlap scan detects verbatim memorization; canary strings detect training-data inclusion. Both have limits: n-grams miss paraphrases, canaries require pre-publication insertion.
Imagine you wrote a secret exam and worry a student got a copy. Test 1: read the first half of each question aloud and see if the student can finish it word for word. If they can, they saw the exam. Test 2: before printing, hide a made-up word on the exam. After the test, ask students to write down every made-up word they remember. If anyone writes it, they saw the exam before test day.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Open with why contamination matters: it inflates scores and measures memorization. Walk the two tests: n-gram overlap scan with the completion test variant, then canary-based detection. Name the limitations of each. Close with the unsolved gap (paraphrase contamination) and the compensating strategy (dynamic eval sets).
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Relying solely on n-gram overlap, which misses paraphrased contamination where the model benefits from seeing a rephrased version of the eval question.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.