arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.02344cs.CR
收藏

面向基于logits的大语言模型水印的端到端模型

An End-to-End Model for Logits-Based Large Language Models Watermarking

University of Macau(澳门大学)

Kahim Wong, Jicheng Zhou, Jiantao Zhou, Yain-Whar Si

AI总结:

本文提出端到端logits扰动方法,提升大语言模型水印的鲁棒性与文本质量,在改写和下游任务中表现更优。

摘要:

大语言模型的兴起加剧了AIGC的来源追溯和版权保护需求,凸显了先进检测技术的必要性。被动检测方法常面临高误报率,而利用logits或采样操纵的主动水印技术提供了更有效的保护。现有大语言模型水印方法在未修改内容上有效,但当文本被修改时性能显著下降,并可能引入偏见,降低下游任务的LLM性能。这些方法未能在文本质量和鲁棒性之间取得最佳平衡,特别是由于缺乏端到端优化的编码器和解码器。本文提出了一种新的端到端logits扰动方法用于水印LLM生成的文本。通过联合优化,我们的方法在质量和鲁棒性之间实现了更好的平衡。为了解决端到端训练流水线中的不可微操作,我们引入了一种在线提示技术,利用实时LLM作为可微代理。我们的方法在改写和下游任务中表现出更强的鲁棒性,比无失真方法在改写中高出37-39%,平均17.2%,同时在文本困惑度和下游任务中保持与无失真方法相当的文本质量。我们的方法可以轻松推广到不同的LLM。代码可在https://github.com/KahimWong/E2E-LLM-Watermark获取。

英文摘要:

The rise of LLMs has increased concerns over source tracing and copyright protection for AIGC, highlighting the need for advanced detection technologies. Passive detection methods usually face high false positives, while active watermarking techniques using logits or sampling manipulation offer more effective protection. Existing LLM watermarking methods, though effective on unaltered content, suffer significant performance drops when the text is modified and could introduce biases that degrade LLM performance in downstream tasks. These methods fail to achieve an optimal tradeoff between text quality and robustness, particularly due to the lack of end-to-end optimization of the encoder and decoder. In this paper, we introduce a novel end-to-end logits perturbation method for watermarking LLM-generated text. By jointly optimization, our approach achieves a better balance between quality and robustness. To address non-differentiable operations in the end-to-end training pipeline, we introduce an online prompting technique that leverages the on-the-fly LLM as a differentiable surrogate. Our method achieves superior robustness, outperforming distortion-free methods by 37-39% under paraphrasing and 17.2% on average, while maintaining text quality on par with these distortion-free methods in terms of text perplexity and downstream tasks. Our method can be easily generalized to different LLMs. Code is available at https://github.com/KahimWong/E2E-LLM-Watermark.

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

↑