A Statistical Hypothesis Testing Framework for Data Misappropriation Detection in Large Language Models
Yinpeng Cai, Lexin Li, Linjun Zhang
TL;DR
This work formalizes data misappropriation detection in large language models as a hypothesis-testing problem augmented by watermarking. It develops a general minimax framework that links token outputs to secret-watermark keys, accommodating complete and partial inheritance, and derives optimal test statistics and rejection thresholds for two representative watermark schemes (Gumbel-max and red-green-list). The authors establish asymptotic optimality guarantees and demonstrate strong empirical performance through extensive simulations and a real-LM study, highlighting robustness to model differences and limited watermark data. A key practical takeaway is the impossibility of reliable detection without watermarking, underscoring the method's relevance for copyright and privacy protection in generative AI systems.
Abstract
Large Language Models (LLMs) are rapidly gaining enormous popularity in recent years. However, the training of LLMs has raised significant privacy and legal concerns, particularly regarding the distillation and inclusion of copyrighted materials in their training data without proper attribution or licensing, an issue that falls under the broader concern of data misappropriation. In this article, we focus on a specific problem of data misappropriation detection, namely, to determine whether a given LLM has incorporated the data generated by another LLM. We propose embedding watermarks into the copyrighted training data and formulating the detection of data misappropriation as a hypothesis testing problem. We develop a general statistical testing framework, construct test statistics, determine optimal rejection thresholds, and explicitly control type I and type II errors. Furthermore, we establish the asymptotic optimality properties of the proposed tests, and demonstrate the empirical effectiveness through intensive numerical experiments.
