Watermarking Low-entropy Generation for Large Language Models: An Unbiased and Low-risk Method

Minjia Mao, Dongjun Wei, Zeyu Chen, Xiao Fang, Michael Chau
5/23/2024
cs.CL

No official code found. Best implementation: djwei96/STA (8 stars, MIT, last commit 2024-05-28).

Abstract

Recent advancements in large language models (LLMs) have highlighted the risk of misusing them, raising the need for accurate detection of LLM-generated content. In response, a viable solution is to inject imperceptible identifiers into LLMs, known as watermarks. Our research extends the existing watermarking methods by proposing the novel Sampling One Then Accepting (STA-1) method. STA-1 is an unbiased watermark that preserves the original token distribution in expectation and has a lower risk of producing unsatisfactory outputs in low-entropy scenarios compared to existing unbiased watermarks. In watermark detection, STA-1 does not require prompts or a white-box LLM, provides statistical guarantees, demonstrates high efficiency in detection time, and remains robust against various watermarking attacks. Experimental results on low-entropy and high-entropy datasets demonstrate that STA-1 achieves the above properties simultaneously, making it a desirable solution for watermarking LLMs. Implementation codes for this study are available online.

View on arXivView PDF

Code Implementations(1)

djwei96/STACommunity100%
MIT

Source code for the paper "A Watermark for Low-entropy and Unbiased Generation in Large Language Models"

80PythonMay 23, 20242 years agoMIT

Similar Papers

Cite this paper

@article{mao2024watermarking,
  title  = {Watermarking Low-entropy Generation for Large Language Models: An Unbiased and Low-risk Method},
  author = {Minjia Mao and Dongjun Wei and Zeyu Chen and Xiao Fang and Michael Chau},
  year   = {2024},
  eprint = {2405.14604},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.14604v3}
}

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

Discussion