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

WaterSearch:探索种子池以改进LLM水印中质量-可检测性权衡

WaterSearch: Exploring Seed Pooling for Improving the Quality-Detectability Trade-off in LLM Watermarking

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Peng Cheng Laboratory(鹏城实验室)

Yukang Lin, Jiahao Shao, Shuoran Jiang, Wentao Zhu, Bingjie Lu, Xiangping Wu, Joanna Siebert, Qingcai Chen

AI总结:

本文提出WaterSearch框架,通过控制种子池实现句子级搜索,联合优化分布保真度和水印信号特征,在保持高可检测性的同时显著提升文本质量。

摘要:

水印技术作为大型语言模型(LLMs)生成文本的关键保护措施,通过将可识别信号嵌入模型输出,实现可靠归因并增强机器生成内容的安全性。现有方法通常通过操纵令牌生成概率来嵌入信号,尽管有效,但本质上面临可检测性与文本质量之间的权衡:鲁棒水印所需的信号强度和随机性往往会降低下游任务的性能。本文设计了一种新颖的嵌入方案,通过控制种子池促进水印文本的多样化并行生成。基于该方案,我们提出WaterSearch,一种句子级、基于搜索的水印框架,可适应多种现有方法。WaterSearch通过联合优化两个关键方面来提升文本质量:1)分布保真度;2)水印信号特性。此外,WaterSearch辅以句子级检测方法,具有强大的攻击鲁棒性。我们在三个流行LLM上评估了该方法,涵盖十个不同任务。大量实验表明,在水印可检测强度为95%时,我们的方法相比最先进基线实现了平均51.01%的性能提升。在短文本生成和低熵输出生成等挑战性场景中,我们的方法分别获得了47.78%和36.47%的性能增益。此外,在包括插入、同义词替换和释义攻击的不同攻击场景下,WaterSearch保持高可检测性,进一步验证了其强大的抗攻击能力。我们的代码可在https://github.com/Yukang-Lin/WaterSearch获取。

英文摘要:

Watermarking acts as a critical safeguard in text generated by Large Language Models (LLMs). By embedding identifiable signals into model outputs, watermarking enables reliable attribution and enhances the security of machine-generated content. Existing approaches typically embed signals by manipulating token generation probabilities. Despite their effectiveness, these methods inherently face a trade-off between detectability and text quality: the signal strength and randomness required for robust watermarking tend to degrade the performance of downstream tasks. In this paper, we design a novel embedding scheme that controls seed pools to facilitate diverse parallel generation of watermarked text. Based on that scheme, we propose WaterSearch, a sentence-level, search-based watermarking framework adaptable to a wide range of existing methods. WaterSearch enhances text quality by jointly optimizing two key aspects: 1) distribution fidelity and 2) watermark signal characteristics. Furthermore, WaterSearch is complemented by a sentence-level detection method with strong attack robustness. We evaluate our method on three popular LLMs across ten diverse tasks. Extensive experiments demonstrate that our method achieves an average performance improvement of 51.01\% over state-of-the-art baselines at a watermark detectability strength of 95\%. In challenging scenarios such as short text generation and low-entropy output generation, our method yields performance gains of 47.78\% and 36.47\%, respectively. Moreover, under different attack senarios including insertion, synonym substitution and paraphrase attasks, WaterSearch maintains high detectability, further validating its robust anti-attack capabilities. Our code is available at \href{https://github.com/Yukang-Lin/WaterSearch}{https://github.com/Yukang-Lin/WaterSearch}.

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

↑