Sources#
- Expenditure Horizon: Measuring Optimization Ability, with an Application to NanoGPT
- Recursive Self Improvement for Coding Agents
- Uncertainty-based Debiasing and Unlearning for Decontamination
Summary#
Data contamination is the benchmark-integrity failure where test samples leak into an LLM's training corpus, so the reported score reflects memorization rather than capability and cross-model comparisons become unfair. Because pretraining corpora are vast and opaque, whether any given benchmark item was seen is usually unknowable. Sun, Zhan & Gales ("Uncertainty-based Debiasing and Unlearning for Decontamination", University of Cambridge + VRAIN/UP València, arXiv 2606.23313, 2026-06-22, empirical) make two moves: they re-measure decontamination at the per-sample level, and they introduce Uncertainty-Based Decontamination (UBD) — a way to correct an inflated model without a clean reference model and without knowing which samples are contaminated. This is the vault's first dedicated coverage of contamination as an eval-integrity problem, and it sits directly in the benchmark-integrity cluster (Benchmark Score Redundancy, Measuring Beyond Accuracy Saturation, Compute-Controlled Benchmarking).
The problem with prior work#
Two forms of contamination are distinguished in the literature: exact (test instances appear verbatim in training) and syntactic (they reappear paraphrased or prefixed). Prior mitigations fall into two camps: dynamic benchmarking (build or rewrite samples guaranteed unseen — paraphrasing at inference time, or generating fresh items) and model-level modification (replace shortcut neurons; or fine-tune the contaminated model to minimize KL divergence toward a clean reference model, e.g. DeconIEP / Chai et al. 2026). The paper's twin complaints:
- Evaluation is too coarse. Prior work scores decontamination only by the drop in aggregate accuracy (residual contamination, RC = accuracy gap to the uncontaminated model). But two models can post identical accuracy while being correct on entirely disjoint subsets — aggregate accuracy hides per-sample behavioral divergence. This is the same "a headline accuracy number under-uses the benchmark" argument the Measuring Beyond Accuracy Saturation cluster makes, applied to contamination.
- Most model-level methods need a clean model. Minimizing KL toward an uncontaminated reference assumes you have one — often false in practice, and a mismatched clean model can make things worse.
Contribution 1 — sample-level evaluation#
Rather than aggregate accuracy, measure how closely a decontaminated model's per-sample output distribution recovers that of an uncontaminated model: mean per-sample KL divergence (D_KL) over the full output distribution, and D*_L1, the mean absolute difference in the probability assigned to the ground-truth answer (in MCQ this is directly the model's confidence in the correct letter). A method is effective only if it drives both down on the contaminated split (D_eval) while barely disturbing the clean split (D_dev, measured against the deployed checkpoint).
The headline finding is a disconnect between dataset-level and sample-level metrics: the strongest black-box baseline (GPT-4o paraphrasing + choice permutation) cuts dataset-level RC from 17.2 to 8.4 on Llama-3.2 / MMLU-Pro — yet its D_KL rises >13% over the contaminated model and D*_L1 is essentially unchanged. Closing the accuracy gap does not move per-sample behavior toward the uncontaminated model; it can move it away. So aggregate-accuracy decontamination can look like it worked while leaving (or worsening) the underlying distributional distortion.
Contribution 2 — Uncertainty-Based Decontamination (UBD)#
The core insight is a way to estimate contamination without an oracle. In a contaminated model, high confidence on a sample has two possible causes: it is genuinely easy (supported by lots of non-contaminated training data), or it is hard but memorized (its answer leaked). Both can have low loss, so log-probability can't tell them apart. But memorization is highly sensitive to the batch ordering of the leaked samples, whereas genuine competence is not. So the authors build a deep ensemble of the contaminated model — here 5 LoRA fine-tunes (rank 64, α 128) trained with identical hyperparameters but different seeds / batch orderings — and read the disagreement:
- A hard-but-memorized sample shows the tell-tale combination of high confidence but high variance across ensemble members — high epistemic / knowledge uncertainty (formalized via the mutual information between output and ensemble parameters).
- A per-sample contamination scalar α (conceptually, the ratio of the clean to the contaminated ground-truth probability — α≈1 is clean, α→0 is heavily inflated) is estimated from uncertainty. The paper uses the ensemble standard deviation σ of the ground-truth probability as the practical signal and sets α̂ ≈ 1 − 2σ above a confidence threshold T_p (α̂ = 1 otherwise). The coefficient 2 bounds α̂ to [0,1] since σ ∈ [0, 0.5); T_p excludes samples where the model already performs poorly, so correction concentrates on high-confidence predictions.
This α̂ drives two decontamination modes (Fig. 1):
- UBD-Debiasing — a post-hoc output correction (no weight update): scale the inflated ground-truth probability down by α̂ and redistribute the freed mass proportionally across the other choices, preserving their relative shape. Requires no clean model and no training data. Currently restricted to classification (MCQ/binary) tasks.
- UBD-Unlearning — fine-tune the contaminated weights (cross-entropy) toward the debiased distribution as a soft target, suppressing memorized inflation while preserving distribution shape. Because it is applied to all test samples, it defaults to a no-op on clean samples (α̂≈1 → target ≈ current output → negligible gradient).
Crucially, UBD never has to detect which samples are contaminated: it applies to everything, and clean samples (σ≈0 → α̂≈1) are left unchanged. This sidesteps the membership-inference route the paper notes is weakening — output-statistic signals like peaked distributions or anomalous token probabilities "become much less informative at pretraining scale" (Fu et al. 2025). (Refined 2026-08-04 by Matched Comparisons for Memorization Claims, empirical: at pretraining scale the informativeness of a raw output statistic is length-dependent, not uniformly weak. On OLMo 2 32B, matched non-training Wikipedia sequences are greedily reproduced at 1.82% for 10-token suffixes but only 0.02% at 50 — so the same signal is ~24% false positive at one resolution and near-clean at the other. The claim stands as written for short spans; for long ones the signal is usable once a matched baseline is measured rather than assumed.)
Results#
On MMLU-Pro and MATH-MCQA with Llama-3.2-3B-Instruct and Qwen2.5-3B-Instruct (contaminated model trained on D_train ∪ D_eval; uncontaminated control trained on D_train ∪ D_dev to hold domain/ability fixed):
- UBD dominates sample-level. Both UBD variants achieve >40% relative D_KL and D*_L1 reduction (Llama) and up to ~60% D_KL / ~50% D*_L1 (Qwen) on D_eval vs the contaminated model — well beyond paraphrase/permutation. Notably it beats DeconIEP, which uses a clean reference model UBD does without; a mismatched reference can widen DeconIEP's distances.
- The two modes trade off. UBD-Debiasing gives the best D_eval efficacy but, being aggressive, can over-suppress and dent clean-split (D_dev) accuracy; the threshold T_p tempers this. UBD-Unlearning is gentler and gives the best dev/eval balance, and is robust across T_p (debiasing is threshold-sensitive on RC but both stay robust on D_KL).
- Uncertainty >> log-probability as a contamination indicator. Ensemble std and knowledge uncertainty reach PCC 0.8–0.9 with the oracle α (and cleanly separate hard-but-memorized α≈0 from genuinely-easy α≈1); the classic log-probability signal stays below ~0.4. Standard deviation is preferred over knowledge uncertainty for being bounded and near-linear, so α̂ can be fit with the simple 1−2σ rule.
Limitations#
The method needs an ensemble of checkpoints, i.e. model providers must release not just the main checkpoint but several — the authors argue LoRA-weight ensembles make this cheap (small extra footprint), and flag deriving an ensemble from a single released model as future work. UBD-Debiasing is, for now, classification-only (an open-ended-generation extension via per-decoding-step debiasing is proposed but not built).
A different leaked object: contamination on an agentic optimization benchmark (July 2026)#
Everything above concerns a static item set where the leaked object is an answer, detected by a statistical tell over probabilities. METR's NanoGPT expenditure-horizon study (empirical) hits the same problem with a different shape and solves it a different way, and it is worth recording because the setting — a live, versioned optimization leaderboard — is where agentic benchmarks are heading.
The leaked object is a solution trajectory. An agent is dropped at record N of a public speedrun and asked to improve it; if the model has seen records N+1… in training, its "discoveries" are recall. The detection is a behavioural probe, not a statistic: ask the model to name subsequent records. Starting from record #12 (Nov 2024), both Opus-4.7 (cutoff Jan 2026) and Opus-4.8 (cutoff May 2026) could name #13 attention window warmup, #14 value embeddings, #18 logit soft-capping, and Opus-4.7 runs explicitly mentioned applying "known speedrun improvements"; GPT-5.5 (cutoff Dec 2025) reproduced optimizations similar to #18, #22 and #24 without acknowledging them — the silent case, which a probe catches and a self-report would not. Moving the start to record #78 (March 2026) passes: probed for anything after it, no model including Opus-4.8 showed knowledge.
Two transferable points. The remedy is prevention by construction, not correction — pick a starting state past every candidate model's cutoff — which puts this with Production-Sourced Evaluation rather than with UBD, and it is cheap here only because the benchmark is a chronology. And the cost is a second, opposing bias: METR's own criteria note that a recent-enough state to avoid leakage is also a state prior agents have already optimized (record #78 already contains AI-generated record #72), so the same move that removes contamination depresses the measured result. Recency is not free in either direction.
Connections#
- Matched Comparisons for Memorization Claims — the same mechanism, measured for a different harm. Contamination is memorization of benchmark items (harm: an inflated score); Cooper et al. study memorization of training text (harm: verbatim reproduction of books and personal data). Both must separate "the model memorized this" from "this was predictable anyway," and both find the naive signal insufficient — here because log-probability cannot tell genuinely-easy from hard-but-memorized (PCC < 0.4), there because a raw generation rate cannot tell memorized from predictable without a matched non-member floor (at 10-token suffixes that floor is ~24% of the apparent rate). The two remedies are complements with opposite prerequisites: UBD's ensemble-variance tell needs no controls but needs several checkpoints; the conformal test needs one model but genuine matched non-members. And the contaminated null problem there — members hiding in the control pool, biasing conservatively — is this page's problem with the sign flipped
- Measuring Beyond Accuracy Saturation — the closest methodological sibling: both argue a single aggregate-accuracy number is a lossy summary of what a benchmark knows and add other measured axes. Nadgir et al. add reliability/efficiency/scaffold axes on a saturated benchmark; this adds per-sample distribution distances on a contaminated one, and finds the same shape of result — a dataset-level improvement (RC ↓) that does not translate to the per-sample level (D_KL ↑)
- Benchmark Score Redundancy — that page's central scope caveat is that scores are inferable but benchmarks aren't unnecessary, because benchmarks still do work matrix-completion can't — explicitly naming contamination monitoring as one such job. This page is the correction-side counterpart: given contamination has already inflated a model, recover the clean per-sample distribution. Also complementary risk: UBD relies on the same ground-truth-probability signal that contamination distorts, so it operates inside the integrity problem the redundancy page's public grid embodies
- Compute-Controlled Benchmarking — a sibling reason a headline benchmark number can't be trusted at face value: there, an unnamed compute budget confounds the score; here, training-data leakage inflates it. Both are benchmark-trust critiques whose fix is to report/recover something the single number hides
- Production-Sourced Evaluation — the prevention vs correction pairing: dynamic/production-sourced benchmarks avoid contamination up front by drawing fresh, hard-to-pre-memorize tasks (and refreshing them); UBD instead repairs a model already exposed to a static benchmark. The two are complementary defenses against the same leakage
- Reward Hacking — completes the taxonomy of ways a benchmark number lies: reward hacking games a proxy inside the training loop, benchmark-maxxing inflates the score at eval-report time, and contamination inflates it via training-data leakage (memorization, not deliberate optimization). All three corrupt benchmark validity through different channels
- Agent Supply Chain Risk — the benign analog of its open question about an already-poisoned model you didn't train: UBD is post-hoc correction of a training-exposure effect without access to the training data or a clean reference model. The parallel is thematic, not mechanistic — contamination is benign leakage that inflates accuracy, a model backdoor is malicious and persists through safety training — but both are the "fix the model from the outside, given only the deployed checkpoint" problem
- Synthetic Document Finetuning (SDF) — UBD-Unlearning is the removal-side counterpart to SDF's installation: SDF fine-tunes on synthetic documents to install a belief/disposition; UBD-Unlearning fine-tunes on soft debiased targets to suppress memorized benchmark answers. Same lever (targeted fine-tuning changes what the model outputs), opposite direction (instill vs unlearn)
- How Much Signal Do Public Benchmarks Still Carry — and What Replaces Them? — the cluster synthesis: contamination is one of the four corruption channels through which a headline benchmark number lies, and UBD is the correction-side member of the prevention/correction pairing in the replacement portfolio
- Expenditure Horizon — the agentic-benchmark case: the leaked object is a solution trajectory rather than an answer key, the tell is a behavioural probe ("name the records after this one") rather than a distributional statistic, and the fix is choosing a start date past every cutoff — at the price of starting from a state prior agents have already picked over
- Agent-Authored Harness Optimization — repeated optimization against a fixed suite by the party being scored, with no verifier edits and no task-name detection: the harness fitted to this suite's failure distribution is a contamination-adjacent risk the usual decontamination checks do not catch
Open Questions#
- Can the ensemble be derived from one released model? The whole method rests on having several checkpoints differing in batch ordering; the authors flag single-checkpoint ensemble derivation (e.g. via cheap perturbations) as the key unlock for adoption. Until then it needs provider cooperation to release a LoRA ensemble.
- Does it extend past MCQ? UBD-Debiasing is classification-only today; whether per-decoding-step debiasing recovers the clean distribution for open-ended generation (where contamination shows as near-verbatim reproduction) is untested.
- Is batch-order sensitivity a reliable memorization tell at pretraining scale? The signal was validated on 3B models with 5 LoRA seeds and induced contamination; whether the high-confidence-high-variance signature survives full-scale pretraining and real (not synthetically injected) leakage is open. Partially answered: Matched Comparisons for Memorization Claims (Cooper et al., arXiv 2607.12649,
empirical) settles the second half — real, non-injected leakage is detectable at pretraining scale, on OLMo 2 7B–32B against its published corpus and Llama 3.1 8B/70B against Books3 — but with a different tell: a matched non-member baseline rather than ensemble variance, needing no extra checkpoints. It also bounds what an uncalibrated statistic is worth at that scale (a 10-token verbatim match is ~24% false positive; at 50 tokens the floor is 0.02%). The batch-order signature itself remains untested above 3B. - Does correcting toward an ensemble-averaged uncontaminated reference introduce its own bias? The D_KL/D*_L1 targets are themselves an average over a 5-member uncontaminated LoRA ensemble; how much the "clean" target moves with ensemble size/composition is unexamined.
Sources#
- Expenditure Horizon: Measuring Optimization Ability, with an Application to NanoGPT — METR, 2026-07-21 (
empirical): Appendix C's contamination check on the NanoGPT speedrun — Opus-4.7 and Opus-4.8 naming records #13/#14/#18 from a #12 start (and GPT-5.5 silently reproducing #18/#22/#24), against a clean probe at record #78 — plus problem-selection criteria #6–#8, which name the recency trade-off contamination avoidance imposes. Full treatment on Expenditure Horizon - Uncertainty-based Debiasing and Unlearning for Decontamination — Guangzhi Sun, Xiao Zhan, Mark Gales, Uncertainty-based Debiasing and Unlearning for Decontamination (University of Cambridge + VRAIN/Universitat Politècnica de València, arXiv 2606.23313, 2026-06-22,
empirical): the sample-level evaluation framework (D_KL, D*_L1; the dataset-vs-sample disconnect where paraphrase+permutation cuts RC 17.2→8.4 while D_KL rises >13%); UBD-Debiasing (post-hoc mass redistribution) and UBD-Unlearning (soft-target fine-tuning) driven by α̂≈1−2σ from a 5-member LoRA ensemble; results on MMLU-Pro/MATH-MCQA with Llama-3.2-3B and Qwen2.5-3B (>40–60% relative D_KL reduction, beating paraphrase/permutation and reference-model DeconIEP); uncertainty-vs-log-probability indicator comparison (PCC 0.8–0.9 vs <0.4); the ensemble-release and MCQ-only limitations. Figures 1 (UBD pipeline), 2 (contamination-indicator correlations), and 3 (threshold sensitivity) viewed
Cited by 14
- How Much Signal Do Public Benchmarks Still Carry — and What Replaces Them?×5
Concept articles: Benchmark Score Redundancy (Zeng & Papailiopoulos, arXiv 2606.24020), Measuring…
- Agent Supply Chain Risk×2
The 250-doc backdoor persists through SFT/RLHF. What detection exists for an already-poisoned model…
- Compute-Controlled Benchmarking×2
Search-set and evaluation-set overlap is a second, independent confound. When the tasks a method…
- Expenditure Horizon×2
This is criterion #7 operationalised as a cheap behavioural probe — ask the model to name what came…
- Matched Comparisons for Memorization Claims×2
This is a claim-validity paper, one layer beneath the measurement papers in this cluster: not "is…
- Open Questions Backlog×2
Benchmark Contamination Decontamination: Is batch-order sensitivity a reliable memorization tell at…
- Agent-Authored Harness Optimization
The benchmark is the one they have been hill-climbing for months. Cline says so plainly — Jan 2026…
- Benchmark Score Redundancy
Benchmark Contamination Decontamination — the correction-side counterpart to this page's own scope…
- Inkling
Benchmark hygiene notes: evals at effort 0.99, temperature 1.0, 256K-token trajectory caps;…
- Measuring Beyond Accuracy Saturation
Benchmark Contamination Decontamination — the same "aggregate accuracy is a lossy summary" argument…
- Evals & Benchmarks
Benchmark Contamination Decontamination — Sun, Zhan & Gales (Cambridge): per-sample distribution…
- Production-Sourced Evaluation
Benchmark Contamination Decontamination — the prevention vs correction pairing against data…
- Reward Hacking
Benchmark Contamination Decontamination — the third channel by which a benchmark number lies:…
- Synthetic Document Finetuning (SDF)
Benchmark Contamination Decontamination — the removal-side mirror: SDF fine-tunes on synthetic…
Related articles
- Compute-Controlled Benchmarking
Noam Brown's critique: the single-number benchmark grid is broken because it ignores test-time compute — plot performan…
- Measuring Beyond Accuracy Saturation
Princeton-led case study (arXiv 2606.26158): accuracy saturation is not benchmark saturation — re-instrument a saturate…
- LLM-as-a-Judge
Using one LLM to grade another's outputs against criteria/rubrics; DRACO's protocol is per-criterion binary MET/UNMET +…
- Task Time-Horizon Scaling
METR's measure of the task length AI can complete reliably on its own, doubling roughly every 4 months (up from every 7…
- Large-Scale Test-Time Compute
Noam Brown's thesis that model capability is now a function of inference budget (tokens/cost/time): with good scaffoldi…
