TL;DR
While global watermark detection can tell you if a document contains AI-generated text, it cannot pinpoint exactly where those machine-generated parts are after a human has edited or rearranged them. This paper establishes the fundamental statistical limits of token-level watermark localization and introduces SPOT (Scanning Pivots Over Thresholds), an adaptive algorithm that successfully identifies watermarked tokens in mixed-source text without needing prior knowledge of the editing process or text distributions.
What Problem Does This Paper Address?
Watermarking is a powerful tool for authenticating text generated by Large Language Models (LLMs) by embedding subtle statistical signals directly into the token generation process. However, in real-world scenarios, AI-generated text is rarely used raw; users routinely paraphrase, rewrite, insert human text, or delete sections.
This creates mixed-source text, where the watermark signal only survives in a sparse, non-contiguous subset of tokens. Prior work focused almost exclusively on global detection—answering the binary question: "Does this document contain any watermarked text?" This paper addresses the much finer-grained challenge of watermark localization (or signal discovery): identifying exactly which token positions still carry the watermark evidence.
Methods
The authors frame watermark localization as a token-level multiple-testing problem. They utilize a scalar pivotal statistic ($Y_t$) evaluated at each token position $t$. A key property of this statistic is that it is distribution-free under the null hypothesis: if a token is human-written or its watermark was destroyed by editing, $Y_t$ follows a known uniform distribution $\mathcal{U}(0,1)$, regardless of the underlying language model's vocabulary distribution.
To analyze the limits of localization, they establish an asymptotic framework characterized by three exponents:
- Sparsity ($p$): How rare the surviving watermarked tokens are ($n^{-p}$).
- Concentration ($q$): How predictable the next token is (larger $q$ means lower entropy and weaker watermark evidence per token).
- Vocabulary Growth ($\alpha$): The rate at which the low-probability vocabulary tail expands.
Using this framework, they introduce SPOT (Scanning Pivots Over Thresholds). SPOT operates by scanning a grid of tail thresholds on the pivotal statistics. It uses empirical tail counts to construct a data-driven proxy for the marginal False Discovery Rate (mFDR) and adaptively selects the largest possible set of tokens while strictly controlling for false discoveries.
Datasets
The authors evaluated their approach using both synthetic simulations and real-world language data:
- Simulated Data: Used to rigorously map out and validate the theoretical phase transitions and boundaries.
- C4 Dataset: A news-like subset of 1,000 documents from the Colossal Clean Crawled Corpus was used for real-LLM evaluation. Text continuations were generated using the open-source OPT-1.3B model under various text-editing conditions (random substitutions, insertions, deletions, adversarial edits, and roundtrip translations).
Key Insights and Ideas
- The Inference Hierarchy: The paper defines a clear difficulty hierarchy among three goals: Global Detection (easiest) $\rightarrow$ Discovery (localizing some watermarked tokens safely) $\rightarrow$ Classification (perfectly separating all human vs. AI tokens).
- Discovery is Strictly Harder than Detection: The authors mathematically prove that there is a distinct parameter regime where you can easily detect that a document contains AI text globally, yet it is mathematically impossible to confidently isolate even a single AI-generated token.
- Classification is Impossible: Within the class of coordinatewise pivot-based rules, consistent classification is impossible across the entire parameter regime. Because weak watermark signals overlap heavily with the null distribution, trying to catch every single AI token inevitably introduces too many false positives.
- The Power of the Vocabulary Tail: Vocabulary growth ($\alpha$) acts as a major driver for localization. A larger vocabulary tail provides more rare-token opportunities, which yield highly distinctive local evidence when watermarked.
Key Results
SPOT demonstrates superior performance across all common human edit types compared to existing baselines like AOL (Adaptive Online Locator).
- Optimal Boundaries: SPOT theoretically achieves the optimal discovery boundary and near-optimal discovery power relative to an "oracle" rule that knows the exact text distributions.
- Empirical Performance: In experiments with OPT-1.3B on the C4 dataset, SPOT consistently achieved significantly higher True Positive Rates (TPR) and Intersection-over-Union (IoU) scores under a fixed False Positive Rate (FPR $\le$ 0.05).
- Efficiency: SPOT is computationally lightweight. Once the token-level pivots are recomputed, the localization inference step takes a mere 0.005–0.008 seconds per sample.
Limitations and Future Work
- Fraction Estimator Dependency: SPOT relies on an external plug-in estimator to determine the overall fraction of surviving watermarked text. At low generation temperatures (where text becomes highly deterministic), this estimator's accuracy degrades, which in turn hurts SPOT's performance.
- Batch-Based Processing: The current algorithm requires analyzing the entire text document at once to estimate global properties before setting local thresholds. Developing fully streaming or online localization methods remains an open challenge.
- Coordinatewise Constraint: The theoretical bounds and algorithms are restricted to coordinatewise rules (treating tokens individually). Future work could exploit block-like structures (since humans tend to edit text in contiguous paragraphs or phrases) or extend these theories to semantic/sentence-level watermarking schemes.
Summary updated