Language models see text as a sequence of tokens, which are word pieces chosen by a fixed splitting rule called a tokenizer. The same string can be split in many valid ways. Models are normally trained and tested only on the one standard ("canonical") split. We propose to test whether a benchmark item was memorized by feeding a model the exact same characters under non-standard splits and measuring how much its confidence falls. The hypothesis is that memorized text is stored as a particular token sequence, while understanding of the text survives re-splitting. If so, an item the model memorized during training should lose much more likelihood under re-segmentation than an item it merely understands. Because the characters never change, this probe avoids a problem with rephrasing-based contamination tests: rephrasing changes the question's content and difficulty along with its surface form.
Specialized text is where this matters most, and where current detectors are weakest. General tokenizers break medical, mathematical, and legal terms into many fragments. Those fragments are exactly the low-probability tokens that likelihood-based detectors rely on. Newer technical terms also tend to be split more finely than older ones. As a result, the pre-cutoff versus post-cutoff splits used to validate contamination detectors may partly reward vocabulary novelty rather than membership in the training data. We use date-based splits as supervision, domain-specific fragmentation as the regime of interest, and controlled contamination of open-data models as ground truth.
Core Claim
For a text $x$ with canonical tokenization $c$ and a set $A$ of valid alternative tokenizations of the same characters, define the re-segmentation gap
$$ \Delta(x) = \frac{\log p(c)}{|x|} - \frac{1}{|A|}\sum_{a \in A} \frac{\log p(a)}{|x|}, $$
where $p$ is the model's sequence probability and $|x|$ is the length in characters. Measuring per character keeps the two terms comparable even though the splits have different token counts.
We claim three things. First, $\Delta$ is systematically larger for training members than for non-members, once alternative splits are matched on how finely they break the text. Second, this separation holds when members and non-members are matched on fragmentation rate (tokens per word), whereas reference-free token-outlier scores lose much of their separation under that matching. Third, an accuracy-level version of the probe, which asks the question under re-segmented input and compares answer accuracy against date-matched post-cutoff controls, detects label-level contamination on open-weight models without relying on a paraphraser.
The first claim is falsifiable. If memorization transfers across tokenizations as robustly as comprehension does, $\Delta$ will not separate members from non-members, and we will report that.
Relation to Prior Work
Two strands motivate the proposal.
The first shows that date-based contamination signals are fragile. Test of Time and the companion Beyond Memorization show several things on 20,277 arXiv papers. Verbatim fill-in-the-blank questions decay after the training cutoff (−3.83 points for GPT-4o-mini). LLM-synthesized reasoning questions do not decay. Influence-function attribution to source documents falls from a 77.5% to a 17.5% top-1 hit rate. They also leave a post-cutoff rise in physics (+2.19 points) unexplained. Their tool, rephrasing, changes content and difficulty together, so it cannot separate "memorization was removed" from "the question got easier or harder." Our perturbation holds the characters fixed, which removes that confound.
Relatedly, Set the Clock and Is Your LLM Outdated? find that a model's best-performing year often sits before its stated cutoff. This is a further reason not to treat a drop in accuracy after the cutoff as the verdict.
The second strand supplies the mechanism. Adversarial Tokenization shows that models still understand non-canonical splits of a string while safety training fails on them. In other words, behavior tied to specific token sequences can come apart from comprehension. That paper uses this gap to attack models. We use it to measure memorization.
The work we build on and compete with is reference-free membership detection. Min-K% Prob averages the log-probabilities of the $k\%$ least likely tokens, validated on WikiMIA's pre-2017 versus post-2023 Wikipedia split. Min-K%++ normalizes each token's log-probability against the full-vocabulary distribution. Both score only the canonical split. Neither asks whether heavily fragmented jargon fills the bottom-$k$ pool.
Specialised or Generic? documents the scale of fragmentation in radiology: about 2.7 tokens per word under GPT-2's tokenizer versus about 1.0 under a radiology tokenizer. That work motivates our stratification by fragmentation rate. It says nothing about detection.
Data Contamination Can Cross Language Barriers constrains our design. It shows contamination can evade surface-level detectors through translation. It also supplies both our controlled-contamination protocol and a behavioral baseline, Choice Confusion. We therefore scope our claim to verbatim and near-verbatim exposure, and we do not claim to catch translated or paraphrased leakage.
Research Program
We first build a sampler for alternative tokenizations. For each text it draws valid splits at a controlled fragmentation rate. It can concentrate re-splitting either on domain terms or on ordinary words. The canonical split itself and splits that the tokenizer would never merge back are both excluded.
We then compute $\Delta$ and an accuracy-level analogue on three kinds of data. The first kind has natural date labels: WikiMIA, and the RealMath arXiv collection from May 2023 to June 2025. The second is domain question answering heavy in jargon: PubMedQA, and the radiation oncology physics exam from Holmes et al., where GPT-4's repeated identical errors hint at memorization. The third is controlled contamination. We continue training Pythia and OLMo checkpoints, whose training data is public, on label-level copies of MMLU, MathQA, and PubMedQA subsets, following the cross-lingual contamination protocol. This gives exact membership ground truth.
For OLMo2-7B we also reuse the influence-function attribution setup from Test of Time on a small subset. This lets us check whether items with a large $\Delta$ are the ones attributed to specific pretraining documents.
A secondary study asks whether the memorization signature survives when a derivative model changes its tokenizer. We expand a base model's vocabulary with gradient-selected domain tokens, following VEGAD. After expansion, the old canonical split becomes non-canonical for the derived model. So we can test whether memorization learned during pretraining is still visible under the old split, the new split, or neither. This matters for auditing domain-adapted models, a case Palimpsestic Membership Inference explicitly leaves open by assuming a fixed vocabulary. Data seen late in training is memorized more strongly (the "palimpsest" effect). We therefore report $\Delta$ as a function of when the contamination was injected during training.
Baselines
The naive reference point is canonical per-character log-likelihood (perplexity), together with the plain accuracy drop after the cutoff on date-split data. This is what current auditing practice defaults to.
The strongest existing method is Min-K%++ (Min-K%++). It is reference-free, uses the same log-probability access we need, and was designed for exactly the WikiMIA setting. The file reports it beating Min-K% by 6.2 to 10.5 AUROC points on WikiMIA across ten models. No absolute AUROC for Min-K%++ was found on Lacuna, and no reported result was found on Lacuna for Min-K%++ on MIMIR beyond "on par with reference-based methods." We will therefore reproduce Min-K% and Min-K%++ ourselves on identical items and models, sweeping $k$ over the same grid we give our method. Beating Min-K%++ means a higher AUROC on the fragmentation-matched controlled-contamination split, with non-overlapping bootstrap intervals, while not losing on the unmatched WikiMIA split.
For multiple-choice data, the strongest behavioral baseline is Choice Confusion from Data Contamination Can Cross Language Barriers. There, clean LLaMA3 gained 26.25 points on MMLU and contaminated models dropped about 17. We run it on our controlled-contamination models and compare detection AUROC for each item and each model.
The rephrasing baseline follows Test of Time: we have the same generator synthesize questions, then compute the accuracy change after the cutoff.
Two ablations isolate our key ingredient. The first replaces re-segmentation with character-level noise (typos) at matched likelihood cost. It tests whether keeping the characters identical matters. The second is word-level Min-K%++, which merges subword log-probabilities into whole-word scores before selecting outliers. It tests whether a simple fix for fragmentation captures the whole gain.
Why not just…?
Why not just rephrase the benchmark, as Test of Time does? Rephrasing does remove the decay after the cutoff. However, Test of Time still finds 17.5% top-1 attribution to source documents after transformation, and cannot explain the physics rise, because content and difficulty move together. Our probe keeps the problem identical. We will run both on the same RealMath items. If rephrasing and re-segmentation give the same member/non-member verdicts, rephrasing is sufficient and simpler, and we will say so.
Why not just use Min-K%++? It is the real competitor, and on unmatched WikiMIA it may well match us. The case against it is specific: its outlier pool can be dominated by fragments of rare jargon, and date-based splits mix new vocabulary with non-membership. The fragmentation-matched evaluation settles this. If Min-K%++ keeps its separation there, our motivation for domain text weakens substantially.
Why not just aggregate token scores at the word level? This is the most serious threat, because it would fix fragmentation at no cost. It is our second ablation. If word-level Min-K%++ equals $\Delta$ on the matched and domain splits, the contribution reduces to that fix, and we will report it as the finding rather than defend re-segmentation.
Why not just use Choice Confusion, which needs no log-probabilities? It works well on multiple-choice data, but it has no analogue for free-form, fill-in-the-blank, or code items. It also needs distractors to swap. Our accuracy-level probe applies to any item. We compare the two directly on MMLU and PubMedQA.
Decisive Checks
The central experiment is on the controlled-contamination Pythia and OLMo models. Across contamination injected early, mid, and late in continued training, we ask whether $\Delta$ beats reproduced Min-K%++ in AUROC once members and non-members are matched on tokens per word, and whether the gap between methods widens on PubMedQA and radiology-style text relative to MMLU.
The second check targets date-split data. On RealMath and WikiMIA, we test whether matching pre- and post-cutoff items on fragmentation shrinks Min-K%++'s separation while leaving $\Delta$'s intact. That result would show that part of the published temporal signal is vocabulary novelty.
The third check is on OLMo2. We test whether $\Delta$ rank-correlates with influence-function hit rates on the attributed subset.
The fourth check is on the vocabulary-expanded derivative. We test whether the pretraining contamination signature survives re-tokenization.
The typo ablation is the falsification test. If character noise produces the same gap as re-segmentation, the "same characters, different tokens" mechanism is wrong. The accuracy-level variant needs control over token IDs. The method is therefore limited to open-weight models, and we will not claim results on closed APIs.
References
- Test of Time: Rethinking Temporal Signal of Benchmark Contamination
- Beyond Memorization: Reasoning-Driven Synthesis as a Mitigation Strategy Against Benchmark Contamination
- Set the Clock: Temporal Alignment of Pretrained Language Models
- Is Your LLM Outdated? A Deep Look at Temporal Generalization
- Adversarial Tokenization
- Detecting Pretraining Data from Large Language Models
- Min-K%++: Improved Baseline for Pre-Training Data Detection from Large Language Models
- Specialised or Generic? Tokenization Choices for Radiology Language Models
- Data Contamination Can Cross Language Barriers
- Evaluating large language models on a highly-specialized topic, radiation oncology physics
- Gold Panning in Vocabulary: An Adaptive Method for Vocabulary Expansion of Domain-Specific LLMs
- Blackbox Model Provenance via Palimpsestic Membership Inference