Manuscript Offprint

arXiv:2611.26264

A Statistical Framework for Training Data Auditing of Large Language Models

Shengjie Niu, Yeheng Ge, Jian Huang

Abstract

Training-data auditing asks whether data of interest were used to train a large language model (LLM), a question central to privacy auditing, copyright protection, and benchmark-contamination detection. These concerns are particularly relevant to the use of copyrighted books and scientific papers in pre-training, as well as synthetic text and medical question-answer records in fine-tuning. In practice, training membership signals may be concentrated in only a few passages of a long document, making it important to aggregate evidence within each document without diluting these localized signals. Beyond individual documents, auditing a target collection requires an overall assessment based on the document-level evidence. In this paper, we propose a unified statistical framework for document-level membership inference, target-collection global auditing, and suspicious-subset identification. We integrate complementary chunk-level membership evidence with Cauchy combination to construct document scores for document-level membership inference. The document scores and their calibrated p-values further enable an overall assessment of training-data collection use and the identification of suspicious documents through multiple testing. Under the stated exchangeability conditions, we establish finite-sample validity of document-level p-values, type-I error control for global auditing, and false discovery rate control for subset identification. Case studies on BookTection, Pile-arXiv, Cosmopedia, and HealthCareMagic demonstrate the effectiveness and reliability of the proposed framework in auditing pre-training and fine-tuning data.

A PDF page turning into lines of clean text

Preparing the full text

It will appear here by itself. You can read the abstract meanwhile.

References (20)

  • The Annals of Statistics 51 (1), pp. 149–178
  • how to create large-scale synthetic data for pre-training
  • a practical and powerful approach to multiple testing
  • The Annals of Statistics 29 (4), pp. 1165–1188
  • a suite for analyzing large language models across training and scaling
  • the bonferroni method
  • Advances in neural information processing systems 33, pp. 1877–1901
  • Detecting Copyrighted Content in Language Models Training Data
  • The Pile: An 800GB Dataset of Diverse Text for Language Modeling
  • TEST 27 (4), pp. 811–825
  • a medical chat model fine-tuned on a large language model meta-ai (llama) using medical domain knowledge
  • a powerful test with analytic p-value calculation under arbitrary dependency structures
  • did you train on my dataset?
  • calculating exact $p$-values when permutations are randomly drawn
  • when and how attacks succeed on large language models
  • a class of statistics based on distances
  • Kulkarni, and R. Sim Privacy-preserving in-context learning with differentially private few-shot generation
  • LLaMA: Open and Efficient Foundation Language Models
  • membership inference via relative conditional log-likelihoods
  • analyzing the connection to overfitting