WorksComputer Science
Beyond Fixed-Context Likelihood: Zero-Shot AI-Generated Text Detection via Context Perturbation Discrepancy
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.
Introduction
Large language models (LLMs) enter the writing process as both drafters and editors [44]. People revise model-generated drafts, and models polish human-written drafts [32, 4]. We use AI-generated for direct model output and draft origin for the human or AI source of a draft before revision. We study
two zero-shot tasks with a pretrained language model and no task-specific classifier training. The first distinguishes human writing from direct model output [26]. The second asks whether the original draft was human- or AI-written, using only the revised passage.
Existing zero-shot detectors use token likelihood and rank, probability curvature, and comparisons between predictive distributions [26, 3, 14] (Su et al. 2023; Ma et al. 2026). Others examine temperature sensitivity, likelihood at multiple context scales, or dependencies within the text [34] (Ma et al. 2026; Ma & Wang 2026). Editing can change the statistical patterns these detectors measure [18, 8] (Li et al. 2024; Wu et al. 2026b). On HART [4], full-prefix likelihood partly separates unedited human and AI texts. Once edited passages are included, the likelihood distributions for the two draft origins overlap substantially (Figure 1, top row). We ask whether the change in a token’s probability when earlier context is restored carries evidence of draft origin, and how much of this evidence survives editing.
Figure 1. Fixed-context likelihood (top) and CPD (bottom). Left: token likelihood versus contextual response deviation. Right: document score distributions on HART for (a) direct detection (H vs. A) and (b) detection by draft origin under editing (H/HA vs. A/AH). H and A denote original human and AI texts. HA denotes AI-edited human text, and AH denotes AI text humanized by a model, tool, or person. The blue curves show the distributions for human-origin texts and the orange curves those for AI-origin texts.
Consider two tokens with the same probability under their respective full prefixes. With only the most recent tokens available, the first retains that probability and the second becomes much less likely. Restoring earlier context therefore gives the second token a larger gain, even though the full-prefix probabilities are identical. We measure this gain by scoring each observed token twice with the same model. The difference between its full- and restricted-prefix log probabilities is its contextual response.
The same gain can exceed the scorer’s expectation at one position and fall below it at another. To obtain the model-expected contextual response at each position, we average the gains of possible next tokens under the full-prefix distribution. This average equals the KL divergence from the full-prefix distribution to the restricted one. Subtracting it from the observed gain gives a signed contextual response deviation. A positive gain yields a negative deviation whenever the scorer expects a larger gain at that position.
Our detector, Context Perturbation Discrepancy (CPD), sums these signed deviations across the document and divides the sum by its reference standard deviation. Only the prefix visible to the scorer changes, so a single pretrained model can score the passage without generating alternatives. On HART, this comparison separates the two draft origins more clearly than full-prefix likelihood both before and after edited passages are included (Figure 1, lower row).
Our analysis and experiments make three contributions.
(1) A prefix-specific reference for context gain. We derive the gain a scorer expects when earlier context is restored. Subtracting this KL reference gives the observed token a signed deviation whose expectation under the scorer is zero at every prefix. The document score sums the signed deviations over the scored positions, so gains above expectation at some prefixes can offset shortfalls elsewhere in the passage.
(2) What each context contributes. On all three direct-detection benchmarks, centering improves document ranking even when we simply average token scores. We decompose the centered gain into two log-likelihood residuals and show that their difference gives higher AUROC than either alone. For the short prefix, a random earlier token outperforms the immediate predecessor when the restricted-context residual is scored alone. On all three benchmarks, the predecessor yields higher AUROC when each short-prefix residual is paired with the same full-context residual.
(3) Draft-origin detection before and after revision. CPD outperforms seven zero-shot baselines on unedited texts from GEN, DetectRL-X, and HART. Regrouping the same HART passages shows that its scores track draft origin more closely than the benchmark’s final-expression labels. In matched revisions, heavier AI editing of human drafts on GEN progressively weakens separation from AI output, while expanding AI drafts on DetectRL-X raises recall at a 5% false-positive rate and polishing them lowers it.
Related Work
Statistical and contextual detection of AI-generated text. Statistical detectors use token likelihood and rank [9] (Su et al. 2023), sensitivity to decoding settings [16] (Ma et al. 2026), and variation in token statistics across positions and scales [40] (Xu et al. 2025). Kempton et al. [17] calibrate token scores within regions of a model’s hidden space. On a shared prefix, Binoculars compares observed perplexity with cross-perplexity between two models [14]. Chen et al. [6] compare log likelihoods across preference alignments, while Liu et al. [21] interpret the instruction-tuned model’s log-likelihood ratio to its base model as an implicit reward. Alignment Imprint weights the aligned-to-base log-likelihood ratio by token self-information and standardizes it using the base model’s conditional moments (Wu et al., 2026a).
LAR learns to combine token likelihood features across nested prefixes [34], while TCD uses attention entropy to weight token scores (Ma & Wang, 2026). Fast-DetectGPT centers observed log likelihood under a conditional sampling distribution [3]. Radvand et al. [31] compare log-perplexity with mean predictive entropy to test a candidate generator, deriving finite-sample error bounds under assumptions on token probabilities and source separation. CPD centers the log-probability gain an observed token receives when earlier context is restored to the same scoring model. Its reference is the gain expected under the full-prefix distribution at that position.
Perturbation-based detection. DetectGPT estimates probability curvature by scoring perturbed versions of a passage [26]. Other methods compare the passage with a syntactically reordered version [35] or with a revision produced by ChatGPT [45]. Hao et al. [15] train a rewriter to amplify differences in edit distance between human and AI texts. TOCSIN measures the semantic change after random token deletion and uses it to rescale a detector’s score (Ma & Wang, 2024). D&R reconstructs a passage in one black-box model call after shuffling tokens within chunks [36]. Its classifier uses semantic similarity and word-order agreement between the reconstruction and the original. CPD changes only the prefix visible to the scorer. Both predictions concern the observed token, so scoring requires no revision or reconstruction of the original passage.
Draft-origin detection under editing. Paraphrasing and rewriting can change how reliably detectors identify machine-generated passages [18, 8] (Li et al. 2024; Wu et al. 2026b). PRDetect uses syntactic structure to detect AI-generated text after perturbation Li et al. (2025). Editing can also start from a human draft. On GEN, Shan et al. (2026) find that AI editing of human writing leaves a different stylometric trace from direct generation. HART explicitly distinguishes content from expression and proposes detecting AI involvement along both dimensions [4]. We use HART to ask which distinction a single CPD score captures, grouping the same scored passages first by draft origin and then by final expression. Matched revisions on GEN and DetectRL-X let us follow how the evidence for draft origin changes as human drafts undergo heavier AI editing or the same set of AI drafts undergoes condensation, expansion, or polishing.
Methodology
CPD constructs token-level detection evidence by centering observed contextual responses against their model-expected values (Figure 2). We first define responses under full and restricted contexts (§ 2.1), derive their expectations and deviations (§ 2.2), and then aggregate and normalize the deviations into a document score (§ 2.3).
Figure 2. CPD overview. The same model scores each observed token under its full prefix and the last tokens of that prefix. At each position, CPD subtracts the expected log-probability gain, given by the KL divergence between the two predictive distributions, from the observed gain. It sums and normalizes these deviations to obtain a document score. Var denotes the reference variance in Eq. (6). The detector assigns AI origin to documents at or above a separately selected threshold and human origin to those with scores below it.
Problem Formulation and Context Perturbation
Given an observed text and a pretrained autoregressive language model , we seek a document-level detection score without task-specific classifier training or access to the original generator. In direct detection, we distinguish human-written from directly AI-generated texts. When we evaluate draft origin after editing, the detector scores the revised text and the target label identifies who produced the draft before revision.
Models use observations to predict robot actions and future world states [38 b]. In autoregressive language modeling, the prefix provides the context for predicting the next token. CPD measures how earlier tokens affect the probability of the observed token by scoring it with under the full prefix and under only its last tokens.
where denotes a candidate vocabulary token and is the number of retained preceding tokens. We consider positions for . At the first scored position, , both prefixes contain the same tokens, so the two next-token distributions are identical.
We define the contextual response of a candidate token as
For the observed token , measures the change in log probability when we restore the context preceding the last tokens. A positive response means the earlier context raises the predicted probability of that token. A negative response means the token is less likely under the full prefix.
Contextual Response Deviation
At position , we use the full-context distribution as the reference for the next token. Each candidate gains in log probability when earlier context is restored. Weighting each gain by the full-prefix probability gives the expected log-probability gain for this particular prefix,
This KL divergence gives a single model-expected contextual response for all candidate tokens at that prefix.
We define the contextual response deviation by subtracting this expectation from the observed response:
Under the scorer’s own next-token distribution, the deviations average to zero, . Let denote the source’s next-token distribution at this prefix. As shown in Appendix § 11.§ 1, the expected deviation under weights each token’s contextual gain by the difference ,
A source that shifts probability mass from tokens with smaller contextual gains to tokens with larger gains, relative to , has positive expected deviation. Centering preserves the ordering of tokens at a fixed prefix, but the centering term varies across prefixes. For two passages with the same total observed gain, the one with the smaller total expected gain has the larger sum of deviations.
Document-Level Aggregation and Normalization
At the document level, we ask whether the observed tokens, taken together, gain more or less from the full context than the scoring model expects at their respective positions. We measure this net departure by summing the signed token-level deviations over . Let and . Their difference, , equals the sum of the observed token deviations.
To obtain a reference scale for this sum, we hold the observed prefixes fixed and define hypothetical reference tokens that are independent across positions (Appendix § 11.§ 1.1). Define their accumulated response as . The variance of this sum follows from independence of the reference tokens,
We compute each variance analytically under as the second response moment minus the squared expectation. Subtracting the constant at each fixed prefix leaves the individual response variances and their sum unchanged.
Normalizing the sum gives the document-level score
Here, ensures numerical stability. The score expresses the sum of signed deviations in units of the reference standard deviation, which reflects both the number of scored positions and their individual response variances. Higher CPD scores indicate stronger evidence of AI origin. This uncalibrated score ranks documents directly. For binary classification, we compare each document’s score with a threshold selected for the desired operating point (Figure 2).
Experiments
We first evaluate CPD on unedited human and AI texts. On HART, we compare how well the same scores distinguish draft origin and final expression. We use matched revisions of human drafts on GEN and AI drafts on DetectRL-X to measure how rewriting affects draft-origin discrimination.
Experimental Setup
Datasets. The English tests compare unedited human texts (H) with direct AI outputs (A) on GEN (Shan et al., [32]), DetectRL-X (Wu et al., 2026b), and HART (Bao et al., [4]). GEN’s prompt-disjoint development and test splits each contain 2,000 texts per class before score filtering. Each test prompt pairs one human text with one model output, yielding 249–251 pairs per generator. The official DetectRL-X and HART test sets contain 6,000 and 2,000 texts per class, respectively. HART also includes AI-edited human drafts (HA) and humanized AI drafts (AH). The first letter denotes draft origin, and humanization can involve a model, a tool, or a person (Appendix § 10).
Detectors and scoring. We score passages without prompts or metadata, using at most 1,024 tokens and BF16 inference. CPD uses Falcon-7B (Almazrouei et al., [1]) for both prefixes. We score from the second token with , which maximized AUROC among on GEN development data. Loglikelihood (Gehrmann et al., [9]), LRR (Su et al., 2023), TempTest (Kempton et al., [16]), and NTS (Ma et al., 2026) share CPD’s backbone. Fast-DetectGPT (Bao et al., [3]) and Lastde++ (Xu et al., 2025) use Falcon-7B for the sampling distribution and Falcon-7B-Instruct for scoring. In Binoculars (Hans et al., [14]), the same models serve as observer and performer, respectively. Single-Fast uses Falcon-7B for both Fast-DetectGPT roles in direct detection. Appendices § 10.6 and § 12.§ 4 give detector settings and window-size results.
Evaluation protocol. We fix score directions before testing (higher indicates AI origin), including when regrouping HART by final expression. We report the area under the ROC curve (AUROC) and TPR@5% as percentages. TPR@5% is the highest test recall at a false-positive rate (FPR) of at most 5%. For threshold transfer, each detector keeps its GEN development threshold targeting 5% FPR (Appendix § 13.§ 1.1). Macro averages weight benchmarks equally. We compute gains in percentage points from unrounded scores, using the strongest baseline for each metric. Appendix § 10.§ 4 details sampling and class balancing.
Main Results: Zero-Shot Detection
CPD leads on both metrics across all three benchmarks (Table 1). It reaches 94.80% macro AUROC (16.87 points above NTS) and 79.60% macro TPR@5% (32.67 points above Lastde++). For each metric and benchmark, CPD’s 95% bootstrap interval lies above those of all baselines (Appendix § 13.§ 1). With thresholds calibrated on GEN development data, CPD leads in balanced accuracy on all three tests, with its highest FPR on DetectRL-X (6.95%, Table 13).
| Method | GEN AUROC | GEN TPR@5% | DetectRL-X AUROC | DetectRL-X TPR@5% | HART AUROC | HART TPR@5% | Macro Avg. AUROC | Macro Avg. TPR@5% |
| Zero-Shot Detectors | ||||||||
| Loglikelihood ([9]) | 43.04 | 8.65 | 55.52 | 8.72 | 75.77 | 15.20 | 58.11 | 10.86 |
| LRR ((Su et al., 2023)) | 47.94 | 13.65 | 53.33 | 10.57 | 81.25 | 49.00 | 60.84 | 24.41 |
| TempTest ([16]) | 43.91 | 19.90 | 72.74 | 21.80 | 87.69 | 74.85 | 68.12 | 38.85 |
| NTS ((Ma et al., 2026)) | 67.75 | 33.55 | 72.73 | 19.92 | 93.30 | 82.15 | 77.92 | 45.21 |
| Single-Fast ([3]) | 42.79 | 21.30 | 72.72 | 25.30 | 87.71 | 76.60 | 67.74 | 41.07 |
| Binoculars ([14]) | 46.38 | 23.80 | 68.42 | 9.22 | 91.09 | 85.80 | 68.63 | 39.61 |
| Fast-DetectGPT ([3]) | 47.04 | 26.50 | 69.39 | 15.70 | 90.78 | 84.25 | 69.07 | 42.15 |
| Lastde++ ((Xu et al., 2025)) | 68.52 | 43.35 | 68.40 | 11.85 | 93.54 | 85.60 | 76.82 | 46.93 |
| CPD (Ours) | 94.18 | 80.25 | 91.90 | 65.60 | 98.31 | 92.95 | 94.80 | 79.60 |
| Absolute Gain (↑) | +25.66 | +36.90 | +19.16 | +40.30 | +4.76 | +7.15 | +16.87 | +32.67 |
Table 1. Zero-shot detection of unedited human texts (H) and direct AI outputs (A) on GEN, DetectRL-X, and HART. AUROC and TPR@5% are percentages. Single-Fast uses the same model for both Fast-DetectGPT roles, and † marks dual-model configurations. Macro Avg. weights the benchmarks equally. Absolute Gain gives CPD’s lead over the best baseline in each column, in percentage points.
| Method | Threshold | GEN FPR ↓ / TPR ↑ / BA ↑ | DetectRL-X FPR ↓ / TPR ↑ / BA ↑ | HART FPR ↓ / TPR ↑ / BA ↑ |
| Log-Likelihood | −1.69295077 | 5.40 / 9.85 / 52.23 | 3.87 / 6.88 / 51.51 | 6.00 / 23.25 / 58.63 |
| LRR | 2.24106137 | 4.45 / 13.10 / 54.33 | 5.68 / 11.25 / 52.78 | 2.80 / 39.10 / 68.15 |
| TempTest | −0.0533681143 | 5.05 / 19.95 / 57.45 | 23.25 / 53.83 / 65.29 | 9.85 / 79.55 / 84.85 |
| NTS | 0.0827531921 | 4.25 / 32.20 / 63.98 | 24.17 / 57.18 / 66.51 | 7.50 / 84.45 / 88.48 |
| Binoculars | −0.922963955 | 3.75 / 22.80 / 59.53 | 30.20 / 57.10 / 63.45 | 6.55 / 86.40 / 89.93 |
| Fast-DetectGPT | 2.04604385 | 3.90 / 25.45 / 60.78 | 24.92 / 49.15 / 62.12 | 3.65 / 86.00 / 89.68 |
| Lastde++ | 2.10648095 | 3.50 / 40.45 / 68.48 | 22.65 / 45.43 / 61.39 | 3.75 / 84.70 / 90.48 |
| CPD (Ours) | 2.05796176 | 3.75 / 77.70 / 86.98 | 6.95 / 70.35 / 81.70 | 3.50 / 91.65 / 94.08 |
Table 13. Fixed-threshold detection of unedited human and AI texts (H vs. A). For each test set, cells give FPR / TPR / balanced accuracy (BA) in percent. Each detector uses its GEN development threshold (target FPR 5%) at full precision on all three test sets. We round thresholds only for display. For each benchmark, bold marks the lowest false-positive rate and the highest recall and balanced accuracy.
At 5% FPR, CPD’s recall ranges from 65.60% on DetectRL-X (40.30 points above runner-up Single-Fast, its largest lead) to 92.95% on HART. CPD leads both metrics on seven of eight GEN generators. On GPT-OSS-20B, NTS leads with 60.24% recall versus CPD’s 37.35% (Table 24). With score directions fixed, five baselines fall below 50% AUROC on the same five GEN subsets and exceed 50% on the other three. Falcon-7B log-likelihood typically ranks GPT-OSS-20B outputs below human texts (2.84% AUROC) and GPT-OSS-120B outputs above them (78.34%).
| Detector | Gemma 3 12B | Gemma 3 27B | Qwen2.5 7B | Qwen2.5 72B | GPT-OSS 20B | GPT-OSS 120B | Llama 3.1-8B | Llama 3.3-70B |
| AUROC (%) | ||||||||
| Loglikelihood | 38.02 | 41.32 | 29.96 | 64.16 | 2.84 | 78.34 | 33.95 | 53.24 |
| LRR | 41.93 | 43.31 | 48.32 | 67.43 | 3.00 | 78.48 | 44.56 | 54.03 |
| TempTest | 32.52 | 37.79 | 28.54 | 65.44 | 6.22 | 89.63 | 35.15 | 51.88 |
| NTS | 50.00 | 53.15 | 64.78 | 74.01 | 85.36 | 89.80 | 53.23 | 71.31 |
| Binoculars | 29.35 | 27.50 | 28.71 | 67.68 | 24.05 | 86.07 | 48.71 | 57.81 |
| Fast-DetectGPT | 29.79 | 29.16 | 30.09 | 67.53 | 26.05 | 86.22 | 49.15 | 58.00 |
| Lastde++ | 59.30 | 49.96 | 67.64 | 78.23 | 41.23 | 86.11 | 87.48 | 77.88 |
| CPD | 96.15 | 97.01 | 97.70 | 94.98 | 78.42 | 96.44 | 97.53 | 96.83 |
| TPR at 5% FPR (%) | ||||||||
| Loglikelihood | 2.00 | 1.99 | 1.20 | 24.80 | 0.00 | 36.40 | 0.80 | 19.60 |
| LRR | 4.80 | 3.59 | 3.60 | 30.00 | 0.00 | 46.40 | 2.80 | 17.20 |
| TempTest | 0.00 | 1.20 | 4.40 | 47.60 | 0.00 | 76.40 | 8.40 | 25.60 |
| NTS | 10.40 | 7.57 | 28.40 | 44.40 | 60.24 | 67.20 | 20.40 | 30.40 |
| Binoculars | 1.60 | 2.39 | 3.20 | 50.80 | 4.42 | 70.00 | 21.60 | 40.80 |
| Fast-DetectGPT | 2.40 | 4.78 | 8.40 | 52.00 | 4.42 | 72.40 | 24.80 | 42.00 |
| Lastde++ | 17.20 | 19.52 | 41.20 | 59.20 | 11.24 | 73.20 | 67.20 | 55.60 |
| CPD | 83.20 | 85.26 | 90.40 | 82.40 | 37.35 | 86.40 | 91.20 | 87.20 |
Table 24. Direct detection on GEN for eight generators. Each prompt pairs a human text with an AI output. Each column contains 250 prompt pairs, except Gemma 3-27B (251) and GPT-OSS-20B (249). Bold marks the highest value for each generator and metric.
With Falcon-7B, CPD outperforms Single-Fast on both metrics across benchmarks. Table 4 isolates the contribution of restricted context. TCD weighting ((Ma & Wang, 2026)) slightly improves CPD’s recall on HART and lowers both metrics elsewhere. TOCSIN ((Ma & Wang, 2024)) improves dual-model Fast-DetectGPT’s recall only on DetectRL-X and lowers both CPD metrics on every benchmark, with the largest recall loss on GEN (24.5 points, Table 14).
| Dataset | Component | AUROC | |||
| GEN | 42.10 | −0.056 | 0.207 | 0.270 | |
| 92.84 | +0.444 | 0.212 | 2.088 | ||
| 95.24 | +0.388 | 0.168 | 2.312 | ||
| 92.11 | +0.434 | 0.198 | 2.188 | ||
| 93.04 | +0.378 | 0.187 | 2.020 | ||
| 92.91 | +0.460 | 0.210 | 2.186 | ||
| 93.98 | +0.403 | 0.187 | 2.156 | ||
| DetectRL-X | 72.21 | +0.129 | 0.162 | 0.796 | |
| 71.87 | +0.132 | 0.167 | 0.791 | ||
| 91.76 | +0.260 | 0.135 | 1.935 | ||
| 71.84 | +0.121 | 0.151 | 0.799 | ||
| 90.03 | +0.249 | 0.139 | 1.799 | ||
| 75.26 | +0.150 | 0.157 | 0.957 | ||
| 90.72 | +0.279 | 0.149 | 1.866 | ||
| HART | 87.93 | +0.315 | 0.219 | 1.439 | |
| 65.35 | +0.158 | 0.241 | 0.653 | ||
| 98.26 | +0.472 | 0.147 | 3.203 | ||
| 69.56 | +0.164 | 0.212 | 0.777 | ||
| 97.53 | +0.479 | 0.155 | 3.089 | ||
| 71.43 | +0.184 | 0.223 | 0.823 | ||
| 97.51 | +0.499 | 0.164 | 3.035 |
Table 4. Component decomposition for H vs. A (AUROC in %). Scores average matched positions without variance normalization. References are the preceding token (rest), a uniformly sampled past token (shuff), or the GEN development marginal. is the class mean gap, the pooled within-class standard deviation, and expresses the absolute difference between the two class means in units of the pooled standard deviation.
| Method | GEN AUROC | GEN TPR@5% | DetectRL-X AUROC | DetectRL-X TPR@5% | HART AUROC | HART TPR@5% | Macro Avg. AUROC | Macro Avg. TPR@5% |
| Single-Fast | 42.79 | 21.30 | 72.72 | 25.30 | 87.71 | 76.60 | 67.74 | 41.07 |
| Fast† | 47.05 | 26.50 | 69.38 | 15.72 | 90.78 | 84.30 | 69.07 | 42.17 |
| Fast+TCD† | 50.51 | 26.90 | 68.92 | 20.02 | 93.11 | 85.45 | 70.85 | 44.12 |
| Fast+TOCSIN† | 47.77 | 20.40 | 68.35 | 18.02 | 89.68 | 80.30 | 68.60 | 39.57 |
| CPD | 94.18 | 80.25 | 91.90 | 65.60 | 98.31 | 92.95 | 94.80 | 79.60 |
| CPD+TCD | 93.36 | 78.10 | 90.97 | 63.03 | 98.30 | 93.25 | 94.21 | 78.13 |
| CPD+TOCSIN | 89.42 | 55.75 | 90.97 | 59.77 | 97.44 | 90.10 | 92.61 | 68.54 |
Table 14. Direct detection (H vs. A) with Fast-DetectGPT and CPD, including variants that use TCD or TOCSIN. Both metrics are percentages. A dagger marks detectors that use two causal language models. Both TOCSIN variants use BART-base to score reconstruction of the original text after word deletion. Macro Avg. weights the three benchmarks equally. Bold marks the best value in each column.
distributions in Figure 3 show why draft origin and final expression give different recall values. Under CPD, humanized AI drafts score closer to unedited AI drafts, and AI-edited human drafts score closer to unedited human drafts. Fast-DetectGPT assigns humanized AI drafts scores that overlap substantially with those for human-origin texts.
Figure 3. HART score distributions for (a) Fast-DetectGPT and (b) CPD (). H/HA are human-origin and AH/A are AI-origin texts. Higher scores indicate stronger evidence of an AI draft.
Discrimination after editing. CPD leads in AUROC on all four draft-origin comparisons. Among edited texts (HA versus AH), it reaches 76.68% AUROC versus 61.26% for NTS, the strongest baseline. CPD also leads in TPR@5% on three comparisons. NTS narrowly leads on the fourth, HA versus A. For the same 1,999 humanized AI drafts, replacing unedited human controls with AI-edited human controls requires a higher threshold to stay within 5% FPR. Recall falls from 73.74% to 45.32% (Appendix § 13.§ 3).
Variation across domains and editors. We restrict the domain and editor comparisons to texts of 300–500 Falcon-7B tokens before truncation. For draft-origin detection (H/HA versus A/AH), CPD leads on both metrics in all four domains, with AUROC ranging from 85.39% on essays to
Draft Origin under Editing
Changing only the HART labels from draft origin (H/HA versus A/AH) to final expression (H/AH versus A/HA) moves CPD from the highest to the lowest AUROC among the eight detectors (89.15% versus 65.50%, Table 2). With FPR capped at 5% on each ROC curve, recall is 62.39% for draft origin and 6.88% for final expression. The score
| Method | H/HA vs. A/AH | HA vs. A | H vs. AH | HA vs. AH | H/AH vs. A/HA |
| LogLikelihood | 52.12 / 11.48 | 73.44 / 26.50 | 34.58 / 0.55 | 24.67 / 1.00 | 74.19 / 20.13 |
| LRR | 56.51 / 25.56 | 80.35 / 48.00 | 33.59 / 3.00 | 30.81 / 2.85 | 72.68 / 29.58 |
| TempTest | 64.47 / 40.19 | 82.84 / 65.25 | 50.19 / 17.36 | 37.13 / 8.40 | 76.25 / 34.88 |
| NTS | 79.74 / 50.54 | 87.42 / 66.45 | 76.96 / 41.72 | 61.26 / 19.61 | 70.12 / 23.93 |
| Binoculars | 70.62 / 43.81 | 84.32 / 60.65 | 62.25 / 39.02 | 44.79 / 9.05 | 76.84 / 33.73 |
| Fast-DetectGPT | 70.44 / 47.31 | 83.79 / 62.80 | 61.89 / 38.87 | 45.27 / 16.86 | 75.95 / 27.83 |
| Lastde++ | 75.12 / 48.01 | 86.84 / 63.75 | 69.01 / 37.72 | 51.06 / 16.76 | 74.74 / 24.98 |
| CPD (Ours) | 89.15 / 62.39 | 90.82 / 65.90 | 90.80 / 73.74 | 76.68 / 45.32 | 65.50 / 6.88 |
Table 2. Draft-origin detection and final-expression diagnostics on HART. Each cell reports AUROC and TPR@5%, both in percent. H denotes unedited human text, A direct AI output, HA an AI-edited human draft, and AH a humanized AI draft. A slash in a column heading pools the indicated categories. In each comparison, the first group supplies the negatives and the second the positives.
95.45% on arXiv (Appendix § 13.§ 4). With unedited human controls (H versus AH), rankings vary by editor. CPD leads on both metrics for model and tool rewrites. On drafts rewritten by people, CPD and Binoculars have similar AUROCs, while Fast-DetectGPT achieves higher recall at 5% FPR than CPD (80.20% versus 69.31%, Appendix § 13.6).
Detection under AI-mediated Rewriting
The HART experiment regroups the same scores. Here we keep origin labels fixed and follow drafts across revisions. GEN provides originals and AI-edited versions of 936 human drafts distinct from the direct-detection set. Each draft has one revision per edit-ratio range, with equal representation of the three editors in each range and the same AI controls throughout. On DetectRL-X, condensation, expansion, and polishing change the wording and length of the same 6,000 AI drafts, which we score against fixed human controls. Both experiments preserve domain composition, detector settings, and score directions (Appendix § 13.7).
AI editing of human-origin text. On GEN, both metrics decline as the edit ratio increases, while CPD leads at every editing level (Figure 4(a) and Table 17). In the 60–80% edit-ratio range, CPD reaches 77.71% AUROC and all seven baselines fall below 50% in their fixed score directions. Recall at 5% FPR falls from 79.06% on the original drafts to 52.35% at this highest editing level. Because the AI references are fixed, this decline shows the cost of controlling false positives on increasingly edited human drafts.

Figure 4. Draft-origin detection under AI-mediated rewriting (AUROC, 0–1). (a) On GEN, the same 936 human drafts serve as negatives before and after AI editing, against 936 fixed AI-generated positives. Original (0%) uses the unedited drafts. (b) On DetectRL-X, three editing operations modify the same AI drafts, which remain positive against the same human controls. Score directions remain fixed.
| Method | Original (0%) AUROC | Original (0%) TPR@5% | 20–40% AUROC | 20–40% TPR@5% | 40–60% AUROC | 40–60% TPR@5% | 60–80% AUROC | 60–80% TPR@5% |
| LogLikelihood | 47.09 | 10.04 | 43.04 | 8.97 | 38.76 | 6.41 | 34.66 | 4.27 |
| LRR | 51.61 | 17.84 | 52.78 | 17.84 | 50.58 | 13.68 | 47.72 | 8.97 |
| TempTest | 44.76 | 19.34 | 35.86 | 13.35 | 30.34 | 7.48 | 24.63 | 3.63 |
| NTS | 66.67 | 33.23 | 55.44 | 21.90 | 46.24 | 13.35 | 37.53 | 6.84 |
| Binoculars | 45.94 | 23.29 | 33.20 | 14.74 | 27.52 | 7.91 | 22.03 | 3.10 |
| Fast-DetectGPT | 46.79 | 25.64 | 34.36 | 16.45 | 29.20 | 9.51 | 24.72 | 4.91 |
| Lastde++ | 68.96 | 43.59 | 55.35 | 26.07 | 48.54 | 19.02 | 41.80 | 9.08 |
| CPD (Ours) | 93.51 | 79.06 | 88.13 | 69.44 | 82.33 | 58.44 | 77.71 | 52.35 |
Table 17. Draft-origin detection on GEN before and after AI editing of the same human drafts (AUROC and TPR@5%, in %). The negatives are 936 human drafts or their revisions within the indicated edit-ratio range. The same 936 directly generated AI texts serve as positives throughout. Bold marks the best detector for each metric on the original drafts and within each of the three edit-ratio ranges.
AI refinement of AI-origin text. On DetectRL-X, CPD leads on both metrics under each rewriting operation (Figure 4(b) and Table 18). Recall at 5% FPR is 65.60% on the original drafts and 65.57% for rewrites pooled across all three operations. Against the same unedited human controls, CPD’s recall rises to 99.90% after expansion and falls to 53.63% after condensation and 44.93% after polishing.
| Method | Original AUROC | Original TPR@5% | Condensing AUROC | Condensing TPR@5% | Expanding AUROC | Expanding TPR@5% | Polishing AUROC | Polishing TPR@5% | Overall AUROC | Overall TPR@5% |
| LogLikelihood | 55.52 | 8.72 | 36.39 | 0.85 | 65.15 | 2.57 | 31.54 | 0.62 | 44.25 | 1.30 |
| LRR | 53.33 | 10.57 | 32.61 | 0.68 | 62.74 | 1.80 | 25.26 | 0.73 | 40.06 | 1.08 |
| TempTest | 72.74 | 21.80 | 45.75 | 1.55 | 86.23 | 23.70 | 40.24 | 2.15 | 57.34 | 9.03 |
| NTS | 72.73 | 19.92 | 48.57 | 1.30 | 84.98 | 16.13 | 44.67 | 2.03 | 59.28 | 6.47 |
| Binoculars | 68.42 | 9.22 | 45.49 | 0.02 | 77.59 | 0.27 | 39.57 | 0.42 | 54.08 | 0.23 |
| Fast-DetectGPT | 69.39 | 15.70 | 43.39 | 0.63 | 88.23 | 31.50 | 40.88 | 3.43 | 57.28 | 11.83 |
| Lastde++ | 68.40 | 11.85 | 42.98 | 0.23 | 89.42 | 29.10 | 43.49 | 2.13 | 58.47 | 10.50 |
| CPD (Ours) | 91.90 | 65.60 | 88.27 | 53.63 | 99.98 | 99.90 | 84.59 | 44.93 | 90.78 | 65.57 |
Table 18. Detection of AI drafts after rewriting on DetectRL-X (AUROC and TPR@5%, in %). Each condition uses the same 6,000 human controls. Original is unmodified, and Overall pools the three refinement types. Bold marks the best result per metric and condition.
Component Analysis
Expectation centering and normalization. To isolate what centering contributes, we first average the gains over the same token positions in each document. At , subtracting the expected gain before averaging raises AUROC by 14.6–26.9 percentage points across the three benchmarks ( versus in Table 6 and Table 4). Centering also raises AUROC by 32.78–35.81 points when both sums use CPD’s variance scale. Once the gains are centered, replacing that scale with (Sqrt) changes AUROC by less than 0.1 point on every benchmark (Table 3). Of these two design choices, subtracting the prefix-specific expectation makes the larger contribution to document ranking.
| Method | GEN | DetectRL-X | HART |
| CPD | 94.18 / 80.25 | 91.90 / 65.60 | 98.31 / 92.95 |
| w/o Exp. | 58.37 / 16.25 | 58.81 / 7.58 | 65.53 / 7.45 |
| w/o Var. | 94.16 / 80.25 | 91.85 / 64.55 | 98.22 / 92.85 |
| w/o Both | 57.97 / 16.25 | 57.86 / 8.83 | 64.67 / 10.05 |
Table 3. Component ablation at (AUROC / TPR@5%, in %). Exp. and Var. denote expectation centering and variance normalization, respectively. The CPD row includes both components. Bold marks the best result for each metric within each benchmark.
Table 6. Alternative statistics at for H versus A (AUROC / TPR@5%, in %). Overbars denote means over matched target positions. averages the KL divergence from the full-context to the restricted-context distribution. Res-NLL is mean restricted-context negative log-likelihood. Bold marks the best unrounded result among the three statistics for each metric and benchmark.
| Statistic | GEN | DetectRL-X | HART |
| 68.36 / 13.45 | 71.04 / 3.38 | 83.62 / 19.45 | |
| 49.36 / 4.90 | 53.31 / 0.85 | 63.92 / 1.35 | |
| Res-NLL | 76.89 / 29.90 | 64.66 / 4.37 | 67.97 / 24.35 |
Table 6.
The analytical scale accounts for variation in contextual gains under the scorer even among texts of equal length (Eq. (6)). To test how scaling affects threshold transfer, we set each threshold on GEN development data and hold it fixed across the three tests. The resulting FPR ranges across benchmarks are 8.02 percentage points for the mean centered score, 3.28 points for Sqrt, and 3.45 points for CPD. CPD and Sqrt thus yield comparable FPR stability, with different recall trade-offs across benchmarks (Table 9).
| Score | GEN | DetectRL-X | HART |
| Mean () | 3.85 / 83.75 | 11.87 / 79.52 | 5.85 / 94.25 |
| Sqrt () | 3.70 / 77.95 | 6.53 / 69.15 | 3.25 / 90.40 |
| CPD () | 3.75 / 77.70 | 6.95 / 70.35 | 3.50 / 91.65 |
Table 9. Test FPR / TPR (%) for H versus A at . Each normalization uses a threshold selected on GEN development data at a target FPR of 5% and held fixed across the three test sets.
Decomposing the centered signal. The centered gain in Eq. (4) is the difference between the full- and restricted-context log-likelihood residuals for the observed token
Both residuals are centered under the full-context distribution . The full-context residual also appears in the numerator of Single-Fast [3]. To isolate the short prefix’s contribution, we average the signed terms over the same positions without variance normalization. On DetectRL-X, and give 72.21% and 71.87% AUROC, respectively. Their sum, , reaches 91.76% (Table 4). The paired score also achieves higher AUROC than either residual alone on the GEN and HART benchmarks.
On all three benchmarks, subtracting the restricted-context residual from the full-context residual cancels some shared within-class variation. The difference has a smaller pooled within-class standard deviation than either residual alone. On GEN, adding the full-context term even narrows the AI–human mean gap from 0.444 to 0.388. The drop in pooled standard deviation from 0.212 to 0.168 is large enough to increase standardized separation , and AUROC rises from 92.84% to 95.24%. On DetectRL-X and HART, pairing both widens the mean gap and reduces within-class variation.
Choice of reference context. Even a single reference distribution shared by all token positions helps when paired with the full prefix. We obtain this reference, , by averaging Falcon-7B’s full-context predictions over token positions in the GEN development set. The resulting paired score has higher AUROC than either residual alone on all three benchmarks. Using the immediately preceding token as the short prefix improves AUROC further (Table 4).
To test adjacency, we compare the preceding token with one drawn uniformly from earlier positions in the same text. Used alone, the random-prefix residual has higher AUROC on all three benchmarks. Pairing each with the same full-context residual reverses the ordering. Despite a smaller class mean gap, the adjacent-token contrast has lower within-class variation and leads in AUROC by 0.75–1.26 points. We also vary the window length while scoring the same positions (). As increases from 1 to 2, 4, and 8, CPD’s GEN development AUROC falls from 93.84% to 87.72%, with the same ordering on all three test sets. CPD outperforms the mean raw gain at every window, and both scores peak at (Table 11).
| Method | Dev. GEN | Test. GEN | Test. DetectRL-X | Test. HART |
| Mean | 67.37 / 12.90 | 68.61 / 13.50 | 70.28 / 3.23 | 83.97 / 19.20 |
| CPD | 93.84 / 79.00 | 94.34 / 80.55 | 91.41 / 63.78 | 98.25 / 93.15 |
| Mean | 60.41 / 8.65 | 62.05 / 9.00 | 60.41 / 1.15 | 78.76 / 8.60 |
| CPD | 91.88 / 74.00 | 92.45 / 76.05 | 90.42 / 60.75 | 97.58 / 90.20 |
| Mean | 55.17 / 5.75 | 57.49 / 6.60 | 53.40 / 1.13 | 72.41 / 11.85 |
| CPD | 89.75 / 68.75 | 90.16 / 69.10 | 88.76 / 59.02 | 96.51 / 86.25 |
| Mean | 57.09 / 4.40 | 58.78 / 6.15 | 52.04 / 1.93 | 72.82 / 15.10 |
| CPD | 87.72 / 63.35 | 88.34 / 65.20 | 86.32 / 52.23 | 95.19 / 81.20 |
Table 11. Window size (AUROC / TPR@5%, in %). We select on GEN development data. All windows score , and Mean is the signed mean contextual response. Bold marks the best value over for each method, split, and metric.
Component effects under editing. The HART component ablation connects centering to the draft-origin results in § 3.3. When both groups are edited (HA versus AH, 2,000 texts per group), the raw gain at CPD’s variance scale gives 51.18% AUROC. Subtracting the expected gain at the same scale raises AUROC to 76.66% and TPR @5% from 3.10% to 45.30%. Centering improves AUROC on all three editing tasks, while variance normalization has smaller, task-dependent effects (Table 7). Which residual is stronger alone depends on which drafts were edited. The full-context residual leads on HA versus A, and the signed restricted-context residual leads on H versus AH. Their pairing improves AUROC over either alone and reduces within-class variation on all three tasks (Table 8).
Table 7. HART component ablations under editing at (AUROC / TPR@5%, in %). Each task has 2,000 texts per class, with the first category negative and the second positive. Exp. and Var. denote expectation centering and variance normalization. Best values for each metric and task, selected before rounding, are bold.
| Method | HA vs. A | H vs. AH | HA vs. AH |
| CPD | 90.82 / 65.90 | 90.79 / 73.70 | 76.66 / 45.30 |
| w/o Exp. | 60.50 / 7.65 | 56.92 / 2.90 | 51.18 / 3.10 |
| w/o Var. | 90.08 / 62.90 | 90.90 / 74.50 | 76.87 / 44.60 |
| w/o Both | 59.32 / 7.20 | 58.73 / 6.45 | 53.35 / 4.60 |
Table 7.
| Task | Component | AUROC | |||
| HA vs. A | 81.93 | +0.216 | 0.224 | 0.965 | |
| 58.41 | +0.110 | 0.256 | 0.429 | ||
| 91.05 | +0.326 | 0.169 | 1.927 | ||
| H vs. AH | 55.41 | +0.007 | 0.226 | 0.031 | |
| 82.76 | +0.356 | 0.271 | 1.313 | ||
| 90.90 | +0.363 | 0.185 | 1.966 | ||
| HA vs. AH | 42.68 | −0.092 | 0.231 | 0.398 | |
| 77.07 | +0.308 | 0.284 | 1.084 | ||
| 77.66 | +0.216 | 0.202 | 1.069 |
Table 8. HART component decomposition under editing at (AUROC in %). Scores average matched target positions without variance normalization. Each task has 2,000 texts per class, with negatives listed first. The mean gap is the positive class mean minus the negative class mean, and . Within each task, bold marks the highest AUROC and and the lowest .
Robustness and Generalization
§ 3.5 isolates the benefit of pairing contexts. We now test how that contrast separates human and AI texts as the passage and the scoring model change.
Input-length constraints. With the reference window fixed at , extending prefixes of the same documents from 64 to 256 tokens raises CPD’s macro TPR @5% from 39.90% to 80.05%. A longer input contributes more token deviations to the document score, and each added token has a longer full prefix. CPD leads both macro metrics at all three lengths, although Fast-DetectGPT leads in recall on HART at 64 and 128 tokens (Table 19 and Table 20).
| Method | 64 tokens | 128 tokens | 256 tokens |
| Loglikelihood | 61.43 / 4.75 | 63.62 / 6.17 | 63.88 / 9.64 |
| LRR | 58.76 / 8.42 | 64.10 / 14.73 | 66.93 / 22.37 |
| TempTest | 68.01 / 22.48 | 73.47 / 34.48 | 73.53 / 42.92 |
| NTS | 64.05 / 20.36 | 73.97 / 36.11 | 77.86 / 46.46 |
| Binoculars | 70.11 / 30.65 | 74.87 / 44.87 | 73.19 / 44.96 |
| Fast-DetectGPT | 70.05 / 30.64 | 74.93 / 45.10 | 73.40 / 44.53 |
| Lastde++ | 70.40 / 27.40 | 77.81 / 43.18 | 79.21 / 46.84 |
| CPD (Ours) | 81.49 / 39.90 | 90.26 / 62.78 | 95.10 / 80.05 |
Table 19. Macro AUROC / TPR@5% (%) on matched prefixes of GEN, DetectRL-X, and HART texts with at least 256 tokens each.
| Length | Method | GEN | DetectRL-X | HART | Macro Avg. |
| 64 | LogLikelihood | 57.34 / 7.36 | 61.55 / 5.80 | 65.41 / 1.08 | 61.43 / 4.75 |
| 64 | LRR | 58.67 / 9.23 | 54.87 / 5.68 | 62.74 / 10.34 | 58.76 / 8.42 |
| 64 | TempTest | 57.91 / 15.22 | 64.33 / 14.90 | 81.78 / 37.31 | 68.01 / 22.48 |
| 64 | NTS | 58.94 / 15.85 | 56.13 / 10.78 | 77.09 / 34.45 | 64.05 / 20.36 |
| 64 | Binoculars | 61.22 / 25.76 | 60.87 / 12.81 | 88.25 / 53.36 | 70.11 / 30.65 |
| 64 | Fast-DetectGPT | 61.00 / 24.95 | 60.82 / 12.34 | 88.33 / 54.63 | 70.05 / 30.64 |
| 64 | Lastde++ | 69.33 / 26.82 | 58.57 / 9.49 | 83.28 / 45.88 | 70.40 / 27.40 |
| 64 | CPD (Ours) | 79.73 / 37.49 | 76.34 / 28.90 | 88.42 / 53.30 | 81.49 / 39.90 |
| 128 | LogLikelihood | 59.09 / 7.92 | 59.66 / 7.24 | 72.11 / 3.36 | 63.62 / 6.17 |
| 128 | LRR | 63.30 / 14.78 | 56.01 / 8.10 | 73.01 / 21.32 | 64.10 / 14.73 |
| 128 | TempTest | 58.23 / 21.71 | 71.32 / 22.59 | 90.85 / 59.14 | 73.47 / 34.48 |
| 128 | NTS | 63.94 / 23.27 | 66.79 / 20.46 | 91.19 / 64.59 | 73.97 / 36.11 |
| 128 | Binoculars | 60.24 / 30.69 | 68.76 / 20.93 | 95.60 / 82.99 | 74.87 / 44.87 |
| 128 | Fast-DetectGPT | 60.10 / 29.57 | 69.03 / 21.85 | 95.67 / 83.88 | 74.93 / 45.10 |
| 128 | Lastde++ | 72.48 / 34.81 | 66.69 / 18.26 | 94.26 / 76.46 | 77.81 / 43.18 |
| 128 | CPD (Ours) | 89.69 / 60.76 | 84.61 / 43.96 | 96.47 / 83.63 | 90.26 / 62.78 |
| 256 | LogLikelihood | 56.55 / 9.42 | 57.75 / 8.53 | 77.33 / 10.98 | 63.88 / 9.64 |
| 256 | LRR | 64.09 / 16.47 | 54.42 / 9.65 | 82.27 / 40.99 | 66.93 / 22.37 |
| 256 | TempTest | 53.94 / 23.83 | 74.03 / 24.92 | 92.62 / 80.01 | 73.53 / 42.92 |
| 256 | NTS | 65.65 / 29.26 | 72.76 / 23.90 | 95.18 / 86.23 | 77.86 / 46.46 |
| 256 | Binoculars | 54.00 / 30.19 | 69.99 / 13.63 | 95.56 / 91.05 | 73.19 / 44.96 |
| 256 | Fast-DetectGPT | 53.93 / 29.07 | 70.74 / 13.79 | 95.54 / 90.74 | 73.40 / 44.53 |
| 256 | Lastde++ | 71.73 / 38.80 | 69.32 / 10.04 | 96.58 / 91.69 | 79.21 / 46.84 |
| 256 | CPD (Ours) | 95.24 / 82.16 | 91.07 / 61.92 | 98.99 / 96.07 | 95.10 / 80.05 |
Table 20. Length-controlled detection on GEN, DetectRL-X, and HART (H vs. A; AUROC / TPR@5%, in %). We retain texts measuring at least 256 tokens before truncation. Each detector scores the first 64, 128, or 256 tokens of the same texts. At each prefix length, Macro Avg. gives the three benchmarks equal weight. Bold marks the highest AUROC and TPR@5% within each column at each length.
Sensitivity to Character-level Evasion. On English DetectRL-X, CPD leads in AUROC under all four character edits (Figure 5). Against unchanged human controls, recall at 5% FPR falls from 65.60% on the original AI texts to 31.00% after ordinary character insertion and 21.38% after deletion. Zero-width insertion raises recall to 73.50%.
Figure 5. Detection under character perturbations on DetectRL-X (AUROC, 0–1). The same 6,000 human texts serve as controls in all conditions. Original uses the unmodified AI drafts. Overall uses 6,000 perturbed AI texts sampled across all four character operations.
Cross-lingual generalization. With Falcon-7B, CPD leads in AUROC in six of eight languages. TempTest leads in Portuguese and Russian, and CPD’s macro lead over TempTest shrinks from 2.82 to 0.49 points without English. At the threshold selected on English GEN, FPR exceeds 5% in seven languages. Spanish has the highest FPR (11.82%), although CPD achieves the best AUROC among all detectors on the same Spanish texts (88.80%, Table 21).
| Method | Arabic | Chinese | English | French | German | Portuguese | Russian | Spanish | Macro Avg. |
| LogLikelihood | 52.80 | 74.48 | 55.52 | 74.47 | 79.90 | 78.65 | 64.03 | 79.93 | 69.97 |
| LRR | 49.22 | 67.47 | 53.33 | 65.90 | 65.42 | 65.90 | 56.55 | 64.45 | 61.03 |
| TempTest | 63.05 | 84.11 | 72.74 | 90.39 | 85.16 | 88.03 | 71.09 | 85.24 | 79.98 |
| NTS | 56.61 | 80.41 | 72.73 | 87.86 | 79.99 | 84.94 | 66.60 | 82.12 | 76.41 |
| Binoculars | 35.85 | 61.43 | 68.42 | 84.46 | 68.65 | 73.73 | 44.65 | 74.63 | 63.98 |
| Fast-DetectGPT | 39.67 | 61.73 | 69.39 | 83.97 | 68.19 | 73.48 | 46.71 | 74.33 | 64.68 |
| Lastde++ | 43.91 | 62.78 | 68.40 | 77.98 | 58.36 | 66.38 | 45.55 | 67.39 | 61.34 |
| CPD (Ours) | 64.81 | 84.61 | 91.90 | 93.86 | 85.55 | 84.89 | 67.94 | 88.80 | 82.80 |
| FPR | 11.27 | 4.60 | 6.95 | 7.95 | 10.72 | 6.23 | 7.17 | 11.82 | 8.34 |
| TPR | 22.55 | 43.93 | 70.35 | 79.10 | 61.07 | 49.97 | 20.95 | 70.07 | 52.25 |
Table 21. Detection on eight DetectRL-X language test sets, each with 6,000 human texts and 6,000 AI texts (all values in %). The upper panel reports AUROC for all eight detectors, with the best value in each column in bold. The lower panel gives CPD’s FPR and TPR in each language at the threshold calibrated to a 5% FPR target on GEN development data. Macro Avg. weights languages equally.
Cross-backbone generalization. On English GEN, CPD leads all five single-model baselines in AUROC and TPR@5% with each of the five scoring backbones (Table 22). Switching from Falcon-7B to Falcon-7B-Instruct lowers CPD’s AUROC from 94.18% to 80.41%. On the same texts, the mean score for human drafts rises from 0.06 to 1.49, while the mean for AI drafts changes only from 4.57 to 4.62 (Appendix § 13.11).
| Method | Falcon-7B | Falcon-7B-Instruct | GPT-Neo-2.7B | Llama-2-7B | Llama-3.1-8B |
| Loglikelihood | 43.04 / 8.65 | 43.04 / 11.50 | 37.35 / 3.60 | 53.17 / 9.85 | 53.94 / 10.40 |
| LRR | 47.94 / 13.65 | 50.41 / 15.25 | 40.08 / 6.80 | 51.68 / 14.45 | 61.38 / 25.55 |
| TempTest | 43.91 / 19.90 | 27.30 / 8.20 | 29.34 / 12.95 | 51.45 / 17.65 | 54.08 / 18.70 |
| NTS | 67.75 / 33.55 | 57.88 / 31.30 | 76.48 / 49.35 | 71.13 / 33.75 | 66.84 / 27.75 |
| Single-Fast | 42.79 / 21.30 | 21.33 / 8.15 | 26.34 / 13.65 | 42.42 / 15.90 | 46.49 / 18.55 |
| CPD (Ours) | 94.18 / 80.25 | 80.41 / 59.15 | 92.08 / 74.35 | 91.96 / 74.05 | 87.02 / 62.25 |
Table 22. Single-model detection on the GEN test set by scoring backbone (AUROC / TPR@5%, in %). Single-Fast uses the same backbone for the scoring and reference distributions in Fast-DetectGPT. Bold marks the best value for each backbone and metric.
Computational cost. Scoring two contexts with one model places CPD between simple single-model statistics and dual-model detectors in both time and memory. On 200 GEN texts (one RTX A6000), CPD used 0.176 s/text and 15.80 GB peak memory. Fast-DetectGPT used 0.233 s/text and 28.19 GB, and the simpler baselines used 0.113–0.122 s/text and 14.21 GB (Appendix § 13.12).
Conclusion
CPD compares the log-probability gain each observed token receives from earlier context with the gain a single scoring model expects at that prefix. Across three direct-detection benchmarks, subtracting this expectation improves document ranking even under simple averaging. Taking the difference between the centered full- and short-context log likelihoods reduces within-class variation and yields higher AUROC than either term alone. Centering also helps distinguish draft origins after editing. In the HART ablation with both groups edited, it raises draft-origin AUROC from 51.18% to 76.66% at a fixed variance scale (Table 7). Across original and edited HART passages, CPD scores track draft origin more closely than the benchmark’s final-expression labels. On GEN, heavier AI editing of the same human drafts weakens their separation from direct AI output. On DetectRL-X, pooled recall at 5% FPR barely changes after rewriting, yet recall on the same AI drafts rises to 99.90% after expansion and falls to 44.93% after polishing.
Limitations
(1) Editing robustness. On GEN, CPD separates human drafts from a fixed set of direct AI outputs with 93.51% AUROC before editing. After heavy AI editing of the same human drafts (60–80% edit ratio), AUROC falls to 77.71% (Table 17). On English DetectRL-X, deleting characters from AI texts reduces recall at 5% FPR from 65.60% to 21.38% against unchanged human controls (Figure 5).
(2) Generalization. Our length study uses prefixes of documents at least 256 tokens long, leaving performance on naturally short texts untested. We compare scoring backbones on English GEN and use only Falcon-7B in the multilingual tests, so the effect of backbone choice in other languages is unknown. We evaluate a threshold calibrated on pooled GEN data across benchmarks and languages (Table 13 and 21). Whether a single-domain threshold preserves its target false-positive rate in another domain remains open.
(3) Computational efficiency. CPD uses two full-vocabulary predictions per token. On 200 GEN texts (one RTX A6000), it used 0.176 s/text and 15.80 GB peak memory, versus 0.113–0.122 s/text and 14.21 GB for simpler single-model statistics (Table 23).
| Method | Memory (GB) | Time (s/text) |
| Loglikelihood | 14.21 | 0.113 |
| LRR | 14.21 | 0.117 |
| TempTest | 14.21 | 0.119 |
| NTS | 14.21 | 0.122 |
| Binoculars | 28.19 | 0.234 |
| Fast-DetectGPT | 28.19 | 0.233 |
| Lastde++ | 28.19 | 0.306 |
| CPD (Ours) | 15.80 | 0.176 |
Table 23. Computational cost on 200 GEN texts using one NVIDIA RTX A6000. Peak allocated GPU memory includes model weights. Timing begins after model and data loading and two warm-up texts.
Acknowledgements
This work was supported in part by the National Natural Science Foundation of China under Grant U2636211.
AI Use Statement
We used AI tools to revise research code, identify additional publications for the literature review, polish the writing, and prepare the ICML version of the manuscript.
Impact Statement
CPD lets researchers compare how revisions affect detection of draft origin. A human draft can undergo extensive AI editing and still receive a correct human-origin prediction.
A threshold calibrated on English GEN development data to target a 5% false-positive rate misclassified 11.82% of human texts in the Spanish DetectRL-X test set as AI-origin (Table 21). In a school or workplace, a false accusation of AI use can damage a writer’s reputation or lead to disciplinary action. Evaluators should validate the threshold on representative texts from human writers in the intended setting. Judgments about authorship or misconduct require human review and evidence independent of the detector.
References
Datasets and Experimental Settings
We describe the benchmarks, evaluation protocols, and detector settings. Appendix § 11 derives the expected deviation and reference variance. Appendix § 12 analyzes the components of CPD and its sensitivity to context length, and Appendix § 13 reports further results on all three datasets.
We use 42 as the base random seed for splitting and sampling. Table 5 gives file counts before class balancing and score filtering. On all three benchmarks, the main comparison uses H and A. The editing analyses also include AI-edited human drafts and humanized or rewritten AI drafts.
| Dataset / condition | Split | H | Other | Other categories |
| GEN direct detection | Dev / Test (each) | 2,000 | 2,000 | A |
| GEN editing | Test | 936 | 3,744 | 936 A + 2,808 HA (three edit ranges) |
| DetectRL-X general | English dev | 6,000 | 6,000 | A |
| DetectRL-X general | Test (each language) | 6,000 | 6,000 | A |
| DetectRL-X rewriting | Test (each operation) | 6,000 | 6,000 | AA |
| DetectRL-X rewriting | Test (pooled) | 6,000 | 18,000 | Condensing, expanding, and polishing variants |
| DetectRL-X character noise | Test (each operation) | 6,000 | 6,000 | Perturbed A |
| DetectRL-X character noise | Test (pooled) | 6,000 | 24,000 | Four perturbation variants |
| HART | Dev / Test (each) | 2,000 | 6,000 | 2,000 HA + 2,000 AH + 2,000 A |
Table 5. Dataset counts before class balancing and valid-score filtering. H denotes unedited human texts. The final column lists the other categories. Each of the 936 GEN drafts has one edited version per edit range. All GEN editing conditions share 936 AI references.
GEN
GEN [32] covers arXiv, Reddit, story generation, wikiHow, and Wikipedia. Its generated texts span eight models from four families: Gemma 3 (12B and 27B) [12], Qwen2.5 (7B and 72B) [29], GPT-OSS (20B and 120B) [28], Llama 3.1 (8B) [13], and Llama 3.3 (70B) [25]. The editors are Llama 3.3-70B, GPT-OSS-120B, and Qwen2.5-72B.
The development and direct-detection test sets each contain 2,000 H and 2,000 A texts, with 400 examples per category per domain. Their prompt groups are disjoint. Generator counts are balanced at 250 texts per model on development data and range from 249 to 251 on the detection test set. The development set is used for window selection and threshold calibration, without detector training.
The editing comparison uses 936 human drafts, each paired by seed_id with one AI-edited version in each of three edit-ratio ranges. These drafts span 935 prompt groups, all disjoint from the development and direct-detection prompt groups. Original and edited drafts share the same 936 AI references from the direct-detection test set (Appendix § 13.7).
DetectRL-X: General and Multilingual Sets
DetectRL-X (Wu et al., 2026b) includes texts generated by DeepSeek-V3 [7], Gemini-2.5-Flash [11], GPT-4o [27], and Qwen-Max [30] across six domains: news, novels, SEO, web text, Wikipedia, and academic writing. We preserve the official train/test split and sample 6,000 paired English examples from the 9,600 available training pairs as a development set, yielding 6,000 H and 6,000 A texts. Each language-specific test set contains 6,000 H and 6,000 A texts and is retained in full. The English test set contains 1,000 pairs per domain and 1,500 AI texts per generator. We use English for the main comparison and evaluate multilingual generalization separately on Arabic, Chinese, French, German, Portuguese, Russian, and Spanish.
DetectRL-X: Rewriting and Character Perturbations
The released English DetectRL-X transformations cover the same four generators as the general set. Each operation modifies AI texts and uses the same 6,000 unchanged human controls. The rewriting pool contains 18,000 variants of 6,000 AI drafts, one condensed, one expanded, and one polished version per draft. We exclude decoder paraphrasing and backtranslation. Domain and generator counts match across the three operations (Appendix § 13.7). Each of the four character operations (insertion, deletion, substitution, and zero-width insertion) is applied separately to 6,000 AI texts, yielding a pool of 24,000 variants. We sample from each pool to balance classes at evaluation time (Appendix § 10.§ 4).
HART
HART [4] covers four English domains: essays, arXiv, creative writing, and news. AI-origin texts are generated by GPT-3.5-Turbo [27], GPT-4o [27], Gemini-1.5-Pro [10], Claude-3.5-Sonnet [2], Qwen2.5-72B-Instruct [29], and Llama-3.3-70B-Instruct [25]. The first four models also serve as editors, rephrasing human drafts. The humanized AI drafts include revisions by models, tools, and people.
We denote HART’s four text categories [4] by H (type-0, unedited human text), HA (type-1, a human draft refined by AI), AH (type-2, a humanized AI draft), and A (type-3, directly AI-generated text). In each mixed category, the first letter identifies the draft’s origin. The H in AH denotes humanized expression, which can result from revision by a model, a tool, or a person. HART’s Level-2 task compares types 0/1 with types 2/3 (H/HA vs. AH/A).
We preserve the official development and test splits, each containing 8,000 texts with 2,000 examples per category. Each domain contributes 500 examples per category. For fixed-threshold evaluation on HART, we use the thresholds selected on the GEN development split (Appendix § 13.§ 1.1). Before score filtering, H vs. A and each two-category editing comparison (H vs. AH, HA vs. A, and HA vs. AH) contain 2,000 texts per class. The pooled draft-origin comparison (H/HA vs. A/AH) and expression diagnostic (H/AH vs. A/HA) each contain 4,000 per class. The joint detector evaluation excluded one AH text (Appendix § 13.§ 3).
Preprocessing and Evaluation Settings
Input preparation. We score each nonempty document without its prompt or metadata and retain all released character perturbations, including zero-width characters.
Class balancing. For each comparison, we sample examples per class without replacement, where and are the available negative and positive counts. Each pooled DetectRL-X evaluation uses all 6,000 human controls and 6,000 AI variants drawn from the pooled operations without quotas by transformation. We compute the pooled metrics once from these selected scores.
Tokenization and scoring. Inputs are tokenized without adding special tokens and truncated to at most 1,024 tokens. CPD uses and scores from in the main evaluation. The context-length ablation uses and a shared scoring start at , as described in Appendix § 12.§ 4. Texts that are too short for the requested scoring interval or yield invalid scores are omitted by the evaluator; Table 5 reports data-file counts before such omissions.
Metrics and aggregation. AUROC is the area under the empirical ROC curve of the selected test negatives and positives. TPR@5% is the largest empirical true-positive rate among ROC operating points whose false-positive rate is at most 0.05. It summarizes the test ROC and does not use a development-set threshold. All detection metrics are reported as percentages. Cross-benchmark macro averages weight the three datasets equally. Absolute gains use unrounded metrics and compare CPD with the strongest baseline for each metric, in percentage points.
Fixed-threshold evaluation. Appendix § 13.§ 1.1 assesses threshold transfer by calibrating one threshold per detector on the GEN development split at a target FPR of 5% and freezing it across all three test sets. We report observed FPR and TPR and compute balanced accuracy (BA) from integer confusion counts, rounding BA to two decimal places.
Efficiency protocol. Cross-backbone comparisons use the full GEN test set. Efficiency is measured separately on the same 200 GEN texts (100 per class) for each method, using BF16 precision on a single NVIDIA RTX A6000 after two warm-up texts. Mean processing time excludes model loading, dataset loading, and warm-up; peak allocated GPU memory includes model weights. CPD reuses predictions for identical one-token restricted contexts within each document. Results are reported in Appendix § 13.12.
Detector Sources and Configurations
We follow the detector definitions and recommended settings in the original papers, using the official repositories for implementation details. We use the same settings on GEN, DetectRL-X, and HART and indicate where an adopted repository default differs from the corresponding paper.
Shared settings. We use ti iuae/falcon-7b and tiiuae/falcon-7b-instruct in BF16. Plain-text inputs are tokenized without added special tokens and truncated to 1,024 tokens; dual-model methods require identical token IDs. Unless otherwise specified, targets are , distributions use the full vocabulary, and the random seed is 42. Appendix § 10.§ 4 gives the preprocessing and evaluation settings used for all three benchmarks.
Loglikelihood. The token-probability feature follows GLTR ([9 Section 2]), with mean log-probability aggregation as used for the likelihood baseline in [3 Section 3.1].1 We average the log probability FalCon-7B assigns to each observed token given its full prefix. This score has no additional hyperparameters.
LRR. We follow the DetectLLM-LRR definition in Su et al. (2023, Section 3.1) and its perturbation-free evaluation in that paper’s Section 4.2. Using Falcon-7B, we divide the negative mean token log probability by the mean log rank. Ranks start at one and cover the full vocabulary. LRR requires no perturbation or sampling hyperparameters.
TempTest. We adopt the scoring temperature of 0.8 used in the white- and black-box experiments of Kempton et al.2 (2025, Sections 5.2 and 5.4).3 We use Falcon-7B as the shared scoring backbone, keep this assumed generation temperature fixed across benchmarks, and negate the native statistic to follow the higher-is-AI score convention.
NTS. We follow the Falcon-7B configuration and low/high temperatures recommended by Ma et al. (2026, Section 4.1, with hyperparameter analysis in Section 4.5), setting them to 0.7 and 1.4, respectively.4 Sensitivity is the absolute difference between the two document-mean observed-token log probabilities. Following the official implementation, we use the original temperature-1 distribution to compute each token-wise expectation and standard deviation. We center the score by the mean of the expectations and normalize by the mean of the standard deviations.
Fast-DetectGPT. We use the conditional-curvature detector and analytical solution of Bao et al. [3], adapting the two-surrogate configuration in that paper’s black-box experiments (§ 2.2) to the shared Falcon backbones.5 Falcon-7B supplies the sampling/reference distribution, while Falcon-7B-Instruct is the scoring model. Reference expectations and variances are computed analytically over the vocabulary, without Monte Carlo sampling. The single-model comparison uses Falcon-7B for both roles (Appendix § 13.§ 2).
Binoculars. We follow the default Falcon model pair and detection score of Hans et al. [14].6 As in the official implementation, Falcon-7B is the observer and Falcon-7B-Instruct the performer. The score is the negated ratio of performer observed-token negative log likelihood to observer–performer cross entropy, evaluated over matched target positions. For threshold transfer, we calibrate on GEN development data as in Appendix § 13.§ 1.1.
Lastde++. We follow the sampling-normalized Lastde++ detector of Xu et al. (2025, Section 3.2, with experimental settings in Section 4.1) and the recommended configuration in its official repository.7 We use Falcon-7B for sampling and Falcon-7B-Instruct for scoring, with 100 conditional token-sequence samples per text at temperature 1. The Std aggregation variant uses embedding size 4, maximum scale 10, and histogram bins, where is the number of scored tokens. The sample count, embedding size, and bin factor follow the paper. We use the official README default of 10 for maximum scale. § 2.2 of the paper reports 15.
CPD. Our detector uses Falcon-7B for both full- and restricted-context predictions, with selected on GEN development data and scoring from . Restricted contexts are processed in batches of up to 1,024 windows, reusing identical one-token contexts. Appendices § 12.§ 4 and § 12.§ 1 detail window selection and component definitions.
TCD-weighted variants. We follow the attention-based weighting and dynamic layer selection of Ma & Wang (2026), using as specified in that paper’s § 3.1.8 We adapt the surrogate models to the shared Falcon backbones: Fast+TCD obtains attention weights from Falcon-7B-Instruct, while CPD+TCD uses Falcon-7B. The separate comparison uses eager attention and restricted-context batches of up to 256 windows (Appendix § 13.§ 2).
Alternative scoring backbones. The GEN comparisons additionally use tiiuae/falcon-7b-instruct, EleutherAI/gpt-neo-2.7B, meta-llama/Llama-2-7b-hf, and meta-llama/Llama-3.1-8B. Each single-model method uses the selected backbone and its tokenizer, with temperature parameters, , input length, and scoring interval unchanged.
Consistent score orientation. Each baseline’s score direction follows its original decision rule. When the native statistic assigns lower values to AI-generated text, we negate it once so that higher scores indicate stronger evidence of AI origin. We fix this direction before testing and retain it across benchmarks and generator subsets.
Interpreting AUROC below 50%. With this convention, AUROC below 50% means that a randomly selected human text more often outscores a randomly selected AI text than the reverse. On GEN, Falcon-7B log likelihood gives 2.84% AUROC for GPT-OSS-20B outputs and 78.34% for GPT-OSS-120B outputs. The ordering thus reverses across these two generator subsets. CPD ranks AI drafts above human texts more often on both subsets, with AUROCs of 78.42% and 96.44%, respectively (Table 24).
Analytical Derivations
Interpretation of Expectation Centering
At a fixed prefix, the centering term in Eq. (4) is constant across candidate tokens. Averaging over the source distribution gives . Writing as for tokens with positive probability under gives the following identity
The mean deviation vanishes when or when the shifts from to a different cancel in the weighted sum in Eq. (5). For two sources at the same prefix, the common centering term cancels from the difference between their expected deviations. The ablation in § 3.5 tests how prefix-specific centering affects document rankings.
Analytical Reference Variance
Condition on the observed text , fixing the full- and restricted-prefix distributions and at each scored position. The hypothetical reference tokens are independent across positions, with . The contextual response has expectation
Subtracting the squared mean from the second moment gives the token-level reference variance
The document-level reference response is . Independence across positions makes all covariances between distinct reference responses zero. Summing the individual response variances in Eq. (6) gives
Taking the square root gives the reference standard deviation
The vocabulary sums give the reference moments directly from the scorer’s predictions, without sampling alternative tokens or passages. CPD uses the numerically stabilized denominator in Eq. (7).
Component and Sensitivity Analyses
The ablations in § 3.5 vary expectation centering and the document-level scale. We use the same aggregation rule to compare the full- and restricted-context residuals.
Ablation Definitions and Alternative Statistics
Shared scoring protocol. CPD, its three ablations, and the three alternative statistics use the same scoring model and , with common target positions after truncation to at most 1,024 tokens. We fix score directions before testing, with higher scores indicating stronger evidence of AI origin. Each test ROC curve gives AUROC and TPR@5%, the highest TPR at FPR .
Component definitions. Let and . For contextual response with expectation (§ 2), the direct-detection and editing experiments in Table 3 and Table 7 compare the following scores
Both variants without variance normalization divide the sum by the square root of the number of scored tokens.
Alternative statistics. We also evaluate the average contextual response, its average model-expected value, and average restricted-context negative log-likelihood (Res-NLL). Overbars denote means over matched target positions.
On the H versus A test sets, CPD exceeds all three alternative statistics in both AUROC and TPR@5% (Table 3 and Table 6). To isolate centering, we compare the mean raw gain with the mean centered gain in Table 4. Both average the same positions with weight . Subtracting the expected gain raises AUROC by 1.46–26.9 percentage points across the three benchmarks.
Fixed marginal reference. The marginal control gives every position the same reference distribution , the average of Falcon-7B’s full-context predictive distributions over token positions on GEN development data. Substituting for in Eq. (8) defines the marginal residual . Its centering expectation still uses the position’s original full-context distribution . Comparing with the paired score tests how much pairing helps when the reference has no access to the preceding token.
Random one-token reference. For each target , , we draw an index uniformly from and use . The immediate predecessor is eligible and is the only choice at . We reset the random seed to 42 for each document and use the same draws for both rows. Replacing with in Eq. (8) defines , with its expectation still taken under the original . Table 4 reports its signed document mean and the mean centered contrast .
Class-conditional separation analysis. Table 4 and Table 8 compare the signed terms and with their sum (Eq. (8)). Each mean assigns weight to the same scored positions. Equation (14) gives the corresponding variance and square-root length scales for the summed gains. For each document-level score , let and denote the negative and positive classes. We report the signed class mean gap and standardized separation , where
with and denoting the sample count and unbiased sample variance for class . In direct detection, H is negative and A positive, with 2,000 documents per class on GEN and HART and 6,000 per class on DetectRL-X. Appendix § 12.§ 1.1 specifies the class pairs for edited texts.
On GEN, the marginal control illustrates why AUROC and can move in different directions. Pairing the marginal residual with the full-context residual raises AUROC from 92.11% to 93.04%, while falls from 2.188 to 2.020 (Table 4). AUROC depends on the ordering of human and AI document scores. depends only on the class means and pooled within-class spread. The adjacent random one-token references show a different pattern. Switching from the random to the adjacent token in the paired score narrows the class mean gap from 0.403 to 0.388, while reducing from 0.187 to 0.168. The reduction in spread more than offsets the smaller gap in the standardized measure.
HART Component Ablations under Editing
We evaluate HA versus A, H versus AH, and HA versus AH on the HART test set. Within each task, we recompute the four scores in Eq. (14) at on the same 2,000 texts per class. Each comparison lists the human-origin group first (negative) and the AI-origin group second (positive). In both comparisons involving AH, the component runs retain all 2,000 AH texts. The joint evaluation across detectors retained 1,999 after score filtering.
At CPD’s variance scale, subtracting the expected gain raises AUROC by 25.48–33.87 percentage points across the three editing tasks (Table 7). With centered gains, the variance scale gives higher AUROC and TPR@5% on HA versus A, while gives higher values on H versus AH. When both classes are edited, using the variance scale in place of raises TPR@5% from 44.60% to 45.30% and lowers AUROC from 76.87% to 76.66%.
HART Component Decomposition under Editing
We apply the residual decomposition from Table 4 to the same documents and token positions as the HART editing ablations. Table 8 compares the signed document means and with their sum , using aggregation throughout. We measure within-class spread and standardized mean separation as in Eq. (16).
The full-context residual has higher AUROC on HA versus A, and the signed restricted-context residual has higher AUROC on H versus AH. Their sum yields the highest AUROC and lowest pooled within-class standard deviation on all three tasks. It also yields the largest in the two comparisons with one edited group.
On HA versus AH, the full-context component’s negative mean gap () partially offsets the signed restricted-context gap (+0.308), giving a combined gap of +0.216.
The mean gap shrinks proportionally more than the pooled within-class standard deviation, which falls from 0.284 to 0.202. As a result, falls slightly from 1.084 to 1.069, even as AUROC rises from 77.07% to 77.66%.
Reference Standard Deviation and Threshold Transfer
Role of the reference scale. Table 9 compares three scales for . Mean divides by the number of scored positions , and Sqrt divides by . CPD also accounts for the model’s variance at each position through the total reference variance (Eq. (13)). In terms of the mean deviation , CPD is
Under independent reference sampling with fixed contexts, is the reference standard deviation of the mean contextual response. The residual decomposition instead estimates empirically across documents within each class. For numerical stability, the implementation floors at before taking its square root. Using the additive in Eq. (7) gives the same development and test classifications after calibration.
Development-set threshold calibration. We select a threshold for each score on the same 2,000 human and 2,000 AI texts from GEN development data using Eq. (18) (Table 10). Mean and Sqrt use the saved R and w/o Variance columns, respectively. We freeze each threshold at full precision and classify scores at or above it as AI-origin on all three test sets. Each variant scores the same 2,000 texts per class on GEN and HART and 6,000 per class on DetectRL-X (Table 9). Appendix D.2 uses the same protocol to compare CPD with the seven baseline detectors.
| Score | Threshold | Dev FPR | Dev TPR |
| Mean | 0.19754306 | 5.00 | 84.60 |
| Sqrt | 4.37745190 | 5.00 | 78.80 |
| CPD | 2.05796176 | 4.95 | 78.85 |
Table 10. GEN development thresholds for the three normalization choices at . FPR and TPR are percentages at a target FPR of 5%. We round thresholds for display only and test at full precision.
False-positive stability across benchmarks. The FPR range in § 3.5 is the maximum minus the minimum realized FPR across the three test sets. The largest absolute departure from the development FPR is 2.00 percentage points for CPD, 1.75 for Sqrt, and 6.87 for Mean. Mean has the highest recall and FPR on all three tests. Relative to Sqrt, CPD detects more AI texts on DetectRL-X and HART at slightly higher FPRs. On GEN, Sqrt detects more AI texts and misclassifies fewer human texts than CPD (Table 9).
Short-Context Window Size
Window selection on the development set. Among , the one-token window gives CPD its highest AUROC (93.84%) and TPR@5% (79.00%) on GEN development data. We select on this split and evaluate sensitivity to window length on the three test sets (Table 11).
Matched scoring interval. All four windows score the same documents and positions , with target tokens after truncation to at most 1,024 tokens. The GEN development and test splits and the HART test split each contain 2,000 texts per class, and the DetectRL-X test split contains 6,000 per class. The first eight tokens remain available to the full-context predictions. Mean is the signed average over these positions. The main evaluation at scores from .
Effect of context restriction. The development-set choice also gives the highest AUROC and TPR@5% for CPD and Mean on all three test sets. Across all four splits, CPD leads Mean on both metrics at every window, and both CPD metrics fall with each increase in . Extending the short prefix from one token to eight lowers CPD’s test recall at 5% FPR by 11.55–15.35 percentage points.
Additional Detection Results
This appendix gives uncertainty estimates, threshold-transfer results, and detailed comparisons for § 3.2–§ 3.6. Appendix § 12 reports the component ablations.
Bootstrap Confidence Intervals
We treat documents as independent sampling units when estimating uncertainty in Table 1. Within each benchmark, we resample documents with replacement separately in the human and AI classes, retaining 2,000 documents per class on GEN and HART and 6,000 on DetectRL-X. We draw 2,000 bootstrap replicates with seed 42 and use the same document indices for every detector within a replicate.
For each bootstrap replicate, we record the area under its ROC curve and the highest TPR at an FPR of at most 5%. The 2.5th and 97.5th percentiles across replicates give the bounds of a 95% interval for each detector, benchmark, and metric. These intervals are conditional on the saved detector scores and the fixed number of texts in each class (Table 12).
| Method | GEN AUROC | GEN TPR@5% | DetectRL-X AUROC | DetectRL-X TPR@5% | HART AUROC | HART TPR@5% |
| Loglikelihood | 43.04 [41.24, 44.87] | 8.65 [6.75, 11.30] | 55.52 [54.54, 56.54] | 8.72 [7.47, 9.80] | 75.77 [74.34, 77.34] | 15.20 [8.30, 24.30] |
| LRR | 47.94 [46.09, 49.77] | 13.65 [11.85, 15.95] | 53.33 [52.40, 54.35] | 10.57 [9.60, 11.58] | 81.25 [79.91, 82.61] | 49.00 [44.05, 52.95] |
| TempTest | 43.91 [42.09, 45.81] | 19.90 [18.35, 22.10] | 72.74 [71.88, 73.63] | 21.80 [20.32, 23.42] | 87.69 [86.55, 88.95] | 74.85 [71.95, 77.60] |
| NTS | 67.75 [66.16, 69.37] | 33.55 [31.00, 36.35] | 72.73 [71.85, 73.61] | 19.92 [18.48, 21.75] | 93.30 [92.52, 94.13] | 82.15 [80.25, 84.40] |
| Single-Fast | 42.79 [40.96, 44.68] | 21.30 [19.00, 23.10] | 72.72 [71.85, 73.64] | 25.30 [23.65, 27.12] | 87.71 [86.54, 88.99] | 76.60 [74.55, 78.90] |
| Binoculars† | 46.38 [44.49, 48.27] | 23.80 [21.85, 25.90] | 68.42 [67.48, 69.36] | 9.22 [8.13, 10.63] | 91.09 [89.98, 92.20] | 85.80 [84.40, 87.60] |
| Fast-DetectGPT† | 47.04 [45.14, 48.91] | 26.50 [24.20, 28.40] | 69.39 [68.48, 70.33] | 15.70 [14.60, 16.98] | 90.78 [89.69, 91.89] | 84.25 [82.70, 86.05] |
| Lastde++† | 68.52 [66.88, 70.28] | 43.35 [40.45, 45.90] | 68.40 [67.47, 69.39] | 11.85 [10.87, 13.25] | 93.54 [92.64, 94.40] | 85.60 [84.00, 87.25] |
| CPD (Ours) | 94.18 [93.42, 94.86] | 80.25 [77.70, 82.15] | 91.90 [91.41, 92.37] | 65.60 [62.72, 67.53] | 98.31 [97.96, 98.65] | 92.95 [91.70, 94.55] |
Table 12. Main detection results for H versus A, with AUROC and TPR@5% in percent. Below each point estimate is its 95% percentile interval from 2,000 class-stratified bootstrap replicates. CPD uses , and † marks configurations that use two language models.
CPD’s lower confidence limit exceeds every compared baseline’s upper limit for both metrics on each benchmark.
Fixed-Threshold Evaluation Across Benchmarks
Threshold calibration. In the main comparison, each test ROC curve supplies its own operating point for TPR@5%. For threshold transfer, we calibrate each of the eight detectors on the same 2,000 human and 2,000 AI texts from the GEN development split. For method , we select the threshold with the highest empirical TPR among those that classify at most 5% of human development texts as AI-generated.
The candidate set contains every distinct development score for method and . We evaluate the candidates without interpolation. Ties favor the lower FPR, then the higher threshold. Across detectors, development FPR ranges from 4.75% to 5.00%. For CPD, gives 4.95% FPR, 78.85% TPR, and 86.95% balanced accuracy.
Cross-benchmark evaluation. We apply each frozen threshold to the H vs. A test sets (2,000 texts per class on GEN and HART, 6,000 on DetectRL-X). We retain the main detector configurations and scoring backbones, including for CPD. Method classifies a text as AI-generated when and as human-written otherwise. Table 13 reports TPR, FPR, and balanced accuracy, , where both rates are fractions.
CPD achieves the highest TPR and BA on all three benchmarks, with BAs of 86.98%, 81.70%, and 94.08% on GEN, DetectRL-X, and HART, respectively. CPD’s FPR stays below the 5% target on GEN (3.75%) and HART (3.50%) and rises to 6.95% on DetectRL-X, where FPR ranges from 3.87% to 30.20% across detectors.
Single-Model Fast-DetectGPT and Combinations with TCD and TOCSIN
Table 14 compares Single-Fast (Bao et al., [3]), dual-model Fast-DetectGPT (Fast), and CPD on H vs. A, and evaluates TCD (Ma & Wang, 2026) and TOCSIN (Ma & Wang, 2024) with each of the latter two detectors. The unweighted CPD scores come from the main run. A second run supplies Single-Fast, Fast, and both TCD variants, and a third supplies the two TOCSIN variants. All seven configurations score the same test documents, with 2,000 texts per class on GEN and HART and 6,000 per class on DetectRL-X. The causal models run in BF16 with a 1,024-token limit and score positions starting at . Each retained document has at least eight scored tokens.
Single-Fast uses Falcon-7B for both scoring and reference distributions. Fast and its variants use Falcon-7B-Instruct for scoring and Falcon-7B as the reference. All CPD vari-
ants use Falcon-7B with for the contextual contrast. TCD derives token weights from attention entropy in dynamically selected layers of the scoring model, with weighting temperature . The weights enter the residual sum and their squares enter the reference variance.
TOCSIN rescales the final document score. For each text, we create ten copies by randomly deleting space-delimited words at a nominal rate of 1.5%. For each copy, BART-base (FP32) computes the mean per-token loss for reconstructing the original text. Averaging these ten losses gives the cohesiveness score . For both Fast+TOCSIN and CPD+TOCSIN, we multiply the base score by for either sign of , following the Fast branch of the authors’ implementation.9 The paper’s general rule uses for negative scores (Ma & Wang, 2024, Eq. 2).
All three CPD configurations outperform all four Fast configurations on both metrics across the three benchmarks (Table 14). TCD weighting raises Fast-DetectGPT’s recall at 5% FPR on every benchmark, taking macro recall from 42.17% to 44.12%. For CPD, weighting lowers both metrics on GEN and DetectRL-X. On HART, recall rises from 92.95% to 93.25%, while AUROC changes from 98.31% to 98.30%. Unweighted CPD has higher macro recall (79.60% versus 78.13%) and AUROC (94.80% versus 94.21%).
For Fast+TOCSIN on GEN, AUROC rises from 47.05% to 47.77% while TPR@5% falls from 26.50% to 20.40%. On DetectRL-X, TPR@5% rises from 15.72% to 18.02% despite a lower AUROC. On HART, both metrics fall. For CPD, rescaling lowers both metrics on every benchmark. GEN shows the largest recall loss, a drop of 24.50 percentage points in TPR@5%. Macro-averaged TPR@5% falls from 79.60% for CPD to 68.54% for CPD+TOCSIN.
HART Source-Discrimination Details
The joint comparison of the eight detectors in § 3.3 excluded one AH text. Grouping the retained scores by draft origin gives 4,000 H/HA negatives and 3,999 A/AH positives (Table 2 and Figure 3). The final-expression labels assign AH to the negative class and HA to the positive class, giving 3,999 H/AH negatives and 4,000 A/HA positives. Both H versus AH and HA versus AH have 2,000 negatives and 1,999 positives. HA versus A has 2,000 per class. The separate component ablations use 2,000 texts per class in each of the three pairwise comparisons (Appendix § 12.§ 1.1).
Domain-Wise Source Discrimination on HART
We use the draft-origin labels from the pooled comparison in § 3.3 (Table 2) to evaluate H/HA versus A/AH separately in essays, arXiv, creative writing, and news, with A/AH as positives. After initial class balancing, we retain every text measuring 300–500 Falcon-7B tokens before truncation, inclusive. The column headers in Table 15 give the resulting class counts. All eight detectors use their main-experiment settings across domains, with and scoring from for CPD. We compute AUROC and TPR@5% from each domain’s test ROC and average the four unrounded values for each metric with equal weights.
| Method | Essays (441 / 481) | arXiv (353 / 415) | Creative Writing (378 / 369) | News (414 / 443) | Domain Macro Avg. |
| Log-Likelihood | 64.87 / 34.72 | 50.54 / 20.72 | 59.14 / 30.62 | 44.53 / 3.16 | 54.77 / 22.31 |
| LRR | 57.53 / 32.02 | 59.98 / 30.84 | 58.90 / 29.81 | 56.23 / 23.93 | 58.16 / 29.15 |
| TempTest | 71.50 / 38.05 | 63.35 / 44.10 | 64.19 / 47.70 | 61.72 / 38.83 | 65.19 / 42.17 |
| NTS | 78.72 / 39.50 | 78.38 / 52.29 | 80.73 / 56.37 | 78.18 / 50.34 | 79.00 / 49.62 |
| Binoculars† | 75.77 / 41.37 | 69.25 / 49.64 | 70.26 / 55.56 | 69.30 / 47.18 | 71.14 / 48.44 |
| Fast-DetectGPT† | 75.46 / 39.29 | 69.33 / 51.08 | 70.28 / 55.28 | 69.14 / 50.79 | 71.05 / 49.11 |
| Lastde++† | 79.65 / 40.75 | 77.27 / 53.73 | 77.73 / 56.64 | 73.91 / 48.31 | 77.14 / 49.86 |
| CPD (Ours) | 85.39 / 51.98 | 95.45 / 81.45 | 92.30 / 72.63 | 90.84 / 73.59 | 90.99 / 69.91 |
Table 15. Draft-origin detection within HART domains on texts of 300–500 Falcon-7B tokens before truncation (H/HA vs. A/AH; AUROC / TPR@5%, in %). Counts below each domain give the numbers of human-origin negatives and AI-origin positives. Domain Macro Avg. weights the four domains equally. † denotes a dual-model configuration. Bold marks the highest AUROC and recall in each column.
CPD leads on both metrics in all four domains, with macro averages of 90.99% AUROC and 69.91% TPR@5%. Its AUROC ranges from 85.39% on essays to 95.45% on arXiv.
Source Discrimination by Humanization Type on HART
We compare original human texts (H) with humanized AI-origin texts (AH), grouping the latter by who or what rewrote the AI draft. The Model group includes rewrites by GPT-3.5-Turbo, GPT-4o, Gemini-1.5-Pro, and Claude-3.5-Sonnet. The Tool and Human groups contain rewrites by a humanization tool and by human editors, respectively. We assign each H text to the group of its corresponding AH text using the HART domain and source ID.
Following Appendix § 13.§ 4, we filter each H and AH document individually, retaining texts of 300–500 Falcon-7B tokens (inclusive, before truncation). Table 16 gives the retained counts by group. For the eight detector configurations in Table 2, we compute AUROC and TPR@5% from each group’s test ROC with AH as the positive class.
| Method | Model (578 / 614) | Tool (155 / 145) | Human (91 / 101) | Type Macro Avg. |
| Log-Likelihood | 35.23 / 0.98 | 25.11 / 1.38 | 57.37 / 0.99 | 39.24 / 1.12 |
| LRR | 30.19 / 1.79 | 29.37 / 2.76 | 53.23 / 9.90 | 37.60 / 4.82 |
| TempTest | 49.97 / 15.80 | 35.41 / 8.97 | 81.41 / 53.47 | 55.60 / 26.08 |
| NTS | 76.50 / 43.16 | 66.35 / 24.83 | 86.60 / 60.40 | 76.48 / 42.79 |
| Binoculars† | 60.97 / 38.44 | 49.37 / 17.24 | 92.32 / 78.22 | 67.55 / 44.63 |
| Fast-DetectGPT† | 60.96 / 39.41 | 49.73 / 21.38 | 92.02 / 80.20 | 67.57 / 47.00 |
| Lastde++† | 72.29 / 40.23 | 60.81 / 12.41 | 91.86 / 72.28 | 74.99 / 41.64 |
| CPD (Ours) | 95.49 / 86.97 | 80.37 / 46.21 | 92.18 / 69.31 | 89.35 / 67.49 |
Table 16. HART source discrimination by humanization type (H vs. AH). Cells give AUROC / TPR@5% in percent for human drafts versus humanized AI drafts. Counts below each heading give the numbers of human and humanized AI texts retained after length filtering. The macro average weights the three types equally. † marks dual-model detectors. Bold marks the highest value of each metric.
At 5% FPR, CPD detects 86.97% of model rewrites and 46.21% of tool rewrites (Table 16). On human rewrites, CPD and Binoculars have similar AUROCs (92.18% and 92.32%), while Fast-DetectGPT detects the most rewrites at 5% FPR (80.20%, compared with 69.31% for CPD).
Source-Matched AI-mediated Rewriting
GEN: editing intensity on matched human drafts. We select 936 human drafts with one AI-edited version in each of the 20–40%, 40–60%, and 60–80% edit-ratio ranges, yielding 2,808 revisions. For all eight detectors, the negatives are the original drafts in the H vs. A condition and the corresponding 936 revisions in each HA vs. A condition (Table 17 and Figure 4(a)). The human drafts come from a separate prompt pool, while all four conditions share 936 directly AI-generated positives drawn from the 2,000-per-class direct-detection test set in Table 1.
The original human drafts, the three edited sets, and the AI references have the same domain composition, with 196 arXiv, 188 Reddit, 196 story-generation, 179 wikiHow, and 177 Wikipedia texts per condition. Llama-3.3-70B, GPT-OSS-120B, and Qwen2.5-72B each contributed 312 revisions within each edit-ratio range. For 825 of the 936 drafts, the three revisions come from at least two editing models.
DetectRL-X: editing operations on matched AI drafts. Using source-pair identifiers, we match each of the 6,000 original AI drafts to its condensed, expanded, and polished versions. All four conditions share the same 6,000 human controls. Each condition contains 1,000 AI texts from each of six domains and 1,500 from each of four generators.
Table 18 reports AUROC and TPR@5% for each DetectRL-X condition in Figure 4. For the Overall column, we draw
6,000 AI variants from the pool of individually condensed, expanded, and polished texts and compute one ROC curve against the 6,000 human controls (Appendix § 10.§ 4).
Length-Controlled Evaluation
We evaluate all eight detectors on H vs. A across GEN, DetectRL-X, and HART. Texts with fewer than 256 tokens before truncation are excluded, and each retained text is truncated to 64, 128, or 256 tokens. Every method scores the same texts at all three lengths. After filtering, GEN contains
1,796 human and 1,603 AI texts, DetectRL-X contains 5,376 human and 4,879 AI texts, and HART contains 1,615 human and 1,576 AI texts. We average the three dataset results before rounding, giving each dataset equal weight.
CPD’s macro AUROC and TPR@5% increase with prefix length. CPD has the highest AUROC at every prefix length on all three benchmarks (Table 20). Fast-DetectGPT has higher TPR@5% on HART at 64 and 128 tokens. At 256 tokens, CPD leads on both metrics across benchmarks.
Character-Level Perturbations
CPD’s AUROC ranges from 69.37% after character deletion to 94.08% after zero-width insertion (Figure 5). Pooling 6,000 sampled AI variants across the four operations against the human controls gives 81.38% AUROC (Appendix § 10.§ 2).
Cross-Lingual Generalization
Table 21 reports AUROC by language for all eight detectors in their default configurations. Each test set contains 6,000 human and 6,000 AI texts. We compute equally weighted macro averages over all eight languages and over the seven non-English languages, using unrounded results in both cases. In every language, CPD classifies a text as AI-origin if its score reaches or exceeds the full-precision GEN development threshold (, Appendix § 13.§ 1.1). The English test-set results reproduce the DetectRL-X AUROC in Table 1 and the two fixed-threshold rates in Table 13.
Arabic and Russian have CPD’s lowest AUROCs. The frozen threshold also detects the smallest shares of AI texts in these two languages, 22.55% and 20.95%, respectively.
Cross-Backbone Generalization
Table 22 compares six detectors on the same 2,000 human-written and 2,000 AI-generated texts from the English GEN test set. Each column uses one Falcon (Almazrouei et al., [1]), GPT-Neo (Black et al., [5]), or Llama (Touvron et al., [37]; Grattafiori et al., [13]) backbone for all six methods. Loglikelihood scores the observed tokens under the full prefix. Single-Fast uses the same full-prefix distribution for scoring and for its reference moments. CPD uses that backbone both for the full prefix and the one-token prefix (). We keep each detector’s score direction fixed across backbones, as in § 3.1. The Falcon-7B column reproduces the GEN results in Table 1.
NTS ranks second on both metrics with every backbone. Its closest result to CPD is on GPT-Neo-2.7B, where CPD leads by 15.60 percentage points in AUROC and 25.00 in TPR@5%. Loglikelihood and Single-Fast both attain their highest AUROC on Llama-3.1-8B (53.94% and 46.49%, respectively). With that same scorer, CPD reaches 87.02% AUROC and detects 62.25% of AI texts at 5% FPR, compared with 18.55% for Single-Fast.
Effect of instruction tuning. On the same texts with , switching from Falcon-7B to Falcon-7B-Instruct narrows the gap between mean CPD scores for AI and human drafts from 4.50 to 3.13 (computed before rounding). Recall at 5% FPR falls from 80.25% to 59.15% (Table 22). On a separate writing benchmark, Ma et al. (2026, Table 15) also report lower NTS AUROC with instruction-tuned Falcon.
Computational Efficiency
Figure 6 and Table 23 report mean processing time per text and peak allocated GPU memory on 200 GEN texts
Figure 6. Peak allocated GPU memory (bars, GB) and mean time per text (line, seconds) on 200 GEN texts with one RTX A6000.
CPD at a fixed threshold (target FPR of 5% on GEN development data)
using one NVIDIA RTX A6000. CPD reuses predictions for identical one-token restricted contexts within each text. Peak memory includes model weights. Appendix § 10.§ 4 gives the sampling, timing, and warm-up protocol.
Computational cost. CPD uses 15.80 GB of peak allocated GPU memory and averages 0.176 seconds per text. The dual-model detectors each use 28.19 GB and take 0.233–0.306 seconds per text. Relative to Fast-DetectGPT, the fastest dual-model baseline, CPD reduces time per text by 24.6% (a 1.33× speedup) and peak memory by 43.95%.
Loglikelihood, LRR, TempTest, and NTS use 14.21 GB and take 0.113–0.122 seconds on average to score one GEN text.
Generator-wise Performance Analysis on GEN
Each of the 2,000 prompts in the GEN direct-detection test set contributes one human text and one AI text. We group these pairs by the model that generated the AI text. CPD uses Falcon-7B with across all eight subsets, and each baseline retains its configuration from § 3.1. We keep each detector’s score direction fixed and compute its ROC curve separately for each generator (Table 24). The GEN column in Table 1 evaluates the same texts together.
CPD leads on both metrics for seven of the eight generators. Among those seven generators, its lowest AUROC (94.98%) and TPR@5% (82.40%) occur on Qwen2.5-72B. CPD reaches its highest AUROC of 97.70% on Qwen2.5-7B and its highest TPR@5% of 91.20% on Llama 3.1-8B.
On GPT-OSS-20B, NTS leads with 85.36% AUROC and 60.24% TPR@5%, compared with CPD’s 78.42% and 37.35%. On GPT-OSS-120B, CPD detects 86.40% of outputs at 5% FPR, 49.05 percentage points higher than on GPT-OSS-20B. The difference between mean CPD scores for generated and prompt-matched human texts rises from 1.52 on the 20B subset to 3.43 on the 120B subset.
References
- [1]Almazrouei, E., Alobeidli, H., Alshamsi, A., Cappelli, A., Cojocaru, R., Debbah, M., Étienne Goffinet, Hesslow, D., Launay, J., Malartic, Q., Mazzotta, D., Noune, B., Pannier, B., and Penedo, G. The falcon series of open language models, 2023. URL https://arxiv.org/abs/2311.16867.
- [2]Anthropic. Introducing computer use, a new Claude 3.5 Sonnet, and Claude 3.5 Haiku, 2024. URL https://www.anthropic.com/news/3-5-models-and-computer-use.
- [3]Bao, G., Zhao, Y., Teng, Z., Yang, L., and Zhang, Y. Fast-detectgpt: Efficient zero-shot detection of machine-generated text via conditional probability curvature. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. URL https://openreview.net/forum?id=Bpcgcr8E8Z.arxiv.org/abs/2310.05130
- [4]Bao, G., Rong, L., Zhao, Y., Zhou, Q., and Zhang, Y. Decoupling content and expression: Two-dimensional detection of ai-generated text. CoRR, abs/2503.00258, 2025. doi: 10.48550/ARXIV.2503.00258. URL https://doi.org/10.48550/arXiv.2503.00258.
- [5]Black, S., Gao, L., Wang, P., Leahy, C., and Biderman, S. GPT-Neo: Large scale autoregressive language modeling with Mesh-Tensorflow. Zenodo, March 2021. URL https://doi.org/10.5281/zenodo.5297715.
- [6]Chen, Z., Liu, H., and Tang, J. Zero-shot detection of LLM-generated text via dual-network preference divergence. Expert Systems with Applications, 309:131212, 2026. doi: 10.1016/j.eswa.2026.131212.DOI
- [7]DeepSeek-AI. DeepSeek-V3 technical report. arXiv preprint arXiv:2412.19437, 2024. URL https://arxiv.org/abs/2412.19437.
- [9]Gehrmann, S., Strobelt, H., and Rush, A. M. GLTR: statistical detection and visualization of generated text. In Costa-jussà, M. R. and Alfonseca, E. (eds.), Proceedings of the 57th Conference of the Association for Computational Linguistics, ACL 2019, Florence, Italy, July 28 - August 2, 2019, Volume 3: System Demonstrations, pp. 111–116. Association for Computational Linguistics, 2019. doi: 10.18653/V1/P19-3019. URL https://doi.org/10.18653/v1/p19-3019.
- [10]Gemini Team. Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context. arXiv preprint arXiv:2403.05530, 2024. URL https://arxiv.org/abs/2403.05530.
- [11]Gemini Team. Gemini 2.5: Pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261, 2025. URL https://arxiv.org/abs/2507.06261.
- [12]Gemma Team. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 2025. URL https://arxiv.org/abs/2503.19786.
- [13]Grattafiori, A., Dubey, A., Jauhari, A., et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. URL https://arxiv.org/abs/2407.21783.
- [14]Hans, A., Schwarzschild, A., Cherepanova, V., Kazemi, H., Saha, A., Goldblum, M., Geiping, J., and Goldstein, T. Spotting llms with binoculars: Zero-shot detection of machine-generated text. In Salakhutdinov, R., Kolter, Z., Heller, K. A., Weller, A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, volume 235 of Proceedings of Machine Learning Research, pp. 17519–17537. PMLR / OpenReview.net, 2024. URL https://proceedings.mlr.press/v235/hans24a.html.
- [15]Hao, W., Li, R., Zhao, W., Yang, J., and Mao, C. Learning to rewrite: Generalized LLM-generated text detection. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 6421–6434, Vienna, Austria, 2025. Association for Computational Linguistics. doi: 10.18653/v1/2025.acl-long.322. URL https://aclanthology.org/2025.acl-long.322/.DOI
- [16]Kempton, T., Burrell, S., and Cheverall, C. Tempest: Local normalization distortion and the detection of machine-generated text. In Li, Y., Mandt, S., Agrawal, S., and Khan, M. E. (eds.), International Conference on Artificial Intelligence and Statistics, AISTATS 2025, Mai Khao, Thailand, 3-5 May 2025, volume 258 of Proceedings of Machine Learning Research, pp. 1972–1980. PMLR, 2025. URL https://proceedings.mlr.press/v258/kempton25a.html.arxiv.org/abs/2503.20421
- [17]Kempton, T., Drobnyi, V., Madigan, M., and Burrell, S. Log-likelihood, simpson’s paradox, and the detection of machine-generated text. ArXiv, abs/2605.06294, 2026. URL https://api.semanticscholar.org/CorpusID:288014780.arxiv.org/abs/2605.06294
- [18]Krishna, K., Song, Y., Karpinska, M., Wieting, J., and Iyyer, M. Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense. In Advances in Neural Information Processing Systems, volume 36, pp. 27469–27500, 2023. doi: 10.52202/075280-1195. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/575c4500199e49b0ecf82bdd1afaa4-Abstract-Conference.html.DOI
- [21]Liu, R., Huang, H., Xiao, X., and Wu, Z. Zero-shot detection of LLM-generated text via implicit reward model. In Advances in Neural Information Processing Systems, volume 38, 2025. doi: 10.52202/085713-5590. URL https://openreview.net/forum?id=2VdsYVXLDl.DOI
- [25]Meta. Llama 3.3 model card, 2024. URL https://github.com/meta-llama/llama-models/blob/main/models/llama3_3/MODEL_CARD.md.
- [26]Mitchell, E., Lee, Y., Khazatsky, A., Manning, C. D., and Finn, C. Detectgpt: Zero-shot machine-generated text detection using probability curvature. In Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S., and Scarlett, J. (eds.), International Conference on Machine Learning, ICML 2023, 23-29 July 2023, Honolulu, Hawaii, USA, volume 202 of Proceedings of Machine Learning Research, pp. 24950–24962. PMLR, 2023. URL https://proceedings.mlr.press/v202/mitchell23a.html. OpenAI. New embedding models and API updates, 2024a. URL https://openai.com/index/new-embedding-models-and-api-updates/.
- [27]OpenAI. GPT-4o system card. arXiv preprint arXiv:2410.21276, 2024b. URL https://arxiv.org/abs/2410.21276.
- [28]OpenAI. gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925, 2025. URL https://arxiv.org/abs/2508.10925.
- [29]Qwen Team. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2024. URL https://arxiv.org/abs/2412.15115.
- [30]Qwen Team. Qwen2.5-Max: Exploring the intelligence of large-scale MoE model, 2025. URL https://qwenlm.github.io/blog/qwen2.5-max/.
- [31]Radvand, T., Abdolmaleki, M., Mostagir, M., and Tewari, A. Zero-shot statistical tests for LLM-generated text detection using finite sample concentration inequalities. arXiv preprint arXiv:2501.02406v4, 2025. URL https://arxiv.org/abs/2501.02406v4.
- [32]Shan, Z., Lee, Y., and Hao, S. AI writers have a consistent stylometric footprint, but AI editors do not. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pp. 39352–39376. Association for Computational Linguistics, 2026. doi: 10.18653/2026.emnlp-main.1725. URL https://aclanthology.org/2026.emnlp-main.1725/.DOI
- [34]Sun, J. and Cai, Z. Token-level likelihood-array regression for membership inference and ai-generated text detection. arXiv preprint arXiv:2608.22179, 2026.arxiv.org/abs/2608.22179
- [35]Sun, J. and Lv, Z. Zero-shot detection of LLM-generated text via text reorder. Neurocomputing, 631:129829, 2025. doi: 10.1016/j.neucom.2025.129829. URL https://doi.org/10.1016/j.neucom.2025.129829.
- [36]Sun, Y., Zhang, R., Sun, A., Li, X., Liu, Z., and Guo, J. D&R: Recovery-based AI-generated text detection via a single black-box LLM call. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=FiMZSxo4DO.
- [37]Touvron, H. et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. URL https://arxiv.org/abs/2307.09288.
- [38]Wang, Y., Ding, P., Li, L., Cui, C., Ge, Z., Tong, X., Song, W., Zhao, H., Zhao, W., Hu, P., Huang, S., Tang, Y., Wang, W., Zhang, R., Liu, J., and Wang, D. VLA-Adapter: An effective paradigm for tiny-scale vision-language-action model. Proceedings of the AAAI Conference on Artificial Intelligence, 40(22):18638–18646, 2026a. doi: 10.1609/aaai.v40i22.38931. URL https://doi.org/10.1609/aaai.v40i22.38931.
- [40]West, A., Weng, Y., Zhu, M., Zhang, L., Lin, Z., Bao, G., and Zhang, Y. AI-generated text is non-stationary: Detection via temporal tomography. arXiv preprint arXiv:2508.01754, 2025. doi: 10.48550/arXiv.2508.01754. URL https://arxiv.org/abs/2508.01754.
- [44]Yang, X., Pan, L., Zhao, X., Chen, H., Petzold, L. R., Wang, W. Y., and Cheng, W. A survey on detection of LLMs-generated content. In Al-Omari, Y., Bansal, M., and Chen, Y.-N. (eds.), Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 9786–9805, Miami, Florida, USA, November 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-emnlp.572. URL https://aclanthology.org/2024.findings-emnlp.572/.DOI
- [45]Zhu, B., Yuan, L., Cui, G., Chen, Y., Fu, C., He, B., Deng, Y., Liu, Z., Sun, M., and Gu, M. Beat LLMs at their own game: Zero-shot LLM-generated text detection via querying ChatGPT. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 7470–7483. Association for Computational Linguistics, 2023. doi: 10.18653/v1/2023.emnlp-main.463. URL https://aclanthology.org/2023.emnlp-main.463/.DOI




