Abstract
As LLMs become commonplace, machine-generated text has the potential to flood the internet with spam, social media bots, and valueless content. Watermarking is a simple and effective strategy for mitigating such harms by enabling the detection and documentation of LLM-generated text. Yet a crucial question remains: How reliable is watermarking in realistic settings in the wild? There, watermarked text may be modified to suit a user's needs, or entirely rewritten to avoid detection. We study the robustness of watermarked text after it is re-written by humans, paraphrased by a non-watermarked LLM, or mixed into a longer hand-written document. We find that watermarks remain detectable even after human and machine paraphrasing. While these attacks dilute the strength of the watermark, paraphrases are statistically likely to leak n-grams or even longer fragments of the original text, resulting in high-confidence detections when enough tokens are observed. For example, after strong human paraphrasing the watermark is detectable after observing 800 tokens on average, when setting a 1e-5 false positive rate. We also consider a range of new detection schemes that are sensitive to short spans of watermarked text embedded inside a large document, and we compare the robustness of watermarking to other kinds of detectors.
Introduction
The rapid proliferation of Large Language Models (LLMs) has intensified the "cat-and-mouse" game of AI detection. Watermarking—a proactive method of biasing word choices during generation to embed a hidden statistical signal—is a leading candidate for ensuring AI accountability. However, a significant concern is whether these signals can be "scrubbed" through common modifications like human rewriting or machine paraphrasing. This paper evaluates the robustness of the "greenlist" watermarking framework against such adversarial conditions, demonstrating that watermarks are far more resilient than previously assumed.
Methods and Experimental Design
The researchers evaluated the robustness of watermarking against a battery of "real-world" attacks designed to wash away the embedded signal.
Key Innovations
- SelfHash: A secure hashing scheme that incorporates the current token into the hash calculation, increasing resistance to brute-force "cracking" of watermark rules.
- WinMax Detector: A windowed detection algorithm optimized for identifying short spans of watermarked text buried within larger human-written documents, specifically targeting "Copy-Paste" attacks.
- Attack Battery: Evaluation included machine paraphrasing (via GPT-3.5-Turbo and Dipper, a model tuned to evade detectors), copy-paste insertion, and a human study where writers were incentivized to remove watermarks while preserving meaning.
Datasets
The study utilized diverse datasets to ensure generalizability, including C4 (general text), LFQA (long-form question answering), TriviaQA (factual accuracy), and domain-specific subsets of The Pile covering Code, Legal, Medical, and Patent text.
Key Results
The most significant finding is that watermarking robustness is primarily a function of text length. Even when text is heavily edited, statistical "leakage" occurs: it is incredibly difficult for rewriters to avoid the specific n-grams favored by the watermark.
- Machine Attacks: Against strong GPT-3.5 paraphrasing, the watermark maintained an ROC-AUC of >0.90 when 600 tokens were available.
- Human Resilience: In the human study, watermarks remained detectable after an average of 800 tokens, even at a strict false-positive rate of 10⁻⁵.
- Copy-Paste Detection: The WinMax detector successfully identified 150 tokens of AI text hidden in a 600-token human document with an AUC above 0.95.
- Utility Preservation: The SelfHash method provided enhanced security and robustness without significantly harming the diversity or quality of the AI's writing.
Discussion and Limitations
While watermarking proves robust against black-box attacks, it faces challenges in "white-box" scenarios where an attacker knows the secret key. Additionally, watermarking remains ineffective for very short snippets (e.g., social media posts) due to the lack of sufficient statistical evidence. For large-scale deployment, the secrecy of the "greenlist" rules is paramount. Future research may explore semantic-based watermarking—basing the signal on the meaning of sentences rather than specific word choices—to further increase resilience against sophisticated rewriting.
Summary updated