一种不可伪造的公开可验证大语言模型水印
An Unforgeable Publicly Verifiable Watermark for Large Language Models
AI总结:
针对现有水印检测依赖密钥易被伪造的问题,提出UPV算法,用双神经网络分离生成与检测并共享嵌入参数,实现高精度高效检测且难以伪造。
摘要:
近年来,针对大语言模型(LLM)的文本水印算法被提出,以缓解LLM生成文本的潜在危害,包括虚假新闻和版权问题。然而,当前的水印检测算法需要水印生成过程中使用的密钥,这使得它们在公开检测时容易受到安全漏洞和伪造的影响。为解决这一局限,我们提出了一种名为UPV的不可伪造的公开可验证水印算法,该算法使用两个不同的神经网络分别进行水印生成和检测,而不是在两个阶段使用相同的密钥。同时,生成网络和检测网络之间共享词元嵌入参数,这使得检测网络能够非常高效地实现高精度。实验表明,我们的算法通过神经网络实现了高检测精度和计算效率。后续分析证实了从检测网络伪造水印所涉及的高复杂性。我们的代码可在https://github.com/THU-BPM/unforgeable_watermark获取。此外,我们的算法也可通过MarkLLM访问(https://github.com/THU-BPM/MarkLLM)。
英文摘要:
Recently, text watermarking algorithms for large language models (LLMs) have been proposed to mitigate the potential harms of text generated by LLMs, including fake news and copyright issues. However, current watermark detection algorithms require the secret key used in the watermark generation process, making them susceptible to security breaches and counterfeiting during public detection. To address this limitation, we propose an unforgeable publicly verifiable watermark algorithm named UPV that uses two different neural networks for watermark generation and detection, instead of using the same key at both stages. Meanwhile, the token embedding parameters are shared between the generation and detection networks, which makes the detection network achieve a high accuracy very efficiently. Experiments demonstrate that our algorithm attains high detection accuracy and computational efficiency through neural networks. Subsequent analysis confirms the high complexity involved in forging the watermark from the detection network. Our code is available at \href{https://github.com/THU-BPM/unforgeable_watermark}{https://github.com/THU-BPM/unforgeable\_watermark}. Additionally, our algorithm could also be accessed through MarkLLM \citep{pan2024markllm} \footnote{https://github.com/THU-BPM/MarkLLM}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。