Revision Fingerprints: Dating What a Model Saw from Its Sources' Edit Histories

Most tests for benchmark contamination ask whether a model has seen a piece of text. Two families dominate. The first checks whether the model assigns suspiciously high probability to the text. The second checks whether accuracy drops for items published after the model's training cutoff. Both are now known to break. Reinforcement-learning post-training flattens the probability gap between seen and unseen questions. Simple paraphrasing erases the accuracy drop even when the model still relies on the leaked source.

This proposal uses a different signal, one that the database community has long treated as basic: the edit history of the data itself. Wikipedia infoboxes, problem statements and many other sources are revised at recorded times. When a fact's value was changed at a known moment, the version a model reproduces tells us roughly when it was exposed to that source. The test depends on the content of the answer, not on how it is worded or how confident the model is.

In two sentences: we find facts and benchmark items whose text was edited at a known time, then ask the model which version it believes, holding the question fixed. Across many such items, the pattern of old-versus-new preferences gives a transaction-time "horizon" for what the model ingested. Because the question never changes, this dating method controls for difficulty. We expect it to survive the paraphrasing and reinforcement-learning steps that defeat current detectors.

Core Claim

The claim is that within-item version preference is a contamination and exposure-dating signal that is robust in two specific ways where existing signals are not. It keeps working after clean reinforcement learning is applied on top of contaminated fine-tuning. It also keeps working when the question is paraphrased, because what we score is the value the model commits to, not the likelihood of a string.

The idea borrows the distinction between valid time and transaction time, as summarized by Jensen.

  • Valid time is when something was true in the world.
  • Transaction time is when a record of it was written.

Today's contamination tests date items by valid time or publication date. Models, however, ingest text in transaction time: the state of a page as it stood when it was crawled. That is exactly the imperfect-information-at-time-t view that Reinhart et al. argue is necessary for backfilled public-health data.

We model the probability that a model prefers the post-edit version of item $i$ as

$$P(\text{new} \mid h) = \sigma\big(a + b \log(1 + \max(0,\, h - \tau_i))\big),$$

where the symbols are defined as follows:

  • $\tau_i$ is the transaction time of the edit.
  • $h$ is the model's unknown exposure horizon.
  • $a$ and $b$ are fitted constants.
  • $\sigma$ is the logistic function.

The form encodes a single assumption. The chance of having absorbed the new version grows with how long that version was live and crawlable before the horizon, and it is zero for edits made after the horizon. We estimate $h$ by maximum likelihood across items. The shape of the fitted curve is itself informative: a sharp step indicates a clean snapshot, while a smeared step indicates continued ingestion during post-training.

Relation to Prior Work

Work that motivates the gap. The longitudinal study by Roberts et al. and LiveCodeBench both treat the training cutoff as a natural experiment. They compare different problems released before and after it. Roberts et al. explicitly treat each problem as immutable once published.

Test of Time shows that this comparison is fragile. LLM-transformed arXiv problems show no post-cutoff decay, with a +2.19 point rise in physics. Renaming variables removes LiveCodeBench's cutoff cliff. The authors leave the physics inversion partly unexplained, and they attribute it to difficulty varying across time. Our design removes that confound because the pre-edit and post-edit versions share one question.

Work that constrains the design. On the Fragility of Benchmark Contamination Detection in Reasoning Models shows two failures:

  • Clean reinforcement learning with GRPO (group relative policy optimization) pushes loss-based detectors toward chance.
  • Contamination with chain-of-thought data defeats all ten detectors it tests.

This rules out any design that depends on an absolute probability gap. Our signal is a choice between two versions of the same answer, which is a different quantity.

Time Machine GPT shows that fine-tuning a model backward onto historical snapshots does not erase later knowledge. This suggests that version preferences, once learned, persist through later training. That persistence is the property we need, though we test it directly rather than assume it.

Work that supplies the method.

  • The historical Wikipedia states in Time Machine GPT, together with the Wikipedia Revision Toolkit, let us reconstruct every past state of a page cheaply. The toolkit compresses more than 5 TB of history to under 100 GB.
  • TRANSIENTTABLES already mines infobox timelines: 14,000+ tables across 1,238 entities. That work evaluates whether models can reason over timelines when the tables are handed to them. We instead use the timelines as a probe of what the model absorbed, without providing any tables.

Research Program

Item bank. We first build a bank of revision canaries: facts or item texts with at least two versions, a recorded edit time, and a value change the model could not have inferred.

  • Natural source. Infobox attributes from the TRANSIENTTABLES entities and the wider Wikipedia history. We filter out changes that are predictable from trends, such as growing populations. We keep corrections, reassignments and arbitrary value updates, which a model could only know by having read them.
  • Benchmark-side source. Public competition problems whose statements or answers carry timestamped edits, where such histories can be collected. These tie the method to benchmark contamination proper.

Probe. For each canary we elicit the model's committed answer in three ways:

  • free-form generation;
  • a forced choice between the two versions;
  • a short paraphrase ensemble.

We then check that the three agree.

Estimator. Using the model above, we fit a horizon $h$ with a confidence interval. We also fit a per-item posterior that flags items where the model's preference is inconsistent with its fitted horizon. An item whose post-horizon version is nonetheless reproduced is exactly the item-level leakage signal auditors want.

Deliverable. The engineering output is a small bitemporal store of canaries, keyed by both valid and transaction time and replayable to any date. Its purpose is to make audits reproducible, not to serve as a general versioning system.

Baselines

Do nothing: the declared cutoff. The naive reference point is simply to trust a model's declared training cutoff and assume items dated after it are clean. The horizon estimator must show measurable disagreement with declared cutoffs where the ground truth is known. Otherwise it adds nothing.

Cutoff discontinuity across items. This is the method of Roberts et al. and LiveCodeBench, which regresses pass rate on release date across different items. We run it on exactly the same canary items, using item publication dates, with the same models and prompts. Roberts et al. report that GPT-4's Codeforces pass rate drops from about 37% before the cutoff to 16% after it. We beat this baseline if our horizon estimate is closer to ground truth in months and remains stable under paraphrase, where Test of Time shows the discontinuity disappears.

Membership-inference detectors: the strongest existing method. These include Min-K%, loss thresholds and LiRA, a reference-model likelihood-ratio test. They are the strongest competitor for item-level detection. The Fragility paper reports LiRA at 89.1% AUROC after contaminated fine-tuning of Qwen2.5-7B-Instruct, before any reinforcement learning. After one epoch of clean GRPO, LiRA loses about 14 points and reference-free methods approach 50%. Under chain-of-thought contamination, the detectors average 50–58%.

We reproduce this pipeline with the same data and training budget, and give LiRA the same reference models it uses there. Beating it means holding AUROC well above LiRA's post-RL value while matching its pre-RL value.

Influence-function attribution. This is the EK-FAC (eigenvalue-corrected Kronecker-factored approximate curvature) tracing used in Test of Time on OLMo2-7B-Instruct. There, the source document ranked first in influence 77.5% of the time for cloze queries but only 17.5% for transformed questions. It serves as a costly, open-data-only reference. We run it on a 40-item subset to match that paper's budget.

Key ablation. This ablation isolates the central ingredient, which is holding the question fixed. We replace within-item version pairs with across-item pairs matched on topic and publication date. If dating accuracy does not degrade, the edit-history structure is not what drives the result.

Why not just…?

Why not just use the release-date cutoff test? It compares different items, so any change in difficulty over time is confused with contamination. Test of Time's unexplained +2.19 point physics inversion and its erased LiveCodeBench cliff are direct evidence of this confusion. The test also cannot say anything about items published well before the cutoff, and that is where most contamination sits. The across-item ablation above measures how much the within-item design buys.

Why not just run Min-K% or LiRA on the final weights? The Fragility paper shows these collapse after clean reinforcement learning and under chain-of-thought contamination. The collapse is attributed to clipping, which shrinks loss variance on unseen items. This is a genuine threat to our method too. A version-preference probe scored by log-probability might suffer the same shrinkage. This is why we score committed choices and free-form answers, and why the controlled experiment below applies exactly their GRPO step.

Why not just ask about recent events to find the cutoff? Probing dated news, in the spirit of LiveNewsBench, does give a rough knowledge horizon. That paper notes models can guess such answers from prior patterns. More importantly, the approach says nothing about whether a specific benchmark item was ingested. Our per-item posterior does. If event probing matches our horizon estimates for general knowledge, that is a useful sanity check, not a replacement.

Why not just use influence functions? They need open training data and are expensive; Test of Time limited them to 40 papers. They also lose most of their traceability under transformation, dropping from 77.5% to 17.5%. We keep them only as a costly reference on a subset.

Proposed Experiments

Ground-truth dating with Time Machine GPT. The Time Machine GPT family gives exact training horizons: Wikipedia up to December 31 of each year from 2004 to 2023. We fit $h$ for each checkpoint and report the error in months. Because these are 117M-parameter models, we use forced-choice log-probability between the two versions, which is a within-item comparison. The decisive result would be:

  • monotone horizon estimates that track the true years;
  • a sharp step at each true year;
  • no preference for versions committed after it.

No reported result for revision-based dating was found on Lacuna, so this experiment establishes the first number.

Controlled injection and cloaking. We reproduce the Fragility setup on AIME, AMC, GPQA Diamond and related sets. The one change is that contaminated fine-tuning uses one of two versions of each item, which differ in an inessential detail that changes the answer. Clean GRPO then follows. We compare version-preference AUROC with LiRA and loss detectors before and after reinforcement learning. We repeat the comparison under chain-of-thought contamination on DeepSeek-R1-Distill-Llama-8B. We also paraphrase all probes to test the laundering failure documented by Test of Time.

Natural audit. We apply the estimator to open-data models such as OLMo2, whose corpus crawl dates can be checked, and to closed models on the TRANSIENTTABLES entity canaries. We report the fitted horizons, the smear of each step, and flagged items.

Falsification conditions. The method fails if any of the following holds:

  • estimates do not recover the Time Machine GPT years;
  • version preference collapses after GRPO as fast as LiRA does;
  • the across-item ablation dates just as well.

Any one of these would show that edit histories add nothing beyond existing signals.