Benchmark contamination means test questions leaked into a model's training data, so a high score may reflect recall rather than skill. Detectors for it are almost always validated the same way. Text written before the model's training cutoff is labeled "seen," and text written after is labeled "unseen." The WIKIMIA benchmark used by Min-K% Prob, for example, contrasts Wikipedia articles from before 2017 with articles from after 2023. This design builds in a confound: old text and new text differ in topic, vocabulary, and style, not only in whether the model saw them. A detector can score well by noticing that text is new, without detecting memorization. Detectors that read the model's internal activations face the same risk. The neuron-coverage literature showed repeatedly that activation statistics track how novel or diverse the inputs are, not whether the model is failing (Sekhon et al., Aghababaeyan et al.).
We propose to break this confound by construction. We will pretrain small language models under one fixed training recipe on a corpus that ends at a known date $T$. Benchmark items from both before and after $T$ will be deliberately injected at controlled repetition counts. This yields a two-by-two design that crosses "seen versus unseen" with "old versus new." For the first time, a detector's ability to detect membership can be measured separately from its ability to detect date. On this testbed we then test a simple remedy: score each item relative to a meaning-preserving rewrite of itself. Because the item and its rewrite share date, topic, and domain, those factors cancel, and only the trace of having been trained on the exact item should remain.
Core Claim
We claim two things, each testable on the same models. First, a large share of the separation that current detectors achieve on temporally split benchmarks comes from recency rather than membership. This applies to loss-based detectors, to performance-based ones, and to internal-signature ones such as the layer-distribution coverage of NLC and the mechanistic features of RADAR. Second, a paired, within-item contrast between an item and its rewrite removes most of the recency signal while keeping the membership signal. This should help close the gap documented by Does Data Contamination Work (Well) for LLMs?, which found perplexity detectors near AUC 0.50 on pretraining data. That paper attributes the failure to a "goodness of fit" trap: a model assigns low perplexity to anything in a domain it knows well, so low perplexity does not mean the item was seen. Pairing is aimed directly at that trap, because the rewrite is equally in-domain.
The four research directions play different roles here. Temporal isolation, the practice behind LiveCodeBench, LiveBench, and FreshBench, supplies the dated items. In our design it becomes a variable we manipulate rather than a firewall we trust. The unified training protocol is the method that makes the manipulation possible. The neuron-coverage critique is the cautionary hypothesis we test against internal detectors.
Research Program
Testbed. We follow the controlled pretraining setup of Investigating Data Contamination for Pre-training Language Models. That paper trained GPT-2 at 124M and 774M parameters on a 3.3B-token Pile subset with injected leakage and found that performance peaks at around 10 repetitions and then declines (a U-shaped curve). It only read output scores and never varied item date. Our change is to filter the base corpus so that all of it predates a cutoff $T$, chosen inside the LiveCodeBench window of May 2023 to August 2024. Two item pools are drawn from either side of $T$. The first is LiveCodeBench problem statements. The second is dated news articles of the kind FreshBench uses, paired with reference summaries, so that summarization ROUGE gives a performance signal small models can actually move. That paper reports ROUGE of 0.6996 on contaminated data versus 0.5968 on clean data.
Within a single pretraining run, each item is randomly assigned to one of the following: held out, or injected with its ground-truth answer at 1, 4, or 16 repetitions. Every cell of the design therefore lives inside the same model, and differences between cells cannot come from differences between models. A subset of items is injected only as a paraphrase, to test the semantic leakage that n-gram filters miss (survey).
Unified protocol. The protocol fixes tokenizer, data volume, optimizer, schedule, and compute across runs, in the spirit of Scientific Debt. That work showed that when nuisance variables are fixed, a claimed 8.8-point GLUE gap shrinks to 1.2 points. We also deliberately vary one nuisance factor: two training recipes at 124M parameters, differing in schedule and regularization. The reason is One Model, Many Behaviors, which found that the interaction between training recipe and detection method explained 21.05% of the variance in out-of-distribution detection AUROC. A contamination detector whose calibration shifts with the recipe is not usable on models we did not train. The planned budget is three seeds per recipe at 124M and one run at 774M.
Paired contrast. For each item $x$ we generate $m$ independent meaning-preserving rewrites $x'_1,\dots,x'_m$ with a separate model. None of the rewrites appears in training. For any per-item detector score $s$ we compute
$$d(x) = s(x) - \frac{1}{m}\sum_{j=1}^{m} s(x'_j).$$
The score $s$ can be token loss, Min-K% probability, an NLC layer statistic, or a RADAR-style feature vector reduced to a scalar by a probe. Rewriting can shift scores systematically, for instance because rewrites are more fluent. The held-out cells, both old and new, supply the null distribution of $d$, and that null calibrates the decision threshold. For paraphrase-injected items, the paired contrast is computed against a second, independent rewrite.
Baselines
The naive reference point is a raw, unpaired score on each item: loss or perplexity thresholded directly. On pretrained models, Does Data Contamination Work (Well) for LLMs? reports this sitting around AUC 0.50, and we expect to reproduce that on old-only cells.
The strongest reference-free output method is Min-K% Prob, which scores an item by its lowest-probability tokens. It reports a 7.4% AUC gain on WIKIMIA and a 12.2% gain on deliberately leaked benchmarks over prior baselines. The file gives no absolute AUC value, so no reported absolute AUC was found on Lacuna. We run it with $k$ tuned on a validation split of the testbed, using the same validation budget given to every other detector.
The strongest performance-based method is ConStat. It compares a model's scores on a benchmark and on rephrased or sister versions, corrected for item difficulty using a fleet of reference models. It reports detecting 89% of syntax-contaminated models and 98% of sample-contaminated ones. We give it a matched reference fleet made of our clean-seed models, with the same rewrites.
The strongest internal detector is RADAR. It trains a small classifier on 37 attention and activation features to separate recall from reasoning, reporting 93.0% accuracy, but on only 100 test examples. We retrain its classifier on our training split at our scale. We also run NLC layer statistics as a coverage-style internal score. No reported contamination result was found on Lacuna for NLC.
The key ablation is each detector with and without pairing. Running every score both ways tells us whether pairing or internal access is responsible for any gain.
Beating a baseline means the following, measured as membership AUC within a fixed-date stratum and pooled over seeds with bootstrap intervals. The paired detector must be at least 0.10 higher on old-only cells, and its date AUC within a fixed-membership stratum must stay within 0.05 of chance.
Why not just…?
Why not just rely on temporal isolation and skip detection? Post-cutoff benchmarks are the right tool when the cutoff is trusted. However, they get absorbed into later training sets (survey). In addition, FreshBench's "nostalgia bias" shows that performance on post-cutoff items drops for reasons other than lack of exposure. A model scoring lower on new items therefore does not prove it was contaminated on old ones. Our design measures that ambiguity directly: if recency alone moves detector scores and task scores, the old-unseen versus new-unseen cells will show it.
Why not just pair the loss, without any internal signals? This is the real threat, and we expect it may win. Paired loss is cheap and needs no access to the model's weights. The pairing ablation settles the question. If paired Min-K% matches paired RADAR or NLC features, we will report that pairing, not looking inside the model, is the operative ingredient. That would be consistent with the coverage literature's finding that internal statistics add little beyond input properties (Pavlitska et al.). Internal signals earn their cost only if they help on paraphrase-injected items, where the loss on surface tokens has less to grip.
Why not just use ConStat? It already contrasts a benchmark with rephrased versions, but it works at the level of whole benchmarks and depends on a reference fleet. That fleet is itself a source of recipe confounding: the 21.05% interaction effect suggests reference models trained with different recipes need not share difficulty curves. We test ConStat both with a recipe-matched fleet and with a cross-recipe fleet. If it holds up cross-recipe and per-item detection adds nothing, the per-item approach loses on cost.
Proposed Experiments
The first decisive check measures the size of the confound. On the testbed, and on off-the-shelf Pythia checkpoints whose Pile membership is known, we compute each unpaired detector's AUC under two conditions: separating seen from unseen at a fixed date, and separating old from new at fixed membership. If date AUC is comparable to membership AUC, then evaluation on temporal splits overstates detector quality. That would be a finding in itself.
The second check tests whether pairing removes date sensitivity while keeping membership sensitivity, across repetition counts of 1, 4, and 16. We expect the membership effect to be weakest at a single exposure, which is where the 0.50 wall is likely to persist.
The third check tests robustness to recipe. We train each detector's threshold on recipe A and test on recipe B.
The fourth check is a performance sanity link. For summarization items, we test whether paired detector scores predict each item's ROUGE inflation over its held-out counterpart in the same date stratum. This is the quantity contamination actually corrupts.
A negative result is informative too. Suppose pairing still leaves membership AUC near chance after one exposure in pretraining. That would bound what any per-item detector can recover in the regime frontier models are in, and it would argue that the field should rely on controlled temporal evaluation instead.
References
- Detecting Pretraining Data from Large Language Models
- Towards improved testing for deep learning
- Black-Box Testing of Deep Neural Networks through Test Case Diversity
- Revisiting Neuron Coverage for DNN Testing: A Layer-Wise and Distribution-Aware Criterion
- RADAR: Mechanistic Pathways for Detecting Data Contamination in LLM Evaluation
- Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptions
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code
- LiveBench: A Challenging, Contamination-Limited LLM Benchmark
- Is Your LLM Outdated? A Deep Look at Temporal Generalization
- Does Data Contamination Make a Difference? Insights from Intentionally Contaminating Pre-training Data For Language Models
- A Comprehensive Survey of Contamination Detection Methods in Large Language Models
- On "Scientific Debt" in NLP: A Case for More Rigour in Language Model Pre-Training Research
- One Model, Many Behaviors: Training-Induced Effects on Out-of-Distribution Detection
- ConStat: Performance-Based Contamination Detection in Large Language Models
- Is Neuron Coverage Needed to Make Person Detection More Robust?