Nonce Words with Definitions: A Contamination Test That Survives Reinforcement Learning

When a language model has seen a benchmark's test questions during training, its score partly measures recall of those questions rather than understanding. The usual detectors look for statistical fingerprints of that exposure, such as unusually high likelihood on test items. A recent study shows these fingerprints can be erased: one epoch of reinforcement learning on clean data pushes most detectors to chance, even though the score inflation remains. We propose a behavioral test that does not depend on likelihoods. For each benchmark question, we replace its key concept with an invented word, a "nonce word" such as dravelt, that has never appeared in any training corpus. We then give the model a dictionary definition of that word taken from a lexical database such as WordNet. A model that understood the concept can still answer, because the definition carries the meaning. A model that recalled this question-answer pair loses its retrieval cue. Relative to a matched set of questions the model has never seen, it should fail more than the transformation alone predicts.

The second half of the test uses the lexical database's structure. In the database, concepts are arranged in hierarchies, so every concept has "siblings": concepts with the same parent. We keep the nonce word but attach the definition of a sibling concept whose correct answer is different. A model that reads the definition changes its answer. A model replaying a memorized answer keeps the original one. This persistence under an answer-changing definition is a direct and interpretable memorization signal. The claim is that these two probes, both built from an external semantic knowledge source, detect item-level contamination after reinforcement learning has masked it from likelihood-based detectors.

Core Claim

Contamination leaves two behavioral traces that reinforcement learning does not remove. The first is dependence on the surface form of the question. The second is insensitivity to changes in meaning that should change the answer. Removing the surface form while supplying the meaning through a definition isolates both traces. Structured lexical resources are what make the second trace testable at scale, because they supply sibling concepts that are guaranteed distinct and whose definitions were not written by the model under test. We expect the combined probe to hold item-level detection accuracy well above chance in the two regimes where On The Fragility of Benchmark Contamination Detection in Reasoning Models found likelihood detectors collapse: supervised contamination followed by clean GRPO, and chain-of-thought contamination. GRPO is a reinforcement learning method that updates the model from groups of its own sampled answers.

Where This Sits

Two strands of prior work supply the method. The first strand shows that definitions can carry meaning a model's statistics lack. An MRC Framework for Semantic Role Labeling replaced opaque role tags with natural-language PropBank definitions and gained out-of-domain accuracy. Semantic Topic Models used WordNet glosses as a prior where word statistics were sparse. KLAPrompt and Leveraging Linguistic Resources for Improving Neural Text Classification infused dictionary and ontology knowledge into neural models, with the largest gains in low-resource settings. These papers use definitions to improve a model. We use them as a controlled stand-in for meaning, so that we can remove a model's memorized cue without removing the information needed to answer.

The second strand motivates the proposal. The Fragility study found three things. Supervised contamination inflates pass@1 (the rate of correct first answers) by 8.8%. LiRA, a likelihood-ratio membership test, detects it at 89.1% AUROC (area under the ROC curve, where 50% is chance). After one GRPO epoch, reference-free detectors fall to about 50%. Chain-of-thought contamination leaves all ten detectors at 50–58%. The inflation persists while the likelihood signal disappears, and that gap is what a behavioral probe can target. ConStat is the closest behavioral detector. It compares performance on the benchmark with performance on rephrased or synthetic reference sets, after correcting for difficulty. Generalization or Memorization detects contamination from the peakedness of sampled outputs, which is again a distributional signal. Generalization or Memorization also found that implicit, rephrased contamination survives prompt modification. For us this is a constraint: paraphrase alone is not a clean probe.

The closest crossover work uses external knowledge to build new test items. AntiLeakBench tracks changed Wikidata facts. KBE-DME grows visual question answering items by adding knowledge-graph hops. CofCA swaps entities for fictional ones, with human verification, across 1,800 samples. Beyond Memorization synthesizes multi-step questions from arXiv papers. All four produce fresh benchmarks and report an aggregate score drop. None asks whether a specific item in an existing benchmark was memorized by a specific model, and none is evaluated against known ground-truth contamination under reinforcement learning cloaking. CofCA's entity swaps work for factual text but have no analogue for concept-level science and professional questions. Those are exactly the questions where a sense inventory with glosses and sibling concepts applies.

Research Program

The pipeline has four stages.

The first stage finds the concept to substitute. For each item in a concept-heavy multiple-choice benchmark, we identify the term whose meaning the question depends on. We map it to a WordNet synset, meaning a WordNet sense entry. For clinical and biomedical subjects we use a MetaMap-style concept lookup instead. We pick the term that appears in the question stem and is referenced by the answer options. Items where no term maps confidently are excluded, and we report coverage per benchmark.

The second stage creates the invented words. We generate pronounceable strings and keep only those with zero occurrences in a large pretraining crawl such as FineWeb.

The third stage builds three variants of each item. The preserving variant replaces the term with the nonce word and prepends the term's gloss. The null variant replaces the term with the nonce word and adds no definition. This estimates how much of the answer the definition must supply. The flip variant uses the gloss of a WordNet co-hyponym, a sibling concept under the same parent, chosen so that a different option becomes correct. A model proposes the new answer, and it is accepted only when two independent models agree with it and a human spot-check audit passes. Flip variants will cover fewer items than preserving variants, and we report that coverage honestly.

The fourth stage scores each item. Let $c_i$ be 1 if the model answers item $i$ correctly in its original form. Let $\bar p_i$ be its mean correctness over $K$ independent preserving variants, which use different nonce strings. The item's cue dependence is $s_i = c_i - \bar p_i$. At the benchmark level, the inflation estimate subtracts the same quantity measured on a reference set $R$ of items the model cannot have seen:

$$\hat\delta = \frac{1}{|B|}\sum_{i\in B} s_i \;-\; \frac{1}{|R|}\sum_{j\in R} s_j,$$

where $B$ is the benchmark under test. The subtraction removes the drop caused by the transformation itself, such as unfamiliar tokens or an imperfect gloss, following the same logic as ConStat's difficulty correction. For flip items, persistence $f_i$ is the fraction of flip variants on which the model still outputs the original answer. The item-level detector score combines $s_i$ and $f_i$ with a logistic model. That model is fit only on a held-out calibration model that has known contamination, never on the model being evaluated.

Baselines

The naive reference point is to take the benchmark score at face value and assume zero contamination. A second naive reference applies our probe score to known-clean items only, which tells us the false-positive floor of the transformation.

The strongest likelihood-based competitor is LiRA, run as in the Fragility study. That paper reports 89.1% AUROC before reinforcement learning, a drop of about 14% after one GRPO epoch, and 50–58% for all ten detectors under chain-of-thought contamination. We will re-run LiRA, Min-K%, and Loss on our own contaminated checkpoints so the numbers are comparable, rather than relying only on the reported figures.

The strongest behavioral competitor is ConStat, which reports detecting 98.4% of sample-specific contamination versus 71% for the best earlier baseline. That result was obtained without a reinforcement learning cloaking stage. We will run ConStat with the same reference budget as our probe: the same number of variant queries per item, and GPT-4-class rephrasings produced from the same source items. We also include CDD from Generalization or Memorization, using the same number of samples per item.

Beating the baselines means the following. After GRPO, and under chain-of-thought contamination, our item-level AUROC must exceed both LiRA and ConStat by a margin outside bootstrap confidence intervals. Our benchmark-level $\hat\delta$ must also fall closer to the true injected inflation.

Three ablations isolate the key ingredient. The first swaps the term for its WordNet synonym instead of a nonce word, which changes the surface form while keeping a real word. The second uses definitions written by an LLM instead of WordNet glosses. The third drops the flip probe, testing whether sibling structure adds signal beyond cue dependence.

Why not just…?

Why not just paraphrase the benchmark with an LLM, as ConStat does? This is the most serious threat. ConStat is already strong, and if it holds up after reinforcement learning, the nonce probe adds little. The reason to expect a difference is mechanical. Paraphrases usually keep the key technical term, which is the most likely retrieval cue. Generalization or Memorization also shows rephrased contamination survives in implicit form. The synonym ablation and the matched-budget ConStat run settle this directly. If ConStat matches us post-GRPO, we will report the nonce probe as a cheaper variant rather than a better one.

Why not just use an LLM to write the definitions and siblings, skipping WordNet? This could work nearly as well for the preserving probe, and the LLM-definition ablation will tell us. The resource matters most for the flip probe. There, a sibling must be a genuinely distinct concept with an answer-changing definition. That definition should not come from a model family that may share training data with the model under test. That is the same generator-bias problem KBE-DME acknowledges. If LLM siblings perform identically, we will say so.

Why not just evaluate on a fresh benchmark like MMLU-CF? MMLU-CF shows about a 14% average drop and o1 falling from 92.3% to 80.3%. But a fresh benchmark answers a different question. It cannot say which items of the original benchmark a given model memorized, and it has to be rebuilt as crawls catch up with it. We use MMLU-CF as our clean reference set $R$ instead of competing with it.

Why not just use fictional entity swaps as in CofCA? Entity swaps suit multi-hop factual narratives, but science and professional questions hinge on concepts, not named entities. CofCA also needed human verification to reach 1,800 samples. Our flip probe needs verification too, but only for the answer label on a subset.

Proposed Experiments

The primary experiment uses controlled contamination, following the two-stage design of the Fragility study. In Stage I, we fine-tune Qwen2.5-7B-Instruct on a random half of the test items from ARC-Challenge, a concept-heavy slice of MMLU, and GPQA Diamond, then apply one epoch of GRPO on clean data. In Stage II, we contaminate DeepSeek-R1-Distill-Llama-8B with chain-of-thought solutions to half the items. Membership is known in both stages, so item-level AUROC and the error of $\hat\delta$ against the injected inflation are exact. The reference set $R$ is the MMLU-CF validation split, plus the held-out uncontaminated halves of the benchmarks.

The first decisive check is the post-GRPO comparison. If our AUROC drops to the same degree as LiRA's, the claim that behavioral cue removal survives cloaking is false.

The second decisive check is Stage II. Chain-of-thought contamination may teach a transferable procedure rather than a memorized string. In that case the nonce probe should also fail, and a failure there would be informative rather than embarrassing: it would suggest that this form of "contamination" is partly real learning. The flip-persistence rate separates the two cases. A model that learned the procedure should follow the sibling definition, while one replaying answers should not.

The third check is calibration. The false-positive rate on clean reference items must stay near the nominal level across the transformation's own difficulty range.

Finally, we apply the calibrated probe, without retraining, to public open-weight models on ARC and MMLU. We compare its $\hat\delta$ with ConStat's reported estimates: about 6.6% for Llama-3-70B on ARC, and about 8.3% for Mistral-7B-v0.1 on GSM8k. GSM8k is out of scope for us because its nouns are incidental to the answer, so for that model we compare only on benchmarks both methods cover. Agreement where both methods apply, and divergence concentrated in models known to have undergone reinforcement learning post-training, would be the real-world evidence that the probe measures something the likelihood detectors now miss.