Black-Box Detection of Language Model Watermarks
Thibaud Gloaguen, Nikola Jovanović, Robin Staab, Martin Vechev
TL;DR
The paper investigates practical detectability of language-model watermarks under strict black-box access, challenging assumptions that watermarks remain undetectable in deployed settings. It develops principled statistical tests for three prominent watermark families—Red-Green, Fixed-Sampling, and Cache-Augmented—and demonstrates their effectiveness across seven schemes, five open-source models, and real APIs, while also providing parameter-estimation methods and robustness analyses. The results show that both distribution-modifying and distribution-preserving watermarks can be reliably detected with modest query costs, and they apply to deployed models like GPT-4, Claude, and Gemini in practical scenarios. The work highlights significant practical implications for model providers and regulatory oversight by revealing the relative ease of watermark detection in realistic black-box settings, while offering an accessible toolchain and open-source code for ongoing evaluation. Overall, the paper contributes a rigorous, empirically grounded framework for assessing watermark detectability and paves the way for more robust watermarking practices and security analyses in real-world LLM deployments.
Abstract
Watermarking has emerged as a promising way to detect LLM-generated text, by augmenting LLM generations with later detectable signals. Recent work has proposed multiple families of watermarking schemes, several of which focus on preserving the LLM distribution. This distribution-preservation property is motivated by the fact that it is a tractable proxy for retaining LLM capabilities, as well as the inherently implied undetectability of the watermark by downstream users. Yet, despite much discourse around undetectability, no prior work has investigated the practical detectability of any of the current watermarking schemes in a realistic black-box setting. In this work we tackle this for the first time, developing rigorous statistical tests to detect the presence, and estimate parameters, of all three popular watermarking scheme families, using only a limited number of black-box queries. We experimentally confirm the effectiveness of our methods on a range of schemes and a diverse set of open-source models. Further, we validate the feasibility of our tests on real-world APIs. Our findings indicate that current watermarking schemes are more detectable than previously believed.
