arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.17655stat.MLcs.ITcs.LGmath.ITmath.STstat.MEstat.TH
收藏

textGrain水印更难检测:求和检验仍能最优检测吗?

textGrain watermarking is harder to detect: can sum-tests still do it optimally?

University of Pennsylvania(宾夕法尼亚大学)

Swapnaneel Bhattacharyya, Soham Bonnerjee

AI总结:

本文研究textGrain水印的可检测性,发现其可检测区域小于Gumbel-max水印,求和检测器在边界处最优但无法达到最优指数速率,提出的加权多尺度二项扫描方法可实现最优检测。

摘要:

水印技术会在大语言模型生成的文本中嵌入不可感知的信号,该信号可通过密钥进行统计检测。近期的textGrain水印(Li等人,2026b)通过显式熵预算将该信号与模型的采样熵进行校准,结合了Red-Grain的随机性与Gumbel-max水印的无偏性,其配套报告提出了一种对关键统计量求和的检测器。本文研究了在人类编辑(建模为稀疏混合,其中εₙ≈n⁻ᵖ比例的位置保留水印,标记不确定性以n⁻q衰减)后,textGrain水印可被检测的时机与效率。首先,熵校准存在代价:textGrain的极小极大检测边界为p+q=1/2,其可检测区域严格小于Gumbel-max与最大耦合水印(边界为2p+q=1);该代价源于textGrain的构造而非熵校准本身,具有相同熵损失的无偏方案在textGrain不可检测的区域仍可被检测。其次,令人惊讶的是,当传输列数固定时,该损失使求和检测器在边界处达到最优,这与Gumbel-max的情况不同;当列数增长且熵预算未消失时,可检测区域扩大,但求和检测器的可检测区域不扩大。第三,对于固定编辑比例,本文刻画了II类错误衰减的最优指数速率,表明求和检测器在每个固定备择假设下均严格达不到该速率。最后,本文提出了一种加权多尺度二项扫描方法,该方法适用于有限样本,无需知晓下一个标记分布、熵预算或编辑比例,可达到所有上述检测边界与最优指数。

英文摘要:

Watermarking embeds an imperceptible signal in text from large language models that is statistically detectable with a secret key. The recent textGrain watermark (Li et. al. (2026b)) calibrates this signal against the model's sampling entropy through an explicit entropy budget, combining the stochasticity of Red-Green and the unbiasedness of Gumbel-max watermarks, and its accompanying report proposes a detector that sums pivotal statistics. We study when, and how efficiently, textGrain can be detected after human edits, modeled as a sparse mixture in which a fraction $\varepsilon_n\asymp n^{-p}$ of positions retain the watermark and token uncertainty decays as $n^{-q}$. First, entropy calibration comes at a cost: the minimax detection boundary of textGrain is $p+q=1/2$, so its detectable region is strictly smaller than that of Gumbel-max and maximal-coupling watermarks, whose boundary is $2p+q=1$. This cost stems from textGrain's construction rather than from entropy calibration itself: an unbiased scheme with the same entropy loss remains detectable where textGrain is not. Second, perhaps surprisingly, this loss makes the sum detector optimal at the boundary when the number of transport columns is fixed, unlike for Gumbel-max. When the number of columns grows and the entropy budget does not vanish, the detectable region expands while that of the sum detector does not. Third, for a fixed edit fraction, we characterize the optimal exponential rate of type II error decay and show that the sum detector falls strictly short of it at every fixed alternative. Finally, we propose a weighted multiscale binomial scan, valid in finite samples and needing no knowledge of the next-token distributions, entropy budget, or edit fraction; it attains every detection boundary above and the optimal exponent.

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

↑