When a benchmark's worked solutions leak into a language model's training data, the model learns more than the right answer. It also learns the particular way one author chose to solve each problem: which intermediate quantities to compute, in what order, and which shortcut to take. Many of those choices are arbitrary. Ten independent solvers would make different ones. This proposal detects contamination by counting those arbitrary choices. We ask a pool of independent clean solvers to work each benchmark problem and weight every step of the published reference solution by how many of them also took it. A step everyone takes carries no evidence of leakage. A step almost nobody takes, which the audited model reproduces anyway, is evidence that the model has seen that solution.
This matters now because the standard detectors are failing on the models people most want to audit. These detectors read the model's token probabilities and flag text the model finds suspiciously easy. On The Fragility of Benchmark Contamination Detection in Reasoning Models shows that a single epoch of reinforcement learning with clipped objectives erases most of that signal. It also shows that reasoning models contaminated with chain-of-thought data push all ten detectors it tests to 50–58% AUROC while keeping an 11.7% pass@1 gain. The idea here borrows the Pyramid Method from summarization evaluation, which weights content by agreement across multiple human references. We turn it upside down. Pyramid evaluation rewards the widely shared "peak" of the pyramid; we look for contamination in its sparse base.
Core Claim
Our claim is that the rate at which a model reproduces low-consensus steps of a reference solution identifies which items leaked. This works in black-box settings, because it only needs sampled text. It survives paraphrased contamination and reinforcement learning after contamination, because it measures which choices a solution makes rather than how confident the model is.
The method comes from summarization evaluation. Evaluating Content Selection in Summarization: The Pyramid Method decomposes several human summaries into atomic content units. Each unit is weighted by the number of references that contain it, and scores converge with 4–5 references. Evaluating Information Content by Factoid Analysis: Human annotation and stability argues that importance is a distribution over human agreement, not a binary gold set. Automated Pyramid Summarization Evaluation automates segmentation and clustering, reaching 0.85 correlation with manual pyramids. We reuse this machinery to estimate one quantity per reference step: the probability that an independent solver would produce it.
Let item $i$ have reference solution steps $u \in R_i$. Let $w(u) \in [0,1]$ be the fraction of $N$ clean pool solutions that contain an equivalent step, and let $c(u) \in \{0,1\}$ record whether the audited model's sampled solution contains it. The item statistic is
$$T_i = \sum_{u \in R_i} \big(c(u) - w(u)\big)\,\log\frac{1}{w(u) + \epsilon},$$
where $\epsilon$ is a small smoothing constant. If the audited model is just another independent solver, $c(u)$ has expectation roughly $w(u)$ and $T_i$ centers near zero. The $\log(1/w)$ weight follows the likelihood ratio of reproducing a step, which is largest where the clean probability is smallest. That is also where the chi-square separability $\rho$ in When Is Benchmark Contamination Detectable? Information Limits and Power-Calibrated Audits is concentrated. That paper bounds audit power by $\alpha\rho\sqrt{m}$, where $\alpha$ is the contaminated fraction and $m$ is the number of audited questions. We aim to raise $\rho$ directly by discarding the high-consensus steps. Those steps carry overlap that clean solvers share and dilute any sequence-level signal.
Our contribution relative to CAP: Data Contamination Detection via Consistency Amplification and Pretraining on the Test Set Is No Longer All You Need: A Debate-Driven Approach to QA Benchmarks is localization plus a null model. CAP perturbs inputs and compares whole-task consistency ratios. The debate paper shows that test-set fine-tuning inflates Llama 3.1 8B from 50% to 82% on MMLU-Pro while debate win rates collapse, but it relies on a single judge and was run on 50 questions. Neither estimates, step by step, what an uncontaminated solver would have written. DCR: Quantifying Data Contamination in LLMs Evaluation discounts accuracy with one fuzzy-logic scalar per benchmark. Our per-item statistic could instead drive item-level discounting, but we treat that as downstream.
Research Program
The first component is decomposition, which we specialize to where it is least fragile. The file flags nested clauses and anaphora as the weak point of automated pyramids. For math benchmarks we therefore avoid general sentence segmentation. GSM8K reference solutions (Training Verifiers to Solve Math Word Problems) annotate each calculation. We define a unit as a normalized intermediate quantity together with the operation that produced it. Two solutions share a unit when they compute the same intermediate value from the same problem quantities, however they phrase it. This makes units invariant to the synonym, reordering, and translation rephrasings that Rethinking Benchmark and Contamination for Language Models with Rephrased Samples uses to lift Llama-2-13B from about 55 to 86 on MMLU while evading n-gram filters.
Competition math (AIME, AMC, OlympiadBench, Minerva Math) is the regime where the fragility paper found detectors collapsing. There we use equation-level and lemma-level units, extracted by a PyrEval-style segmentation step. They are matched with a symbolic equivalence check where possible and an LLM matcher otherwise. The LLM matcher only decides whether two steps are equivalent, never whether a solution is correct. This limits its exposure to the judging gap that LiveBench: A Challenging, Contamination-Limited LLM Benchmark reports. We validate the matcher against a few hundred hand-labeled unit pairs before trusting it.
The second component is the consensus pool. For each item we sample $N$ solutions from several model families whose training cutoffs predate the benchmark's release where such models exist. We supplement them with our own fine-tuned models, for which we control the data exactly. Pool contamination is the obvious threat, and it biases the test in a safe direction. If pool models also saw the reference, its idiosyncratic steps rise toward high consensus and lose weight. That costs power but does not create false positives. We verify this by deliberately contaminating one pool member.
The third component is calibration. We treat each pool solver in turn as a pseudo-audited model, scored against the remaining pool. This gives an empirical null for $T_i$ and for its benchmark-level sum, so we do not depend on the Gaussian approximations that the power-calibrated audit paper shows are unreliable below 50 items. We then study how power trades off between the number of audited items $m$ and the pool size $N$, following the stabilization curves of the Pyramid Method. This answers a practical question: how many clean solutions per item buy an 80%-power audit at a given contamination fraction.
Baselines
The naive reference points are random scoring (0.5 AUROC) and raw correctness, which asks whether the audited model gets member items right more often than non-members. Correctness is what contamination inflates, but clean generalization inflates it too.
The first real baseline is sequence-level overlap with the reference solution. We use ROUGE-style n-gram overlap between the model's sampled solution and the published one, plus the same overlap computed on our intermediate-quantity units without consensus weights. This is the uniform-weight ablation. It isolates our key ingredient, because any gain of the full method over it comes from down-weighting steps that clean solvers share.
The second is the reference-free likelihood family: Min-K% (Detecting Pretraining Data from Large Language Models) and Min-K%++ (Min-K%++: Improved Baseline for Pre-Training Data Detection from Large Language Models). We also include LiRA and loss as run in the fragility paper. These are the strongest white-box competitors. The strongest reported number in the file is LiRA at 89.1% AUROC after contamination by supervised fine-tuning on competition math, dropping about 14% after one GRPO epoch. For post-reasoning-model chain-of-thought contamination of DeepSeek-R1-Distill-Llama-8B, all ten detectors fall to 50–58% AUROC (all from On The Fragility of Benchmark Contamination Detection in Reasoning Models). For GSM8K item-level membership, we found no reported AUROC for these detectors on Lacuna. We run them ourselves.
The third is perturbation-based detection: CAP and the black-box polarized-distance method from Data Contamination Calibration for Black-box LLMs. The fourth, which we consider the most dangerous, is self-consistency: how concentrated the audited model's own samples are on one solution path, with no external pool. Detecting RLVR Training Data via Structural Convergence of Reasoning appears, from its title, to exploit a signal of this kind. We will implement it as described in that paper once obtained, and until then as sample-path entropy.
All methods see the same audited models, the same member/non-member splits, and the same sampling budget. We cap audited-model generations per item at the number our method uses. Method hyperparameters, such as $k$ for Min-K% and the perturbation count for CAP, are tuned on a held-out contamination split disjoint from the test split. Beating the baselines means two things. In the regimes where the fragility paper found collapse (after GRPO, and after chain-of-thought contamination of the reasoning model), we need clearly higher item-level AUROC than LiRA, Min-K%++, and self-consistency, with confidence intervals from bootstrap over items that exclude the best baseline. After plain supervised fine-tuning, we need to be at least competitive with LiRA's 89.1%.
Why not just…?
Why not just measure overlap with the reference solution? Clean solvers overlap heavily with any reference on the steps a problem forces. A capable uncontaminated model therefore scores high, and the signal mixes skill with leakage. The uniform-weight ablation tests exactly this. If it matches the consensus-weighted statistic, the pyramid machinery is unnecessary, and we would report that and fall back to the cheaper method. We expect a gap mainly on easy items, where forced steps dominate the solution.
Why not just use Min-K%++ or other likelihood detectors? They need no pool and a single forward pass, and they are strong after plain fine-tuning. The fragility paper shows they are what reinforcement learning after contamination and chain-of-thought contamination destroy. They also need token probabilities that closed APIs often withhold. We keep them as the benchmark to beat in the plain fine-tuning setting, and we report honestly if they remain better there.
Why not just check whether the model's own samples converge on one path? This is a real threat. It needs no pool and captures part of the same intuition. Its weakness is that the fragility paper reports reasoning models being highly confident on unseen problems. Convergence alone cannot separate "memorized this solution" from "has one good general method." Our statistic asks whether the model converges on the reference's particular arbitrary choices, relative to what clean solvers do. The decisive comparison is on non-member items where the model is confident and correct. Self-consistency should raise false positives there; our statistic should not.
Why not just use fresh post-cutoff questions, as LiveBench does? That prevents future contamination but cannot audit the scores already reported on GSM8K, MMLU-derived sets, or competition math. It also requires continual replacement, about one sixth of questions per month in LiveBench. Our method is meant for auditing existing benchmarks and models, which fresh questions cannot do retroactively.
Proposed Experiments and Decisive Checks
We use controlled contamination with known ground truth. Starting from Llama 3.1 8B and DeepSeek-R1-Distill-Llama-8B, we fine-tune on reference solutions for a random half of GSM8K test items. We repeat this with rephrased versions built following Yang et al. and with translated versions. We then apply one epoch of GRPO on clean data, reproducing the cloaking setup, and repeat the full pipeline on AIME, AMC, OlympiadBench, and Minerva Math. The primary metric is item-level AUROC between members and non-members within the same model. This holds model style fixed. The secondary metric is benchmark-level audit power as a function of $m$, $N$, and contamination fraction $\alpha$.
Three checks decide the proposal. The first is a style control: a model fine-tuned on the GSM8K training set shares the reference authors' style but not their item-specific choices, and it must not be flagged at the benchmark level. If it is, the statistic measures style rather than leakage. The second is cloaking robustness: AUROC after GRPO should drop far less than LiRA's reported ~14%, and for chain-of-thought contamination of the reasoning model it should sit clearly above the 50–58% band. The third concerns scope. When we contaminate with answers only (the label-level exposure in the DCR taxonomy), we expect the method to fail. That failure delimits the method, and we will report it. An exploratory extension to GPQA explanations tests whether the approach carries beyond math to free-text reasoning, where decomposition is harder.
References
- On The Fragility of Benchmark Contamination Detection in Reasoning Models
- Evaluating Content Selection in Summarization: The Pyramid Method
- Evaluating Information Content by Factoid Analysis: Human annotation and stability
- Automated Pyramid Summarization Evaluation
- CAP: Data Contamination Detection via Consistency Amplification
- Pretraining on the Test Set Is No Longer All You Need: A Debate-Driven Approach to QA Benchmarks
- DCR: Quantifying Data Contamination in LLMs Evaluation
- Training Verifiers to Solve Math Word Problems
- Rethinking Benchmark and Contamination for Language Models with Rephrased Samples
- LiveBench: A Challenging, Contamination-Limited LLM Benchmark
- Detecting Pretraining Data from Large Language Models
- Min-K%++: Improved Baseline for Pre-Training Data Detection from Large Language Models
- Data Contamination Calibration for Black-box LLMs
- Detecting RLVR Training Data via Structural Convergence of Reasoning