水印是一种在生成内容中嵌入几乎难以察觉的统计信号以帮助追溯其来源的技术。本工作关注这样一种场景:不受信任的第三方用户向受信任的语言模型(LLM)提供商发送提示,随后该提供商使用其 LLM 生成带有水印的文本。这种设置使检测器能够在用户发布该文本后识别其来源。用户可以通过替换、插入或删除来修改生成的文本。我们的目标是从检测器的角度开发一种统计方法,以检测已发布文本是否由 LLM 生成。我们进一步提出一种方法,将已发布文本分割为带水印和不带水印的子串。所提出的方法建立在随机化检验和变点检测技术之上。我们证明,该方法能够确保对 I 类错误和 II 类错误的控制,并能通过找到相应的变点位置准确识别带水印的子串。为验证我们的技术,我们将其应用于若干语言模型生成的文本,这些文本使用从 Google 的 C4 数据集中提取的提示,并取得了令人鼓舞的数值结果。我们在 https://github.com/doccstat/llm-watermark-cpd 公开发布所有代码。
英文摘要:
Watermarking is a technique that involves embedding nearly unnoticeable statistical signals within generated content to help trace its source. This work focuses on a scenario where an untrusted third-party user sends prompts to a trusted language model (LLM) provider, who then generates a text from their LLM with a watermark. This setup makes it possible for a detector to later identify the source of the text if the user publishes it. The user can modify the generated text by substitutions, insertions, or deletions. Our objective is to develop a statistical method to detect if a published text is LLM-generated from the perspective of a detector. We further propose a methodology to segment the published text into watermarked and non-watermarked sub-strings. The proposed approach is built upon randomization tests and change point detection techniques. We demonstrate that our method ensures Type I and Type II error control and can accurately identify watermarked sub-strings by finding the corresponding change point locations. To validate our technique, we apply it to texts generated by several language models with prompts extracted from Google's C4 dataset and obtain encouraging numerical results. We release all code publicly at https://github.com/doccstat/llm-watermark-cpd.
On the Reliability of Watermarks for Large Language Models
Max-Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(蒂宾根人工智能中心);University of Maryland(马里兰大学);Scuola Normale Superiore di Pisa(比萨高等师范学校);New York University(纽约大学);ELLIS Institute Tübingen(ELLIS蒂宾根研究所)
Detecting Post-generation Edits to Watermarked LLM Outputs via Combinatorial Watermarking
Department of Industrial and Systems Engineering, University of Minnesota(工业与系统工程系,明尼苏达大学);Google(谷歌);Department of Electrical and Computer Engineering, Princeton University(电气工程与计算机科学系,普林斯顿大学);Stony Brook University(石溪大学)
Unforgeable Watermarks for Language Models via Robust Signatures
Paul G. Allen School of Computer Science & Engineering, University of Washington(保罗·G·艾伦计算机科学与工程学院,华盛顿大学);Data Science Institute, University of Chicago(数据科学研究所,芝加哥大学)
Revealing Weaknesses in Text Watermarking Through Self-Information Rewrite Attacks
University of British Columbia(不列颠哥伦比亚大学);Vector Institute for AI(向量人工智能研究所);University of Cambridge(剑桥大学);Canada CIFAR AI Chair(加拿大CIFAR人工智能主席);NSERC CRC Chair(NSERC加拿大研究主席)