A Statistical Framework for Training Data Auditing of LLMs
Proving a book was trained on is not finding its closest paragraph: split it into chunks, let the strongest few speak, then rank the score against books outside the training set. That holds only if the two sets are interchangeable; mismatch discounts it.
On this page
Suppose you hold a book, cut into 8 parts, and you must decide whether the whole book was in the training set, but you look at one part; you will get it wrong. Most people do exactly that. They paste the most distinctive paragraph into a model, it produces a detail even the author had forgotten, and they conclude it has seen the book. Three things are wrong with that. The model may have read similar sentences elsewhere; a book that was never trained on can also be answered fluently; and in a long book only a few passages leave a trace, yet one passage is standing in for the whole. The paper, posted on 19 November 2026, splits auditing into three layers, each with its own error control: whether this document was a member, whether the collection was used, and which documents look suspicious [1].
One Matching Paragraph Proves Nothing
Start with the hole. A model that answers fluently about a passage may be doing one of three things: it saw that passage in training, it saw enough similar prose to complete it, or the passage is famous enough to appear in any corpus. A single output cannot separate the three. Auditing turns fluency into a number that can be compared with a control group.
The control group is the foundation. The paper keeps a calibration collection: documents confirmed absent from training, matched to the target on topic, genre, and length as closely as possible. With it, the question stops being whether a book's score is high and becomes where that score ranks among books known not to be in the training set.
The second hole is length. In a book of several hundred thousand words, or a paper of a hundred pages, the trace usually sits in a few passages. Averaging a score over the whole document dilutes the strong signal with pages of ordinary prose. The paper says this early: the signal is local, so the aggregation has to be sensitive to local evidence.
The third hole is in the claim itself. Many people treat this document was a member and this collection was used as one question. They are not. The first needs per-document error control; the second needs control over falsely rejecting a clean collection; the third, which documents are suspicious, needs control over the share of innocent documents in a named list. The paper models all three separately, which is the main break from earlier work.
Cut the Document Into Chunks and Let the Strongest Few Lift It
Step one is chunking. Each target document is split by a fixed rule, and each chunk gets a set of membership statistics. The paper uses more than one: perplexity, which measures how unsurprised the model is, lower meaning more familiar; Min-K%, which looks only at the least predictable tokens, higher meaning more familiar; and reference-model differences for fine-tuning. These live on different scales and point in different directions, so a small fitting collection with known member labels trains a logistic regression that merges them into one score.
Step two turns chunk scores into p-values. The idea is plain: keep a set of chunks confirmed to be non-members, and see where the target chunk ranks among them. Rank near the top means a small p-value.
Step three is where the design earns its keep. How do you merge many chunk p-values into one document score? Averaging dilutes local signal, which is the hole described above. The paper uses Cauchy combination: transform each p-value with a cotangent and average. The shape does the work. As p approaches zero the contribution grows very fast, near 0.5 it is close to zero, and above 0.5 it turns negative. A few chunks with tiny p-values can therefore lift the whole document, and the ordinary chunks cannot pull it back.
The paper gives this a bound: if |S| chunks have p-values at most u and the rest contribute a negative offset of at most b, the document score is at least (|S| over J) times cot(pi u), minus ((J minus |S|) over J) times b. In words, local evidence counts by how many chunks carry it and how strong it is, while plain averaging caps that contribution at |S| over J. One strong chunk is a fraction of the score under averaging, and can outweigh every other chunk under Cauchy.
Step four is calibration. A document score means nothing on its own; it is compared with held-out non-member documents to produce a document-level p-value. One discipline matters here: the calibration set must be held out of fitting and rule selection, never used while tuning.
- Per document: reject non-membership when the document p-value is at or below alpha. The paper proves finite-sample validity under conditional exchangeability, so type I error stays under alpha.
- Per collection: run an energy-distance two-sample test between target and calibration document scores, with a permutation p-value. It reads the shape of the distribution, not just a mean shift.
- Suspicious subset: run Benjamini-Hochberg over all document p-values at a chosen false discovery rate q. The paper proves FDR stays at or below q.
Each of the three has its own definition of error, and none substitutes for another. The numbers below make that concrete, because conflating them is the most common mistake in practice.
Four Cases, Three Layers: The Collection Is Detectable, the Documents Are Not Always Named
There are four case studies. On the pretraining side, BookTection supplies 165 books, with 105 published in or before 2021 as candidate members and 60 from 2023 as non-members; 2022 is excluded as ambiguous. Pile-arXiv supplies papers. On the fine-tuning side, Cosmopedia supplies synthetic text and HealthCareMagic 112,165 medical question-answer records. arXiv uses Pythia-6.9B with 8 chunks of 1,024 tokens each; Cosmopedia fine-tunes Pythia-2.8B on 10,000 documents for 10 epochs; the medical set fine-tunes Llama-3.2-3B-Instruct on 89,732 records and audits the checkpoint after epoch two.
Start with per-document discrimination. On arXiv, perplexity alone reaches an AUC of 53.42%, roughly a coin flip; Min-K% reaches 54.43%; simple averaging of several statistics reaches 76.04%; Cauchy combination reaches 75.54%. Cauchy does not win on AUC, and it wins where auditing lives: at a 1% false positive rate, recall rises from 7.40% to 15.60%, and at 5% from 19.80% to 23.00%.
| Method (arXiv, Pythia-6.9B) | AUC (%) | Recall at 1% FPR (%) | Recall at 5% FPR (%) |
|---|---|---|---|
| Perplexity only | 53.42 | 4.20 | 8.20 |
| Min-K% 20% | 54.43 | 3.80 | 8.40 |
| Mean of several statistics | 76.04 | 7.40 | 19.80 |
| Mann-Whitney U aggregation | 75.54 | 6.40 | 17.20 |
| Cauchy combination (this paper) | 75.54 | 15.60 | 23.00 |
What this table says is that auditing cares about catching members under a tiny false-positive budget, not about area under the whole curve. Two methods with the same AUC of 75.54 return 15.60% and 6.40% at 1%, and for a lawyer those are different instruments.
Fine-tuning numbers are much higher. On Cosmopedia the AUC is 84.80% and recall at 1% is 15.20%, ahead of the strongest baseline, Ref-Ratio, by 4.11 and 4.38 points. On the medical records the AUC is 97.00% and recall at 1% is 53.45%, ahead of the strongest baseline, ICP-MIA-SP, by 24.11 points. The paper's explanation is training exposure: a pretraining paper may be seen a few times, while these fine-tuning sets ran 10 epochs and 2 epochs, leaving deeper traces.
| Case | Model and data | AUC (%) | Recall at 1% FPR (%) |
|---|---|---|---|
| Pretraining: arXiv papers | Pythia-6.9B, 79,046 training + 4,841 held out | 75.54 | 15.60 |
| Fine-tuning: synthetic text | Pythia-2.8B, 10,000 documents, 10 epochs | 84.80 | 15.20 |
| Fine-tuning: medical QA | Llama-3.2-3B-Instruct, 89,732 records, 2 epochs | 97.00 | 53.45 |
The gap between layers shows up at the collection level. On arXiv at a 50% member ratio, the global test's rejection rate climbs from about 75% to 100% as the collection grows from 30 to 100 documents, while BH names fewer than 10% of the members. On Cosmopedia at 50%, rejection runs from 96.7% to 100% and BH power stays under one third throughout. On the medical records both work: 100% rejection at 50%, and BH recovers about 75%, rising above 90% at higher ratios.
Those sentences belong in any evidence memo. A 100% rejection says the collection contains members; BH finding under 10% says you cannot name which. Both can be true at once, and they carry very different evidentiary weight. Saying your dataset was used and saying these ten documents are proof require two different reports.
Seven Things to Prepare Before the Conclusion Goes on the Table
These seven follow from the paper's setup, and each maps to a way the conclusion can fail.
- 1. Find the control first. You need documents confirmed absent from training, matched on topic, source, and time. The easiest source is content published after the model's release, which the paper also suggests. Choose the control badly and every guarantee downstream is void.
- 2. Split the control in two. One part fits the evidence-combination rule and the chunk-level baseline; the other is held out for document calibration. Using one set for both makes p-values optimistic, and the paper requires the calibration set to be held out of fitting and selection.
- 3. Watch the composition of the calibration set, not just its size. On the medical data, going from 1,000 to 10,000 calibration documents changed little; raising the share of long answers lifted both power and actual FDR, pushing FDR past 0.10 at a 10% member ratio.
- 4. Use several statistics. Perplexity alone gives an AUC of 53.42%, which is no audit at all; combine perplexity, Min-K%-style statistics, and reference-model differences, with weights fitted on a small labeled set.
- 5. Fix and publish the chunking rule. The arXiv setup uses 8 chunks of 1,024 tokens. Changing length or count changes the score, and changing it after seeing results is changing the ruler.
- 6. Report three numbers separately: the document p-value, the collection-level test p-value, and the BH list with its FDR level. Never compress three layers into one similarity score of 92%.
- 7. Run a sensitivity check that discounts the guarantee. The paper gives the form: if the total variation distance between the actual joint distribution and an exchangeable ideal is delta, then the per-document type I error, the global type I error, and the FDR bound each rise by delta. If the conclusion moves when you swap calibration sets, delta is not small.
Point 7 is the most honest part of the framework. It does not claim unconditional guarantees; it says the guarantee is discounted by however far the conditions are off. That sentence is usable when opposing counsel pushes back.
Where the Guarantee Ends, and What I Read as Inference
Four limits, and past them the method does not apply. First, every guarantee hangs on conditional exchangeability: with the model, fitting set, and scoring rule fixed, non-member target scores and calibration scores must be interchangeable without changing their joint distribution. A shift in topic, time, or source breaks that, and the error grows by delta. Second, pretraining signals are weak: on arXiv, recall at 1% is 15.60%, so a null result is common at this layer and does not prove the text was unused. Third, subset recovery is limited: on arXiv, even a collection of all members yields 11% to 13% power, so a list is a lead, not an inventory. Fourth, the method needs things you may not have in a real dispute: a small fitting set with membership labels, held-out non-members, and, for fine-tuning, query access to the base model.
One more limit is not statistical and still belongs here: membership inference answers whether text was in training, not whether a use infringes. The bridge between those two is built by law, not by a p-value.
The one-line version: do not ask whether the model remembers your paragraph. Ask where that paragraph ranks among text confirmed never trained on, and how stable that rank is.
