Revisiting the Robustness of Watermarking to Paraphrasing Attacks
Abstract
Amidst rising concerns about the internet being proliferated with content generated from language models (LMs), watermarking is seen as a principled way to certify whether text was generated from a model. Many recent watermarking techniques slightly modify the output probabilities of LMs to embed a signal in the generated output that can later be detected. Since early proposals for text watermarking, questions about their robustness to paraphrasing have been prominently discussed. Lately, some techniques are deliberately designed and claimed to be robust to paraphrasing. Particularly, a recent approach trains a model to produce a watermarking signal that is invariant to semantically-similar inputs. However, such watermarking schemes do not adequately account for the ease with which they can be reverse-engineered. We show that with limited access to model generations, we can undo the effects of watermarking and drastically improve the effectiveness of paraphrasing attacks.
Introduction
As Large Language Models (LLMs) become ubiquitous, distinguishing machine-generated text from human writing is a critical challenge. Watermarking has emerged as a leading solution, where an LLM's decoding process is subtly biased to embed a statistical signal. The primary threat to these systems is the paraphrasing attack, where an adversary rewrites the AI-generated text to scrub the signal. While some advanced schemes like Semantic-Invariant Robust (SIR) watermarking claim resilience to such attacks, this work demonstrates that they remain highly vulnerable to reverse-engineering.
The Reverse-Engineering Vulnerability
Most current watermarking schemes rely on a "green list"—a set of tokens whose probabilities are boosted during generation. We demonstrate that an attacker can estimate this green list with surprising ease by observing a relatively small sample of model outputs.
By comparing token frequencies in watermarked text against a standard human-written corpus (e.g., OpenWebText), a simple counting algorithm can identify "boosted" tokens. The effectiveness of this estimation is captured by a new metric, generation-based F1, which prioritizes the identification of frequently used tokens. As shown in Figure 1, an attacker can achieve a generation-based F1 score exceeding 0.8 with as few as 200,000 tokens—roughly the length of two average novels.
Informed Paraphrasing Attacks
Once the green list is estimated, we launch an informed paraphrasing attack. Unlike naive paraphrasing, which might inadvertently preserve green list tokens, our approach uses a paraphraser (DIPPER) that is explicitly penalized for choosing tokens from the estimated green list. This "inverse watermark" effectively neutralizes the original signal while maintaining high text quality.
Experimental Results
Our evaluation across multiple datasets (Wikipedia, arXiv, Booksum) and models (LLaMA-7B, Mistral-7B) reveals a near-total collapse of watermark detection.
As detailed in Table 1, the True Positive Rate (TPR) for the UNIGRAM-WATERMARK at a 1% False Positive Rate plummeted from 99.3% to just 0.2% after our attack. Even the "robust" SIR scheme saw its detection rate drop from 93.3% to 3.8%. Crucially, this evasion does not come at the cost of text utility; semantic similarity (P-SP) remains high, and perplexity (PPL) remains low, indicating that the paraphrased text is both fluent and faithful to the original meaning.
Conclusion
The findings presented here serve as a critical wake-up call for the AI safety community. Current watermarking techniques, including those designed for semantic robustness, are fragile against adversaries who can reverse-engineer the underlying signal. Future research must move beyond simple logit-biasing and consider the security implications of public model access in the design of robust watermarking schemes.
Summary updated