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

WaterMod:用于概率平衡的大语言模型水印的模块化令牌排名划分

WaterMod: Modular Token-Rank Partitioning for Probability-Balanced LLM Watermarking

Shinwoo Park, Hyejin Park, Hyeseon Ahn, Yo-Sub Han

AI总结:

针对传统基于logit的LLM水印因随机划分排除高概率令牌降低流畅度的问题,WaterMod提出概率感知模块化令牌排名划分方法,支持二进制归属与多位载荷,在多任务中保持生成质量并实现强检测性能。

摘要:

大型语言模型现在能够以人类水平的流畅度起草新闻、法律分析和软件代码。与此同时,《欧盟人工智能法案》等法规要求每个合成文本段落都带有一个不可察觉、可机器验证的来源标记。传统的基于logit的水印通过在每个解码步骤选择一个伪随机绿色词汇表并提升其logit来满足这一要求,但随机划分可能会排除概率最高的令牌,从而降低流畅度。WaterMod通过一种概率感知的模块化规则缓解了这一限制。词汇表首先按模型概率降序排序;然后通过余数排名mod k对生成的排名进行划分,这将相邻的(因此语义相似的)令牌分布到不同的类别中。对一个选定的类别应用一个小幅度的固定偏差。在零位设置(k=2)中,一个熵自适应门选择偶数或奇数奇偶校验作为绿色列表。由于前两名令牌属于不同的奇偶校验,这种选择在嵌入可检测信号的同时,保证至少有一个高概率令牌可供采样。在多位设置(k>2)中,当前有效载荷数字d选择排名满足rank mod k = d的颜色类别。对该类别的logit进行偏差调整,每个解码步骤恰好嵌入一个k进制数字,从而实现细粒度的来源追踪。因此,相同的模块化算术既支持二进制归属,也支持丰富的有效载荷。实验结果表明,WaterMod在零位和多位设置中始终获得强大的水印检测性能,同时保持生成质量。这种稳健性在一系列任务中都成立,包括自然语言生成、数学推理和代码合成。我们的代码和数据可在https://github.com/Shinwoo-Park/WaterMod获取。

英文摘要:

Large language models now draft news, legal analyses, and software code with human-level fluency. At the same time, regulations such as the EU AI Act mandate that each synthetic passage carry an imperceptible, machine-verifiable mark for provenance. Conventional logit-based watermarks satisfy this requirement by selecting a pseudorandom green vocabulary at every decoding step and boosting its logits, yet the random split can exclude the highest-probability token and thus erode fluency. WaterMod mitigates this limitation through a probability-aware modular rule. The vocabulary is first sorted in descending model probability; the resulting ranks are then partitioned by the residue rank mod k, which distributes adjacent-and therefore semantically similar-tokens across different classes. A fixed bias of small magnitude is applied to one selected class. In the zero-bit setting (k=2), an entropy-adaptive gate selects either the even or the odd parity as the green list. Because the top two ranks fall into different parities, this choice embeds a detectable signal while guaranteeing that at least one high-probability token remains available for sampling. In the multi-bit regime (k>2), the current payload digit d selects the color class whose ranks satisfy rank mod k = d. Biasing the logits of that class embeds exactly one base-k digit per decoding step, thereby enabling fine-grained provenance tracing. The same modular arithmetic therefore supports both binary attribution and rich payloads. Experimental results demonstrate that WaterMod consistently attains strong watermark detection performance while maintaining generation quality in both zero-bit and multi-bit settings. This robustness holds across a range of tasks, including natural language generation, mathematical reasoning, and code synthesis. Our code and data are available at https://github.com/Shinwoo-Park/WaterMod.

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

↑