Manuscript Offprint

arXiv:2609.10830

Detectable Only Where It Is Confounded: What Verified Duplication Counts Say About Membership Evidence in Language Models

Arman Nik Khah

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

When a language model finds a sentence unusually cheap to predict, it is tempting to conclude that the sentence was in its training data. Almost every published test of that inference has had to guess which sentences were in the training data, the members, and which were not. This paper removes the guessing. Two model families, OLMo-2 and Pythia, publish their pretraining corpora, and a public index over those corpora returns the exact number of times any sentence appeared in each. Those counts make three questions answerable directly. How many copies does it take before a model's loss carries a trace of exposure? Can that trace be separated from the ordinary fact that some sentences are easier than others? And how much of the reported success of membership tests comes from the way their control sentences were built?

The answers form a pincer, closing from two sides. At the duplication levels ordinary text actually has, five models from 1B to 13B parameters carry at most a faint trace of their own exposure. We measure that trace with a design that reads the same sentence through two models, which cancels fluency and quality by construction, and it comes to a rank correlation near -0.08, where -1 would be a perfect relation and 0 none. Where the trace does become strong, above roughly a thousand copies, the two corpora agree on which sentences those are, because they are the famous ones, so exposure can no longer be told apart from fame. Two further measurements show how apparent membership signal gets manufactured. A common way to build a non-member is to change one word of a member. The model does prefer the original, but the gap is the same whether the original appeared once or a hundred times, so what the model is rewarding is the author's word choice, not memory. Above a thousand copies the gap grows with model size on the twelve sentences we can test there, at the same boundary where the pincer closes. And swapping the controls for sentences that differ from the members in register moves a detector from 0.83 to 0.94 AUC, on a scale where 0.5 is a coin flip and 1.0 is perfect separation. We release the sentence banks, counts, and code.

1. The question, and why it has been hard to answer

Suppose someone hands you a language model and a sentence, and asks whether the model was trained on that sentence. There is an obvious place to look. Language models are trained to make their training text cheap to predict, so a sentence the model has seen should cost it less, in loss, than a comparable sentence it has not. That intuition is what membership inference rests on, a family of tests that read a model's loss, or a statistic derived from it, and answer "member" or "non-member" [Shi et al., 2024; Mattern et al., 2023].

The intuition is sound. The tests built on it have not worked well. A careful evaluation across model sizes and domains found that most membership tests on large language models barely beat a coin flip [Duan et al., 2024], and a systematic review argued that the tests which do appear to work owe much of their success to how their evaluation sets were built [Meeus et al., 2024]. When members and non-members are assembled after the fact, by guessing what a model probably saw, the two sets differ in date, source, style, and length, and a detector can score well by noticing any of those differences without noticing membership at all. Baselines that never touch the model at all, and classify on date or style alone, can match published attacks on exactly this basis [Das et al., 2024].

Two things have been missing from this conversation. The first is a number. Membership is not a binary property of web-scale training. A sentence from a novel may appear in a corpus once, or fifty times, or ten thousand times, because the web contains many copies of many things. Memorization scales with that count [Carlini et al., 2022], but membership tests have been evaluated against a yes-or-no label, so nobody has been able to say at what count the loss signal appears. The second missing thing is a way to vary exposure while holding everything else fixed. Every member-versus-non-member comparison compares different sentences, and different sentences differ in more than membership.

This paper supplies both. Two open model families publish their complete pretraining data. OLMo-2 was trained on a corpus called OLMo-mix-1124 [OLMo Team, 2025], and Pythia was trained on the Pile [Biderman et al., 2023; Gao et al., 2020]. A public index, infini-gram [Liu et al., 2024], returns the exact number of times any token sequence occurs in either corpus, in milliseconds. So for any sentence we can state, not guess, how many times each family saw it. That turns membership from a label into a dose. And because the two corpora were assembled independently, the same sentence can be common in one and rare in the other. So we can vary exposure while holding the sentence, and therefore its fluency, quality, and length, exactly fixed. We read the sentence through a model from each family, and ask whether the family that saw it more finds it cheaper.

The findings, in the order the paper presents them:

  1. Loss-based membership is flat within noise from 1 to 1,000 copies and turns on above that. Against non-members built from the same sentences, a 1B model scores 0.60 AUC on ordinary sentences and 0.83 on famous lines with a median of about 1,200 copies (0.5 is chance, 1.0 is perfect separation).

  2. Where the two corpora disagree about exposure, the trace of exposure is faint. In the same-sentence design, comparing each sentence only with others from the same book, the model that saw a sentence more finds it cheaper with rank correlation -0.08 at 7B and -0.07 at 13B, on 747 sentences. That is under one percent of the variance, and the effect does not grow with size.

  3. A one-word edit is not an equal-quality non-member. In over ninety percent of pairs the original costs the model less than its edit, by about 0.4 nats per token, which makes the original's tokens about 1.5 times as probable on average. The gap is the same for an original that appeared once as for one that appeared a hundred times, so it measures the author's word choice, not memory. Above a thousand copies the gap does grow with model size, so the control is only safe below that.

  4. Register does the rest. On identical member sentences, swapping same-source edits for composed-prose controls moves a detector from 0.83 to 0.94.

Findings 1 and 2 are the pincer. Exposure leaves a measurable trace only at counts where every public corpus agrees on which sentences are exposed, and the corpora disagree only at counts where the trace is faint. Section 8 states this precisely and says what would break it, and Figure 6 shows the whole argument in one picture.