TRANSMISSION // 2611.30639v1

A cheaper way to look for training-data overlap in language models

Source published

A black-box audit compares model predictions with and without relevant context. It separated known training corpora from controls in open models, but results on commercial APIs were inconclusive.

AI-generated conceptual illustration for A cheaper way to look for training-data overlap in language models
AI-generated conceptual illustration; not documentary evidence.

Can researchers test whether a language model may have seen a particular dataset during training without access to its internal probabilities? A new preprint proposes a budget-conscious method based on small changes in the model’s next-token predictions—and finds important limits to what those changes can establish.

Why look for “tells” in a model’s predictions?

A language model can perform well on a test because it has learned a skill, because it has encountered similar material, or sometimes because it has memorized parts of the test itself. That makes training-data contamination an important concern when interpreting benchmark results. It also matters for questions about data licensing and whether models retain particular material.

Many existing audits use information that commercial services do not expose, such as the probability the model assigns to each possible next word. Dominik Bernard Lau and colleagues propose a different approach: compare the model’s most likely next token when given a document prefix alone with its prediction when given that same prefix plus related context.

The idea is that context may behave differently depending on prior exposure. If a passage is already strongly represented in a model’s learned patterns, extra context could disrupt an exact-match prediction. For unseen text, context could instead help the model predict the next token. The researchers treat these changes as a possible signal of dataset-level overlap—not as direct proof that any particular passage was in training.

How the audit works

The method uses only generated predictions, not internal probability scores. For selected positions in a document, the researchers check whether the model’s top prediction matches the actual next token, first without added context and then with context. They record whether the context changes a correct prediction into an incorrect one, or an incorrect one into a correct one.

A central challenge is query cost: checking every position in every document could require many API calls. The authors argue that useful changes are sparse, so auditing positions uniformly wastes queries. Their selection strategy, called LCS, uses the longest common subsequence between the target document and related context to prioritize positions with literal overlap. Context itself is assembled from other documents selected for lexical similarity. The team compares this strategy with simpler position-selection policies and evaluates it on models with known training corpora, as well as on commercial APIs whose training data are not public.

Strong separation in one setting, weaker evidence in another

Across 11 open-weight base models with known training data, LCS distinguished datasets included in pretraining from held-out datasets. At the dataset level, the paper reports a mean area under the curve (AUC) of 0.952, compared with 0.562–0.732 for the tested black-box baselines. AUC summarizes how well a score ranks examples from two groups; it does not by itself provide a definitive verdict about an individual document.

The authors say the targeted approach can reach comparable dataset-level separation with about three times fewer queries than uniform position sampling. That is not a universal cost reduction or guarantee of accuracy: results depend on the task and how scores are aggregated. At the document level, LCS’s mean AUC was 0.780, and some gray-box methods performed better in other experimental settings. In a controlled randomized-exposure experiment, where models were fine-tuned on selected corpora, the ranking of methods also changed. These results caution against treating one headline comparison as evidence that LCS is best in every audit.

The commercial-model tests are more tentative. The researchers examined five APIs, but lacked ground truth about their training mixtures. They report that the tested DeepSeek and Kimi results did not clearly separate suspected training data from recent controls. For Claude Sonnet 4.5 and Opus 4.5, assistant-style replies often disrupted the intended text-continuation test; the authors therefore say those audits were not reliable and do not interpret them as contamination evidence. Overall, the API experiments are exploratory, not findings that these companies used specific datasets.

What the method cannot establish

A detected difference is evidence consistent with overlap, not proof of training membership, copyright infringement, or memorization of a particular item. The paper notes that time-based comparisons can also capture differences between datasets unrelated to whether a model saw them. Results can become less sensitive when models already predict common or easy text accurately, leaving fewer prediction changes to measure. The approach also relies on assistant prefill, a capability some providers may not offer, and could be affected by changes to API outputs.

This work is available as an arXiv preprint, so its claims should be treated as provisional rather than as peer-reviewed conclusions. The paper reports experiments on specific models, datasets, and API configurations; further independent testing would be needed to understand how reliably the method transfers to other settings. Its clearest contribution is a promising way to reduce query costs in certain dataset-level audits, alongside a useful reminder that black-box signals have limits.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.