cs.LGFeb 19, 2026

Towards Anytime-Valid Statistical Watermarking

Authors: Baihe Huang, Eric Xu, Kannan Ramchandran, Jiantao Jiao, Michael I. Jordan

Organizations: University of California, Berkeley.

Abstract

The proliferation of Large Language Models (LLMs) necessitates efficient mechanisms to distinguish machine-generated content from human text. While statistical watermarking has emerged as a promising solution, existing methods suffer from two critical limitations: the lack of a principled approach for selecting sampling distributions and the reliance on fixed-horizon hypothesis testing, which precludes valid early stopping. In this paper, we bridge this gap by developing the first e-value-based watermarking framework, Anchored E-Watermarking, that unifies optimal sampling with anytime-valid inference. Unlike traditional approaches where optional stopping invalidates Type-I error guarantees, our framework enables valid, anytime-inference by constructing a test supermartingale for the detection process. By leveraging an anchor distribution to approximate the target model, we characterize the optimal e-value with respect to the worst-case log-growth rate and derive the optimal expected stopping time. Our theoretical claims are substantiated by simulations and evaluations on established benchmarks, showing that our framework can significantly enhance sample efficiency, reducing the average token budget required for detection by 13-15% relative to state-of-the-art baselines.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Efficient Online LLM Watermark Detection via Rao-Blackwellized E-Processes

    Jul 24, 2026Lu Luo, Dandan Mo, Chengdong Xu +4LLM WatermarkingSequential Hypothesis Testing

  2. A Unified Attack Framework against Statistical Generative Watermarks for Large Language Models

    Oct 20, 2026Romina Omidi, Nima Naderloui, Yuan Hong +1LLM WatermarkingRobustness of Machine-Generated Text Detection

  3. Flip, Don't Shuffle: Watermarking LLMs at the Speed of Inference

    Sep 3, 2026Simone Ceppi, Ignacio SanchezLLM Watermarking