Black-Box Detection of Language Model Watermarks

Thibaud Gloaguen, Nikola Jovanovic, Robin Staab, Martin T. Vechev
2/12/2026

No official code found. Best implementation: eth-sri/watermark-detection (4 stars, last commit 2025-03-10).

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.

View on arXivView PDF

Code Implementations(1)

Black-Box Detection of Language Model Watermarks (ICLR 2025)

41Python, Jupyter NotebookFeb 17, 20251 years ago

Similar Papers

Cite this paper

@article{gloaguen2026blackbox,
  title  = {Black-Box Detection of Language Model Watermarks},
  author = {Thibaud Gloaguen and Nikola Jovanovic and Robin Staab and Martin T. Vechev},
  year   = {2026},
  eprint = {2405.20777},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2405.20777},
  journal = {ICLR 2024 2024}
}

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

Discussion