Where Laundered Contamination Lives Inside a Model

Benchmarks drawn from after a model's training cutoff are the standard defense against contamination, meaning test questions the model has effectively seen during training. Test of Time showed that this defense has a hole. When arXiv papers are turned into multi-step reasoning problems by another model, the expected accuracy drop after the cutoff disappears. Physics even rises by 2.19 points, while verbatim fill-in-the-blank questions from the same papers drop by 3.83 points. That result has two readings. Either rewritten problems truly do not benefit from having seen the source, or the benefit is real but hidden, "laundered" by the rewording. Accuracy curves cannot tell these apart, and document-level tracing loses the trail: the source paper is the top-attributed training document for 77.5% of fill-in-the-blank questions but only 17.5% of rewritten ones.

We propose to treat reliance on previously seen source material as a localizable bias, in the same sense that label bias or lexical-overlap shortcuts have been pinned to specific attention heads and feedforward vectors. We then use the calendar as a source of ground truth. We inject a known, randomly chosen half of fresh post-cutoff papers into an open model through continued pretraining, and keep the other half unseen. Any accuracy advantage on the injected half is contamination benefit by construction. We then ask two questions. Can that benefit be traced to a small set of internal components? Does removing those components close the gap on rewritten problems as well as on verbatim ones? If it does, the same components can be ablated in the original model to measure hidden contamination on its natural pre-cutoff data, which is exactly where behavioral signals fail.

Core Claim

Our hypothesis is that contamination benefit on rewritten reasoning problems is nonzero and concentrated, not diffuse. Specifically, we expect a sparse set of heads and feedforward components that were changed by exposure to a document, and that feed recalled content into reasoning, to account for most of the injected-versus-control accuracy gap on transformed questions. We also expect those components to be at least partly shared with the ones that account for the verbatim gap. The measurable consequence is a causal contamination estimate: the accuracy lost when these components are reset or masked, compared between seen and unseen material.

The hypothesis can fail cleanly in two ways. The first is that the injected-versus-control gap on transformed problems is zero even at high exposure. That would be the benign reading of Test of Time, now with ground truth behind it. The second is that the gap exists but no sparse set of components closes it. That would mean laundered contamination is diffuse and not usable as a diagnostic.

No paper in the file localizes circuits across a temporal contamination boundary. Test of Time traces training documents with influence functions but never looks at internal components. Understanding Verbatim Memorization in LLMs Through Circuit Discovery finds memorization circuits, but only for verbatim recall. Circuit Stability Characterizes Language Model Generalization compares circuits across subtasks, but only on synthetic arithmetic and logic.

Research Program

The controlled setting uses OLMo-2-7B, chosen because its pretraining data and cutoff are public. This is the same model family Test of Time used for influence analysis, so our tracing baseline is directly comparable. OLMo-2-1B serves as a cheaper replication.

From arXiv math and physics papers that post-date OLMo-2's cutoff, drawn with the Test of Time pipeline, we sample about 2,000 papers. We split them into an injected set and a control set, matched on subfield and length. We continue pretraining separate copies on the injected papers mixed with general text, at exposure levels of 1, 4 and 16 repetitions. This produces a dose axis, which matters because a zero result at one repetition says little.

For every paper we build three question types following Test of Time: verbatim fill-in-the-blank questions, model-generated multi-step reasoning problems, and variable-renamed versions of those problems. The contamination benefit Δ for a question type is the accuracy on injected papers minus the accuracy on control papers under the same continued-pretrained model. Because assignment is random, Δ measures contamination benefit alone, with no confound from topic drift or from the "ChatGPT effect" that Is Your LLM Outdated? found in post-2024 arXiv text.

Localization borrows its methods from bias work. First, we score each attention head and each feedforward output by how much it changed between the base model and the injected model on injected-paper questions, relative to control-paper questions. The score uses edge attribution patching with integrated gradients, as in the verbatim memorization circuit work, combined with logit-lens projections of component outputs, as in UniBias. Second, we run a causal test: we patch the top-k components back to their base-model activations and measure how much of Δ disappears. We report the fraction of Δ closed as a function of k. Third, following Debiasing Masks, we learn a sparse binary mask over frozen weights. Its objective is to shrink Δ while holding control-paper accuracy and general ability fixed. The mask is the deployable "contamination probe."

We also test where in depth these components sit. Bias localization work gives competing expectations. Lexical shortcuts sit early (Debiasing Masks), option-symbol bias sits in middle layers (Option Symbol Matters), and stereotype associations sit late (Attention Speaks Volumes). Our prediction is that verbatim reliance concentrates in middle-layer feedforward storage, and that transformed-problem reliance adds late heads that carry recalled content into the answer. We compute the overlap between the two sets of components, measured as Spearman agreement in the sense of Sun's α-equivalence.

Two findings from the file constrain the design rather than motivate it. The first is that memorization-inducing circuits are brittle and depend on phrasing, per the verbatim memorization paper. So we must test whether components found on one question type transfer to another, not assume that they do. The second is that Memorization vs. Reasoning shows continued-pretrained facts are almost never used in indirect reasoning, with under 2% accuracy on its indirect probes. This makes a zero Δ on transformed problems a live outcome, not a strawman. It is also why the dose axis exists.

The final step transfers the method to natural contamination. We apply the mask learned in the controlled setting to the untouched OLMo-2-7B. We then compare how much accuracy it removes on pre-cutoff arXiv papers present in OLMo-2's pretraining data against post-cutoff papers. A larger drop on the pre-cutoff papers is a hidden contamination signal that survives rewording.

Baselines

The naive reference point is the behavioral pre-versus-post-cutoff accuracy gap on transformed problems, as used by LiveCodeBench and Test of Time. On natural data Test of Time reports +2.19 points on physics reasoning, meaning the gap shows no contamination. In our controlled setting we compute the same gap. Our method beats this baseline if it recovers a positive, dose-dependent contamination estimate where the behavioral gap is near zero.

The strongest existing method is EK-FAC influence functions as run in Test of Time on OLMo2-7B-Instruct. That paper reports a top-1 source-document hit rate of 77.5% on fill-in-the-blank questions and 17.5% on transformed ones. We run it with the same Kronfluence setup on our continued-pretrained models, restricted to the injected corpus plus a matched general sample. Both methods get the same questions and a comparable GPU-hour budget.

Both methods answer the same per-question task: is this question's source paper among the injected ones? We compare them by per-question area under the ROC curve (AUROC). Our method beats influence functions if its AUROC on transformed problems is clearly higher, and only if the component set was chosen on held-out papers.

The cheap membership baseline is Min-K% Prob scored on the question text, which CausalProbe-2024 used to certify freshness. No reported result was found on Lacuna for Min-K% on transformed arXiv reasoning questions.

The simplest internal baseline is a linear probe on residual-stream activations trained to classify injected versus control questions. It gets the same training papers as our mask.

The ablation that isolates our key ingredient replaces the change-based, causally selected components with two alternatives: random components, and components chosen by activation magnitude alone. Each alternative gets the same sparsity budget. If either closes Δ as well as our selection does, the localization adds nothing.

Why not just…?

Why not just rely on the post-cutoff accuracy drop? Test of Time already shows that it vanishes under rewording and variable renaming, including on LiveCodeBench. The controlled injection experiment settles whether that vanishing reflects no benefit or a hidden one. The behavioral gap in our setting is computed alongside the circuit estimate, so the two are compared directly.

Why not just use influence functions, which already trace training data? They are the strongest competitor, and they lose the trail on rewritten problems: 17.5% top-1 hit rate. They are also costly at pretraining scale. They answer which document was used, not whether it was used to reach the answer. If influence functions match our AUROC in the controlled setting, our contribution shrinks to the causal gap-closure measurement, and we will say so.

Why not just train a linear probe to detect familiarity? This is a real threat for detection alone. A probe may separate seen from unseen well. But a probe reads correlation, and the Chain-of-Thought bias study (Mechanics of Bias and Reasoning) warns that encoded associations and behavior can come apart. The decisive distinction is causal. If a probe detects familiarity but ablating the probe direction does not close Δ, familiarity is present but unused. Only a causal ablation can estimate how much accuracy contamination bought.

Decisive Checks

Three checks decide the project.

The first is dose response. Δ on transformed problems must rise with repetition count. If it stays at zero even at 16 repetitions, we report that laundered contamination is benign for this model class and stop there.

The second is gap closure under held-out selection. Components selected on 70% of injected and control papers must close most of Δ on the remaining 30%, and must beat both the random and magnitude-matched controls. The collateral cost must stay small: control-paper accuracy and scores on a LiveBench subset, together with ConsisEval math pairs from Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?, must move by under a point.

The third is cross-format and natural transfer. A mask learned on fill-in-the-blank questions should partly close Δ on transformed problems, which tests the brittleness warning. On the untouched OLMo-2-7B, the mask should cost more accuracy on in-corpus pre-cutoff papers than on post-cutoff ones, beating the influence-function and Min-K% AUROC on transformed problems.