Skip to content

A Robust and Distortion-Free Watermark for Language ModelsRobust Distortion-free Watermarks for Language Models

arXiv· arXiv:2307.15593· Rohith Kuditipudi, John Thickstun, Tatsunori Hashimoto, Percy Liang·Indexed by this site · 22 days ago· Originally publishedDefenses
AI summary

Researchers propose a perturbation-robust text watermarking method for language models that does not change the text distribution when not exceeding a certain maximum generation budget. The method uses a random watermark key to compute a random number sequence and maps it to the language model's sampling output; anyone who knows the key can detect the watermark by aligning the text with the random number sequence, and two implementations are given: inverse transform sampling and exponential minimum sampling. The authors experimentally verified statistical power and robustness against multiple rewriting attacks on OPT-1.3B, LLaMA-7B, and Alpaca-7B. On OPT-1.3B and LLaMA-7B, even when 40%-50% of tokens are corrupted by random edits (replacement, insertion, or deletion), reliable detection is still possible from 35 tokens onward at p≤0.01; in a case study of Alpaca-7B responses to typical user instructions, due to the low entropy of the responses, only about 25% of responses with a median length of about 100 tokens could be detected at p≤0.01, and the watermark's robustness against some automated rewriting attacks was also weak.

Read originalarxiv.org