Optimal Estimation of Watermark Proportions in Hybrid AI-Human Texts

Xiang Li, Garrett Wen, Weiqing He, Jiayuan Wu, Qi Long +1 more
6/27/2025
stat.MLcs.CLcs.LG

No official code found. Best implementation: lx10077/WatermarkProportion (3 stars, last commit 2025-06-30).

Abstract

Text watermarks in large language models (LLMs) are an increasingly important tool for detecting synthetic text and distinguishing human-written content from LLM-generated text. While most existing studies focus on determining whether entire texts are watermarked, many real-world scenarios involve mixed-source texts, which blend human-written and watermarked content. In this paper, we address the problem of optimally estimating the watermark proportion in mixed-source texts. We cast this problem as estimating the proportion parameter in a mixture model based on \emph{pivotal statistics}. First, we show that this parameter is not even identifiable in certain watermarking schemes, let alone consistently estimable. In stark contrast, for watermarking methods that employ continuous pivotal statistics for detection, we demonstrate that the proportion parameter is identifiable under mild conditions. We propose efficient estimators for this class of methods, which include several popular unbiased watermarks as examples, and derive minimax lower bounds for any measurable estimator based on pivotal statistics, showing that our estimators achieve these lower bounds. Through evaluations on both synthetic data and mixed-source text generated by open-source models, we demonstrate that our proposed estimators consistently achieve high estimation accuracy.

View on arXivView PDF

Code Implementations(1)

This repository contains the official code for the paper "Optimal Estimation of Watermark Proportions in Hybrid AI-Human Texts."

30C++, PythonJun 27, 20251 years ago
llmwatermarking

Similar Papers

Cite this paper

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

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.22343.svg)](https://codeofpaper.com/paper/2506.22343)

Discussion