面向鲁棒且安全的大语言模型水印的强化学习框架 A Reinforcement Learning Framework for Robust and Secure LLM Watermarking 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-10-23
👁️ 预览文献
💡 AI 中文简介
大语言模型生成文本需要水印来溯源和鉴伪。现有方法靠人工设定“绿/红”词表,效果有限。本文用强化学习端到端优化词表,通过奖励锚定和正则化解决训练不稳定和奖励作弊问题。在两个主流大模型上实验表明,该方法在可检测性、文本质量、抗去除攻击和抗伪造攻击之间取得最优平衡,尤其显著提升了抗伪造能力。
领域自然语言处理 / 大语言模型安全与水印
适合谁读需要一定专业背景(了解大语言模型和强化学习基础)
核心贡献1. 提出端到端强化学习框架,自动优化绿/红词表设计,克服传统启发式方法的局限;2. 引入奖励锚定机制和正则化项,解决多目标冲突导致的训练不稳定和奖励作弊问题。
关键数据在两个骨干大模型的标准基准测试中,该方法在所有评价指标上达到最优权衡,抗伪造攻击能力显著提升,且其他指标(可检测性、文本质量、抗去除攻击)未下降。
推荐理由如果你关心大模型生成文本的版权保护和防伪造,这篇工作用强化学习自动设计水印,效果全面领先,值得一读。
关键词["大语言模型水印", "强化学习", "鲁棒性", "安全性", "文本生成", "奖励锚定"]

原文摘要

查看英文原文摘要

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.