Debiasing Watermarks for Large Language Models via Maximal Coupling

Yangxinyu Xie, Xiang Li, Tanwi Mallick, Weijie J. Su, Ruixun Zhang
11/17/2024
stat.MLcs.CLcs.CR

No official code found. Best implementation: Xieyangxinyu/Debiasing-Watermarks-for-Large-Language-Models-via-Maximal-Coupling (3 stars, Apache-2.0, last commit 2025-07-23).

Abstract

Watermarking language models is essential for distinguishing between human and machine-generated text and thus maintaining the integrity and trustworthiness of digital communication. We present a novel green/red list watermarking approach that partitions the token set into ``green'' and ``red'' lists, subtly increasing the generation probability for green tokens. To correct token distribution bias, our method employs maximal coupling, using a uniform coin flip to decide whether to apply bias correction, with the result embedded as a pseudorandom watermark signal. Theoretical analysis confirms this approach's unbiased nature and robust detection capabilities. Experimental results show that it outperforms prior techniques by preserving text quality while maintaining high detectability, and it demonstrates resilience to targeted modifications aimed at improving text quality. This research provides a promising watermarking solution for language models, balancing effective detection with minimal impact on text quality.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
30PythonJan 28, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{xie2024debiasing,
  title  = {Debiasing Watermarks for Large Language Models via Maximal Coupling},
  author = {Yangxinyu Xie and Xiang Li and Tanwi Mallick and Weijie J. Su and Ruixun Zhang},
  year   = {2024},
  eprint = {2411.11203},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.11203v2}
}

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/2411.11203.svg)](https://codeofpaper.com/paper/2411.11203)

Discussion