Optimal Estimation of Watermark Proportions in Hybrid AI-Human Texts

Xiang Li, Garrett Wen, Weiqing He, Jiayuan Wu, Qi Long, Weijie J. Su · DOI

Abstract

As AI-generated content becomes increasingly integrated into human workflows, the challenge of detection shifts from binary classification to estimating the proportion of machine-generated text in hybrid documents. This paper provides a rigorous statistical framework for this task, identifying the conditions under which the AI-generated fraction is mathematically identifiable. We analyze several popular watermarking schemes and demonstrate that while some, like the Green-Red list, suffer from inherent bias, others allow for precise estimation. We introduce an optimal estimator (OPT) that achieves the theoretical minimax lower bounds for accuracy with linear computational complexity, significantly outperforming existing localization-based methods.

Introduction

Existing AI detection tools primarily treat text as either entirely human-written or entirely AI-generated. However, real-world scenarios—such as academic essays, legal documents, or collaborative reports—often involve a mixture of both. While some methods attempt to localize specific AI-generated segments, these are often computationally expensive and statistically unstable. This research addresses the need for a reliable, aggregate measure: the exact percentage of AI-generated content within a document.

Statistical Framework and Watermarking Schemes

The authors frame the estimation of AI proportions as a parameter estimation problem within a statistical mixture model. The core of this approach relies on "pivotal statistics"—scores calculated for each token that indicate the strength of the watermark signal.

As shown in the table above, different watermarking schemes utilize different distributions for their pivotal statistics. For instance, the Gumbel-max scheme produces statistics following a $U(0,1)$ distribution under the null hypothesis (human text), whereas the Green-red list produces a Bernoulli distribution. This distinction is critical for the solvability of the proportion estimation problem.

The Identifiability Problem

A key insight of this work is that not all watermarks allow for accurate proportion estimation. The authors prove that the popular "Green-Red list" watermark is "non-identifiable" in this context. Because its statistical signals are binary, it lacks the necessary information density to distinguish between the mixture of human and AI text without prior knowledge of the LLM's internal probability distributions. Consequently, standard estimation methods applied to Green-Red watermarks will always suffer from unavoidable bias, regardless of the sample size.

Proposed Estimators

For identifiable watermarking schemes, the authors propose three estimators:

  1. Initial Estimator (INI): A baseline approach using simple statistical averages.
  2. Refined Estimator (IND): An improved version accounting for more distribution characteristics.
  3. Optimal Estimator (OPT): The primary contribution, which uses a mathematically derived optimal weight function and solves a fixed-point equation.

The authors demonstrate through "minimax lower bounds" that the OPT estimator achieves the absolute mathematical limit of accuracy possible for any algorithm performing this task.

Experimental Results

The methodology was validated using synthetic data and real-world corpora (C4 and arXiv) across several models, including OPT-1.3B and LLaMA3.1-8B.

  • Accuracy: The OPT estimator consistently achieved the lowest Mean Absolute Error (MAE). On the C4 dataset with a Gumbel-max watermark, OPT achieved an MAE of 0.004, whereas a baseline localization method (WPL) had an MAE of 0.254.
  • Efficiency: The OPT estimator operates in $O(n)$ time, making it significantly faster than segment-searching algorithms that typically require $O(n^{1.5})$ or $O(n^2)$ time.
  • Robustness: The estimator maintained high accuracy even when the text was subjected to post-processing edits, such as word substitutions or deletions, which often degrade standard detection signals.

Conclusion and Future Work

This paper establishes the first rigorous theoretical foundation for estimating AI-generated proportions in hybrid texts. By identifying the limitations of binary-signal watermarks and providing a minimax-optimal estimator for continuous-signal schemes, the authors offer a practical tool for high-stakes environments like education and publishing. Future research will explore integrating semantic importance into these scores—distinguishing between AI-generated transition words and AI-generated core arguments—and extending the framework to high-dimensional, neural-network-based watermarking schemes.

Summary updated

BibTeX
@misc{li2025optimal,
  author = {Xiang Li and Garrett Wen and Weiqing He and Jiayuan Wu and Qi Long and Weijie J. Su},
  title = {{Optimal Estimation of Watermark Proportions in Hybrid AI-Human Texts}},
  year = {2025},
  eprint = {2506.22343},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.22343},
}
Figure