Skip to main content
QUICK REVIEW

[Paper Review] On the Reliability of Watermarks for Large Language Models

John Kirchenbauer, Jonas Geiping|arXiv (Cornell University)|Jun 7, 2023
Topic ModelingComputer Science23 citations
TL;DR

The paper evaluates watermark robustness for large language models under realistic edits, paraphrasing, and mixed-in documents, showing watermark detection remains reliable as more tokens are observed, outperforming some alternative detectors in certain scenarios.

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.

Motivation & Objective

  • Assess watermark robustness under realistic corruptions such as human paraphrasing, model paraphrasing, and copy-paste into long documents.
  • Quantify how watermark detectability degrades with attacks and how detectability scales with observed token length.
  • Compare watermarking to alternative post-hoc and retrieval-based detectors under various attack scenarios.
  • Propose and evaluate improved hashing schemes and detection strategies to enhance reliability in the wild.

Proposed method

  • Describe the combinatorial watermark scheme that colors a fraction of tokens and biases sampling with a secret hash-derived greenlist.
  • Introduce and compare improved hashing schemes (SelfHash and LeftHash) with context width h and various f mappings (Additive, Skip, Min) to enhance robustness.
  • Develop a windowed detection test (WinMax) to locate high-signal spans within long documents.
  • Evaluate robustness against paraphrasing (GPT-3.5-turbo, Dipper), copy-paste in long documents, and human paraphrasers across token-length regimes.
  • Benchmark against retrieval-based detection and DetectGPT to assess relative reliability under attack.

Experimental results

Research questions

  • RQ1How robust is watermark detection when watermarked text is paraphrased by models or rewritten by humans?
  • RQ2Can watermark detection remain reliable when watermarked text is embedded in longer, non-watermarked documents (copy-paste scenario)?
  • RQ3How do different hashing schemes and context widths affect watermark reliability and text quality under realistic attacks?
  • RQ4How does watermarking compare to other detectors (retrieval-based, post-hoc, DetectGPT) under various attack types?
  • RQ5What is the relationship between the number of observed tokens and detector performance under attack?

Key findings

  • Watermarks remain detectable after human and machine paraphrasing; ROC-AUC > 0.85 at T=200 and > 0.9 at T=600 under paraphrasing attacks.
  • In a copy-paste scenario with 600-token passages containing 150 tokens of watermarked text, AUC exceeds 0.95.
  • Under a human paraphrase attack, detectable after about 800 tokens at a 1e-5 false positive rate.
  • Watermarking demonstrates favorable sample complexity and robustness relative to loss-based detection and retrieval methods, especially for longer sequences.
  • WinMax windowed detection improves localization of watermarked spans in long documents; detection strength scales with observed tokens.

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.