NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Reliability of Watermarks for Large Language Models

John Kirchenbauer, Jonas Geiping, Yuxin Wen, Manli Shu, Khalid Saifullah, Kezhi Kong, Kasun Fernando, Aniruddha Saha, Micah Goldblum, Tom Goldstein

As Large Language Models (LLMs) begin to dominate web content, the need to distinguish between human and machine-generated text has moved from a theoretical concern to a practical necessity. Watermarking—the process of subtly biasing a model's word choices to create a detectable statistical signature—is a leading solution. But how "sticky" are these watermarks? If a user paraphrases the text or mixes it into a human-written essay, does the signature vanish?

In their ICLR 2024 paper, "On the Reliability of Watermarks for Large Language Models," researchers from the University of Maryland and other institutions put watermarking to the ultimate stress test.

TL;DR

This paper demonstrates that LLM watermarks are remarkably resilient to "attacks" like human rewriting, machine paraphrasing, and copy-pasting. Even when text is heavily modified, statistical "leakage" of original word sequences allows for high-confidence detection—provided you have a long enough sample (around 800 tokens for human-rewritten text).

What Problem Does This Paper Address?

The primary challenge in AI detection is evasion. Most current detection methods are "post-hoc," meaning they try to guess if text is AI-generated after it’s already been written. These are notoriously easy to fool with a simple "paraphrase this" prompt.

Watermarking is a "proactive" approach where the model owner embeds a signal during generation. However, critics have argued that these signals are fragile: a human editor or a second, non-watermarked LLM could simply rewrite the output to "scrub" the watermark. This paper investigates whether watermarking can actually survive these realistic, "in-the-wild" scenarios.

Overview of Watermark Attacks

Methods

The researchers built upon the "Greenlist" watermarking framework. In this system, for every word the LLM generates, a secret hash of the previous words is used to randomly partition the vocabulary into "green" and "red" words. The model is then slightly biased to pick words from the green list.

To test reliability, the authors introduced several innovations:

  • SelfHash: A more secure hashing scheme that makes it harder for an attacker to "crack" the watermark rules by brute force.
  • WinMax Detection: A new detection algorithm designed for "Copy-Paste" attacks. Instead of looking at the whole document, it slides a window across the text to find the specific sub-region with the strongest watermark signal.
  • The Attack Battery: They subjected watermarked text to three types of corruption:
  • Machine Paraphrasing: Using GPT-3.5 and "Dipper" (a model specifically built to evade detectors).
  • Human Paraphrasing: A formal study where 14 writers were paid to rewrite text specifically to remove the watermark.
  • Text Mixing: Inserting small snippets of watermarked text into large human-written documents.

Datasets

The study utilized two primary sources:

  • C4 (Colossal Cleaned Common Crawl): Used for general open-ended generation tasks to test machine paraphrasing.
  • LFQA (Long-Form Question Answering): Used for the human study, where volunteers answered Reddit-style "Explain Like I'm Five" prompts.
  • The Pile: Subsets like Github, Law, and Med were used to test how the watermark behaves across different domains (e.g., code vs. legal prose).

Key Insights and Ideas

  • N-gram Leakage: This is the "Aha!" moment. Even when a human or a machine paraphrases a sentence, they almost always "leak" fragments (n-grams) of the original text. Because the watermark is embedded at the token level, these leaked fragments carry enough signal to be detected if the total document is long enough.
  • Sample Complexity is the Key Metric: The authors argue we shouldn't just ask "Is it detectable?" but "How much text do we need to be sure?" They found that while attacks dilute the signal, they rarely destroy it. You just need more tokens to reach the same level of confidence.
Detection Rate After Attacks vs. Tokens Observed
  • The Robustness Gap: Watermarking significantly outperformed other state-of-the-art detectors like DetectGPT (loss-based) and Retrieval (database matching). Under heavy attack, post-hoc detectors often fail entirely, whereas watermarking just requires a longer sequence to recover.

Key Results

  • Human Study: Even when humans were incentivized with gift cards to "beat the watermark," the text remained detectable. On average, after observing 800 tokens, the watermark could be identified with a false positive rate of only 1 in 100,000.
  • Machine Attacks: Against strong paraphrasers like GPT-3.5, the watermark maintained an ROC-AUC > 0.9 when 600 tokens were available.
  • Copy-Paste Resilience: Using the WinMax detector, the team could detect a 150-token AI snippet hidden inside a 600-token human document with an AUC of 0.95.
  • Domain Sensitivity: Watermarks are strongest in high-entropy text (like creative writing or blogs) and slightly weaker in low-entropy text (like code or highly formatted legal documents) where the model has fewer "choices" of which word to use next.

Limitations and Future Work

The authors acknowledge a few critical boundaries:

  • The White-Box Threat: If an attacker gains access to the secret watermarking key, they can run an "anti-watermark" attack during paraphrasing to perfectly neutralize the signal.
  • Short Text: Watermarking remains difficult for very short snippets (e.g., a single tweet). The statistical signal simply isn't strong enough in 10-20 words to distinguish it from a lucky human.
  • The "Anti-Summary" Problem: When GPT-3.5 paraphrases text, it often summarizes it, significantly reducing the token count and thus the available signal. Future work is needed to handle cases where the AI-generated content is drastically condensed.

By proving that watermarks are "stickier" than previously thought, this paper provides a strong argument for watermarking as a primary tool for AI transparency in the years to come.

Summary updated

BibTeX
@inproceedings{kirchenbauer2024reliability,
  author = {John Kirchenbauer and Jonas Geiping and Yuxin Wen and Manli Shu and Khalid Saifullah and Kezhi Kong and Kasun Fernando and Aniruddha Saha and Micah Goldblum and Tom Goldstein},
  title = {{On the Reliability of Watermarks for Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=DEJIDCmWOz},
}
Figure