Detect and Quantify Benchmark Contamination Before Reporting Model Scores
Last updated: November 29, 2026
Quick Overview
Before publishing benchmark results for a new language model, explain how you would check whether test examples leaked into pretraining data and how you would report scores if some did.
0
0
0 solved
Before publishing benchmark results for a new language model, explain how you would check whether test examples leaked into pretraining data and how you would report scores if some did.
Google DeepMind publishes evaluation results that customers and researchers rely on, and web-scale pretraining makes leakage of public benchmarks likely. Interviewers check practical detection methods, how to estimate the effect on scores, and honest reporting.
What the Interviewer Expects
- Explains why web-scale data makes contamination likely
- Describes n-gram overlap detection against the training corpus with sensible thresholds
- Mentions model-based probes such as completion and perplexity tests
- Compares scores on clean versus contaminated subsets
- Proposes held-out or freshly written evaluation sets
- Describes transparent reporting of the findings
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- What n-gram length and overlap threshold would you choose, and why?
- How can paraphrased contamination evade overlap checks?
- How would you design an evaluation that stays clean over time?
- Could a model score higher on clean data than contaminated data, and what would that mean?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Setting: a decoder model pretrained on trillions of tokens of web, code, and books; we report accuracy on public benchmarks for math, coding, and reading comprehension. The training corpus is availabl...
Approach
Contamination happens because benchmark questions and solutions are posted on the web, in repositories, and in forums. Detection at two levels. Data-side: tokenize each test example, generate its long...