Mark My Words: Analyzing and Evaluating Language Model Watermarks

Julien Piet, Chawin Sitawarin, Vivian Fang, Norman Mu, David Wagner
12/1/2023
cs.CRcs.AIcs.CL

Official code: wagner-group/MarkMyWords (32 stars, Apache-2.0, last commit 2024-06-06).

Abstract

The capabilities of large language models have grown significantly in recent years and so too have concerns about their misuse. It is important to be able to distinguish machine-generated text from human-authored content. Prior works have proposed numerous schemes to watermark text, which would benefit from a systematic evaluation framework. This work focuses on LLM output watermarking techniques - as opposed to image or model watermarks - and proposes Mark My Words, a comprehensive benchmark for them under different natural language tasks. We focus on three main metrics: quality, size (i.e., the number of tokens needed to detect a watermark), and tamper resistance (i.e., the ability to detect a watermark after perturbing marked text). Current watermarking techniques are nearly practical enough for real-world use: Kirchenbauer et al. [33]'s scheme can watermark models like Llama 2 7B-chat or Mistral-7B-Instruct with no perceivable loss in quality on natural language tasks, the watermark can be detected with fewer than 100 tokens, and their scheme offers good tamper resistance to simple perturbations. However, they struggle to efficiently watermark code generations. We publicly release our benchmark (https://github.com/wagner-group/MarkMyWords).

View on arXivView PDF

Code Implementations(1)

Apache-2.0
323Shell, PythonNov 8, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{piet2023mark,
  title  = {Mark My Words: Analyzing and Evaluating Language Model Watermarks},
  author = {Julien Piet and Chawin Sitawarin and Vivian Fang and Norman Mu and David Wagner},
  year   = {2023},
  eprint = {2312.00273},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.00273v3}
}

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

Discussion