CPD:基于上下文扰动差异的零样本AI生成文本检测方法
Beyond Fixed-Context Likelihood: Zero-Shot AI-Generated Text Detection via Context Perturbation Discrepancy
研究者提出零样本检测器Context Perturbation Discrepancy(CPD),用单个预训练语言模型衡量每个token在完整前缀与短窗口前缀下的对数概率增益差异。在GEN、DetectRL-X和HART数据集上,扣除期望增益后AUROC提升32.78-35.81个百分点,平均达94.80% AUROC,5%假阳性率下召回率79.60%,优于七个零样本基线。
arXiv:2611.32778v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org