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

通过上下文生成状态感知提升大语言模型的水印质量

Enhancing Watermarking Quality for LLMs via Contextual Generation States Awareness

Peiru Yang, Xintian Li, Wanchun Ni, Jinhua Yin, Huili Wang, Guoshun Nan, Shangguang Wang, Yongfeng Huang, Tao Qi

AI总结:

针对LLM水印依赖启发式规则导致token选择次优和文本质量下降的问题,提出即插即用的CAW框架,依据上下文生成状态评估各token水印容量并动态调整嵌入,兼顾检测率与生成质量。

摘要:

近期水印技术的进展使得将秘密信息嵌入AI生成文本(AIGT)成为可能,并成为AIGT检测的重要机制。现有方法通常干预大语言模型(LLM)的生成过程,以在生成文本中嵌入信号。然而,这些方法往往依赖启发式规则,可能导致次优的token选择,并进而造成生成内容质量下降。本文提出一种即插即用的上下文生成状态感知水印框架(CAW),可动态调整嵌入过程。它能够无缝集成到多种现有水印方法中,以提升生成质量。首先,CAW包含一个水印容量评估器,通过分析上下文生成状态,评估在不同token位置嵌入信息所产生的影响。此外,我们引入多分支预生成机制,以避免所提出的水印策略造成延迟。在此基础上,CAW可根据每个token经评估的水印容量动态调整水印过程,从而尽可能降低内容质量的潜在退化。在跨多个领域的数据集上进行的大量实验验证了该方法的有效性,结果表明其在检测率和生成质量两方面均优于多种基线方法。

英文摘要:

Recent advancements in watermarking techniques have enabled the embedding of secret messages into AI-generated text (AIGT), serving as an important mechanism for AIGT detection. Existing methods typically interfere with the generation processes of large language models (LLMs) to embed signals within the generated text. However, these methods often rely on heuristic rules, which can result in suboptimal token selection and a subsequent decline in the quality of the generated content. In this paper, we introduce a plug-and-play contextual generation states-aware watermarking framework (CAW) that dynamically adjusts the embedding process. It can be seamlessly integrated with various existing watermarking methods to enhance generation quality. First, CAW incorporates a watermarking capacity evaluator, which can assess the impact of embedding messages at different token positions by analyzing the contextual generation states. Furthermore, we introduce a multi-branch pre-generation mechanism to avoid the latency caused by the proposed watermarking strategy. Building on this, CAW can dynamically adjust the watermarking process based on the evaluated watermark capacity of each token, thereby minimizing potential degradation in content quality. Extensive experiments conducted on datasets across multiple domains have verified the effectiveness of our method, demonstrating superior performance compared to various baselines in terms of both detection rate and generation quality.

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

↑