大型语言模型(LLM)水印技术将可检测信号嵌入生成文本中,用于版权保护、防止滥用和内容检测。尽管先前的研究使用水印移除攻击来评估鲁棒性,但这些方法通常不是最优的,从而造成了一种误解,即有效的移除需要大规模扰动或强大的对手。为了弥合这一差距,我们首先形式化了 LLM 水印的系统模型,并刻画了两种受限于对水印检测器有限访问的现实威胁模型。然后,我们分析了不同类型的扰动在攻击范围(即单次编辑可影响的 token 数量)上的差异。我们观察到,字符级扰动(例如拼写错误、交换、删除、同形异义字)可以通过破坏分词过程同时影响多个 token。我们证明,在最严格的威胁模型下,字符级扰动对于水印移除显著更有效。我们进一步提出了基于遗传算法(GA)的引导移除攻击,该算法使用参考检测器进行优化。在具有对水印检测器有限黑盒查询的实际威胁模型下,我们的方法展现出强大的移除性能。实验证实了字符级扰动的优越性以及 GA 在现实约束下移除水印的有效性。此外,我们指出在考虑潜在防御时存在一种对抗性困境:任何固定的防御都可以被合适的扰动策略绕过。受此原则启发,我们提出了一种自适应复合字符级攻击。实验结果表明,该方法能够有效击败防御。我们的发现突显了现有 LLM 水印方案中的重大漏洞,并强调了开发新鲁棒机制的紧迫性。
英文摘要:
Large Language Model (LLM) watermarking embeds detectable signals into generated text for copyright protection, misuse prevention, and content detection. While prior studies evaluate robustness using watermark removal attacks, these methods are often suboptimal, creating the misconception that effective removal requires large perturbations or powerful adversaries.
To bridge the gap, we first formalize the system model for LLM watermark, and characterize two realistic threat models constrained on limited access to the watermark detector. We then analyze how different types of perturbation vary in their attack range, i.e., the number of tokens they can affect with a single edit. We observe that character-level perturbations (e.g., typos, swaps, deletions, homoglyphs) can influence multiple tokens simultaneously by disrupting the tokenization process. We demonstrate that character-level perturbations are significantly more effective for watermark removal under the most restrictive threat model. We further propose guided removal attacks based on the Genetic Algorithm (GA) that uses a reference detector for optimization. Under a practical threat model with limited black-box queries to the watermark detector, our method demonstrates strong removal performance. Experiments confirm the superiority of character-level perturbations and the effectiveness of the GA in removing watermarks under realistic constraints. Additionally, we argue there is an adversarial dilemma when considering potential defenses: any fixed defense can be bypassed by a suitable perturbation strategy. Motivated by this principle, we propose an adaptive compound character-level attack. Experimental results show that this approach can effectively defeat the defenses. Our findings highlight significant vulnerabilities in existing LLM watermark schemes and underline the urgency for the development of new robust mechanisms.
A Visual Semantic Adaptive Watermark grounded by Prefix-Tuning for Large Vision-Language Model
The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));The Hong Kong University of Science and Technology(香港科技大学);Zhejiang University(浙江大学)
WMCopier: Forging Invisible Image Watermarks on Arbitrary Images
The State Key Laboratory of Blockchain and Data Security, Zhejiang University(区块链与数据安全国家重点实验室,浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术区(滨江)区块链与数据安全研究院)