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

沙中之水印:生成式模型强水印的不可能性

Watermarks in the Sand: Impossibility of Strong Watermarking for Generative Models

Harvard University(哈佛大学);George Mason University(乔治·马歇尔大学);Sapienza University of Rome(罗马大学)

Hanlin Zhang, Benjamin L. Edelman, Danilo Francati, Daniele Venturi, Giuseppe Ateniese, Boaz Barak

AI总结:

本文证明了在自然假设下生成式模型的强水印方案无法实现,提出了一种仅需质量预言机和扰动预言机的通用高效攻击,并成功移除了三种大语言模型水印且仅导致轻微质量下降。

摘要:

对生成式模型进行水印处理是指在模型输出中植入一种统计信号(水印),以便日后能够验证该输出是由给定模型生成的。强水印方案满足这样一个属性:计算能力受限的攻击者无法在不导致显著质量下降的情况下擦除水印。在本文中,我们研究了强水印方案的可能性与不可能性。我们证明,在定义明确且自然的假设下,强水印是无法实现的。即使在私有检测算法设置中,即水印插入和检测算法共享一个攻击者未知的密钥时,这一结论依然成立。为了证明这一结果,我们引入了一种通用的高效水印攻击方法;攻击者无需知道方案的私钥,甚至无需知道使用的是哪种方案。我们的攻击基于两个假设:(1)攻击者可以访问一个“质量预言机”,能够评估候选输出是否是对提示词的高质量响应;(2)攻击者可以访问一个“扰动预言机”,该预言机能够以不可忽略的概率修改输出且保持质量,并在高质量输出上引发高效混合的随机游走。我们论证了,这两种假设在实践中都可以被计算能力弱于水印模型本身的攻击者所满足,且攻击者对该模型仅有黑盒访问权限。此外,随着模型在能力和模态上的增长,我们的假设随着时间的推移可能只会更容易被满足。我们通过将攻击实例化,攻击了大型语言模型的三个现有水印方案:Kirchenbauer et al. (2023)、Kuditipudi et al. (2023) 和 Zhao et al. (2023),从而证明了我们攻击的可行性。同一种攻击成功移除了所有三种方案植入的水印,且仅引起轻微的质量下降。

英文摘要:

Watermarking generative models consists of planting a statistical signal (watermark) in a model's output so that it can be later verified that the output was generated by the given model. A strong watermarking scheme satisfies the property that a computationally bounded attacker cannot erase the watermark without causing significant quality degradation. In this paper, we study the (im)possibility of strong watermarking schemes. We prove that, under well-specified and natural assumptions, strong watermarking is impossible to achieve. This holds even in the private detection algorithm setting, where the watermark insertion and detection algorithms share a secret key, unknown to the attacker. To prove this result, we introduce a generic efficient watermark attack; the attacker is not required to know the private key of the scheme or even which scheme is used. Our attack is based on two assumptions: (1) The attacker has access to a "quality oracle" that can evaluate whether a candidate output is a high-quality response to a prompt, and (2) The attacker has access to a "perturbation oracle" which can modify an output with a nontrivial probability of maintaining quality, and which induces an efficiently mixing random walk on high-quality outputs. We argue that both assumptions can be satisfied in practice by an attacker with weaker computational capabilities than the watermarked model itself, to which the attacker has only black-box access. Furthermore, our assumptions will likely only be easier to satisfy over time as models grow in capabilities and modalities. We demonstrate the feasibility of our attack by instantiating it to attack three existing watermarking schemes for large language models: Kirchenbauer et al. (2023), Kuditipudi et al. (2023), and Zhao et al. (2023). The same attack successfully removes the watermarks planted by all three schemes, with only minor quality degradation.

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

↑