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

一种用于鲁棒且安全的LLM水印的强化学习框架

A Reinforcement Learning Framework for Robust and Secure LLM Watermarking

UC Santa Barbara(加州大学圣塔芭芭拉分校);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室)

Li An, Yujian Liu, Yepeng Liu, Yuheng Bu, Yang Zhang, Shiyu Chang

AI总结:

提出一种端到端强化学习框架,通过锚定机制和正则化项优化LLM水印的绿色/红色令牌列表设计,在标准基准上实现检测性、文本质量、鲁棒性和安全性的最佳权衡,显著提升抗伪造攻击能力。

摘要:

水印技术已成为追踪和验证大型语言模型(LLM)生成文本的一种有前景的解决方案。一种常见的LLM水印方法是构建绿色/红色令牌列表,并分别给对应令牌分配更高或更低的生成概率。然而,现有的大多数水印算法依赖于启发式的绿色/红色令牌列表设计,因为直接使用强化学习(RL)等技术优化列表设计面临若干挑战。首先,理想的水印涉及多个标准,即可检测性、文本质量、对移除攻击的鲁棒性以及对伪造攻击的安全性。直接针对这些标准进行优化会引入许多部分冲突的奖励项,导致收敛过程不稳定。其次,绿色/红色令牌列表选择的巨大动作空间容易受到奖励黑客攻击。在本文中,我们提出了一种端到端的强化学习框架,用于鲁棒且安全的LLM水印。我们的方法采用锚定机制来处理奖励项,以确保训练稳定,并引入额外的正则化项以防止奖励黑客攻击。在标准基准测试上使用两个骨干LLM进行的实验表明,我们的方法在所有标准上实现了最先进的权衡,在抵抗伪造攻击方面有显著改进,且不降低其他标准。我们的代码可在 https://github.com/UCSB-NLP-Chang/RL-watermark 获取。

英文摘要:

Watermarking has emerged as a promising solution for tracing and authenticating text generated by large language models (LLMs). A common approach to LLM watermarking is to construct a green/red token list and assign higher or lower generation probabilities to the corresponding tokens, respectively. However, most existing watermarking algorithms rely on heuristic green/red token list designs, as directly optimizing the list design with techniques such as reinforcement learning (RL) comes with several challenges. First, desirable watermarking involves multiple criteria, i.e., detectability, text quality, robustness against removal attacks, and security against spoofing attacks. Directly optimizing for these criteria introduces many partially conflicting reward terms, leading to an unstable convergence process. Second, the vast action space of green/red token list choices is susceptible to reward hacking. In this paper, we propose an end-to-end RL framework for robust and secure LLM watermarking. Our approach adopts an anchoring mechanism for reward terms to ensure stable training and introduces additional regularization terms to prevent reward hacking. Experiments on standard benchmarks with two backbone LLMs show that our method achieves a state-of-the-art trade-off across all criteria, with notable improvements in resistance to spoofing attacks without degrading other criteria. Our code is available at https://github.com/UCSB-NLP-Chang/RL-watermark.

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

↑