arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.20670cs.LGcs.MMcs.NEstat.ML
收藏

分割来自语言模型的带水印文本

Segmenting Watermarked Texts From Language Models

Texas A&M University(德克萨斯农工大学);Beijing Normal University at Zhuhai(北京师范大学珠海校区)

Xingchi Li, Guanxun Li, Xianyang Zhang

AI总结:

针对用户可能编辑的 LLM 带水印文本,提出基于随机化检验与变点检测的统计检测及分割方法,可控制两类错误并定位水印片段。

摘要:

水印是一种在生成内容中嵌入几乎难以察觉的统计信号以帮助追溯其来源的技术。本工作关注这样一种场景:不受信任的第三方用户向受信任的语言模型(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑