WatME: Towards Lossless Watermarking Through Lexical Redundancy

Liang Chen, Yatao Bian, Yang Deng, Deng Cai, Shuaiyi Li +2 more
11/16/2023
cs.CL

No official code found. Best implementation: ChanLiang/WatME (8 stars, last commit 2024-06-25).

Abstract

Text watermarking has emerged as a pivotal technique for identifying machine-generated text. However, existing methods often rely on arbitrary vocabulary partitioning during decoding to embed watermarks, which compromises the availability of suitable tokens and significantly degrades the quality of responses. This study assesses the impact of watermarking on different capabilities of large language models (LLMs) from a cognitive science lens. Our finding highlights a significant disparity; knowledge recall and logical reasoning are more adversely affected than language generation. These results suggest a more profound effect of watermarking on LLMs than previously understood. To address these challenges, we introduce Watermarking with Mutual Exclusion (WatME), a novel approach leveraging linguistic prior knowledge of inherent lexical redundancy in LLM vocabularies to seamlessly integrate watermarks. Specifically, WatME dynamically optimizes token usage during the decoding process by applying a mutually exclusive rule to the identified lexical redundancies. This strategy effectively prevents the unavailability of appropriate tokens and preserves the expressive power of LLMs. We provide both theoretical analysis and empirical evidence showing that WatME effectively preserves the diverse capabilities of LLMs while ensuring watermark detectability.

View on arXivView PDF

Code Implementations(1)

ChanLiang/WatMECommunity74%

[ACL 2024] WatME: Towards Lossless Watermarking Through Lexical Redundancy

80Shell, CythonJun 7, 20242 years ago
aigc-detectionlarge-language-modelslossless-watermarktext-watermark

Similar Papers

Cite this paper

@article{chen2023watme,
  title  = {WatME: Towards Lossless Watermarking Through Lexical Redundancy},
  author = {Liang Chen and Yatao Bian and Yang Deng and Deng Cai and Shuaiyi Li and Peilin Zhao and Kam-fai Wong},
  year   = {2023},
  eprint = {2311.09832},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09832v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09832.svg)](https://codeofpaper.com/paper/2311.09832)

Discussion