Beyond Fixed-Context Likelihood: Zero-Shot AI-Generated Text Detection via Context Perturbation Discrepancy
Yifan Tang, Jingran Li, Yihao Wang, Zhen Yang, Jianyi Liu, Gongshen Liu, Ru Zhang
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.
Create a lesson
Related papers
How Reliable is AI-Generated Audio Description? A Multilingual Expert Evaluation
Shared title terminologycs.CLAnnette Rios, Lukas Fischer, Sarah Ebling
Generating Schema-Aligned Synthetic Dialogues and Measuring Their Diversity
Shared title terminologycs.CLKonrad Stolte, Toni Fetzer
ArabFake: A multitask deep learning framework for Arabic fake news Detection, Categorization, and risk prediction
Shared title terminologycs.CLAhmed Maher Khafaga Shehata, Mohammed Nasser Al-Suqri, Nour Eldin Mohamed Elshaiekh Osman et al.
ArEssays: Towards Robust Arabic Handwritten Text Understanding in Educational Settings
Shared title terminologycs.CLHamdy Mubarak, Anas Madkoor, Ehsaneddin Asgari et al.
RightDiff: Learning Generative Reward Models to Judge by the Right Differences
Shared title terminologycs.CLQiyuan Chen, Hongsen Huang, Jiahe Chen et al.
Making Evaluation Explicit Is Not Enough: Supervising the Evaluation Process in Generative Reward Models
Shared title terminologycs.CLQiyuan Chen, Yuze Zhao, Jiahe Chen et al.