PVMark:实现LLM水印方案的公开可验证性
PVMark: Enabling Public Verifiability for LLM Watermarking Schemes
摘要:
针对大语言模型(LLM)的水印方案已经被提出来识别所生成的文本的来源,从而减轻模型盗窃所带来的潜在威胁。然而,目前的水印解决方案很难解决的信任问题:非公开水印检测不能证明自己忠实地进行检测。我们观察到,这是由于秘密密钥主要用于水印检测-它不能是公开的,或对手可能会发起删除攻击提供的密钥;也不能是私人的,或水印检测是不透明的公众。为了解决这一难题,我们提出了PVMark,一个基于零知识证明(ZKP)的插件,使水印检测过程可以由第三方公开验证,而不会泄露任何秘密密钥。PVMark取决于水印检测的“正确执行”的证明,在该水印检测的基础上建立了一组ZKP约束,包括映射、随机数生成、比较和求和。我们在Python,Rust和Circom中实现了PVMark的多种变体,涵盖了三种水印方案,三种哈希函数和四种ZKP协议的组合,以显示我们的方法在各种情况下有效地工作。通过实验结果,PVMark有效地实现了对最先进的LLM水印方案的公开验证,同时又不影响水印性能,有望在实践中部署。
英文摘要:
Watermarking schemes for large language models (LLMs) have been proposed to identify the source of the generated text, mitigating the potential threats emerged from model theft. However, current watermarking solutions hardly resolve the trust issue: the non-public watermark detection cannot prove itself faithfully conducting the detection. We observe that it is attributed to the secret key mostly used in the watermark detection -- it cannot be public, or the adversary may launch removal attacks provided the key; nor can it be private, or the watermarking detection is opaque to the public. To resolve the dilemma, we propose PVMark, a plugin based on zero-knowledge proof (ZKP), enabling the watermark detection process to be publicly verifiable by third parties without disclosing any secret key. PVMark hinges upon the proof of `correct execution' of watermark detection on which a set of ZKP constraints are built, including mapping, random number generation, comparison, and summation. We implement multiple variants of PVMark in Python, Rust and Circom, covering combinations of three watermarking schemes, three hash functions, and four ZKP protocols, to show our approach effectively works under a variety of circumstances. By experimental results, PVMark efficiently enables public verifiability on the state-of-the-art LLM watermarking schemes yet without compromising the watermarking performance, promising to be deployed in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。