KeyedLex:按句取密钥的 LLM 文本水印方案,抵御读设计选攻击
Know the Design, Pick the Attack: Sentence-Keyed Watermarks for LLMs
KeyedLex 是一种从上一句语法中读取密钥的 LLM 文本水印方案,检测器无需精确恢复密钥。面对依据公开设计在“改写抹除”与“学习伪造”间择优的攻击,现有对比水印全部失效,而 KeyedLex 在两个测试模型上均优于所有对比方案,信号损失约一半,最佳替代方案则损失三分之二,且文本质量成本不高于已知最佳水印。
arXiv:2611.34505v1 Announce Type: new Abstract: A watermark lets the provider of a language model recognise the text its model wrote, which matters more as generated text becomes hard to tell from human writing: provenance underpins academic integrity, the fight against misinformation and new regulation. Providers have started to watermark the text of their models, and to explain how their watermarks work. Explaining a watermark, however, also tells an attacker how to break it, and there are two ways to do so: reword the text to erase the mark, or learn the mark and copy it onto text the model never wrote. Each attack has been studied on its own. We study an attacker that reads the published design to choose between them: it erases the watermarks that are hard to learn and forges the ones that survive rewording. Against it, every existing watermark we compare fails. We propose KeyedLex, which reads its secret key from the grammar of the previous sentence, which rewording changes little, and whose detector does not need to recover the key exactly. It outperforms every watermark we compare on both models we test, losing about half of its signal where the best alternative loses two thirds, at no extra cost in text quality over the best-known watermarks.
来源:arXiv (AI + Vision + Imaging) · arxiv.org