arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.08332cs.CRcs.AI
收藏

修改与生成文本检测:通过水印实现 LLM 输出的双重检测能力

Modification and Generated-Text Detection: Achieving Dual Detection Capabilities for the Outputs of LLM by Watermark

School of Computer Science(计算机学院);HeFei University of Technology(合肥工业大学)

Yuhang Cai, Yaofei Wang, Donghui Hu, Chen Gu

AI总结:

针对 LLM 水印易被篡改生成恶意内容的问题,提出一种对修改敏感的无偏水印技术,通过引入“弃权(不执行)的 token”指标实现修改检测与生成文本检测的双重能力。

摘要:

大型语言模型(LLMs)的发展引发了对潜在滥用的担忧。一种实用的解决方案是在文本中嵌入水印,通过提取水印进行所有权验证。现有方法主要侧重于防御修改攻击,往往忽略了其他欺骗性攻击。例如,攻击者可以篡改带水印的文本以生成有害内容,同时不破坏水印的存在,这可能导致将此恶意内容错误归因于 LLM。这种情况对 LLM 服务提供商构成了严重威胁,凸显了同时实现修改检测和生成文本检测的重要性。因此,我们提出了一种技术,用于检测对修改敏感的无偏水印文本中的修改。我们引入了一个名为“弃权(不执行)的 token”的新指标,用于衡量未包含在水印检测中的 token 数量。当发生修改时,该指标会发生变化,可作为修改的证据。此外,我们改进了水印检测过程,并为无偏水印引入了一种新方法。我们的实验表明,我们能够通过水印实现有效的双重检测能力:修改检测和生成文本检测。

英文摘要:

The development of large language models (LLMs) has raised concerns about potential misuse. One practical solution is to embed a watermark in the text, allowing ownership verification through watermark extraction. Existing methods primarily focus on defending against modification attacks, often neglecting other spoofing attacks. For example, attackers can alter the watermarked text to produce harmful content without compromising the presence of the watermark, which could lead to false attribution of this malicious content to the LLM. This situation poses a serious threat to the LLMs service providers and highlights the significance of achieving modification detection and generated-text detection simultaneously. Therefore, we propose a technique to detect modifications in text for unbiased watermark which is sensitive to modification. We introduce a new metric called ``discarded tokens", which measures the number of tokens not included in watermark detection. When a modification occurs, this metric changes and can serve as evidence of the modification. Additionally, we improve the watermark detection process and introduce a novel method for unbiased watermark. Our experiments demonstrate that we can achieve effective dual detection capabilities: modification detection and generated-text detection by watermark.

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

↑