Skip to main content
QUICK REVIEW

[Paper Review] Watermarks in the Sand: Impossibility of Strong Watermarking for Generative Models

Hanlin Zhang, Benjamin Edelman|arXiv (Cornell University)|Nov 7, 2023
Advanced Steganography and Watermarking TechniquesComputer Science10 citations
TL;DR

The paper proves that under natural assumptions strong watermarking of generative models is impossible and introduces a generic quality-preserving attack that removes watermarks from three LLM schemes, with minimal impact on output quality.

ABSTRACT

Watermarking generative models consists of planting a statistical signal (watermark) in a model's output so that it can be later verified that the output was generated by the given model. A strong watermarking scheme satisfies the property that a computationally bounded attacker cannot erase the watermark without causing significant quality degradation. In this paper, we study the (im)possibility of strong watermarking schemes. We prove that, under well-specified and natural assumptions, strong watermarking is impossible to achieve. This holds even in the private detection algorithm setting, where the watermark insertion and detection algorithms share a secret key, unknown to the attacker. To prove this result, we introduce a generic efficient watermark attack; the attacker is not required to know the private key of the scheme or even which scheme is used. Our attack is based on two assumptions: (1) The attacker has access to a "quality oracle" that can evaluate whether a candidate output is a high-quality response to a prompt, and (2) The attacker has access to a "perturbation oracle" which can modify an output with a nontrivial probability of maintaining quality, and which induces an efficiently mixing random walk on high-quality outputs. We argue that both assumptions can be satisfied in practice by an attacker with weaker computational capabilities than the watermarked model itself, to which the attacker has only black-box access. Furthermore, our assumptions will likely only be easier to satisfy over time as models grow in capabilities and modalities. We demonstrate the feasibility of our attack by instantiating it to attack three existing watermarking schemes for large language models: Kirchenbauer et al. (2023), Kuditipudi et al. (2023), and Zhao et al. (2023). The same attack successfully removes the watermarks planted by all three schemes, with only minor quality degradation.

Motivation & Objective

  • Motivate the need for robust watermarking to distinguish model outputs from human text and prevent misuse.
  • Formally define secret-key strong watermarking for generative models.
  • Prove an impossibility result showing such watermarking cannot be robust under realistic assumptions.
  • Propose and instantiate a generic attack using quality and perturbation oracles to remove watermarks.
  • Empirically demonstrate the attack on three existing LLM watermark schemes.

Proposed method

  • Formalize generative models and a universal quality function Q for prompt-response pairs.
  • Define secret-key watermarking with Watermark and Detect procedures and quantify false positive/negative rates.
  • Introduce a generic, efficient attack based on a quality-preserving random walk using a perturbation oracle and a quality oracle (Algorithm 1).
  • Prove an informal main result (Theorem 1) that an attacker can with high probability remove the watermark while preserving quality; formal statements are in Appendix B.
  • Instantiate and test the attack against Kirchenbauer et al. (2023a), Kuditipudi et al. (2023), and Zhao et al. (2023a) schemes on Llama2-7B.
  • Provide experimental evidence showing watermark detection is degraded with minimal quality loss.

Experimental results

Research questions

  • RQ1Can strong watermarking be achieved under natural assumptions for generative models?
  • RQ2Is there an efficient attacker that can erase watermarks while preserving output quality?
  • RQ3Do secret-key watermarking schemes remain secure under black-box access to the watermarked model?
  • RQ4How do the attack and its implications generalize across different watermarking schemes and modalities?

Key findings

  • There exists an efficient attacker, given a quality oracle and a perturbation oracle, that with high probability removes the watermark and preserves quality.
  • The attack successfully removes watermarks from three public LLM watermark schemes with only minor quality degradation.
  • Experimental results show reduced watermark detection probability (z-scores and p-values indicating non-significant watermarking) while maintaining output quality as judged by GPT-4 in comparisons.
  • The work provides a constructive attack and formal/informal theoretical results (informal Theorem 1; formal statements in Appendix B).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.