Publicly-Detectable Watermarking for Language Models

Jaiden Fairoze, Sanjam Garg, Somesh Jha, Saeed Mahloujifar, Mohammad Mahmoody +1 more
10/27/2023
109 citations
cs.LGcs.CLcs.CR

Official code: jfairoze/publicly-detectable-watermark (15 stars, Python, GPL-3.0, last commit 2025-01-21).

Abstract

We present a publicly-detectable watermarking scheme for LMs: the detection algorithm contains no secret information, and it is executable by anyone. We embed a publicly-verifiable cryptographic signature into LM output using rejection sampling and prove that this produces unforgeable and distortion-free (i.e., undetectable without access to the public key) text output. We make use of error-correction to overcome periods of low entropy, a barrier for all prior watermarking schemes. We implement our scheme and find that our formal claims are met in practice.

View on arXivView PDF

Code Implementations(1)

GPL-3.0
151Python, ShellFeb 23, 20241 years agoGPL-3.0

Similar Papers

Cite this paper

@article{fairoze2023publiclydetectable,
  title  = {Publicly-Detectable Watermarking for Language Models},
  author = {Jaiden Fairoze and Sanjam Garg and Somesh Jha and Saeed Mahloujifar and Mohammad Mahmoody and Mingyuan Wang},
  year   = {2023},
  eprint = {2310.18491},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.18491v4}
}

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

Discussion