TL;DR
Auditing large language models to see if they trained on copyrighted or private text requires strict statistical guarantees—you don't want to falsely accuse a model of memorizing data it never saw. Existing "knockoff" methods promise to cap this false alarm rate, but they secretly break down in natural language because AI-generated text paraphrases aren't statistically identical to human text. This paper diagnoses exactly why that breakdown happens and introduces AKTD, a mathematical correction that restores reliable error control without needing ground-truth labels on the text you're auditing.
What Problem Does This Paper Address?
When auditing an LLM for privacy leakage, copyright infringement, or benchmark contamination, simply ranking texts by how "familiar" they look to the model isn't enough. You need to draw a hard line and say, these specific texts were in the training set, while controlling the False Discovery Rate (FDR)—the expected fraction of false alarms among your accusations.
Recently, researchers adapted a clever statistical tool called knockoffs for this task, creating Knockoff-based Training Data Detection (KTD). For every candidate text, you generate a synthetic paraphrase (a "knockoff") and compare how strongly the target LLM reacts to the original versus the knockoff. If a text wasn't in the training set (a "null" sample), it and its knockoff should be exchangeable—essentially indistinguishable in the eyes of the model, making their comparison score a 50/50 coin flip between positive and negative. This symmetry lets KTD use negative scores to estimate and cap false positives in the positive tail.
Here is the catch: text knockoffs are imperfect. Paraphrasing a human sentence almost inevitably alters its fluency, word choice, length, or likelihood. Real non-training text often still looks slightly better to the LLM than its synthetic knockoff. That coin flip becomes loaded, tilting positive. As a result, standard KTD severely underestimates false positives and makes reckless accusations.
Methods
Instead of trying to build a "perfect" text paraphraser, the authors accept imperfect knockoffs and fix the math downstream with Asymmetry-adjusted KTD (AKTD).
- Standard KTD: Counts how many comparison scores fall below $-t$ to estimate how many non-training texts falsely scored above $+t$.
- What's New (Pathwise Diagnosis & Penalty): The authors define realized null-tail asymmetry, $D_0(t)$, which is simply the excess of positive null scores over negative null scores at threshold $t$. They prove deterministically that standard KTD's excess error is bounded by this exact imbalance. To fix it, AKTD adds an estimated penalty $B(t)$ directly into the selection threshold's numerator to absorb the asymmetry.
- Three Flavors of AKTD:
- Oracle AKTD (O) & Cross-fit AKTD (C): Diagnostic versions that use true labels (either directly or via held-out folds) to compute $B(t)$ and prove the core mechanism works.
- External-null AKTD (E): The practical, label-free version. Auditors take a separate "calibration pool" of texts known not to be in the training set (e.g., text written after the model's cutoff date), run them through the same knockoff pipeline, and estimate the asymmetry penalty $B(t)$—either via finite-sample concentration bounds or bootstrap quantiles.
Datasets
No new datasets are introduced; the authors evaluate GPT-2 and the Pythia suite (410M, 1B, 2.8B) on two established membership inference benchmarks:
- WikiMIA: Contains 861 training members and 789 non-members, used primarily to diagnose the asymmetry mechanism.
- MIMIR: Specifically the Arxiv (500 members / 500 non-members) and PileCC (1,000 members / 1,000 non-members) subsets. Because it spans distinct domains, MIMIR is used to stress-test cross-domain external-null calibration (e.g., using PileCC non-members to calibrate an audit on Arxiv).
Key Insights and Ideas
- Imperfect paraphrases break statistical guarantees: In natural language, violating exact exchangeability isn't a harmless quirk—it systematically inflates false discoveries because synthetic knockoffs subtly degrade text likelihood.
- A clean, distribution-free autopsy: The derived pathwise bound ($q + \Delta_0(\tau)$) requires zero distributional assumptions, yet tracks real-world FDR inflation with uncanny precision. It pinpoints null-tail imbalance as the exact failure mode of text knockoffs.
- Domain match matters for calibration: You can't just grab any non-member text to calibrate External-null AKTD. As shown in Figure 1C, when calibrating Pythia on Arxiv using PileCC nulls, the external penalty curve dips below the true asymmetry curve $D_0(t)$ (shaded region), causing the threshold to land in an unsafe zone.
Key Results
Across all tests, the target FDR threshold is set to $q = 0.10$ (meaning at most 10% of flagged texts should be false positives).
- Standard KTD blows past the error budget: On WikiMIA with GPT-2, KTD hits an empirical False Discovery Proportion (FDP) of 0.201—double the allowed 0.10 limit, and right on the heels of the theoretical bound's 0.204 prediction. On MIMIR across GPT-2 and Pythia models, KTD selects nearly everything, resulting in an abysmal ~0.50 FDP.
- Mechanism validation: Oracle and Cross-fit AKTD bring the FDP right back under control across every single model and dataset (e.g., 0.069 to 0.098 FDP), while retaining 1.000 power (catching 100% of true training samples) on all Pythia models.
- Label-free calibration works—when domains align: On GPT-2, External-null AKTD slashes MIMIR FDP from ~0.50 down to 0.042–0.065 while retaining 0.397–0.620 power. On Pythia (410M–2.8B), calibrating PileCC with Arxiv nulls yields 0.006–0.016 FDP at 0.999–1.000 power. Conversely, calibrating Arxiv with PileCC nulls fails (0.182–0.312 FDP), proving the diagnostic value of checking domain alignment.
Limitations and Future Work
- Sensitivity to distribution shift: External-null AKTD relies heavily on the "same-null" assumption—the external calibration statistics must match the distribution of the non-members being audited. Mismatched domains can either inflate FDP (as seen in Pythia on MIMIR-Arxiv) or make the test overly conservative with zero discoveries (observed on shifted WikiMIA pools).
- Theory-practice gap in penalties: The mathematically certified finite-sample penalty ($B_\alpha(t)$) guarantees high-probability control, but in practice, it is currently too conservative to yield useful detection power—forcing practical deployments to rely on bootstrap-quantile estimates that lack finite-sample guarantees.
- Knowing the null count: External calibration requires an upper bound on how many non-members are in the candidate set; defaulting to the total candidate size works safely, though tighter prior bounds noticeably improve detection power. Future work is not explicitly discussed in the paper.
Summary updated