NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Leak Tests: Catching Memorized Benchmark Answers by Deleting a Premise

When a language model scores well on a public benchmark, we usually cannot tell whether it solved the problems or remembered the answers. This proposal tests that directly. Take a benchmark item, delete or blank out one premise that the answer depends on, and use a symbolic solver to confirm that the shortened problem no longer determines the original answer. Then ask the model. A model that reasons only from what it was given should say the answer is unknown, or spread its answers across the possibilities the remaining premises allow. A model that has seen the item in training will often still produce the original gold answer, because it is recalling a string rather than deriving a conclusion. Counting how often the gold answer appears when it is no longer justified, beyond a baseline measured on fresh items of the same shape, gives a per-item contamination signal. The signal needs only the model's outputs.

The timing matters because the detectors people rely on are failing on reasoning models. On The Fragility of Benchmark Contamination Detection in Reasoning Models shows that a single epoch of reinforcement learning on clean data shrinks the log-probability gap between seen and unseen items. Reference-free detectors fall to about 50% AUROC, and all ten detectors land at 50–58% AUROC under chain-of-thought contamination. The same paper reports that contamination still raises accuracy: an 8.8% average pass@1 inflation after supervised fine-tuning, and 11.7% for DeepSeek-R1-Distill-Llama-8B in the chain-of-thought stage. So the leaked information still reaches the model's answers even though it has disappeared from the probabilities. A test that probes the answers themselves, on inputs where no honest derivation can reach the gold answer, targets exactly the part of contamination that inflates scores.

Core Claim

The claim borrows its logic from "only knowing," an idea from knowledge representation. To say an agent knows a knowledge base $\alpha$ and nothing else, you require it to treat as possible every world in which $\alpha$ holds. Minimizing what it knows means maximizing its uncertainty, which is how Circumscriptive Ignorance turns the absence of a proof into positive information. A Logic for Revision and Subjunctive Queries uses the same idea, an "only knowing" operator $O(KB)$, to keep unstated assumptions out of counterfactual reasoning. A Model-Theoretic Analysis of Monotonic Knowledge shows that without such a bound, extra information silently leaks into an agent's belief state.

These papers supply the semantics and nothing empirical. We reuse one consequence. If $\alpha'$ is a benchmark item with a premise removed, the answers the item licenses are exactly those true in some world consistent with $\alpha'$. For formally annotated items, a solver can compute that set. Any excess commitment to the original gold answer is evidence of information that did not come from the prompt, and on a benchmark item the most likely source of that information is the benchmark itself.

Concretely, let $\hat y_i$ be the model's answer to the ablated version of item $i$, and let $y_i^\ast$ be the original gold answer. Let $\pi_i$ be the rate at which models of the same family give the "old" answer on matched fresh items. These are items the model cannot have seen, built from the same logical template and ablated the same way. The benchmark-level leak score is

$$L = \frac{1}{n}\sum_{i=1}^{n}\Big(\mathbf{1}[\hat y_i = y_i^\ast] - \pi_i\Big),$$

where $n$ is the number of ablated items. Under the null hypothesis of no contamination, $L$ has expectation zero. Averaging per-item terms supports a permutation test at the benchmark level and a ranking score at the item level.

The subtraction of $\pi_i$ is essential. FOLIO: Natural Language Reasoning with First-Order Logic documents strong confirmation bias: models answer "True" when the answer is "Unknown" even on material they have plausibly never seen. A raw "still answers the gold label" rate would mistake that bias for memorization.

Relation to Prior Work

Several works motivate the design, and several constrain it.

The closest benchmark work treats underdetermination as a label to predict, not as a tool for auditing. FOLIO asks for True/False/Unknown with first-order annotations. ProofWriter generates proofs under an open-world assumption and marks unprovable goals. Neither asks whether a model's commitments on underdetermined inputs reveal training exposure. We reuse FOLIO's formal annotations and ProofWriter's open-world setup as the machinery that certifies an ablated item really is underdetermined.

Two dynamic testbeds perturb inputs to avoid memorized answers, but they do not use the perturbation to detect contamination in existing scores. INVITE distorts DBpedia facts into false-premise questions. The ICT dataset from Can Tool-augmented Large Language Models be Aware of Incomplete Conditions? removes tool parameters. Both measure hallucination or abstention.

DyVal and A²RBench generate fresh items and show large drops relative to static benchmarks. A²RBench reports a 17.7% drop under symbol remapping. These drops show that contamination exists in aggregate, but they are confounded with difficulty shifts and cannot say which items leaked. A²RBench also warns that generated items tend to be simpler than the originals. That warning constrains how we build the matched fresh controls: they are produced by template-level substitution of names and predicates, not by free generation.

On the detection side, PaCoST compares confidence on original versus rephrased questions with a paired t-test. RADAR classifies recall versus reasoning from 37 surface and internal features and reports 93.0% accuracy on its own small test set. Both need log-probabilities or activations. PaCoST's signal, a confidence gap, is the kind of quantity the fragility paper shows reinforcement learning erases.

Our test differs from all of these in three ways. It is black-box. Its null distribution is computed per item from a solver plus matched controls rather than from a threshold. And it does not measure confidence at all. It measures whether the answer depends on a premise that is no longer there.

Research Program

The first component is an ablation generator for formally annotated reasoning benchmarks.

For FOLIO and ProofWriter's RuleTaker-style data, we take each item's formal premises and delete each premise in turn. We also replace entity constants with unused names, which follows the Wise Man style of reasoning from established ignorance in Konolige's work. A first-order prover then checks which deletions change the entailment status from True or False to Unknown. Only certified ablations are kept, so the "licensed answer" is Unknown by construction. The natural-language surface is regenerated from the edited logical form by deleting the corresponding sentence, and a small human check confirms fluency. FOLIO reports about 93% syntactic validity for natural-language-to-logic translation, so we audit a sample of annotations before trusting them.

The second component extends the method to competition math: the AIME, AMC, OlympiadBench and Minerva items used in the fragility testbed. There, "delete a premise" means replacing one given numeric quantity with an unspecified symbol. A reference program solves the problem for at least two different values of that symbol. We keep the ablation only if the answers differ, which certifies that the gold integer is no longer determined. This makes a very strong test, because the chance of honestly landing on a specific three-digit AIME answer from an underdetermined problem is small, so $\pi_i$ should be near zero.

The third component is the matched-control generator for $\pi_i$. For each benchmark item we instantiate several fresh items from the same logical template with new predicates, names and numbers, ablate them identically, and record how often models output the "old" answer. For logic items, the old answer is whatever the fresh un-ablated item's gold label would have been. We estimate $\pi_i$ per template, pooled over a panel of models, so that confirmation bias and answer-format priors are absorbed.

Baselines

The naive reference point is to do nothing beyond comparing a model's accuracy on the original benchmark with its accuracy on fresh matched items. This is the logic behind DyVal and LiveBench-style evaluation. We run it on exactly the same items and fresh controls used for the leak test. It gives only a benchmark-level gap that mixes contamination with difficulty. The leak test beats it if it flags contamination at the item level, measured by seen-versus-unseen AUROC in the controlled experiment below, where the naive gap by construction cannot rank items.

The strongest existing detectors are the membership-inference family evaluated in On The Fragility of Benchmark Contamination Detection in Reasoning Models: LiRA, loss, Min-K% and verbatim completion. That paper reports LiRA at 89.1% AUROC after supervised contamination, a drop of about 14% after one epoch of GRPO, about 50% AUROC for reference-free detectors after GRPO, and 50–58% for all detectors under chain-of-thought contamination. We reimplement them on the same checkpoints and the same seen/unseen splits. They get white-box access, which the leak test does not need, and LiRA gets the same reference models. The leak test beats them if its AUROC after GRPO is at least 0.75 on logic items and clearly above LiRA's post-GRPO value, while staying competitive before GRPO.

We also run PaCoST's paired-rephrasing test at its published p < 0.05 threshold. No reported AUROC for PaCoST on reasoning models was found on Lacuna; its paper reports benchmark-level flags, for example two models flagged on 4 of 6 benchmarks. We therefore compare at the benchmark-flag level as well as the item level. RADAR is included only where we can extract its features on open models. Its reported 93.0% accuracy comes from a 100-example set that does not match our setting, so we do not treat it as a target number.

Two ablations isolate what the proposal adds. The first drops the matched-control term, using the raw rate of gold answers on ablated items. If this performs as well, the circumscription-derived null is unnecessary. The second is counterfactual substitution: change a premise so the solver certifies a different determinate answer, then count stale gold answers. This is the most dangerous competitor, discussed below.

A prompt condition, "answer only from the given premises; say Unknown if undetermined," is crossed with every method rather than treated as a separate baseline. This ensures the leak signal is not an artifact of instructions.

Why not just…?

Why not just regenerate fresh or paraphrased benchmarks and compare scores? Fresh generation protects future evaluations but cannot audit scores already reported on FOLIO, AIME or GPQA. It also yields an aggregate drop, such as the 39.4% average EvoEval reduction cited in Benchmark Data Contamination of Large Language Models: A Survey, which cannot separate memorization from the new items simply being harder. A²RBench's simplification bias shows that the difficulty shift can run in either direction. We include this as the naive baseline, and the item-level AUROC comparison shows what it cannot do.

Why not just use log-probability detectors such as LiRA, Min-K% or PaCoST? The fragility paper already shows them near chance after brief reinforcement learning or chain-of-thought contamination, and they require white-box access. Our reason to expect the leak test to survive is that reinforcement-learning clipping reshapes probabilities but preserves the accuracy gain. That gain is the behavior we probe. This is a prediction, not a certainty, and the controlled GRPO experiment tests it directly. If our AUROC collapses as well, the proposal's central claim is wrong.

Why not just perturb a number and count stale answers? This is a genuine threat. Counterfactual substitution is simple and needs no solver-computed null. It has two weaknesses. The perturbed item has a new correct answer that the model must actually compute, so failures mix memorization with the difficulty of the new instance. And a model can avoid the stale answer by partially reasoning while still being contaminated. Deletion avoids both problems, because no answer is correct, so any gold commitment beyond $\pi_i$ counts. We run both on identical items. If substitution matches deletion in AUROC and calibration, we will report that the simpler test suffices and that the contribution of this work is the certified-underdetermination null, not the deletion operation.

Why not just instruct the model to abstain when information is missing? Instructions do not remove confirmation bias. FOLIO's models still over-predict True, and Structured Verification in the ICT paper lifts Gemma-3-4B from 20.90% to 68.57% F1, still short of the roughly 81% human baseline. More importantly, abstention prompting is not a detector. We cross it with every method so that any leak signal we report holds under the most abstention-friendly prompt.

Proposed Experiments

The decisive experiment follows the controlled-contamination protocol of the fragility paper. We start with an open reasoning model such as DeepSeek-R1-Distill-Llama-8B and fine-tune it on a random half of the FOLIO, RuleTaker and AIME/AMC items, with and without chain-of-thought traces. The other half is held out. We then apply one epoch of GRPO on clean data. At each checkpoint, meaning base, after contamination, and after GRPO, we compute the per-item leak score and every baseline on identical seen/unseen splits. The primary metric is seen-versus-unseen AUROC. Secondary metrics are the accuracy inflation on original items, to confirm that contamination took, and the leak test's false-positive rate on the unseen half.

Success means three things together. AUROC after GRPO must stay above 0.75 where LiRA and loss degrade as the fragility paper reports. The leak test's AUROC must fall by less than five points between the contaminated and post-GRPO checkpoints. And on the uncontaminated base model, $L$ must be statistically indistinguishable from zero on every benchmark, which is our calibration check.

One outcome would be informative rather than a failure. In the chain-of-thought condition, the fragility paper suggests models generalize the reasoning path rather than memorize answers. If the leak test fires on the answer-only contamination condition but not the chain-of-thought condition, and accuracy gains on the unseen half also appear, that supports the reading that the chain-of-thought gain is real generalization. We would report the test as measuring answer recall specifically.

A second experiment audits released models without controlled training. We compute $L$ on public FOLIO, RuleTaker and AIME items for a panel of open and API models. The panel includes models trained before and after each benchmark's release, which uses the temporal logic of Test of Time: Rethinking Temporal Signal of Benchmark Contamination as independent corroboration. Items released after a model's training cutoff give a within-model check that $L$ is near zero where contamination is impossible.

The last check addresses the confound that could sink the approach: world knowledge rather than benchmark exposure. FOLIO's WikiLogic items rest on real facts, so a model might recover a deleted premise from general knowledge rather than from the benchmark. We therefore report $L$ separately on HybLogic-style synthetic items, where no fact outside the benchmark can supply the missing premise, and on Wikipedia-grounded items. We also compare against fresh controls that share the real-world facts but use new logical structure. If the signal lives only in the Wikipedia-grounded items and vanishes on the synthetic ones, we are detecting background knowledge rather than contamination, and we will say so.