arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.13927cs.CL
收藏

面向大语言模型的自适应文本水印

Adaptive Text Watermark for Large Language Models

University of Florida(佛罗里达大学)

Yepeng Liu, Yuheng Bu

AI总结:

本文提出一种自适应文本水印策略,通过辅助模型对高熵token分布加水印,并利用语义映射模型按比例调整输出logits,在保持文本质量的同时实现安全、鲁棒且无需提示或模型先验知识的水印检测。

摘要:

大语言模型(LLMs)的进步引发了人们对AI生成文本被滥用的日益担忧,而针对LLM生成文本的水印技术已成为一种潜在的解决方案。然而,在保持强安全性、鲁棒性以及无需事先了解提示或模型即可检测水印的能力的同时,生成高质量的水印文本仍具有挑战性。本文提出了一种自适应水印策略来解决这一问题。为了提高文本质量并保持鲁棒性,我们利用辅助模型测量熵值,对高熵的token分布自适应地添加水印,同时保持低熵的token分布不变。为了安全起见并进一步最小化水印对文本质量的影响,我们没有使用由随机密钥生成的固定绿/红名单(这种名单容易受到解密和伪造攻击),而是基于先前生成文本的语义嵌入,通过精心设计的语义映射模型,按比例自适应地放大输出logits。我们在多种LLM上进行的实验表明,我们的方法在鲁棒性方面达到了与现有水印方法相当的性能。此外,我们的方法生成的文本在困惑度上与未加水印的LLM相当,同时在各种攻击下仍能保持安全性。

英文摘要:

The advancement of Large Language Models (LLMs) has led to increasing concerns about the misuse of AI-generated text, and watermarking for LLM-generated text has emerged as a potential solution. However, it is challenging to generate high-quality watermarked text while maintaining strong security, robustness, and the ability to detect watermarks without prior knowledge of the prompt or model. This paper proposes an adaptive watermarking strategy to address this problem. To improve the text quality and maintain robustness, we adaptively add watermarking to token distributions with high entropy measured using an auxiliary model and keep the low entropy token distributions untouched. For the sake of security and to further minimize the watermark's impact on text quality, instead of using a fixed green/red list generated from a random secret key, which can be vulnerable to decryption and forgery, we adaptively scale up the output logits in proportion based on the semantic embedding of previously generated text using a well designed semantic mapping model. Our experiments involving various LLMs demonstrate that our approach achieves comparable robustness performance to existing watermark methods. Additionally, the text generated by our method has perplexity comparable to that of \emph{un-watermarked} LLMs while maintaining security even under various attacks.

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

↑