cs.CLNov 24, 2026

Beyond Fixed-Context Likelihood: Zero-Shot AI-Generated Text Detection via Context Perturbation Discrepancy

Authors: Yifan Tang, Jingran Li, Yihao Wang, Zhen Yang, Jianyi Liu, Gongshen Liu, Ru Zhang

Organizations: School of Cyberspace Security, Beijing University of Posts and Telecommunications, Beijing, China · Beijing Academy of Artificial Intelligence, Beijing, China · School of Cyberspace Security, Shanghai Jiao Tong University, Shanghai, China

Abstract

The same increase in token log probability from earlier context can be typical at one position and unusually large at another. We introduce Context Perturbation Discrepancy (CPD), a zero-shot detector that measures this gain relative to what a single pretrained language model expects. Keeping the passage fixed, CPD scores each observed token under its full prefix and under a short window of recent tokens. Under the full-prefix distribution, the expected gain equals the KL divergence from that distribution to the restricted-prefix distribution. CPD subtracts this expectation from each observed gain and scales the sum of the signed deviations by its analytical reference standard deviation. On unedited human and AI texts from GEN, DetectRL-X, and HART, subtracting the expected gain raises AUROC by 32.78-35.81 percentage points at the same variance scale. CPD outperforms seven zero-shot baselines, averaging 94.80% AUROC and 79.60% recall at a 5% false-positive rate. On original and edited HART passages, the same scores separate texts more clearly by draft origin than by the benchmark's final-expression labels (89.15% versus 65.50% AUROC). Code is available at https://github.com/BUPT-tyf/CPD.

Figures & tables

Appendix figures & tables21 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Alignment Imprint: Zero-Shot AI-Generated Text Detection via Provable Preference Discrepancy

    Apr 18, 2026Junxi Wu, Kailin Huang, Dongjian Hu +4LLM AlignmentAI-Generated Text Detection

  2. Luminol-AIDetect: Fast Zero-shot Machine-Generated Text Detection based on Perplexity under Text Shuffling

    Apr 28, 2026Lucio La Cava, Andrea TagarelliAI-Generated Text Detection

  3. READER: Reasoning-Enhanced AI-Generated Text Detection

    May 24, 2026Pingfan Su, Kai Ye, Shijin Gong +4AI-Generated Text DetectionLarge Language Model-Based Text Classification