Skip to main content
QUICK REVIEW

[Paper Review] Provably Robust Multi-bit Watermarking for AI-generated Text

Wenjie Qu, Zheng, Wengrui|arXiv (Cornell University)|Jan 30, 2024
Advanced Steganography and Watermarking TechniquesComputer Science5 citations
TL;DR

The paper proposes an ECC-based multi-bit watermarking scheme for LLM-generated text with provable robustness under bounded edits, showing high extraction accuracy and robustness against attacks. It also provides a theoretical robustness bound and extensive experimental validation."

ABSTRACT

Large Language Models (LLMs) have demonstrated remarkable capabilities of generating texts resembling human language. However, they can be misused by criminals to create deceptive content, such as fake news and phishing emails, which raises ethical concerns. Watermarking is a key technique to address these concerns, which embeds a message (e.g., a bit string) into a text generated by an LLM. By embedding the user ID (represented as a bit string) into generated texts, we can trace generated texts to the user, known as content source tracing. The major limitation of existing watermarking techniques is that they achieve sub-optimal performance for content source tracing in real-world scenarios. The reason is that they cannot accurately or efficiently extract a long message from a generated text. We aim to address the limitations. In this work, we introduce a new watermarking method for LLM-generated text grounded in pseudo-random segment assignment. We also propose multiple techniques to further enhance the robustness of our watermarking algorithm. We conduct extensive experiments to evaluate our method. Our experimental results show that our method substantially outperforms existing baselines in both accuracy and robustness on benchmark datasets. For instance, when embedding a message of length 20 into a 200-token generated text, our method achieves a match rate of $97.6\%$, while the state-of-the-art work Yoo et al. only achieves $49.2\%$. Additionally, we prove that our watermark can tolerate edits within an edit distance of 17 on average for each paragraph under the same setting.

Motivation & Objective

  • Motivate and address misuse of LLM-generated text and enable detection and tracing through watermarks.
  • Design a multi-bit watermarking scheme that achieves correctness, robustness, and efficiency simultaneously.
  • Introduce an ECC-based embedding/extraction framework with provable robustness guarantees under bounded edits.
  • Provide a practical pipeline and theoretical analysis for robust watermark extraction in real-world scenarios.
  • Validate the approach with experiments across datasets and LLMs, comparing against baselines.

Proposed method

  • Embed a binary watermark K into LLM-generated text by first encoding K with a BCH ECC to obtain an encoded message B.
  • At each step of token generation, compute a seed from recent tokens and partition the vocabulary into two halves to form a green/red list and bias logits towards the bit value in B, enabling embedding.
  • Select the BCH code (n,k,t) from a code family to ensure k>=b and b/n >= R, choosing the code with the highest t/n when multiple codes fit.
  • During extraction, votes from token classifications across positions are tallied to recover B, which is decoded with the BCH decoder to recover K, discarding ECC padding bits.
  • Provide a formal robustness analysis: bound the probability of extraction failure under bounded edit distance using a multinomial-based framework and define PD and related quantities.
  • Present algorithms for embedding (Algorithm 1) and extraction (Algorithm 2), plus an offline pre-processing pipeline to compute robustness bounds efficiently.

Experimental results

Research questions

  • RQ1Can multi-bit watermarks be embedded in LLM outputs with both high correctness and robustness under text edits?
  • RQ2Does incorporating error-correction codes improve extraction accuracy and robustness compared to prior zero-bit or short-bit schemes?
  • RQ3What is the theoretical robustness bound for ECC-based LLM watermarking under bounded insertion/deletion/substitution edits?
  • RQ4How does ECC-based watermarking perform in practice across benchmark datasets and multiple LLMs?
  • RQ5Can the method support practical applications like content source tracing with provable guarantees?

Key findings

  • The ECC-based scheme achieves high match rates, e.g., 98.4% for a 12-bit watermark in 200-token text, outperforming a baseline at 85.6%.
  • Under a copy-paste attack inserting 50 tokens, the method maintains a 90.8% match rate, while the baseline drops to 58.4%.
  • The approach preserves text quality with only marginal changes in perplexity distributions between watermarked and unwatermarked text.
  • The paper provides a provable robustness bound for bounded edits, derived via probabilistic analysis of a multinomial model.
  • Extensive experiments on multiple datasets (OpenGen, C4 news, Essays) and LLMs (LLaMA-2-7B, Vicuna-7B, Falcon-7B) demonstrate superiority over existing multi-bit watermarking schemes.
  • The work includes a practical ECC-based pipeline for content source tracing with theoretical guarantees.

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.