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

Watermarks in the Sand: Impossibility of Strong Watermarking for Generative Models

Hanlin Zhang, Benjamin L. Edelman, Danilo Francati, Daniele Venturi, Giuseppe Ateniese, Boaz Barak · DOI

Introduction

As generative AI models become integrated into daily life, the need to distinguish machine-generated content from human-created work has intensified. Watermarking—embedding a hidden statistical signal within model outputs—has emerged as a primary defense against misinformation and academic dishonesty. While "weak" watermarks are known to be fragile, the research community has sought "strong" watermarking schemes that remain detectable unless the output is significantly degraded. This paper demonstrates that such strong watermarking is theoretically impossible.

The Quality-Preserving Random Walk

The core of the impossibility proof lies in a generic attack called the quality-preserving random walk. This attack assumes an adversary has access to two tools:

  1. Quality Oracle ($Q$): A mechanism to judge if a response is "high quality" for a given prompt. Interestingly, the watermarked model itself can often serve as this oracle.
  2. Perturbation Oracle ($P$): A tool to slightly modify an output (e.g., replacing words or image patches) while maintaining a high probability of preserving its quality.

The attacker starts with a watermarked output and uses the perturbation oracle to generate a neighboring version. If the quality oracle confirms the new version is high-quality, the attacker moves to it. Over many steps, this process "washes away" the watermark.

Conceptual diagram of the quality-preserving random walk moving out of the watermarked zone while staying within the high-quality output space.

Because the set of watermarked outputs is a negligible fraction of the total space of high-quality responses, a random walk eventually exits the watermarked region. This holds true even for private-key watermarking schemes, as the attacker does not need to know the detection key; they only need to find any high-quality, non-watermarked alternative.

Experimental Evaluation

The researchers tested this attack on state-of-the-art text and image watermarking frameworks, including KGW, Unigram, and EXP for Large Language Models (LLMs), and Stable Signature for image models.

Key Results

The attack successfully reduced watermark detection levels to statistical insignificance across all tested schemes. For text models like Llama2-7B, detection z-scores—which measure the strength of the watermark signal—dropped from highly confident levels (above 6.0) to below the standard detection threshold of 1.645.

Crucially, this removal did not come at the cost of output quality. Using GPT-4 as an objective judge, the researchers found that the "de-watermarked" outputs were indistinguishable in quality from the original watermarked versions.

Graphs showing the decline of z-score (watermark strength) over 30 steps of the random walk, while the GPT-4 judge score (quality) remains stable near zero.

Implications and Limitations

The "Watermarks in the Sand" metaphor captures the essence of the findings: just as individual grains of sand can be shifted to erase a footprint without changing the beach, tokens in a high-entropy output can be shifted to erase a watermark without ruining the content.

The attack is most effective in high-entropy scenarios where many valid, high-quality answers exist (e.g., creative writing). In low-entropy cases where only one correct answer exists (e.g., mathematical facts), watermarking is already difficult because there is no "room" to hide a signal.

While "strong" watermarking may be theoretically impossible against a motivated adversary, "weak" watermarking remains a valuable tool for non-adversarial use cases, such as preventing model collapse by ensuring models do not inadvertently train on their own generated data. As AI capabilities grow, the oracles available to attackers will only become more sophisticated, further challenging the viability of persistent watermarking.

Summary updated

BibTeX
@inproceedings{zhang2024watermarks,
  author = {Hanlin Zhang and Benjamin L. Edelman and Danilo Francati and Daniele Venturi and Giuseppe Ateniese and Boaz Barak},
  title = {{Watermarks in the Sand: Impossibility of Strong Watermarking for Generative Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=bM2s12t4hR},
}
Figure