Bypassing LLM Watermarks with Color-Aware Substitutions
Qilong Wu, Varun Chandrasekaran
TL;DR
This paper analyzes the robustness of logit-perturbation text watermarks that bias a set of green tokens and detect watermarking via a z-score on green-token usage. It introduces Self Color Testing-based Substitution (SCTS), a color-aware attack that extracts token-color information by prompting watermarked LLMs to generate controlled strings and then replaces green tokens with red ones within a constrained edit budget. The authors provide a theoretical treatment showing watermark strength scales as $\mathbb{E}[z] \propto \sqrt{T_e}$ and that, under favorable conditions ($q>\gamma$), detection becomes exponentially unlikely as text length grows; empirically, SCTS significantly lowers AUROC and raises attack success across two models and two watermark schemes, often achieving AUROC < 0.5 at budgets around $0.25$–$0.35$. The work highlights a substantial vulnerability in current watermarking approaches for long texts and argues for developing more robust defenses, while also acknowledging ethical considerations and the dual-use risks of watermark evasion research.
Abstract
Watermarking approaches are proposed to identify if text being circulated is human or large language model (LLM) generated. The state-of-the-art watermarking strategy of Kirchenbauer et al. (2023a) biases the LLM to generate specific (``green'') tokens. However, determining the robustness of this watermarking method is an open problem. Existing attack methods fail to evade detection for longer text segments. We overcome this limitation, and propose {\em Self Color Testing-based Substitution (SCTS)}, the first ``color-aware'' attack. SCTS obtains color information by strategically prompting the watermarked LLM and comparing output tokens frequencies. It uses this information to determine token colors, and substitutes green tokens with non-green ones. In our experiments, SCTS successfully evades watermark detection using fewer number of edits than related work. Additionally, we show both theoretically and empirically that SCTS can remove the watermark for arbitrarily long watermarked text.
