Zero-Shot Statistical Tests for LLM-Generated Text Detection using Finite Sample Concentration Inequalities

Tara Radvand, Mojtaba Abdolmaleki, Mohamed Mostagir, Ambuj TewariarXiv 2025 · DOI

Introduction

As Large Language Models (LLMs) become increasingly sophisticated, their outputs are becoming nearly indistinguishable from human-authored text. This convergence poses significant challenges for academic integrity, the prevention of misinformation, and the mitigation of "model collapse"—a phenomenon where AI models degrade by retraining on their own generated data. Current detection tools generally fall into two categories: supervised classifiers, which require extensive labeled datasets and often fail on out-of-distribution data, and heuristic zero-shot methods, which lack formal mathematical guarantees.

Researchers from the University of Michigan have addressed these gaps by developing the first zero-shot statistical tests for LLM detection backed by rigorous theoretical guarantees. Their approach leverages finite sample concentration inequalities to provide a reliable framework for both Attribution (identifying a specific source model) and Detection (distinguishing AI-generated text from human writing).

Methodology

The proposed framework treats LLM text generation as a sequential stochastic process. The core methodology relies on two primary metrics: Log-perplexity, which measures the "surprise" of a model given a sequence, and Average Cross-Entropy, representing the expected surprise when one model predicts the output of another.

The critical innovation lies in the application of Finite Sample Concentration Inequalities. The authors mathematically prove that as text length increases, the log-perplexity of a generated sequence converges to the average cross-entropy between the generating model and the evaluator model. This allows for the design of two robust tests:

  1. The Attribution Test: Determines which of two model sets (e.g., sanctioned vs. non-sanctioned) most likely produced a given string.
  2. The "Model A or Not" Test: A one-sided test to verify if a specific model generated the text, even when the alternative source is unknown or human.

Experimental Setup

The method was evaluated across diverse domains to ensure broad applicability:

  • XSum: BBC news articles for fake news detection scenarios.
  • SQuAD: Wikipedia paragraphs for academic integrity contexts.
  • Reddit WritingPrompts: Creative fiction for stylistic detection.
  • RAID Benchmark: A dataset of 6 million texts used to evaluate robustness against 11 types of adversarial attacks, such as synonym swapping and paraphrasing.

Key Results

The experimental results demonstrate that the proposed method offers superior accuracy and reliability compared to existing benchmarks. A defining characteristic of this approach is the exponential decay of error rates (both Type I and Type II) as text length increases, a property not guaranteed by previous heuristic methods.

Error rates for the Attribution Test across different models and datasets.

In attribution tasks, the framework achieved near-perfect results in distinguishing between model families, such as Llama and Falcon, with error rates frequently as low as 0.02. Furthermore, in black-box settings—where the detector uses a small "proxy" model like Falcon-1B to score text from a hidden, closed-source model—the method achieved an average True Positive Rate (TPR) of 82.5% at a strict 5% False Positive Rate (FPR).

Performance comparison of the proposed method against various zero-shot baselines.

As shown in the performance comparison above, the proposed method consistently outperforms established zero-shot baselines, including "Binoculars," particularly on fact-based datasets like SQuAD. It also exhibits remarkable adversarial robustness; while other detectors often fail entirely under manipulation, this method maintained a minimum TPR of 48.6% against intentional attacks.

Discussion and Limitations

While the theoretical proofs currently require "white-box" access to a model's log-probabilities, empirical evidence suggests the method remains highly effective in black-box scenarios. However, providing formal theoretical guarantees for black-box detection remains an area for future research.

Additionally, the statistical nature of the test means that very short text snippets (e.g., single sentences) remain challenging due to the limited signal available for high-confidence detection. Finally, while the method is non-parametric and avoids expensive retraining, the computational cost of running these tests at scale requires significant GPU resources. Despite these challenges, this work provides a foundational step toward mathematically grounded and reliable LLM detection.

Summary updated

BibTeX
@misc{radvand2025zero,
  author = {Tara Radvand and Mojtaba Abdolmaleki and Mohamed Mostagir and Ambuj Tewari},
  title = {{Zero-Shot Statistical Tests for LLM-Generated Text Detection using Finite Sample Concentration Inequalities}},
  year = {2025},
  eprint = {2501.02406},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.02406},
}
Figure