Bypassing LLM Watermarks with Color-Aware Substitutions
Authors:
Preprint
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.Keywords
All Related Versions
This publication has 5 references indexed in Scilit:
- MARKMyWORDS: Analyzing and Evaluating Language Model Watermarks2025
- Red Teaming Language Model Detectors with Language ModelsTransactions of the Association for Computational Linguistics, 2024
- A Survey on Detection of LLMs-Generated Content2024
- Large Language Models for Software Engineering: Survey and Open Problems2023
- Academic Dishonesty or Academic Integrity? Using Natural Language Processing (NLP) Techniques to Investigate Positive Integrity in Academic Integrity ResearchJournal of Academic Ethics, 2021