Detect Benchmark Contamination Between Pretraining Data and Eval Sets
Last updated: November 29, 2026
Quick Overview
A new model scores far above expectations on a popular public reasoning benchmark. Explain how you would determine whether benchmark items leaked into the pretraining corpus, how contamination affects the reported number, and what you would do about it.
OpenAI
November 29, 20260
0
0 solved
A new model scores far above expectations on a popular public reasoning benchmark. Explain how you would determine whether benchmark items leaked into the pretraining corpus, how contamination affects the reported number, and what you would do about it.
Pretraining corpora at OpenAI scale include large swaths of the web, where benchmark questions and solutions are posted. Interviewers want to know that a candidate treats eval numbers skeptically and knows both data-side and model-side contamination tests.
What the Interviewer Expects
- Proposes exact and fuzzy n-gram overlap checks against the corpus
- Uses model behavior tests such as perturbation or completion probes
- Compares performance on clean versus contaminated subsets
- Discusses temporal holdouts created after the data cutoff
- Recommends decontamination and reporting practices
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
- Why can 13-gram overlap miss contamination that matters?
- How would you build an eval that stays clean over future training runs?
- Is training on benchmark-adjacent data (similar but not identical problems) contamination?
- How would you report results if you cannot fully decontaminate?
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
Contamination means benchmark questions, and especially their answers, appear in training data, so the model can recall rather than reason. It can be verbatim, reformatted (different whitespace or num...
Approach
Data side. Normalize text (lowercase, strip punctuation and whitespace) and search the corpus for long n-gram overlaps with each benchmark item, for example any shared 13-gram, as several publishe...