On the Empirical Power of Goodness-of-Fit Tests in Watermark Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: He, Weiqing, Li, Xiang, Shang, Tianqi, Shen, Li, Su, Weijie, Long, Qi
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914308622909440
author He, Weiqing
Li, Xiang
Shang, Tianqi
Shen, Li
Su, Weijie
Long, Qi
author_facet He, Weiqing
Li, Xiang
Shang, Tianqi
Shen, Li
Su, Weijie
Long, Qi
contents Large language models (LLMs) raise concerns about content authenticity and integrity because they can generate human-like text at scale. Text watermarks, which embed detectable statistical signals into generated text, offer a provable way to verify content origin. Many detection methods rely on pivotal statistics that are i.i.d. under human-written text, making goodness-of-fit (GoF) tests a natural tool for watermark detection. However, GoF tests remain largely underexplored in this setting. In this paper, we systematically evaluate eight GoF tests across three popular watermarking schemes, using three open-source LLMs, two datasets, various generation temperatures, and multiple post-editing methods. We find that general GoF tests can improve both the detection power and robustness of watermark detectors. Notably, we observe that text repetition, common in low-temperature settings, gives GoF tests a unique advantage not exploited by existing methods. Our results highlight that classic GoF tests are a simple yet powerful and underused tool for watermark detection in LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2510_03944
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle On the Empirical Power of Goodness-of-Fit Tests in Watermark Detection
He, Weiqing
Li, Xiang
Shang, Tianqi
Shen, Li
Su, Weijie
Long, Qi
Machine Learning
Large language models (LLMs) raise concerns about content authenticity and integrity because they can generate human-like text at scale. Text watermarks, which embed detectable statistical signals into generated text, offer a provable way to verify content origin. Many detection methods rely on pivotal statistics that are i.i.d. under human-written text, making goodness-of-fit (GoF) tests a natural tool for watermark detection. However, GoF tests remain largely underexplored in this setting. In this paper, we systematically evaluate eight GoF tests across three popular watermarking schemes, using three open-source LLMs, two datasets, various generation temperatures, and multiple post-editing methods. We find that general GoF tests can improve both the detection power and robustness of watermark detectors. Notably, we observe that text repetition, common in low-temperature settings, gives GoF tests a unique advantage not exploited by existing methods. Our results highlight that classic GoF tests are a simple yet powerful and underused tool for watermark detection in LLMs.
title On the Empirical Power of Goodness-of-Fit Tests in Watermark Detection
topic Machine Learning
url https://arxiv.org/abs/2510.03944