Provable Training Data Identification for Large Language Models

Zhenlong Liu, Hao Zeng, Weiran Huang, Hongxin Wei

TL;DR

Current methods for identifying whether a specific piece of data was used to train a Large Language Model (LLM) operate on a sample-by-sample basis, failing to provide statistical guarantees for the entire identified batch. This paper introduces Provable Training Data Identification (PTDI), a framework that shifts the problem to set-level inference, using conformal prediction and a novel boundary estimator to provide strict, mathematically proven control over the False Identification Rate (FIR) while maximizing detection power.

What Problem Does This Paper Address?

As LLMs and Vision-Language Models (VLMs) expand, so do legal and ethical battles over copyright infringement, privacy violations, and benchmark contamination. If a content creator suspects a company used 2,000 of their copyrighted works for training, presenting a list with a high rate of false positives won't hold up in court. High-stakes scenarios demand credible, statistically rigorous evidence.

Existing tools—often categorized under Membership Inference Attacks (MIAs)—typically calculate a score (like perplexity) for an individual sample and apply a heuristic threshold. The authors point out a critical conceptual flaw here: controlling the average False Positive Rate across a dataset does not guarantee error control for the specific subset of discovered items. If a dataset has very few actual training members, a low average false positive rate can still result in a selected set where more than half the discoveries are wrong.

This paper addresses this gap by framing training data identification as a multiple-hypothesis testing problem, aiming to select a subset of candidate data points while strictly bounding the False Identification Rate (FIR)—the expected proportion of false positives within the selected group.

Methods

PTDI achieves distribution-free, provable FIR control through a multi-step pipeline:

  1. Score Computation: Compute standard detection scores (e.g., perplexity or MIN-K%) for both a test set and a calibration set. Crucially, the calibration set consists entirely of confirmed non-members (e.g., data generated after the model's training cutoff date).
  2. Conformal P-values: Use conformal inference to transform these scores into valid p-values. Under the null hypothesis (that a sample is a non-member), these p-values are guaranteed to be uniformly distributed.
  3. Data Usage Proportion Estimation: To maximize statistical power, the standard Benjamini-Hochberg (BH) procedure needs to be adjusted by the true proportion of training data ($\pi_{test}$) in the test set. The authors introduce a novel Jackknife-corrected Beta Boundary (JKBB) estimator to calculate this. While traditional estimators suffer from high bias near the boundary ($p=1$), JKBB uses a dual-kernel jackknife technique to eliminate first-order bias and smooth out local curvature.
  4. P-value Scaling & Selection: Scale the conformal p-values using the JKBB estimate and run the BH procedure to output the final, certified subset of training data.

Extension: The Adjusted Moment Estimator

The authors also extend their method to scenarios where a small set of confirmed members (true training data) is available. They introduce an adjusted moment estimator ($\hat{\pi}_{mom}$) that leverages this extra information to drastically improve detection power while maintaining the same rigorous FIR guarantees.

Datasets

The authors evaluated PTDI across six prominent benchmarks spanning different modalities and training paradigms:

  • LLM Pre-training: WikiMIA and ArXivTection
  • LLM Fine-tuning: XSum and BBC Real Time
  • Vision-Language Models: VL-MIA/Flickr and VL-MIA/DALL-E

Key Insights and Ideas

  • From Instances to Sets: The core breakthrough is realizing that proving single-sample membership is often statistically intractable due to black-box model access. Shifting the statistical guarantee to the set level makes rigorous error control possible.
  • The Boundary is Everything: Estimating the proportion of training data in a mixed test set reduces to accurately estimating the p-value density exactly at the boundary ($p=1$).
  • The Power of Scaling: Vanilla conformal selection can be overly conservative. By accurately estimating the non-member proportion and scaling the p-values, PTDI safely lowers the rejection threshold, significantly boosting the number of true training samples discovered.

Key Results

PTDI consistently and strictly controls the FIR at the target level ($\alpha$) across all tested models (including GPT-NeoX-20B, LLaMA-7B, and Pythia-6.9B) and all detection scores.

FIR and Power across different models on WikiMIA and ArXivTection
  • Substantial Power Gains: On the WikiMIA benchmark with GPT-NeoX-20B (at a target FIR of 0.5), PTDI improved statistical power from 0.5177 (using a vanilla conformal approach) to 0.8618 when paired with the MIN-K% detection score.
  • Outperforming Baselines: When compared against Knockoff-based Training data Detection (KTD), PTDI reliably maintained the target FIR where KTD failed, while also demonstrating superior power on datasets like BBC Real Time.
Power comparison with KTD on BBC (GPT-2)

Limitations and Future Work

The primary limitation of PTDI is its reliance on a clean calibration set of unseen data that is distributionally similar to the test set. If there is a severe distribution shift between the calibration data and the test data, the mathematical guarantees for FIR control could be compromised. The authors note that adapting the framework to handle distribution shifts using weighted conformal p-values is a promising direction for future research.

Summary updated

Abstract

Identifying training data of large-scale models is critical for copyright litigation, privacy auditing, and ensuring fair evaluation. However, existing works typically treat this task as an instance-wise identification without controlling the error rate of the identified set, which cannot provide statistically reliable evidence. In this work, we formalize training data identification as a set-level inference problem and propose Provable Training Data Identification (PTDI), a distribution-free approach that enables provable and strict false identification rate control. Specifically, our method computes conformal p-values for each data point using a set of known unseen data and then develops a novel Jackknife-corrected Beta boundary (JKBB) estimator to estimate the training-data proportion of the test set, which allows us to scale these p-values. By applying the Benjamini-Hochberg (BH) procedure to the scaled p-values, we select a subset of data points with provable and strict false identification control. Extensive experiments across various models and datasets demonstrate that PTDI achieves higher power than prior methods while strictly controlling the FIR.
BibTeX
@inproceedings{liu2026provable,
  author = {Zhenlong Liu and Hao Zeng and Weiran Huang and Hongxin Wei},
  title = {{Provable Training Data Identification for Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=rvBGmzcpoU},
}
Figure