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

Verify the Rewrite Rule, Not the Item: Measuring Which Benchmark Perturbations Actually Break Memorization

Benchmarks go stale when their test questions leak into the text that language models are trained on. A common fix is to rewrite old test questions, changing names, numbers, structure or phrasing, so that a model cannot simply recall the answer. Two problems make this fix less reliable than it looks. First, every rewritten question still has to be checked by a human expert to confirm it is still solvable and correct, and that checking cost is why rewritten benchmarks stay tiny. Second, nobody knows which kinds of rewrite actually remove the benefit of memorization and which only disguise it. There is published evidence that rephrasing can "launder" contamination: the model still profits from what it memorized, but the usual signs of leakage disappear.

This note proposes to address both problems at once. We treat each type of rewrite as a reusable rule and ask experts to certify the rule rather than every question it produces. Expert effort is then spent on a small, statistically sized audit of each rule's outputs, instead of on every item. Separately, we deliberately contaminate one copy of an open model and score each rule by how much of that model's memorization advantage survives the rewrite. The result is a catalogue of rewrite rules. Each rule comes with two numbers: a certified upper bound on how often it produces broken questions, and a measured estimate of how much memorization leaks through it. A benchmark builder can use the catalogue to generate many fresh, trustworthy variants at a human cost that grows with the number of rules, not the number of questions.

Core Claim

The claim has two parts, and each can be tested on its own. The first part is that contamination resistance is a property of a perturbation type, and it can be measured directly by controlled contamination instead of being inferred from indirect signals. Different perturbation types will differ sharply on this measure. Our specific prediction is that "representational" rewrites, which change wording or encoding but keep the solution path, will retain much more memorization advantage than "structural" rewrites that change the reasoning steps.

The second part is that human verification can be moved from the item to the rule, with a statistical guarantee. The number of expert minutes needed to certify a bank of variants can then drop severalfold while keeping the invalid-item rate below a stated bound.

Two pieces of prior work motivate this. Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventions defines 44 perturbation types for GSM8K and HumanEval. It has PhD students verify every generated item, which yields only 216 and 219 problems, and it reads the resulting 30 to 40 point accuracy drops as evidence of memorization. Test of Time points the other way. When it rephrases post-cutoff arXiv material with an LLM, the temporal decay signal disappears (+2.19 points on post-cutoff physics). Rephrasing also drops the rate at which influence analysis traces answers back to a training document from 77.5% to 17.5%. The authors read this as contamination being hidden, not removed.

These two papers make conflicting assumptions about the same operation. Neither of them has ground truth about what the model actually memorized. The proposal supplies that ground truth by constructing the contamination ourselves.

Research Program

Measuring leakage under controlled contamination. The measurement uses "twin" models: two copies of the same open base model, identical except that one is fine-tuned on a known random half of the seed test items, with their solutions. The other half of the seeds stays clean. For each perturbation rule $o$, we generate variants of every seed and compute a difference-in-differences score:

$$R_o = \big[a_{\text{cont}}(V_o^{\text{seen}}) - a_{\text{cont}}(V_o^{\text{unseen}})\big] - \big[a_{\text{base}}(V_o^{\text{seen}}) - a_{\text{base}}(V_o^{\text{unseen}})\big].$$

Here $a_{\text{cont}}$ and $a_{\text{base}}$ are the accuracies of the contaminated and untouched twins. $V_o^{\text{seen}}$ and $V_o^{\text{unseen}}$ are the rule-$o$ variants of seeds that were and were not in the contamination set.

The second bracket removes any difficulty difference between the two halves of the seeds. $R_o$ is therefore the accuracy the contaminated model gains on rewritten items only because it memorized their originals. A rule that truly breaks memorization should have $R_o \approx 0$. A rule that launders contamination has $R_o$ close to the gain seen on the unmodified seeds.

Fine-tuning exposure is not the same as pretraining exposure. To address this, we vary the exposure count (one, four and sixteen passes) and report $R_o$ as a curve over exposure rather than a single number. We also run the influence-based trace from Test of Time on the same variants, which shows whether that cheaper signal ranks the rules the same way.

Moving human verification from items to rules. An expert first reviews the written specification of a rule together with a few worked examples, and either approves it, revises it, or rejects it. The approved rule then generates items, and a first-pass automatic filter screens them: code variants must execute against unit tests, numeric math variants must pass a symbolic or numeric check, and an LLM judge also checks each item.

The expert then audits a random sample of each rule's output. The sample size comes from a sequential acceptance test. Auditing stops as soon as a one-sided confidence bound shows the rule's invalid rate is below a target such as 5%, or as soon as the rule is shown to exceed it. Rules that are clean stop early. Rules whose error rate is uncertain draw more audits. Rules that fail go back for revision.

Human cost is then roughly the number of rules times the audit size, and it does not depend on the size of the variant bank. The main product is an open catalogue of rules, each annotated with its certified invalid-rate bound and its leakage curve $R_o$.

Baselines

Unmodified seeds (do nothing). This baseline evaluates the twins on the original GSM8K and HumanEval test items. It sets the full memorization gain that any rule could at most remove. Every other number is reported relative to it, and the twins, decoding settings and seeds are identical across all conditions.

Exhaustive per-item human verification (strongest existing validity method). This is the pipeline of Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventions. On its GSMore set, humans reach 97.7% accuracy and models average 41.2%. Because every item is checked, it defines the validity we are trying to match. We run it on a held-out slice of our own generated variants, using the same experts and the same instructions. That slice serves two purposes. It is the ground truth for scoring our audit guarantees, and it gives the cost comparison, measured in expert minutes per certified-valid item. No reported per-item human cost was found on Lacuna for GSMore, so both costs are measured here.

Beating this baseline means two things together. The invalid rate among items released by our rule-level scheme must be no worse than the target bound, as checked against the exhaustive slice. And the expert minutes per released item must be at least five times lower.

Controlled-contamination scoring at the dataset level. CoreEval rebuilds classification benchmarks with post-cutoff facts. It reports that the average spurious memorization gain falls from nearly 19% on the original data to about 4.4% on its rebuilt data. This is the closest existing measurement of how much a transformation removes memorization advantage, but it gives a single dataset-level figure, it covers classification only, and it relies on an LLM agent to check label preservation.

We compute the same aggregate over our pooled variants for a like-for-like comparison. We then show what that aggregate hides: whether its average masks rules with very different $R_o$.

Influence tracing. The traceability hit rate from Test of Time is the cheaper alternative signal of contamination. We treat it as a competing leakage estimator and compute its rank correlation with $R_o$ across rules.

Ablations of the audit scheme. Two ablations isolate what the adaptive audit contributes. The first replaces adaptive stopping with a uniform random sample of equal total budget. The second drops the expert review of rule specifications and keeps only item audits. Each ablation is scored on invalid-rate bound violations and expert minutes, against the same ground-truth slice.

Why not just…?

Why not just let an LLM judge verify the variants? For GSM8K-level problems this is a real threat. Frontier models solve most of these problems, and LiveBench found that judging fails mainly when the judge cannot solve the problem itself. We therefore include the judge as a first-pass filter instead of competing with it.

We then measure the judge's agreement with the exhaustive human slice on two kinds of variants. One is GSM8K variants. The other is variants of IntegralBench integrals, where that paper reports accuracy approaching zero at difficulty 4 to 5, and where its LLM-assisted simplifications needed expert correction. If the judge alone certifies GSM8K variants within the bound, we will report that human audits are unnecessary there and confine the human role to harder domains. That outcome would narrow the claim rather than refute it.

Why not just generate problems procedurally, with no humans? Generators such as BeyondBench and A²RBench avoid verification cost by staying inside solver-checkable or invertible logic. A²RBench also shows that its author model simplified its 3D rules until they passed its code checks. Neither approach can say whether a perturbation of an existing natural-language benchmark still tests what the benchmark tested, and that is the question here. They also do not measure leakage.

Why not just test on post-cutoff data, or use influence tracing, to detect leakage? Test of Time shows that the temporal signal disappears under rephrasing. That is exactly the case in which we most need an answer. Influence tracing is kept as a baseline. If it ranks rules the same way $R_o$ does, it becomes a cheaper substitute for twin training, and we would recommend it.

Why not just flag contaminated items with adaptive testing? Efficiently Measuring the Cognitive Ability of LLMs detects anomalous responses with a guessing parameter from item response theory, but only after calibrating a large fixed item pool. It flags items; it neither repairs them nor tells us which rewrites would repair them. Its anomaly scores on our variants are reported as a secondary diagnostic.

Proposed Experiments

The seed sets are the GSM8K and HumanEval test items, perturbed with the 44 ontology rules. Harder seeds come from IntegralBench and MathOdyssey. For the latter, MathOdyssey reports that GPT-4 Turbo falls from 84.78% on high-school problems to 10.14% at Olympiad level, which is the regime where judges are expected to fail. Twins are trained from at least two open base models of different sizes, using the exposure schedule above. We also evaluate a set of released models on the certified variants, so that the rule catalogue is tied to real leaderboard shifts.

The first decisive check is whether $R_o$ varies meaningfully across rules. If every rule removes the memorization gain, or no rule does, then the laundering question is settled for these benchmarks, and the per-rule catalogue matters less than the audit scheme. The second check is whether structural rules have reliably lower $R_o$ than representational ones. Test of Time's rephrasing result predicts that they will.

The third check is whether rule-level certification holds its stated invalid-rate bound against the exhaustive slice at a fifth or less of the expert time. The fourth is whether the LLM judge alone suffices on easy seeds but not on IntegralBench-derived ones, which would locate where human effort is truly irreplaceable.

A negative result on the third check, meaning audit bounds are violated because rules fail in item-specific ways, would show that verification cost cannot be moved from items to rules. That finding would be useful in its own right.