arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.15976cs.CRcs.AI
收藏

学习加水印:一种通过多目标优化实现的大语言模型选择性水印框架

Learning to Watermark: A Selective Watermarking Framework for Large Language Models via Multi-Objective Optimization

Harbin Institute of Technology, Shenzhen, China(哈尔滨工业大学(深圳));Lingnan University(岭大大学);Zhejiang University(浙江大学);Shaqra University, Saudi Arabia(沙迦大学)

Chenrui Wang, Junyi Shu, Billy Chiu, Yu Li, Saleh Alharbi, Min Zhang, Jing Li

AI总结:

针对LLM水印可检测性与文本质量的权衡,本文提出LTW选择性水印框架,利用轻量级网络和多目标优化自适应决定加水印位置,在不降低检测能力的同时显著改善文本质量。

摘要:

LLM的快速发展引发了人们对其潜在滥用的担忧,从而催生了各类通常具备高可检测性的水印方案。然而,现有水印技术往往面临水印可检测性与生成文本质量之间的权衡。本文提出 Learning to Watermark(LTW,学习加水印),这是一种新颖的选择性水印框架,利用多目标优化有效平衡这些相互竞争的目标。LTW包含一个轻量级网络,通过分析句子嵌入、token熵和当前水印比例,自适应地决定何时施加水印。该网络的训练涉及两个专门构造的损失函数,用于引导模型走向Pareto最优解,从而协调水印可检测性与文本质量。通过将LTW与两种基线水印方法相结合,实验评估表明,LTW在不损害可检测性的情况下显著提升了文本质量。我们的选择性水印方法为设计LLM水印提供了新视角,并为水印保持高文本质量提供了途径。代码公开于:https://github.com/fattyray/learning-to-watermark

英文摘要:

The rapid development of LLMs has raised concerns about their potential misuse, leading to various watermarking schemes that typically offer high detectability. However, existing watermarking techniques often face trade-off between watermark detectability and generated text quality. In this paper, we introduce Learning to Watermark (LTW), a novel selective watermarking framework that leverages multi-objective optimization to effectively balance these competing goals. LTW features a lightweight network that adaptively decides when to apply the watermark by analyzing sentence embeddings, token entropy, and current watermarking ratio. Training of the network involves two specifically constructed loss functions that guide the model toward Pareto-optimal solutions, thereby harmonizing watermark detectability and text quality. By integrating LTW with two baseline watermarking methods, our experimental evaluations demonstrate that LTW significantly enhances text quality without compromising detectability. Our selective watermarking approach offers a new perspective for designing watermarks for LLMs and a way to preserve high text quality for watermarks. The code is publicly available at: https://github.com/fattyray/learning-to-watermark

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

↑