arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.14604cs.CL
收藏

大型语言模型低熵生成的水印技术:一种无偏且低风险的方法

Watermarking Low-entropy Generation for Large Language Models: An Unbiased and Low-risk Method

University of Delaware(特拉华大学);The University of Hong Kong(香港大学)

Minjia Mao, Dongjun Wei, Zeyu Chen, Xiao Fang, Michael Chau

AI总结:

针对大型语言模型(LLMs)生成内容检测需求,提出无偏水印方法STA-1,可保留原始token分布期望,在低熵场景下降低不理想输出风险,检测无需提示或白盒LLM,兼具高效性与鲁棒性。

摘要:

大型语言模型(LLMs)的最新进展凸显了其被滥用的风险,因此需要准确检测LLM生成的内容。对此,可行的解决方案是向LLMs中注入不易察觉的标识符,即水印。本研究通过提出新颖的“采样一然后接受”(STA-1)方法扩展了现有水印技术。STA-1是一种无偏水印,能在期望上保留原始token分布,且在低熵场景下产生不理想输出的风险低于现有无偏水印。水印检测时,STA-1无需提示或白盒LLM,提供统计保证,检测时间高效,且对多种水印攻击具有鲁棒性。在低熵和高熵数据集上的实验结果表明,STA-1可同时实现上述特性,是LLM水印的理想方案。本研究的实现代码已在线公开。

英文摘要:

Recent advancements in large language models (LLMs) have highlighted the risk of misusing them, raising the need for accurate detection of LLM-generated content. In response, a viable solution is to inject imperceptible identifiers into LLMs, known as watermarks. Our research extends the existing watermarking methods by proposing the novel Sampling One Then Accepting (STA-1) method. STA-1 is an unbiased watermark that preserves the original token distribution in expectation and has a lower risk of producing unsatisfactory outputs in low-entropy scenarios compared to existing unbiased watermarks. In watermark detection, STA-1 does not require prompts or a white-box LLM, provides statistical guarantees, demonstrates high efficiency in detection time, and remains robust against various watermarking attacks. Experimental results on low-entropy and high-entropy datasets demonstrate that STA-1 achieves the above properties simultaneously, making it a desirable solution for watermarking LLMs. Implementation codes for this study are available online.

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

↑