SOLO 提出新水印方案:解决 LLM 多次采样下的响应耦合问题
SOLO: Towards Sample-Faithful and Detectable LLM Watermarking under Repeated Sampling via Content-Anchored Single-Owner Contexts
做 LLM 检测或部署 best-of-n、self-consistency 这类多次采样应用的人该看看。作者发现现有 distortion-free 水印在多响应场景下会互相耦合,SOLO 用 min-hash 锚定 context 解决了这一点,检测效果比 key pools 和 context history 都好,代码开源可直接试。
一篇 arXiv 论文指出,部署中的 distortion-free 水印在应用对同一 prompt 进行多次采样(用于 self-consistency、best-of-n、不确定性估计)时会产生响应耦合:答案模板让所有响应在回答前用相同的 context 查询水印,跨响应碰撞从“罕见”变成常态。现有的 key pools 方案能减少耦合,但代价是引入多重检验问题;跨请求共享 context history 的方案则会让大量位置无法加水印。
论文提出的 SOLO 保留请求级别的 context history,但通过 min-hash 选出的内容锚定 keyed contexts,使兄弟响应很少竞争同一 context,随机编辑的影响也被限制在局部。其响应的联合分布等同于独立未加水印的响应,每个响应可用单一 key 检测。
实验覆盖 3 个模型家族的 5 个语言模型和 3 个基准:SOLO 保留了 self-consistency 与不确定性估计能力,在 1% 假阳性率下,多数任务的检测数量超过 four-token key pools(包括随机编辑 10% token 的情况),在多数干净任务上也超过 context history 方案。代码已在 GitHub 开源。
SOLO: Towards Sample-Faithful and Detectable LLM Watermarking under Repeated Sampling via Content-Anchored Single-Owner Contexts
Providers watermark the outputs of large language models, while applications sample many responses per prompt for self-consistency, best-of-n selection, and uncertainty estimation. We show that deployed configurations of distortion-free watermarks, which deduplicate keyed contexts only within a response, couple the responses of a request: answer templates make all responses query the watermark with the same context before the answer, so collisions across responses, usually assumed rare, become the norm. Key pools reduce or avoid the coupling at the cost of multiple testing, and the exact remedy of a context history shared across the request leaves many positions unwatermarked. We propose SOLO, which keeps a request-scoped context history but anchors its keyed contexts on content selected by min-hash, so that siblings rarely compete for a context and random edits stay local. Its responses are jointly distributed as independent unwatermarked responses, each detectable with a single key. On five language models from three families and three benchmarks, SOLO preserves self-consistency and uncertainty estimation and, at a 1% false positive rate, detects more responses than four-token key pools on most tasks, also after randomly editing 10% of the tokens, and more than the context history on most clean tasks. Code is available at https://github.com/ZhongliangGuo/solo-watermark.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include LLM watermarking, min-hash, SOLO, best-of-n.
Source attribution: curated from arXiv cs.AI (@Zhongliang Guo, Yan Lin, Yifei Qian, Shuai Zhao, Luwei Xiao, Daizong Liu, Chun Pong Lau).