arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.13000cs.LGcs.AIcs.CLcs.CR
收藏

Duwak:大语言模型中的双重水印

Duwak: Dual Watermarks in Large Language Models

TU Delft(代尔夫特理工大学);IBM Research(IBM研究院)

Chaoyi Zhu, Jeroen Galjaard, Pin-Yu Chen, Lydia Y. Chen

AI总结:

Duwak 通过在 token 概率分布和采样方案中嵌入双重水印,并利用对比搜索减少 token 重复,在大语言模型中实现了更高效、更鲁棒且文本质量更高的水印检测,所需 token 最多减少 70%。

摘要:

随着大语言模型(LLM)越来越多地用于文本生成任务,审计其使用情况、治理其应用并减轻其潜在危害变得至关重要。现有水印技术已被证明能够在不大幅影响生成文本质量和语义的情况下嵌入单一的人类不可感知且机器可检测的模式。然而,水印检测的效率,即在显著性和对后期编辑的鲁棒性条件下断言检测所需的最少 token 数量,仍然存在争议。在本文中,我们提出 Duwak,通过在 token 概率分布和采样方案中同时嵌入双重秘密模式,从根本上提升水印的效率和质量。为了缓解因偏向某些 token 而导致的表达退化,我们设计了一种对比搜索来为采样方案添加水印,从而最小化 token 重复并增强多样性。我们从理论上解释了 Duwak 中两种水印之间的相互依赖关系。我们在 Llama2 上对 Duwak 进行了广泛评估,涵盖各种后期编辑攻击,并与四种最先进的水印技术及其组合进行对比。结果表明,Duwak 标记的文本在检测所需的最低 token 数量下实现了最高的水印文本质量,所需 token 比现有方法最多减少 70%,尤其是在后期改写攻击下。

英文摘要:

As large language models (LLM) are increasingly used for text generation tasks, it is critical to audit their usages, govern their applications, and mitigate their potential harms. Existing watermark techniques are shown effective in embedding single human-imperceptible and machine-detectable patterns without significantly affecting generated text quality and semantics. However, the efficiency in detecting watermarks, i.e., the minimum number of tokens required to assert detection with significance and robustness against post-editing, is still debatable. In this paper, we propose, Duwak, to fundamentally enhance the efficiency and quality of watermarking by embedding dual secret patterns in both token probability distribution and sampling schemes. To mitigate expression degradation caused by biasing toward certain tokens, we design a contrastive search to watermark the sampling scheme, which minimizes the token repetition and enhances the diversity. We theoretically explain the interdependency of the two watermarks within Duwak. We evaluate Duwak extensively on Llama2 under various post-editing attacks, against four state-of-the-art watermarking techniques and combinations of them. Our results show that Duwak marked text achieves the highest watermarked text quality at the lowest required token count for detection, up to 70% tokens less than existing approaches, especially under post paraphrasing.

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

↑