人类编辑下大语言模型水印的鲁棒检测
Robust Detection of Watermarks for Large Language Models Under Human Edits
AI总结:
针对人类编辑削弱 LLM 文本水印信号的问题,本文提出截尾拟合优度检验 Tr-GoF,自适应实现 Gumbel-max 水印的鲁棒最优检测,并在合成数据及 OPT、LLaMA 模型上验证其优势。
摘要:
水印为区分大语言模型(LLM)生成文本与人类书写文本提供了一种有效方法。然而,LLM生成文本上普遍存在的人类编辑会稀释水印信号,从而显著降低现有方法的检测性能。本文通过混合模型检测对人类编辑进行建模,提出一种采用截尾拟合优度检验形式的新方法,用于在人类编辑下检测带水印文本,我们将其称为 Tr-GoF。我们证明,在文本被大量修改且水印信号趋于消失的某一渐近情形下,Tr-GoF 检验在 Gumbel-max 水印的鲁棒检测中达到最优性。重要的是,Tr-GoF 是“自适应地”实现这种最优性的,因为它不需要精确获知人类编辑水平或 LLM 的概率设定;这与最优但不实用的(Neyman–Pearson)似然比检验形成对比。此外,我们证明,在文本受到中等程度修改的某一情形下,Tr-GoF 检验达到最高检测效率。与之形成鲜明对比的是,我们表明现有方法采用的基于求和的检测规则在这两种情形下都无法实现最优鲁棒性,因为其统计量的相加特性对编辑引发的噪声韧性较差。最后,我们在合成数据以及 OPT 和 LLaMA 系列开源 LLM 上证明,Tr-GoF 检验具有具有竞争力、有时甚至更优的实证表现。
英文摘要:
Watermarking has offered an effective approach to distinguishing text generated by large language models (LLMs) from human-written text. However, the pervasive presence of human edits on LLM-generated text dilutes watermark signals, thereby significantly degrading detection performance of existing methods. In this paper, by modeling human edits through mixture model detection, we introduce a new method in the form of a truncated goodness-of-fit test for detecting watermarked text under human edits, which we refer to as Tr-GoF. We prove that the Tr-GoF test achieves optimality in robust detection of the Gumbel-max watermark in a certain asymptotic regime of substantial text modifications and vanishing watermark signals. Importantly, Tr-GoF achieves this optimality \textit{adaptively} as it does not require precise knowledge of human edit levels or probabilistic specifications of the LLMs, in contrast to the optimal but impractical (Neyman--Pearson) likelihood ratio test. Moreover, we establish that the Tr-GoF test attains the highest detection efficiency rate in a certain regime of moderate text modifications. In stark contrast, we show that sum-based detection rules, as employed by existing methods, fail to achieve optimal robustness in both regimes because the additive nature of their statistics is less resilient to edit-induced noise. Finally, we demonstrate the competitive and sometimes superior empirical performance of the Tr-GoF test on both synthetic data and open-source LLMs in the OPT and LLaMA families.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。