Efficient Online LLM Watermark Detection via Rao-Blackwellized E-Processes
Lu Luo, Dandan Mo, Chengdong Xu, Ting Li, Jinhan Xie, Huiqiong Li, Niansheng Tang
Abstract
As large language models (LLMs) are increasingly deployed, reliable and efficient mechanisms for distinguishing AI-generated text from human-written content have become essential. Statistical watermarking has emerged as a promising solution, yet most existing methods are typically fixed-horizon procedures, precluding valid early stopping in streaming generation. In this paper, we develop an efficient online watermark detection framework with anytime-valid inference based on Rao-Blackwellized e-processes, enabling recursive token-level evidence updates without storing the full history. In particular, we instantiate the framework for the Gumbel-max watermark and reduce the original token-level dependence testing problem to a pivot-induced sequential testing problem with an explicit null distribution. Theoretically, we prove anytime-valid Type I error control under arbitrary optional stopping and establish positive asymptotic log-growth under watermarking, implying consistency of the proposed stopping rules. Simulations and experiments on real LLM-generated text demonstrate efficient online detection with rigorous anytime-valid guarantees.
Create a lesson
Related papers
Time Series Change Point Detection with Gaussian Processes
Shared title terminology · Olga Isupova, Danil Kuzin, Fredrik Gustafsson et al.
Rao-Blackwellized Score Matching on Manifolds
Shared title terminology · Divit Rawal
Communication-Efficient Federated Learning of Latent Patient Representations from Multi-Institutional EHRs
Shared title terminology · Zhiyu Yan, Shiao Liu, Rahul Mahajan et al.
Can pretrained Transformers deliver semiparametrically efficient inference?
Shared title terminology · Han Yan, Jin Zhu, Chengchun Shi et al.
Semiparametric Efficiency for Entropic Optimal Transport under Structured Distribution Shift
Shared title terminology · Yiming Ma, Weiwei Zhuang, Hang Liu
Flow Matching from Non-Gaussian Sources: A Theory of Efficient Sampling
Shared title terminology · Yuchen Zhou, Lili Zheng, Yuxin Chen et al.