Skip to main content
QUICK REVIEW

[Paper Review] Token-Specific Watermarking with Enhanced Detectability and Semantic Coherence for Large Language Models

Mingjia Huo, Sai Ashish Somayajula|arXiv (Cornell University)|Feb 28, 2024
Advanced Steganography and Watermarking TechniquesComputer Science3 citations
TL;DR

This paper proposes a token-specific watermarking method for large language models that uses multi-objective optimization to dynamically adjust splitting ratios and watermark logits via lightweight neural networks, achieving superior detectability and semantic coherence. Experiments show it outperforms prior methods in detectability, semantic quality, and robustness against paraphrase and copy-paste attacks.

ABSTRACT

Large language models generate high-quality responses with potential misinformation, underscoring the need for regulation by distinguishing AI-generated and human-written texts. Watermarking is pivotal in this context, which involves embedding hidden markers in texts during the LLM inference phase, which is imperceptible to humans. Achieving both the detectability of inserted watermarks and the semantic quality of generated texts is challenging. While current watermarking algorithms have made promising progress in this direction, there remains significant scope for improvement. To address these challenges, we introduce a novel multi-objective optimization (MOO) approach for watermarking that utilizes lightweight networks to generate token-specific watermarking logits and splitting ratios. By leveraging MOO to optimize for both detection and semantic objective functions, our method simultaneously achieves detectability and semantic integrity. Experimental results show that our method outperforms current watermarking techniques in enhancing the detectability of texts generated by LLMs while maintaining their semantic coherence. Our code is available at https://github.com/mignonjia/TS_watermark.

Motivation & Objective

  • To address the trade-off between watermark detectability and semantic coherence in LLM-generated text.
  • To overcome the limitations of fixed splitting ratios and watermark logits in existing methods like KGW.
  • To develop a dynamic, context-aware watermarking mechanism that adapts to token semantics during inference.
  • To ensure robust detection under common attacks such as paraphrasing and copy-paste.
  • To maintain low computational overhead while improving watermark performance.

Proposed method

  • The method employs two lightweight, trainable networks—the γ-generator and δ-generator—to produce token-specific splitting ratios and watermark logits during text generation.
  • These networks are optimized via a multi-objective framework minimizing both detection loss (for detectability) and semantic loss (for coherence).
  • The watermarking process modifies LLM logits by adding a learned watermark logit only to tokens in the green list, which is determined by the dynamic splitting ratio.
  • The system uses a statistical test based on z-scores to detect watermarks by counting green-list tokens in generated sequences.
  • The method is designed to insert stronger watermarks around punctuation tokens, exploiting their low semantic constraints to enhance detectability.
  • The framework is trained end-to-end during inference, enabling real-time adaptation without requiring model fine-tuning.

Experimental results

Research questions

  • RQ1Can a dynamic watermarking approach that adapts splitting ratios and watermark logits per token improve both detectability and semantic coherence?
  • RQ2How does token-specific watermarking compare to fixed-parameter methods like KGW in terms of robustness against paraphrasing attacks?
  • RQ3To what extent does the method preserve semantic quality while increasing watermark detectability?
  • RQ4How effective is the method against copy-paste attacks that disrupt watermark patterns?
  • RQ5What is the computational cost of the proposed method relative to baseline watermarking techniques?

Key findings

  • The proposed method achieves a superior Pareto frontier in detectability and semantic coherence, outperforming KGW and other baselines across multiple metrics.
  • Under paraphrase attacks, the method maintains higher detectability due to stronger watermarking around punctuation tokens, which are preserved during rephrasing.
  • In copy-paste attacks (Copy-Paste-1 and Copy-Paste-3), the method achieves higher z-scores and better detection performance than KGW, indicating enhanced robustness.
  • The method’s generation time (3.946s for 200 tokens) is comparable to KGW (3.827s), demonstrating low computational overhead.
  • Detection time is 0.166s, slightly higher than KGW’s 0.067s, but still efficient for practical deployment.
  • The approach shows consistent improvements in both detection and semantic quality across diverse prompts and evaluation settings.

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.