Answer Anchoring Under Controlled Edits as a Contamination Probe

When a language model has seen a benchmark problem during training, the usual way to catch it is to check whether the model finds the test text unusually predictable. That check is breaking down. A model can be fine-tuned on leaked test problems and then trained further with reinforcement learning on clean data. After that second stage, its token probabilities on seen and unseen problems become nearly indistinguishable, while its inflated score remains. Reasoning-tuned models trained on leaked worked solutions become confident on everything similar, which defeats the same detectors. We propose to test the model's behavior instead of its probabilities.

The probe makes two kinds of controlled edits to each benchmark problem. The first changes a number the solution actually uses, so the correct answer must change. The second inserts an irrelevant sentence containing a decoy number, so the correct answer must stay the same. A model that solves the problem should follow the first edit and ignore the second. A model that has memorized the problem tends to return the original answer under both edits; we call this anchoring. A model that is clean but weak tends to make a different kind of error: it pulls the decoy into its arithmetic. The core claim is that the pattern of answers across these two edit types separates contaminated items from clean ones, item by item and with black-box access only. We expect this separation to hold in exactly the regimes where likelihood detectors fall to chance.

What is known and where the gap is

The detection problem is sharp. On The Fragility of Benchmark Contamination Detection in Reasoning Models studies models deliberately contaminated through fine-tuning on leaked problems. Before any further training, a reference-model likelihood test catches the contamination at 89.1% AUROC. One epoch of clean GRPO, a reinforcement-learning method that rewards correct final answers, pushes reference-free detectors toward 50%. When an advanced reasoning model is contaminated with long chain-of-thought solutions, all ten detectors average 50–58%. This paper motivates the proposal, and it also constrains it: any signal we use must not depend on log-probabilities.

Two methods respond to the reinforcement-learning case. Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Models asks the model to produce an alternative reasoning path and measures how rigid its token entropy stays. It reaches 0.70 average AUC on Qwen2.5-7B-Instruct on the RL-MIA benchmark. LaRA measures how hidden-layer representations shift when a problem is paraphrased or when key numbers are blanked out. Combined with Self-Critique, it reports 0.79 ROC-AUC and 31–38% true-positive rate at 5% false-positive rate on Eurus-2-7B-PRIME. LaRA needs internal activations and a clean reference distribution. Neither method inserts irrelevant content, and neither looks at which wrong answer the model gives.

The closest prior idea is CAP. CAP alters non-essential details, shuffles options, and paraphrases. It then compares a model's consistency ratio on a benchmark's train split against its test split. The method was validated on financial benchmarks, where it caught a 21-question overlap. CAP differs from our proposal in three ways. It works at the dataset level and needs a train split. It assumes memorization makes the model inconsistent under perturbation. It treats all perturbations as interchangeable. We assume the opposite failure: a memorizer is too consistent, because it holds onto its answer even when the answer should change. Our decision rule therefore depends on the sign of the edit, meaning whether it should or should not change the answer, and on the identity of the wrong answer.

Work on distraction supplies the second half of the signature. Thinking in a Crowd finds that reasoning models given misleading snippets build arguments that absorb them. On SciAux, Qwen3-8B falls from 96.22% to 77.03% with thinking enabled, which is below its 74.87%-adjacent no-thinking range. Automatic Robustness Stress Testing of LLMs as Mathematical Problem Solvers names irrelevant flavor text as a main reason DeepSeek-R1-Distill-Llama-8B drops from 83.09% to 31.85% on rewritten GSM8K problems.

Right Diagnoses, Decorative Reasoning reports the opposite behavior in medical question answering. There, 72.9% of chains are decoupled from the answer, and models ignore question edits. These two findings appear to conflict. Our hypothesis reconciles them: contamination is the hidden variable. Contaminated items should produce decoupled, anchored answers. Clean items should produce engaged reasoning that sometimes adopts the decoy. Classical solver work supports this reading of distraction: Deep Neural Solver for Math Word Problems, Quantity Tagger, and Reasoning about Quantities in Natural Language all identify irrelevant-quantity selection as the dominant error of solvers that are actually computing. Decoy adoption is therefore a fingerprint of computation, and its absence under conditions where computation should fail is informative.

Core Claim

For each item $i$, we sample $k$ answers on each edited variant and compute two rates.

The first is $a_i$, the fraction of answers to relevant-number edits that equal the original gold answer $y_0$. Each relevant edit has a new correct answer $y_1 \neq y_0$, so returning $y_0$ is wrong.

The second is $d_i$, the fraction of answers to decoy insertions that equal one of the enumerated "decoy-consistent" answers. These are the values that would result from substituting or adding the decoy number into the solution's equations.

The contamination score combines them:

$$s_i = a_i - \lambda\, d_i,$$

where $\lambda \ge 0$ is a single weight fixed on a calibration split. Anchoring raises the score. Decoy adoption lowers it, because adoption is evidence the model is computing from the text in front of it. The claim is that $s_i$ separates seen from unseen items after clean reinforcement learning, and after contamination with chain-of-thought data, at well above the 50–58% AUROC that likelihood detectors reach in those settings.

Research Program

The first component is an edit generator for word problems whose answers can be recomputed. GSM8K solutions write out their arithmetic. The generator parses these equations, identifies operand quantities, rescales one operand to a nearby value, and re-executes the equation to get $y_1$. It discards any edit where $y_1 = y_0$ or where the result is non-integral when the original answer was integral.

Decoy insertion draws a sentence from templated categories that classical solvers found troublesome: dates, counts of unrelated entities, and quantities attached to a bystander. It places the sentence at a random position and records the decoy-consistent answers the decoy would produce if misused. A separate model checks that each decoy is genuinely irrelevant, and humans spot-check a sample. For MATH-500 and AIME, the generator is restricted to problems whose answers can be recomputed symbolically after a parameter change.

The second component is controlled contamination, following the fragility paper's protocol so that results are directly comparable. In Stage I, we fine-tune a base model on half of an item pool, then run clean GRPO. In Stage II, we fine-tune DeepSeek-R1-Distill-Llama-8B on chain-of-thought solutions for half the pool. We also evaluate on the released RL-MIA setting, so we can compare directly with Self-Critique and LaRA. Membership labels are known in every condition. We will snapshot checkpoints throughout GRPO to trace how each signal decays.

The third component is analysis of the reasoning chains, aimed at the decorative-versus-rationalization question. We will classify each chain by whether it mentions the decoy and whether it uses the decoy. We expect contaminated items to show chains that ignore edits and still output $y_0$. We expect clean items to show chains that discuss the decoy, and that adopt it more often as reasoning length grows.

Baselines

The naive reference point is accuracy drop under perturbation: the difference between a model's accuracy on original and edited items, used directly as the per-item score. This is the reading that "memorization is brittle," and it is roughly what one would get by porting CAP's consistency ratio to the item level. Beating it shows that the sign of the edit and the identity of the wrong answer carry information that raw robustness does not.

The strongest existing black-box competitor is Self-Critique (Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Models), which reports 0.70 average AUC on Qwen2.5-7B-Instruct and 0.64 on DeepSeek-Math-7B-Instruct on RL-MIA. It is the strongest competitor because, like our probe, it targets reinforcement-learning cloaking and needs only generations.

The strongest overall competitor is LaRA combined with Self-Critique (LaRA), reported at 0.79 ROC-AUC and 31–38% true-positive rate at 5% false-positive rate on Eurus-2-7B-PRIME. LaRA has white-box access, so beating it with black-box access would be a strong result, and even matching it would matter.

For the Stage I and Stage II regimes we also rerun LiRA, Min-K%, and Loss. LiRA reaches 89.1% AUROC before GRPO, and all methods fall to 50–58% in Stage II (On The Fragility of Benchmark Contamination Detection in Reasoning Models).

Fairness rules apply to every comparison. All methods see the same checkpoints and the same member and non-member items. Generation budgets are matched: if Self-Critique uses $k$ sampled critiques, our probe gets the same total number of sampled answers across all its variants. The only tuned parameter, $\lambda$, is fit on a calibration split disjoint from the test items, and baselines get the same calibration data for their thresholds.

The success criterion has two parts. On RL-MIA, the probe should exceed 0.70 AUC on Qwen2.5-7B-Instruct and approach or exceed 0.79 on Eurus-2-7B-PRIME. In Stage II, it should reach at least 0.75 AUROC, where likelihood methods sit at 50–58%.

Two ablations isolate the main ingredient. The first, relevant-edits-only, sets $\lambda = 0$. The second, decoys-only, scores by $d_i$ alone, which is a CAP-like distractor probe with an error-type readout.

Why not just…?

Why not just use the relevant-number edits alone? This is the real threat. Asking whether the model still outputs the original answer after a number changes is a simple memorization test, and it may carry most of the signal. The $\lambda = 0$ ablation settles the question directly. Our reason to expect the decoy term to help is a specific confound. Reasoning-distilled models sometimes treat an edited number as a typo and "correct" it back, which yields $y_0$ without any memorization. The decoy arm gives a within-item control: a model that is actually reading the text reveals that by adopting decoys. If the ablation shows no AUROC gain from the decoy term, we will report the simpler probe as the contribution and treat the decoy analysis purely as the explanation of the decorative-versus-rationalization conflict.

Why not just compare scores on a fresh parallel benchmark like GSM1k? A Careful Examination of Large Language Model Performance on Grade School Arithmetic found gaps of up to 8% between GSM8K and GSM1k. Those gaps measure contamination for a model as a whole, not for individual items. They require writing new human-authored problems for every benchmark, and they cannot say which leaked items inflate a score. We use GSM1k as external validation rather than as a rival. Across open models, our probe's average score on GSM8K should track each model's GSM8K-to-GSM1k gap more closely than likelihood does, which that paper reports at Spearman $r^2 = 0.36$.

Why not just generate fresh dynamic benchmarks instead of detecting contamination? DyVal and CogniLoad avoid contamination by construction, and DyVal exposed near-zero scores for models that looked strong on static benchmarks. That approach remains necessary. It does not, however, audit the static numbers that models are still reported and trained against, and its synthetic graph and logic puzzles do not measure performance on the human-written problems people actually cite. Our probe complements generation: it reuses each existing problem's own structure, so it applies to legacy benchmarks.

Decisive Checks

The central experiment tracks AUROC across GRPO checkpoints in Stage I. Likelihood detectors should fall from roughly 89% toward chance. If $s_i$ stays flat while they fall, the hypothesis holds. If $s_i$ falls with them, the hypothesis is refuted, because that would mean reinforcement learning erases behavioral anchoring along with likelihood gaps.

The second check is Stage II with DeepSeek-R1-Distill-Llama-8B. This is the setting where the fragility paper reports the strongest masking, and it is where we must clear 0.75 AUROC.

The third check is the chain analysis. For it to support the mechanism, decoupled chains that ignore edits must be enriched on member items, and decoy-adopting chains must be enriched on non-members. If both chain types occur at equal rates regardless of membership, the reconciliation of the two prior findings fails even if detection works.

Finally, we report true-positive rate at 5% false-positive rate against LaRA's 31–38%. Average AUC can hide a detector that is useless at the low false-positive rates an auditor actually needs.