When a language model scores well on a public benchmark, we usually cannot tell whether it solved the questions or had already seen them during training. That leak of test questions into training data is called benchmark contamination. Most detectors look for one symptom: the model is unusually confident on items it saw. Recent work shows this symptom can be erased. After reinforcement-learning post-training, or after training on worked solutions, confidence on seen and unseen items looks the same, and ten standard detectors fall to near-chance accuracy. Detectors that avoid the confidence symptom need either a clean, matched set of control questions or a cohort of trusted reference models. Outside auditors rarely have either.
We propose a different question to ask the model. We do not ask whether it is confident on an item. We ask how its behavior on that item changes when we briefly teach it the item again, compared with copies of the same model that were taught everything except that item. The design comes from out-of-bag estimation, a trick used in bagged ensembles such as random forests. Each small model is trained on a random resample of the data, so every data point has a set of models that never saw it, and those models give an honest prediction for free. Here, the "bag" is a set of lightweight fine-tuning adapters, each trained on a bootstrap resample of the benchmark. Each benchmark item gets two groups of adapters: some trained on it and some not. Both groups share the same base weights, the same training format and the same compute. The gap between the two groups isolates the effect of exposure to that specific item and cancels out item difficulty. Our hypothesis is that this exposure effect differs systematically for items the base model already absorbed during training, even when post-training has hidden every trace of that absorption in the model's output probabilities.
Core Claim
For an open-weight model $M_0$ and a benchmark of $n$ items, we fine-tune $B$ low-rank adapters (LoRA, small trainable weight matrices added to a frozen model), each on a bootstrap resample $D_b$ of the benchmark. Let $\ell_b(i)$ be adapter $b$'s loss on the reference answer of item $i$. The item-level re-exposure statistic is
$$\Delta_i = \frac{1}{|O_i|}\sum_{b \in O_i} \ell_b(i) \;-\; \frac{1}{|I_i|}\sum_{b \in I_i} \ell_b(i),$$
where $I_i$ is the set of adapters whose resample contained item $i$ and $O_i$ is the set that did not. Under standard bootstrap sampling, about 37% of adapters fall in $O_i$ for each item, so both sets are populated whenever $B \geq 16$.
$\Delta_i$ measures how much the model gains from being shown item $i$, beyond what it gains from learning the benchmark's format and neighboring items. The two plausible effects are saturation (an already-memorized item has little left to gain) and fast relearning (a suppressed memory comes back quickly). Either one makes contaminated items separable from clean ones, and we determine which holds per model family in controlled experiments.
To turn $\Delta_i$ into a per-item test, we compare it against a small reference set $R$ of items known to be unseen. These are post-cutoff or procedurally generated questions, and they are scored with the same bagging procedure. The conformal p-value is
$$p_i = \frac{1 + \#\{r \in R : s(\Delta_r) \geq s(\Delta_i)\}}{1 + |R|},$$
where $s$ orients the statistic in the direction established empirically. This p-value has finite-sample validity whenever the reference items' statistics are exchangeable with those of clean benchmark items.
The bet is that the in-bag versus out-of-bag difference removes most of the item-difficulty variation that forces ConStat to use a cohort of reference models and forces power-calibrated audits to use matched controls. If that holds, the reference set can come from a different source than the benchmark and still give valid p-values. We test this directly rather than assume it.
Relation to Prior Work
Several papers motivate the problem. On The Fragility of Benchmark Contamination Detection in Reasoning Models contaminates Qwen2.5-7B-Instruct during supervised fine-tuning. LiRA detects this at 89.1% AUROC, but one epoch of clean GRPO training lowers LiRA by about 14% and plain loss by about 16%. On DeepSeek-R1-Distill-Llama-8B contaminated with worked solutions, all ten detectors average 50–58% AUROC. The authors prove that the PPO/GRPO clipping term shrinks the log-probability gap between seen and unseen items. Their result constrains our design: any statistic read off the post-RL model's output distribution at a fixed point is suspect. $\Delta_i$ is instead measured after a controlled gradient perturbation of the weights. The open question is whether information hidden in the output distribution survives in the weights, and that is the hypothesis our experiments test.
Three confidence-based detectors are close competitors, and each depends on the confidence gap that RL removes:
- PaCoST runs a paired t-test on P(True) between original and rephrased questions. It gives benchmark-level verdicts only.
- Data Contamination Calibration for Black-box LLMs compares the most and least certain tokens on perturbed neighbors of each text. Its "calibration" is a score adjustment and carries no coverage guarantee.
- LiRA trains separate shadow models with and without target items. Our in/out comparison resembles LiRA. The difference is that our in/out models are the target model itself, lightly adapted, rather than independently trained shadows, so the comparison inherits the target's own training history.
Two papers define the reference problem we try to sidestep:
- ConStat treats contamination as a failure to generalize. It fits a difficulty-correction curve across about 20 reference models and reports detecting 98.4% of sample-specific contamination, against 71% for the best baseline. It fails if the whole reference cohort is contaminated.
- When Is Benchmark Contamination Detectable? shows that audit power scales with contamination fraction × separability × √(sample size). Gaussian sample-size formulas fail below 50 items, and the paper's planner needs a matched clean control.
We reuse that power analysis to report the separability $\rho$ of $\Delta_i$, so our signal can be compared to theirs on one scale.
The method comes from the out-of-bag literature:
- Data-OOB values each training point by its average out-of-bag utility and shows this ordering matches the infinitesimal jackknife. Its authors note it does not apply to deep monolithic networks and that duplicates break it.
- Regression conformal prediction with random forests and Stability of Random Forests and Coverage of Random-Forest Prediction Intervals justify using out-of-bag scores as calibration data and give stability conditions for coverage.
We transfer the out-of-bag idea to deep models by making the bagged learners adapters on a shared frozen base, which avoids training ensembles of language models from scratch. We address the duplicate weakness with a cluster bootstrap, described below.
Split Conformal Prediction under Data Contamination shows that contaminated calibration data makes conformal sets over-conservative: 99% coverage for a 90% target on CIFAR-10N. That result warns us that any leaked items in $R$ will inflate p-values, and we include that failure in our checks.
Research Program
The pipeline works as follows. Given an open-weight model and a benchmark, we:
- Group near-duplicate benchmark items into clusters, using MinHash plus embedding similarity, and draw bootstrap resamples over clusters rather than items. The out-of-bag adapters for an item then never saw its near-twin. This addresses the duplicate weakness of Data-OOB at benchmark scale.
- Train $B$ adapters, starting with $B = 16$, each for a fixed small number of steps on its resample. The loss is computed on the reference answer, or for reasoning benchmarks on the final answer span, so that worked-solution contamination and answer-only contamination are both covered.
- Compute $\Delta_i$ for every item, and compute the same statistic for reference items scored in identical runs. Reference items are mixed into every resample so they experience the same adapter training as benchmark items.
From these per-item statistics we produce three outputs:
- per-item conformal p-values;
- a benchmark-level estimate of the contaminated fraction, from a mixture fit to the p-value distribution;
- an estimate of score inflation, from the accuracy gap between items flagged and not flagged.
The analysis has three parts:
- Direction and size of the effect. We measure the sign and magnitude of the exposure effect (saturation versus fast relearning) as functions of contamination type: verbatim, paraphrase, answer-only, and worked solution, following the signal hierarchy in the power-calibrated audit paper.
- Robustness to RL. We check whether the effect survives GRPO with and without clipping, using the clipping ablation that the fragility paper showed removes the hiding effect.
- Difficulty invariance. For clean items drawn from different sources, we test whether $\Delta_i$ distributions match closely enough (small Kolmogorov–Smirnov distance) for an off-the-shelf reference set to give valid p-values.
The main limitation is access. The method needs weights, or at least a fine-tuning interface, so it covers open-weight models and developer self-audits rather than closed APIs.
Baselines
The naive reference point is the loss on each item under the unmodified model, thresholded against the same reference set. It is equivalent to the Loss detector in the fragility paper, which falls to roughly chance after GRPO. If $\Delta_i$ does not beat it before RL, the adapter machinery is not justified.
The strongest item-level competitor is LiRA, run with shadow models built from the same base family and the same reference data. On the fragility paper's Stage I setup it reaches 89.1% AUROC before RL and drops about 14% after one GRPO epoch. Those are the numbers to beat. Beating it means matching it before RL and staying at least 15 AUROC points above it after RL. On Stage II, where the reported AUROC is 50–58%, any detector reliably above 70% AUROC would be a qualitative change.
For benchmark-level inflation estimates, the strongest competitor is ConStat. We run its released pipeline on the same GSM8K and ARC injections with its reference models. Its reported sample-specific detection is 98.4%. We do not expect to beat that when its reference cohort is clean. The claim is that we match it within a few points without any cohort, and that we stay accurate when the cohort is deliberately contaminated, while ConStat does not.
PaCoST and the black-box perturbation-calibration method are run on the same items with their published prompts. For the latter, the file reports only relative gains (4.5% AUC on WikiMIA and 5.9% on StackMIA over Min-K% and perplexity), so no absolute baseline number is available for it. Min-K% is also reported as a standalone baseline. All methods get the same reference set and the same contamination labels, and their thresholds are tuned with the same budget on a separate tuning split.
Two ablations isolate what is new:
- Single adapter. One adapter is trained on the whole benchmark, and the item's loss drop is measured with no out-of-bag group. This tests whether the in/out contrast matters.
- Item-level bootstrap. The bootstrap is drawn over items instead of clusters. This measures how much near-duplicates inflate false out-of-bag behavior.
A third ablation replaces the bootstrap with two-fold cross-fitting, which tests whether the full bag is needed at all.
Why not just…?
Why not just fine-tune once on the benchmark and measure each item's loss drop? This is the most serious threat, because a single adapter is $B$ times cheaper. The problem is that fine-tuning on a benchmark lowers loss on every item through format learning and transfer from neighboring items. A single run cannot separate item-specific gain from that global shift without a matched clean control, which is exactly what auditors lack. The single-adapter ablation settles this. If it matches $\Delta_i$ on AUROC and on p-value validity across reference sources, we drop the bagging and report the simpler method.
Why not just use two-fold cross-fitting instead of a bootstrap bag? Cross-fitting already gives every item an in-group and an out-group, and it may well suffice. The bootstrap adds several out-of-bag estimates per item, and therefore a per-item variance estimate that improves the conformal comparison when benchmarks are small, which is the setting where power-calibrated audits fail. If cross-fitting performs equally well, the contribution stands as "within-model in/out re-exposure" and the bag size becomes a tuning detail.
Why not just use LiRA shadow models or a ConStat reference cohort? Both are strong when their assumptions hold. The fragility paper shows LiRA losing about 14% AUROC after one GRPO epoch, because its shadows do not share the target's post-training history. ConStat needs about 20 clean reference models and fails if they share the leak. Our contaminated-cohort experiment, described below, compares all three under that specific failure mode.
Why not just evaluate on fresh benchmarks like LiveBench and skip detection? Fresh benchmarks avoid future leaks but say nothing about the inflated scores already reported on MMLU, GSM8K or ARC. We use fresh and procedurally generated items from LiveBench and A²RBench as the conformal reference set. They are complementary to this method, not substitutes for it.
Proposed Experiments
Controlled RL hiding. We reproduce both stages of the fragility paper's setup on AIME, AMC, GPQA Diamond, OlympiadBench and Minerva Math, with known contaminated subsets:
- Stage I: Qwen2.5-7B-Instruct contaminated during supervised fine-tuning, then trained with GRPO with and without clipping.
- Stage II: DeepSeek-R1-Distill-Llama-8B contaminated with worked solutions.
We report item-level AUROC and true-positive rate at 5% false-positive rate before and after RL. The decisive check is whether $\Delta_i$ keeps its AUROC across the GRPO epoch where LiRA and Loss collapse. A negative result would also be informative: it would show that RL hides contamination in the weights, not only in the outputs.
Contamination type and detectability. We run a SQuAD-into-Pile injection in the style of the power-calibrated audit paper, at several contamination fractions and exposure types. We estimate the separability $\rho$ of $\Delta_i$ and check whether the measured audit power matches the planner's prediction. This places our signal on the same scale as their verbatim > paraphrase > shuffle > answer-only hierarchy. The key question is whether re-exposure narrows the gap for answer-only exposure.
Reference-free validity. On GSM8K and ARC with injected contamination, we draw the conformal reference set from LiveBench or procedurally generated items rather than matched controls. We then measure the realized false-positive rate on known-clean benchmark items against the nominal level. In a deliberate stress test, we leak 10% of the reference set into training to quantify the over-conservativeness predicted by the split-conformal contamination results.
Contaminated cohort. We fine-tune the ConStat reference models on the same leaked GSM8K items and compare how well each method estimates score inflation against the known true inflation.
Real-world audit. We apply the method to public open-weight models on MMLU, GSM8K, ARC, HellaSwag and WinoGrande, and compare per-benchmark verdicts with ConStat's published flags (Mistral-7B on GSM8K, δ ≈ 8.3%; Llama-3-70B on ARC, δ ≈ 6.6%). We also report how the per-item flags are distributed, which no benchmark-level method can provide.
References
- On The Fragility of Benchmark Contamination Detection in Reasoning Models
- PaCoST: Paired Confidence Significance Testing for Benchmark Contamination Detection in Large Language Models
- Data Contamination Calibration for Black-box LLMs
- ConStat: Performance-Based Contamination Detection in Large Language Models
- Data-OOB: Out-of-bag Estimate as a Simple and Efficient Data Value
- Regression conformal prediction with random forests
- Stability of Random Forests and Coverage of Random-Forest Prediction Intervals
- Split Conformal Prediction under Data Contamination
- LiveBench: A Challenging, Contamination-Limited LLM Benchmark
- A²RBench: An Automatic Paradigm for Formally Verifiable Abstract Reasoning Benchmark Generation