Online LLM watermark detection via e-processes
Weijie Su, Ruodu Wang, Zinan Zhao
TL;DR
This work addresses the challenge of detecting LLM-generated text in streaming settings by framing watermark detection as sequential hypothesis testing with anytime-valid guarantees. It develops a unified framework based on e-values and e-processes, enabling continuous monitoring and Type I error control under arbitrary stopping times, exemplified by the Gumbel-max watermark. The authors introduce empirically adaptive e-processes, including weight-adaptive calibrators, online Grenander e-processes, and average e-processes, and establish asymptotic power guarantees under suitable assumptions. Empirical results on open-source LLMs show that e-process-based methods achieve robust sequential validity and competitive power, particularly in scenarios with degenerate next-token distributions where traditional sum-based methods falter. Overall, the approach provides a principled, theoretically grounded, and practically effective toolkit for real-time watermark detection in AI-generated text.
Abstract
Watermarking for large language models (LLMs) has emerged as an effective tool for distinguishing AI-generated text from human-written content. Statistically, watermark schemes induce dependence between generated tokens and a pseudo-random sequence, reducing watermark detection to a hypothesis testing problem on independence. We develop a unified framework for LLM watermark detection based on e-processes, providing anytime-valid guarantees for online testing. We propose various methods to construct empirically adaptive e-processes that can enhance the detection power. In addition, theoretical results are established to characterize the power properties of the proposed procedures. Some experiments demonstrate that the proposed framework achieves competitive performance compared to existing watermark detection methods.
