Non-obvious modes of train/test leakage in instruction-tuning evaluation
Name and explain at least three non-obvious ways train/test leakage creeps into instruction-tuning evaluation. For each, describe a concrete mitigation.
Leakage hides in paraphrased duplicates, benchmark contamination, judge-teacher overlap, and split after augmentation. Dedup by embedding, decontaminate by n-gram, and cross-family your judge.
Imagine grading a student on a test, but some test questions are just reworded homework they already practiced. They ace it without learning. That is leakage. Worse, the famous textbook the test came from was already memorized during their childhood reading, so everyone scores high for the wrong reason. And if the same tutor who coached them also grades the exam, the tutor unconsciously rewards their own style. None of these leaks show up if you only check for word for word copies. You have to compare by meaning, scan for sneaky reused passages, and bring in an independent grader from a different school.
Detailed answer & concept explanation~7 min readEverything 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. 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.
5 min: four scales of leakage + paraphrase dedup + benchmark decontamination + judge-teacher overlap + split before augment + how to re-report a clean fine-tune delta.
| Leakage mode | Scale | Exact-match catches it? | Mitigation |
|---|---|---|---|
| Paraphrased duplicates | Example | No | Embedding dedup at cosine 0.85 or higher |
| Benchmark contamination | Corpus | No | N-gram overlap probe, private or post-cutoff sets |
| Judge-teacher overlap | Evaluator | No | Judge with a different model family |
| Split-after-augmentation | Pipeline | No | Split seeds first, then augment each split |
| Document-level contamination | Pipeline | Sometimes | Dedup at document or domain level |
Real products, models, and research that use this idea.
- Synthetic SFT pipelines built on Claude Opus 4.7 or GPT-5.5 routinely emit paraphrased instruction variants that exact-match dedup misses but embedding dedup catches.
- Teams reporting fine-tune gains on MMLU and GSM8K now cross-check against contamination dashboards because both benchmarks leaked into many pretraining corpora.
- LMSYS Chatbot Arena and post-cutoff sets like GPQA and recent LiveBench drops are preferred precisely because they postdate most models' pretraining cutoffs.
- Alpaca-style distillation from a single teacher, then judged by that same teacher, is the canonical judge-teacher overlap failure now flagged in eval write-ups.
- RAG-fine-tune pipelines that chunk one document into train and eval are caught by source-level dedup in tools like DataTrove and Lilac.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow do you pick the cosine threshold for embedding-based near-duplicate dedup?
QWhy does judge-teacher overlap survive even after fine-tuning the student on a different base?
QHow would you prove a public benchmark is contaminated for a specific model?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Relying on exact-match dedup. It catches verbatim copies but misses paraphrased duplicates, same-source chunks split across train and eval, and the judge that shares a family with your data generator.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.