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

破解大语言模型中的无失真水印

Breaking Distortion-free Watermarks in Large Language Models

J.P.Morgan AI Research(摩根大通人工智能研究)

Shayleen Reynolds, Hengzhi He, Dung Daniel T. Ngo, Saheed Obitayo, Niccolò Dalmasso, Guang Cheng, Vamsi K. Potluru, Manuela Veloso

AI总结:

本研究针对无失真水印这一主流LLM水印方案,提出用自适应提示和基于排序的算法恢复水印密钥,可实施欺骗攻击,其实证结果挑战了该水印技术鲁棒性与可用性的现有理论主张。

摘要:

近年来,大语言模型(LLM)水印技术已成为防范AI生成内容的一种颇具吸引力的防护手段,在诸多现实领域拥有良好应用前景。然而,越来越多的人担忧,当前的LLM水印方案易受想要逆向工程水印机制的专业对手攻击。此前破解或窃取LLM水印的研究主要聚焦于Kirchenbauer等人(2023)提出的分布修改算法,该算法在采样前对logit向量进行扰动。在本研究中,我们聚焦于逆向工程另一种主流的LLM水印方案——无失真水印(distortion-free watermarking,Kuditipudi等人2024年提出),该方案通过使用隐藏的水印密钥序列保留底层词元分布。我们证明,即便采用更复杂的水印方案,仍有可能攻破LLM并实施欺骗攻击,即生成大量可被溯源至原始带水印LLM的(潜在有害的)文本。具体而言,我们提出使用自适应提示和基于排序的算法,精准恢复用于LLM水印的底层密钥。我们在LLAMA-3.1-8B-Instruct、Mistral-7B-Instruct、Gemma-7b和OPT-125M上的实证研究结果,对当前关于无失真水印技术鲁棒性与可用性的理论主张提出了挑战。

英文摘要:

In recent years, LLM watermarking has emerged as an attractive safeguard against AI-generated content, with promising applications in many real-world domains. However, there are growing concerns that the current LLM watermarking schemes are vulnerable to expert adversaries wishing to reverse-engineer the watermarking mechanisms. Prior work in breaking or stealing LLM watermarks mainly focuses on the distribution-modifying algorithm of Kirchenbauer et al. (2023), which perturbs the logit vector before sampling. In this work, we focus on reverse-engineering the other prominent LLM watermarking scheme, distortion-free watermarking (Kuditipudi et al. 2024), which preserves the underlying token distribution by using a hidden watermarking key sequence. We demonstrate that, even under a more sophisticated watermarking scheme, it is possible to compromise the LLM and carry out a spoofing attack, i.e. generate a large number of (potentially harmful) texts that can be attributed to the original watermarked LLM. Specifically, we propose using adaptive prompting and a sorting-based algorithm to accurately recover the underlying secret key for watermarking the LLM. Our empirical findings on LLAMA-3.1-8B-Instruct, Mistral-7B-Instruct, Gemma-7b, and OPT-125M challenge the current theoretical claims on the robustness and usability of the distortion-free watermarking techniques.

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

↑