让大模型水印检测结果可公开验证,不泄露密钥且防篡改。
PVMark: Enabling Public Verifiability for LLM Watermarking Schemes
- 用零知识证明实现水印检测过程的公开可验证性。
- 在3种水印方案、4种ZKP协议下均有效,性能无损失。
- 适合需要可信溯源的AI内容审核与版权保护场景。
大型语言模型(LLM)的水印技术可用于识别生成文本来源,缓解模型盗用风险。然而现有方案难以解决信任问题:私有检测无法向公众证明其真实性。根源在于水印检测通常依赖秘密密钥——密钥公开则攻击者可移除水印,密钥私有则检测过程不透明。为破解此困境,本文提出PVMark,基于零知识证明(ZKP)的插件架构,使水印检测可被第三方公开验证,而无需暴露任何密钥。PVMark建立在水印检测‘正确执行’的证明基础上,构建了映射、随机数生成、比较和求和等多类ZKP约束。我们在Python、Rust和Circom中实现了多个变体,覆盖三种水印方案、三种哈希函数和四种ZKP协议,验证了其在多种环境下的有效性。实验表明,PVMark能高效实现对主流水印方案的公开可验证性,同时保持原有水印性能,具备实际部署潜力。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。