---
title: After fine-tuning, your team reports a large gain on a public coding benchmark. What would you check before believing…
url: https://gurkanozkan.ai/learn/questions/recent-a-dq-02/
markdown: https://gurkanozkan.ai/learn/questions/recent-a-dq-02.md
kind: question
role: ML engineering
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/recent-a-dq-02.json
robots: noindex
---

# After fine-tuning, your team reports a large gain on a public coding benchmark. What would you check before believing it?

ML engineering · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- Check contamination first: n-gram and embedding overlap between training data and test items, canary strings, and memorisation probes such as naming the buggy file from the issue alone (a 2025 study: up to 76% accuracy on SWE-bench Verified vs up to 53% on other repositories).
- Re-measure on a fresh or private held-out set from the same distribution, or a newer benchmark, and on rephrased items.
- Audit benchmark validity on a sample: broken or over-strict tests and wrong labels are common (OpenAI's July 2026 audit estimated ~30% of SWE-bench Pro tasks broken).
- Hold the harness constant (scaffold, tool access, timeouts, container resources) and report confidence intervals over seeds; resource limits alone moved Terminal-Bench 2.0 scores by up to 6 points in a 2026 study.
- Report the effect after decontamination and never tune on the test split.

### In full

I would not believe the gain until I had checked contamination and benchmark validity, because a large public-benchmark jump can reflect memorisation or a flawed test set rather than real capability. First I would run n-gram and embedding overlap between the training data and the test items, look for canary strings, and probe memorisation directly, for example by asking the model to name the buggy file from the issue text alone; a 2025 study found state-of-the-art models did this with up to 76% accuracy on SWE-bench Verified but only up to 53% on repositories outside SWE-bench, which is exactly the kind of gap that signals memorisation. Then I would re-evaluate on a fresh or private held-out set from the same distribution, or a newer benchmark, including rephrased items, and audit a sample of the benchmark for broken or over-strict tests and wrong labels; OpenAI's July 2026 audit estimated that about 30% of SWE-bench Pro tasks are broken, most often because tests demand details the task never specified. I would also hold the harness constant—scaffold, tool access, timeouts, container resources—and report confidence intervals over seeds, because infrastructure alone can move agentic scores by several points (in one 2026 study, resource limits alone shifted Terminal-Bench 2.0 scores by up to 6 points). Finally, I would report the effect after decontamination and make sure the test split was never used for tuning.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Contamination: n-gram and embedding overlap between training data and test items, canary strings, and probes for memorisation such as naming the buggy file from the issue alone (one 2025 study found 76% on SWE-bench Verified versus 53% on other repositories)
- Compares on a fresh or private held-out set from the same distribution, or a newer benchmark, and on rephrased items
- Audits benchmark validity on a sample: broken or over-strict tests and wrong labels are common (OpenAI estimated about 30% of SWE-bench Pro tasks broken in 2026)
- Holds the harness constant (scaffold, tool access, timeouts, container resources) and reports confidence intervals over seeds, since infrastructure alone can move agentic scores by several points
- Reports the effect after decontamination and never tunes on the test split

## Common mistakes

- Assuming exact-match deduplication rules out contamination
- Trusting a few-point gain without confidence intervals or harness parity

## Follow-ups

- How would you build an internal coding eval that stays uncontaminated for a year?

## Topic guides

- [Data quality, leakage and drift](https://gurkanozkan.ai/learn/topics/data-quality.md)
- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
