arXiv:2604.22438cs.CRcs.AI2026-04ACL

提升大模型水印在低熵任务中的检测效果

SSG: Logit-Balanced Vocabulary Partitioning for LLM Watermarking

  • 按对数几率平衡分组划分词表,增强水印强度
  • 在代码与数学推理数据集上检测率提升显著
  • 适合需要可靠内容溯源的生成任务使用

水印技术已成为追踪大语言模型生成内容作者身份的有力手段。现有方法中,KGW方案因通用性、效率和有效性备受关注。然而,在代码生成和数学推理等低熵场景下,KGW效果显著下降。关键原因在于其随机词表划分机制,而词元预测概率分布决定了可调整程度,即水印强度。我们发现,通过重新设计词表划分算法,可提升该强度的下限。本文提出SSG(Sort-then-Split by Groups)方法,将词表划分为两个对数几率平衡的子集,从而提高每个词元预测的水印强度下限,增强可检测性。在代码生成和数学推理数据集上的实验验证了该方法的有效性。

原文摘要 · Abstract (English)

Watermarking has emerged as a promising technique for tracing the authorship of content generated by large language models (LLMs). Among existing approaches, the KGW scheme is particularly attractive due to its versatility, efficiency, and effectiveness in natural language generation. However, KGW's effectiveness degrades significantly under low-entropy settings such as code generation and mathematical reasoning. A crucial step in the KGW method is random vocabulary partitioning, which enables adjustments to token selection based on specific preferences. Our study revealed that the next-token probability distribution plays an critical role in determining how much, or even whether, we can modify token selection and, consequently, the effectiveness of watermarking. We refer to this characteristic, associated with the probability distribution of each token prediction, as \emph{watermark strength.} In cases of random vocabulary partitioning, the lower bound of watermark strength is dictated by the next-token probability distribution. However, we found that, by redesigning the vocabulary partitioning algorithm, we can potentially raise this lower bound. In this paper, we propose SSG (\textbf{S}ort-then-\textbf{S}plit by \textbf{G}roups), a method that partitions the vocabulary into two logit-balanced subsets. This design lifts the lower bound of watermark strength for each token prediction, thereby improving watermark detectability. Experiments on code generation and mathematical reasoning datasets demonstrate the effectiveness of SSG.

水印技术LLM安全词表划分

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。