Manuscript Offprint
arXiv:2610.33767Local Entropy Fluctuations for Black-Box LLM-Generated Text Detection
ABSTRACT
Zero-shot detection of machine-generated text is vital for mitigating the risks of large language models (LLMs) misuse. While the state-of-the-art dual-model detectors and resampling-based detectors outperform single-model statistical detectors on unprompted continuations, they suffer a catastrophic breakdown on instruction-conditioned text in the black-box setting, where the source model is unknown. We analyze this failure and trace it to poor prompt conditioning for resampling-based methods and diminished cross-model discrepancy for dual-model detectors. Motivated by recent studies that human writing maintains a steady, uniform information flow, whereas machine-generated text exhibits sharp, localized entropy fluctuations, we propose a new metric, the Relative Peak Prominence Rate (RelPPR) to capture this structural contrast along the entropy trajectory and further leverage it as a signal for LLM-generated text detection. Extensive evaluations across diverse model families and datasets demonstrate that RelPPR achieves state-of-the-art black-box detection performance and remains the most reliable detector under various practical situations. Our code is available at https://github.com/brushing-git/entropy-llm-detector.
1 INTRODUCTION
The rapid development of large language models (LLMs) capable of producing fluent, human-like text at scale has raised growing concerns about misuse, making reliable detection of machine-generated text an urgent problem. We refer to the model that generate candidate text as the source model. Detection under the black-box setting assumes access only to the candidate text itself, with no knowledge of the source model's identity or parameters. This setting requires neither labeled training data nor access to the source model, making it a highly practical yet challenging paradigm. Detectors instead rely on one or more surrogate models, which we refer to as evaluator models, to determine whether the candidate text is LLM-generated.
Existing zero-shot detectors broadly fall into three families: (i) single-model statistical criteria, which score a candidate text using only a single evaluator model's statistics, such as log-likelihood, log-rank, and entropy (Solaiman et al., 2019; Ippolito et al., 2020; Gehrmann et al., 2019); (ii) resampling-based detectors, which regenerate the text under an evaluator model to compare the candidate against this regeneration or normalize specific statistics (Mitchell et al., 2023; Yang et al., 2024; Xu et al., 2025); and (iii) dual-model detectors, which rely on the discrepancy between two evaluator models' probability estimates for the candidate text, typically measured via statistics such as log-likelihood or cross-entropy (Bao et al., 2024; Hans et al., 2024; Zhu et al., 2025). The latter two families currently define the state of the art, substantially outperforming single-model statistics.
We find, however, that this advantage holds mainly for unprompted continuations of a human prefix, i.e., text generated without user prompt or instruction. Once text is generated under the instruction-conditioned regime, dual-model and resampling-based detectors alike suffer a serious performance degradation as shown in Figure 1a. As our first contribution, we analyze this failure mode systematically for both detector families. 1) For resampling-based methods, since the user prompt is invisible at evaluation time, they cannot resample text by conditioning on the original prompt as the source model did. This prompt conditioning gap drives the resampled text to drift away from
Equal contribution.

(a) AUROC under unprompted and instruction-conditioned generation.

(b) The entropy trajectory of human and machine text in response to the same question from ELI5 dataset.
Figure 1: (a) RelPPR is robust under instruction-conditioning where existing detectors degrade; (b) Machine-generated text exhibits stronger entropy fluctuations than human text.
the candidate text. 2) For dual-model detectors, the cross-model discrepancy they rely on collapses under instruction conditioning due to a systematic shrinkage in cross-entropy, which is driven by lower predictive uncertainty (entropy) or by heightened cross-model consensus through reduced KL divergence. In summary, the prompt conditioning gap and the diminished cross-model discrepancy undermine predictive power in resampling-based and dual-model detectors, respectively.
Since all existing state-of-the-art (SOTA) detectors fail under instruction conditioning, our goal is to find a new detection signal that is effective under such setting. According to the Uniform Information Density (UID) principle in psycholinguistics (Jaeger, 2010; Meister et al., 2021), humans naturally regulate their writing to maintain a steady rate of information transmission, producing a smooth information flow with restrained local fluctuations. In contrast, LLMs concentrate uncertainty on semantic branch points and key decision junctures, a pattern further accentuated by instruction-tuning (Wang et al., 2025; Wei et al., 2026; Bigelow et al., 2025). Therefore, we hypothesize that machine text exhibits higher-amplitude local fluctuations in its entropy trajectory than human text.
Motivated by the above observations and hypothesis, we propose the Peak Prominence Rate (PPR), defined as the average prominence of local peaks along the entropy trajectory, to quantify trajectory fluctuations for detection. However, a text with higher sequence-level mean entropy can attain a larger raw PPR even if its fluctuations are mild relative to its entropy level. To counteract this bias, we normalize PPR by the sequence-level mean entropy, yielding our final criterion, RelPPR. As illustrated in Figure 1b, the entropy trajectory of machine text exhibits sharper fluctuations than that of human text relative to their respective entropy levels, yielding a higher RelPPR. Notably, RelPPR is entirely parameter-free and requires only a single evaluator model during inference.
We evaluate RelPPR across seven datasets and five source models under instruction-conditioning. Beyond achieving the state-of-the-art detection performance under the black-box setting, RelPPR demonstrates strong practical deployment value: it achieves superior recall under strict false-positive constraints, sustains reliability across varying sequence lengths and decoding configurations, withstands adversarial paraphrasing, and generalizes across diverse evaluator model scales and families.
Our contributions are threefold: (1) We show that dual-model and resampling-based detectors degrade catastrophically on instruction-conditioned text, and we trace this degradation to concrete mechanisms: diminished cross-model discrepancy for dual-model detectors and the prompt conditioning gap for resampling-based detectors. (2) We propose RelPPR, a single-model, parameter-free detection criterion motivated by the observation that machine-generated text exhibits higher-amplitude fluctuations in entropy trajectory than human text. (3) We conduct extensive black-box evaluations across seven datasets and five source models, showing that RelPPR achieves the state-of-the-art performance and remains the most reliable detector across diverse deployment conditions.
Entropy Dynamics and Uniform Information Density Uniform Information Density hypothesis from psycholinguistics (Jaeger, 2010; Jaeger & Levy, 2006; Meister et al., 2021) posits that humans intuitively spread out the information in communication, avoiding sudden bursts of hard-to-predict content so that listeners can follow along smoothly. In contrast, LLM generations concentrate uncertainty on a few pivotal “forking” tokens. Bigelow et al. (2025) locate such tokens by resampling from each prefix and show that a single token can redirect the whole generation; Wang et al. (2025) find that these high-entropy tokens are a small minority in chain-of-thought and that restricting RLVR updates to them suffices; Ni et al. (2026) show that diffusion LMs bypass them under arbitrary-order decoding, which hampers reasoning. These works, along with EDIS (Zhu et al., 2026), study entropy dynamics to understand or improve generation. We instead treat the resulting entropy spikes as a trace left in the output text: contrasted with the smoother profile of human writing, they provide a signal for black-box detection, which, to our knowledge, has not been explored.
3 WHAT BREAKS CURRENT DETECTORS UNDER USER INSTRUCTIONS
Empowered by post-training alignment, instruction-tuned LLMs produce highly fluent and task-conforming text under instructions, making detection harder than in unprompted continuation. We thus evaluate whether current zero-shot detectors remain effective in this demanding regime. Specifically, we contrast two generation settings on the same human texts: (i) w/o instruction, where the model performs unprompted continuation from a bare prefix, and (ii) w/ instruction, where the prefix is wrapped into task-specific prompt templates as shown in Table 5. We set the source model as OLMo-3.1-32B-Instruct and evaluate detectors under both settings. As shown in Figure 1a, current detectors degrade severely under instruction conditioning. Below, we uncover the underlying mechanisms driving this breakdown across both dual-model and resampling-based methods.
3.1 PRELIMINARIES AND NOTATIONS
Let denote the token vocabulary. Given a candidate text sequence of length , we write the prefix preceding position as . Given model , we denote as the conditional distribution over the next token given the prefix . We denote the sequence-level surprisal , entropy , and cross-entropy for evaluator models and as follows, respectively:
3.2 DUAL-MODEL DETECTORS
Fast-DetectGPT Fast-DetectGPT (Bao et al., 2024) refines the probability curvature idea of DetectGPT (Mitchell et al., 2023): a model's own generations tend to be more probable than nearby alternatives (e.g., slight rewrites), whereas human text shows no such tendency. Instead of DetectGPT's costly perturb-and-rescore procedure, Fast-DetectGPT operates at the token level: at each position, the observed token is compared against alternatives sampled from and scored by . Because these alternatives are sampled independently given the fixed passage, their expected score admit an analytic solution,
where is the sequence-level cross-entropy between and , and is the surprisal under , detailed in Appendix A.1. We show in Table 3 that dropping in has negligible impact on detection performance, and thus we focus on in the subsequent analysis.
Binoculars and DNA-DetectLLM Instead of taking the difference, Binoculars (Hans et al., 2024) and DNA-DetectLLM (Zhu et al., 2025) score text via a ratio between surprisal and cross-entropy, denoted by and respectively, with details in Appendix A.2:
In , is the greedy repair of , and measures the minimum attainable surprisal along the prefixes of . Under the premise of DNA-DetectLLM, machine-generated text is hypothesized to adhere closely to the greedy decoding trajectory of LLM, so that approximates for machine text while deviating substantially for human text.
Unified Information-Theoretic Perspective All three methods operate on the premise that machine-generated text yields higher scores than human text. However, taking XSum as a representative case study, the detection statistics of machine-generated text drop noticeably across detectors under instruction conditioning, and their distributions shift closer to that of human text, as illustrated for DNA-DetectLLM in Figure 2 and for the Fast-DetectGPT numerator alongside Binoculars in Figure 6. This distributional shift directly drives their performance degradation. We further analyze this phenomenon from an information-theoretic perspective.
Comparing Equations (1) and (2), we find that these three methods are governed by the two information-theoretic quantities: the sequence-level surprisal and the sequence-level cross-entropy . As structurally decomposed in Figure 2, the cross-entropy shifts toward lower values under instruction conditioning, while the surprisal remains largely unchanged. Consequently, this asymmetric shift compresses the Fast-DetectGPT numerator and the Binoculars score of machine text under instruction conditioning, as illustrated in Figure 6. This phenomenon is consistently observed across other datasets, as detailed in Appendix A.4. For DNA-DetectLLM, the mean of the distribution exhibits little variation across most datasets. Even on datasets where it shifts toward lower values, such as XSum in Figure 2, its decrease does not substantially outpace the shrinkage of the cross-entropy denominator, ultimately driving the distribution of toward lower values as well.
To understand the shrinkage of cross-entropy at a finer granularity, we decompose the sequence-level cross-entropy into model entropy and divergence:
where denotes the sequence-level KL divergence, with derivation provided in Appendix A.3. As shown in Figure 2, the cross-entropy shrinkage on XSum stems from concurrent drops in both KL divergence and model entropy. Across other datasets, this shrinkage is driven either predominantly by a drop in divergence on CNN/DailyMail and WikiText, or primarily by a reduction in model entropy on SQuAD and ELI5.
In summary, dual-model detectors degrade directly due to cross-entropy shrinkage, showing that cross-model discrepancy fails under instruction conditioning. Specifically, this breakdown is driven either by lower predictive uncertainty (lower entropy ), or by heightened cross-model consensus through reduced KL divergence .

Score distribution of machine text shifts into human text range under instruction
Surprisal remains largely unchanged, whereas conditional surprisal either minor drops or remains largely unchanged across datasets

Cross-entropy drops due to concurrent reductions in entropy and KL divergence, and the factor of 2 in the denominator amplifies this effect over the drop in conditional surprisal, directly causing the score to decrease.
Figure 2: Analysis of the DNA-DetectLLM score on XSum, with OLMo-3.1-32B-Instruct as the source model. and denote the mean and standard deviation. Under instruction conditioning, machine text scores shift lower, converging toward the human score distribution.
3.3 RESAMPLING-BASED DETECTORS
During text generation, the source model produces candidate text sequence from an initial human prefix . The source model generates tokens from without instruction, whereas under instruction conditioning it samples from guided by an explicit instruction prompt . At test time, resampling-based detectors evaluate candidate text by generating alternative continuations using evaluator model , and either compare them directly against , such as via -gram overlap in DNA-GPT (Yang et al., 2024), or use them to calibrate a statistic on , as in LastDE++ (Xu et al., 2025). Because neither the prefix nor the instruction is accessible to the evaluator, the unconditioned resampling distribution deviates far more drastically from the true generative distribution under instruction conditioning than from in unprompted continuation. This widened prompt conditioning gap causes the resampled continuations to drift heavily away from the instruction-guided trajectory of , depriving resampling-based detectors of their discriminative signal.
4 OUR METHOD: RELATIVE PEAK PROMINENCE RATE
To address the challenges posed by instruction conditioning, we draw on the difference in how humans and machines produce text and propose to detect machine-generated text by the difference of fluctuation in its entropy trajectory. We capture this fluctuation signal using topological prominence, which measures how sharply each local entropy peak stands out above its neighboring valleys.
4.1 MOTIVATION: HUMAN TEXT FLOWS, MACHINE TEXT SPIKES
Human Writing: Smooth Information Flow As formalized in the Uniform Information Density (UID) principle (Jaeger, 2010; Meister et al., 2021), humans naturally regulate their writing to keep the rate of information transmission relatively steady (e.g., by cushioning complex concepts with preparatory context to facilitate reader comprehension). This communicative buffering yields a smooth information flow that inherently avoids sharp, localized entropy spikes. Extending this principle to generation dynamics, we posit that the resulting entropy trajectory of human text exhibits smoother transitions with restrained local fluctuations.
Machine Text: High-Amplitude Local Fluctuations Autoregressive generation in LLMs, in contrast, is not globally planned for smooth communication. Prior work shows uncertainty varies across positions: certain high-entropy tokens, termed forking tokens, act as decision points steering the continuation (Wang et al., 2025). They often coincide with logical connectives (e.g., “however”, “thus”) and question words (Wei et al., 2026), and a single such token can redirect the whole generation (Bigelow et al., 2025). We posit that the alternation between forking tokens and predictable stretches yields an entropy trajectory with higher-amplitude local fluctuations than human text.
Instruction-Conditioned Text: Even Stronger Fluctuations Wang et al. (2025) show that reinforcement learning with verifiable rewards (RLVR) does not reshape a model's token-level entropy uniformly: tokens with higher initial entropy show larger entropy increases after RLVR, while the entropy of low-entropy tokens stays close to its pre-RLVR level. Motivated by this, and since RLVR is run on instruction prompts, we conjecture that instruction conditioning accentuates peaks at forking tokens, yielding larger fluctuations than unprompted continuation.
Overall, based on the distinct generation mechanisms of humans and machines, we conjecture that machine text generated with instructions exhibits larger fluctuations in its entropy trajectory than human text, and we therefore formulate our detection criterion by quantifying these fluctuations.
4.2 PEAK PROMINENCE RATE OF ENTROPY TRAJECTORY
To capture the degree of local fluctuation as a detection signal, we adopt the concept of topological prominence from computational geometry and signal analysis (Perea & Harer, 2015). Given a text sequence and a evaluator model , we compute the token-level entropy trajectory , where denotes the entropy at step . A position is a peak if and ; we denote the set of all such peaks by .
For each peak , its prominence is defined as the vertical distance between the peak and the highest contour line that connects it to an even higher peak:
where and are the nearest preceding and succeeding positions along the trajectory whose entropy exceeds (defaulting to the sequence boundaries if no such position exists). Thus, measures the elevation of peak above its local valley.
We define the sequence-level Peak Prominence Rate (PPR) as the cumulative prominence of all peaks normalized by the sequence length:
As human text generally exhibits higher entropy than machine-generated text under the evaluator model (Gehrmann et al., 2019), a high-entropy human text can attain a large raw PPR, even when its fluctuations are mild relative to its own entropy level. Therefore, we introduce two entropy-adjusted variants: (i) the Relative Peak Prominence Rate (RelPPR) score, which normalizes PPR by the sequence-level mean entropy to isolate fluctuation relative to the sample's own entropy level; (ii) the Difference Peak Prominence Rate (DiffPPR) score, which treats PPR as an incremental signal to . The two criteria are defined as:
For both criteria, a higher RelPPR or DiffPPR score indicates a higher likelihood that the candidate text is machine-generated. In Figure 3, we examine the empirical distributions of RelPPR across diverse benchmark datasets, holding the human-written prefix strictly constant between the two machine conditions. Across all datasets, the resulting distributions systematically adhere to a consistent ordering: text generated under instruction conditioning attains the highest RelPPR values, followed by machine text without instruction, whereas human text consistently exhibits the lowest values. This empirical ordering directly validates our three motivations outlined in Section 4.1, confirming

(a) XSum
(b) CNN/DailyMail
(c) ELI5
(d) WritingPrompts
Figure 3: Distributions of RelPPR across four datasets for human text alongside machine-generated text from OLMo-3.1-32B-Instruct. RelPPR consistently separates human writing and machine text generated under instruction conditioning. Results on additional datasets are provided in Figure 12.
that human text maintains a smooth information flow, machine text introduces sharp local variations at semantic branch points, and instruction conditioning further amplifies these localized fluctuations, accentuating rather than eroding the separation between human and machine distributions.
Compared with dual-model and resampling-based detectors, our criteria require only a single forward pass and no sampling, making them computationally efficient, and, as shown in the next section, they also achieve superior detection performance.
5 EXPERIMENT
In this section, we evaluate RelPPR against twelve zero-shot baselines across seven datasets and six instruction-tuned source models, and further examine its robustness to decision thresholds, decoding configurations, generation length, paraphrasing attacks, and the size and family of evaluator model. The details regarding experimental setups are provided in Appendix B.
5.1 EXPERIMENTAL SETUP
Benchmark Datasets We evaluate on seven benchmark datasets spanning diverse domains: news articles (XSum (Narayan et al., 2018) and CNN/DailyMail (Hermann et al., 2015)), encyclopedic contexts (WikiText-103 (Merity et al., 2016) and SQuAD (Rajpurkar et al., 2016)), creative story writing (WritingPrompts (Fan et al., 2018)), biomedical research question answering (PubMedQA (Jin et al., 2019)) and general-topic question answering (ELI5 (Fan et al., 2019)).
Human Prefix and Prompt Templates For datasets without a standalone question or opening sentence (XSum, CNN/DailyMail, WikiText, and SQuAD), following the Fast-DetectGPT protocol, the human prefix is formed by extracting the first 30 tokens from the source document, while the remaining tokens serve as the human completion. For WritingPrompts, ELI5, and PubMedQA, the human prefix is the clean opening sentence or question itself, and the corresponding human continuation is the original human-written story or answer. Each dataset is equipped with a tailored instruction prompt template (detailed in Table 5). Crucially, adhering to realistic zero-shot detection scenarios, the instruction prompt is strictly invisible to detectors during evaluation.
Baselines and Evaluation Metric We evaluate our proposed method against 14 competitive zero-shot baselines: (1) Single-model statistical criteria: Likelihood (Solaiman et al., 2019), Entropy (Ippolito et al., 2020), LogRank (Gehrmann et al., 2019), LastDE (Xu et al., 2025), LRR (Su et al., 2023) and GECScore (Wu et al., 2025); (2) dual-model detectors: Fast-DetectGPT (Bao et al., 2024), Binoculars (Hans et al., 2024), DNA-DetectLLM (Zhu et al., 2025), and Implicit Reward Model (IRM) (Liu et al., 2025); (3) Resampling-based detectors: DNA-GPT (Yang et al., 2024) and LastDE++ (Xu et al., 2025). Detection performance is measured by the Area Under the Receiver Operating Characteristic Curve (AUROC) across all human-machine pairs.
Models To ensure robust evaluation across diverse model capacities and structural paradigms, we evaluate on six instruction-tuned LLMs spanning both dense and sparse Mixture-of-Experts (MoE) architectures, with parameter scales ranging from 7B to 119B. We deliberately use the small Qwen3.5-2B (Qwen Team, 2026) as the evaluator to simulate realistic black-box deployment scenarios where the target commercial model substantially exceeds the detector in capacity. Full model identities and evaluator configurations are detailed in Appendix B.1.
Table 1: Detection performance (AUROC) by dataset (averaged across five source models) under black-box setting. The best and second-best results are shown in bold and underlined, respectively.
| Methods | XSum | WritingP | SQuAD | WikiText | CNN/DM | ELI5 | PubMedQA | Avg |
|---|---|---|---|---|---|---|---|---|
| Entropy | 0.822 | 0.812 | 0.813 | 0.788 | 0.817 | 0.929 | 0.703 | 0.812 |
| Likelihood | 0.787 | 0.801 | 0.787 | 0.752 | 0.775 | 0.902 | 0.600 | 0.772 |
| LogRank | 0.786 | 0.764 | 0.782 | 0.767 | 0.782 | 0.894 | 0.595 | 0.767 |
| LRR | 0.739 | 0.613 | 0.731 | 0.781 | 0.756 | 0.831 | 0.550 | 0.714 |
| GECScore | 0.712 | 0.673 | 0.684 | 0.648 | 0.688 | 0.839 | 0.558 | 0.686 |
| LastDE | 0.755 | 0.767 | 0.783 | 0.785 | 0.767 | 0.890 | 0.590 | 0.762 |
| LastDE++ | 0.406 | 0.545 | 0.432 | 0.317 | 0.433 | 0.673 | 0.444 | 0.464 |
| DNA-GPT | 0.401 | 0.509 | 0.372 | 0.441 | 0.335 | 0.568 | 0.486 | 0.445 |
| Fast-DetectGPT | 0.649 | 0.718 | 0.580 | 0.598 | 0.592 | 0.531 | 0.449 | 0.588 |
| Binoculars | 0.663 | 0.712 | 0.598 | 0.612 | 0.602 | 0.551 | 0.452 | 0.599 |
| DNA-DetectLLM | 0.704 | 0.731 | 0.590 | 0.646 | 0.614 | 0.420 | 0.451 | 0.594 |
| IRM | 0.867 | 0.807 | 0.707 | 0.887 | 0.818 | 0.662 | 0.581 | 0.761 |
| PPR (Ours) | 0.715 | 0.787 | 0.555 | 0.610 | 0.638 | 0.461 | 0.412 | 0.597 |
| DiffPPR (Ours) | 0.884 | 0.909 | 0.865 | 0.850 | 0.869 | 0.958 | 0.670 | 0.858 |
| RelPPR (Ours) | 0.921 | 0.961 | 0.888 | 0.913 | 0.879 | 0.974 | 0.563 | 0.871 |
5.2 MAIN RESULTS
We evaluate detectors under the black-box setting, where the detector has no access to the source model, and summarize their detection performance across datasets in Table 1 and across source models in Table 2. The results demonstrate that our proposed RelPPR achieves state-of-the-art performances across diverse source model architectures and domains.
Single-Model Statistical Criteria Outperform Dual-Model and Resampling Baselines As shown in Tables 1 and 2, entropy attains the highest overall AUROC of 0.812 among all baselines, while Likelihood, LogRank and LastDE maintain robust stability across diverse source models and datasets. In contrast, dual-model and resampling-based detectors exhibit substantially inferior performance and severe instability across source models. The dramatic degradation from LastDE to LastDE++, which normalizes the LastDE score using resampled continuations, isolates the adverse effect of resampling and corroborates our prompt conditioning gap analysis in Section 3.3.
PPR and Entropy are Complementary Signals Combining PPR and entropy achieves the best performance. DiffPPR already surpasses every baseline, including Entropy itself, confirming that fluctuation magnitude and sequence-level entropy are complementary signals. Normalizing the PPR by the sequence-level entropy, as in RelPPR, yields a further improvement over DiffPPR on every source model and every dataset except PubMedQA. The outstanding performance of RelPPR demonstrates that evaluating entropy fluctuations relative to base entropy provides a highly discriminative signal for identifying instruction-conditioned machine text.
Table 2: AUROC across source models, averaged over seven datasets under the black-box setting. The best and second-best results are shown in bold and underlined, respectively.
| OLMo3 7B | OLMo3.1 32B | Gemma4 31B | Mistral 119B | Qwen3.5 35B | Avg | |
|---|---|---|---|---|---|---|
| Entropy | 0.780 | 0.837 | 0.811 | 0.841 | 0.790 | 0.812 |
| Likelihood | 0.693 | 0.794 | 0.803 | 0.848 | 0.723 | 0.772 |
| LogRank | 0.699 | 0.789 | 0.786 | 0.838 | 0.723 | 0.767 |
| LRR | 0.687 | 0.740 | 0.692 | 0.763 | 0.689 | 0.714 |
| GECScore | 0.646 | 0.679 | 0.743 | 0.631 | 0.731 | 0.686 |
| LastDE | 0.704 | 0.781 | 0.764 | 0.817 | 0.745 | 0.762 |
| LastDE++ | 0.406 | 0.442 | 0.476 | 0.558 | 0.440 | 0.464 |
| DNA-GPT | 0.462 | 0.475 | 0.430 | 0.454 | 0.401 | 0.445 |
| Fast-DetectGPT | 0.420 | 0.515 | 0.693 | 0.712 | 0.601 | 0.588 |
| Binoculars | 0.436 | 0.521 | 0.699 | 0.718 | 0.618 | 0.599 |
| DNA-DetectLLM | 0.436 | 0.515 | 0.698 | 0.702 | 0.617 | 0.594 |
| IRM | 0.668 | 0.658 | 0.887 | 0.698 | 0.895 | 0.761 |
| PPR (Ours) | 0.586 | 0.575 | 0.638 | 0.568 | 0.616 | 0.597 |
| DiffPPR (Ours) | 0.824 | 0.877 | 0.874 | 0.875 | 0.839 | 0.858 |
| RelPPR (Ours) | 0.837 | 0.887 | 0.897 | 0.879 | 0.856 | 0.871 |
5.3 ROBUSTNESS ANALYSIS
Beyond overall detection accuracy, we examine whether RelPPR remains reliable under conditions that matter for real-world deployment, including skewed decision thresholds, varying text length and decoding configurations, adversarial paraphrasing and evaluator choices.
Robustness across Decision Thresholds, Length and Decoding Configurations Beyond overall AUROC, practical deployment also depends on how much recall (true positive rate, TPR) a detector retains at low false positive rate (FPR). Figure 4a plots the ROC curve (log-scale FPR) on dataset ELI5 for RelPPR and the top 5 baselines. RelPPR dominates the low-FPR regime, retaining substantially higher TPR than all baselines as FPR approaches 0.01. We further vary generation length

(a) ROC curve (ELI5)

(b) Sequence Length

(c) Decoding Strategy
Figure 4: Detection Performance across decision thresholds, sequence length and decoding configurations on OLMo-3.1-32B-Instruct. Across all evaluations, RelPPR consistently outperforms baselines and exhibits notable robustness.
in Figure 4b and decoding determinism in Figure 4c. Shorter texts and more stochastic decoding are uniformly harder for all evaluated detectors. Across these settings, RelPPR leads every baseline at every length tier and every decoding setting. The detailed setup is provided in Appendix B.4.
Robustness under Paraphrasing Attack A practical detector must withstand adversarial rewriting. We paraphrase machine text with a T5-based model (Alisetti, 2021), keeping human text untouched. As shown in Figure 5, RelPPR attains the highest post-attack AUROC and lowest drop among declining criteria. This indicates that RelPPR survives rewriting far better than other single-model statistics. Although IRM's AUROC rises under paraphrasing, it still trails RelPPR by a wide margin.


Figure 5: Post-attack AUROC (Left) and AUROC drop (Right) under paraphrasing attack, on OLMo-3.1-32B-Instruct.
Robustness Across Evaluator Size and Family, and White-Box Detection As shown in Table 6, RelPPR generalizes well across evaluator architectures and scales, ranking first on seven of nine evaluators. Furthermore, cross-family shifts affect performance more than scaling within a family. We report the results under the white-box setting in Tables 7 and 8, where dual-model detectors achieve the best performance, as access to the source model restores cross-model discrepancy, while resampling-based methods remain limited by the prompt conditioning gap. Full experimental details and discussion are provided in Appendix B.6.
6 CONCLUSION
We study zero-shot detection of LLM-generated text in the black-box, instruction-conditioned setting, where state-of-the-art detectors break down. Our analysis traces this failure to two mechanisms: the prompt conditioning gap, which drives resampled text away from the candidate for resampling-based detectors, and a stronger cross-model consensus that shrinks the discrepancy signal dual-model detectors rely on. Building on the contrast between the uniform information flow of human writing and the sharp local entropy peaks of machine text, we propose RelPPR, a parameter-free criterion that quantifies the peak prominence rate of entropy trajectory relative to sequence-level entropy and uses this relative fluctuation magnitude as the detection signal, requiring only a single evaluator model and one forward pass. We evaluate RelPPR across seven datasets and five source models, where it achieves state-of-the-art black-box performance and remains robust across decision thresholds, text lengths, decoding configurations, paraphrasing attacks, and evaluator choices.
ACKNOWLEDGMENTS
This research was supported in part by the Defense Advanced Research Projects Agency (DARPA) under Agreement No. HR0011269E227 and by the University of Virginia Strategic Investment Fund through the Data Analytics Center (SIF192).
AI USE STATEMENT
In this work, we used generative AI tools to polish writing. We have not used generative AI tools to generate synthetic datasets, help develop theoretical models or conceptual frameworks, propose or refine hypotheses, formulate mathematical claims, provide critical ingredients for proving mathematical claims, assist in the writing of proofs, design or provide feedback on research methodology or experiments, implement the proposed RelPPR method, assist with translation, clean and reformat the dataset, or support qualitative or thematic data analysis. The machine-generated texts in our experiments are produced by the source models listed in Appendix B.1 as the object of study, not as AI assistance to the research. We have reviewed all AI-assisted work. The authors carefully revised all AI-polished or AI-drafted text to ensure it accurately reflects our methods and findings; the authors checked all figures and processed data against the raw experimental outputs; and the authors reviewed and tested all AI-assisted code before use. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
ETHICS STATEMENT
This work studies zero-shot detection of LLM-generated text; we discuss its main ethical considerations below.
Data and human subjects All human-written text is drawn from publicly available benchmark datasets (XSum, CNN/DailyMail, WikiText-103, SQuAD, WritingPrompts, ELI5, and PubMedQA) that are widely used in prior detection work, and we use them for research purposes in accordance with their respective licenses. WritingPrompts and ELI5 consist of user-generated content collected from Reddit; we use the text only as released, collect no additional personal information, and make no attempt to identify its authors. Machine-generated text was produced by publicly available open-weight models. The study involves no human participants or annotators.
Risk of false positives Errors of a text detector fall on people: a human author whose writing is flagged as machine-generated may face unwarranted accusations. Our results indicate that this risk is not uniform across domains. On PubMedQA, human text dense in specialized terminology exhibits entropy fluctuations resembling those of machine text (Section 5.2), suggesting elevated false-positive rates on technical writing. Prior work has also shown that detectors can be biased against non-native English writers (Liang et al., 2023); our evaluation is limited to English and does not assess this dimension. We therefore caution that RelPPR, like other detectors, should not be used as the sole basis for consequential decisions (e.g., academic misconduct findings or content removal), and that its scores should be treated as probabilistic evidence subject to human review.
REFERENCES
Sai Vamsi Alisetti. Paraphrase generator with t5, 2021.
Ebtesam Almazrouei, Hamza Alobeidli, Abdulaziz Alshamsi, Alessandro Cappelli, Ruxandra Cojocaru, Mérouane Debbah, Étienne Goffinet, Daniel Hesslow, Julien Launay, Quentin Malartic, et al. The falcon series of open language models. arXiv preprint arXiv:2311.16867, 2023.
Guangsheng Bao, Yanbin Zhao, Zhiyang Teng, Linyi Yang, and Yue Zhang. Fast-DetectGPT: Efficient zero-shot detection of machine-generated text via conditional probability curvature. In International Conference on Learning Representations (ICLR), 2024.
Eric Bigelow, Ari Holtzman, Hidenori Tanaka, and Tomer Ullman. Forking paths in neural text generation. In International Conference on Learning Representations, volume 2025, pp. 17134–17167, 2025.
Jad Doughman, Osama Mohammed Afzal, Hawau Olamide Toyin, Shady Shehata, Preslav Nakov, and Zeerak Talat. Exploring the limitations of detecting machine-generated text. In Proceedings of the 31st International Conference on Computational Linguistics, pp. 4274–4281, 2025.
Falcon-LLM Team. Introducing the Technology Innovation Institute’s Falcon 3: Making advanced AI accessible and available to everyone, everywhere, 2024.
Angela Fan, Mike Lewis, and Yann Dauphin. Hierarchical neural story generation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 889–898, 2018.
Angela Fan, Yacine Jernite, Ethan Perez, David Grangier, Jason Weston, and Michael Auli. Eli5: Long form question answering. In Proceedings of the 57th annual meeting of the association for computational linguistics, pp. 3558–3567, 2019.
Sebastian Gehrmann, Hendrik Strobelt, and Alexander M Rush. Gltr: Statistical detection and visualization of generated text. In Proceedings of the 57th annual meeting of the association for computational linguistics: system demonstrations, pp. 111–116, 2019.
Abhimanyu Hans, Avi Schwarzschild, Valeriia Cherepanova, Hamid Kazemi, Aniruddha Saha, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Spotting LLMs with binoculars: Zero-shot detection of machine-generated text. In International Conference on Machine Learning (ICML), pp. 17519–17537, 2024.
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. Advances in neural information processing systems, 28, 2015.
Daphne Ippolito, Daniel Duckworth, Chris Callison-Burch, and Douglas Eck. Automatic detection of generated text is easiest when humans are fooled. In Proceedings of the 58th annual meeting of the association for computational linguistics, pp. 1808–1822, 2020.
T. Jaeger and Roger Levy. Speakers optimize information density through syntactic reduction. In B. Schölkopf, J. Platt, and T. Hoffman (eds.), Advances in Neural Information Processing Systems, volume 19. MIT Press, 2006.
T. Florian Jaeger. Redundancy and reduction: Speakers manage syntactic information density. Cognitive Psychology, 61(1):23–62, 2010.
Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William Cohen, and Xinghua Lu. Pubmedqa: A dataset for biomedical research question answering. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp. 2567–2577, 2019.
Weixin Liang, Mert Yuksekgonul, Yining Mao, Eric Wu, and James Zou. Gpt detectors are biased against non-native english writers. Patterns, 4(7), 2023.
Alexander H Liu, Kartik Khandelwal, Sandeep Subramanian, Victor Jouault, Abhinav Rastogi, Adrien Sadé, Alan Jeffares, Albert Jiang, Alexandre Cahill, Alexandre Gavaudan, et al. Ministral 3. arXiv preprint arXiv:2601.08584, 2026.
Runheng Liu, Heyan Huang, Xingchen Xiao, and Zhijing Wu. Zero-shot detection of LLM-generated text via implicit reward model. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
Clara Meister, Tiago Pimentel, Patrick Haller, Lena Ann Jäger, Ryan Cotterell, and Roger Levy. Revisiting the uniform information density hypothesis. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 963–980, 2021.
Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
Mistral AI. Introducing Mistral Small 4, March 2026.
Eric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D Manning, and Chelsea Finn. DetectGPT: Zero-shot machine-generated text detection using probability curvature. In International Conference on Machine Learning (ICML), pp. 24950–24962, 2023.
Shashi Narayan, Shay B Cohen, and Mirella Lapata. Don’t give me the details, just the summary! topic-aware convolutional neural networks for extreme summarization. In Proceedings of the 2018 conference on empirical methods in natural language processing, pp. 1797–1807, 2018.
Zanlin Ni, Shenzhi Wang, Yang Yue, Tianyu Yu, Weilin Zhao, Yeguo Hua, Tianyi Chen, Jun Song, Cheng Yu, Bo Zheng, and Gao Huang. The flexibility trap: Rethinking the value of arbitrary order in diffusion language models. In Forty-third International Conference on Machine Learning, 2026.
Team Olmo, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, et al. Olmo 3. arXiv preprint arXiv:2512.13961, 2025.
Jose A Perea and John Harer. Sliding windows and persistence: An application of topological methods to signal analysis. Foundations of computational mathematics, 15(3):799–838, 2015.
Xiao Pu, Jingyu Zhang, Xiaochuang Han, Yulia Tsvetkov, and Tianxing He. On the zero-shot generalization of machine-generated text detectors. In Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 4799–4808, 2023.
Qwen Team. Qwen3.5: Towards native multimodal agents, February 2026.
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: 100,000+ questions for machine comprehension of text. In Proceedings of the 2016 conference on empirical methods in natural language processing, pp. 2383–2392, 2016.
Irene Solaiman, Miles Brundage, Jack Clark, Amanda Askell, Ariel Herbert-Voss, Jeff Wu, Alec Radford, Gretchen Krueger, Jong Wook Kim, Sarah Kreps, et al. Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203, 2019.
Jinyan Su, Terry Zhuo, Di Wang, and Preslav Nakov. Detectllm: Leveraging log rank information for zero-shot detection of machine-generated text. In Findings of the Association for Computational Linguistics: EMNLP 2023, pp. 12395–12412, 2023.
Gemma Team, Sherif El Abd, Vaibhav Aggarwal, Robin Algayres, Alek Andreev, Olivier Bachem, Ian Ballantyne, Cormac Brick, Victor Cärbune, Michelle Casbon, et al. Gemma 4 technical report. arXiv preprint arXiv:2607.02770, 2026.
Shenzhi Wang, Le Yu, Chang Gao, Chujie Zheng, Shixuan Liu, Rui Lu, Kai Dang, Xiong-Hui Chen, Jianxin Yang, Zhenru Zhang, Yuqiong Liu, An Yang, Andrew Zhao, Yang Yue, Shiji Song, Bowen Yu, Gao Huang, and Junyang Lin. Beyond the 80/20 rule: High-entropy minority tokens drive effective reinforcement learning for LLM reasoning. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
Longxuan Wei, Yubo Zhang, Zijiao Zhang, Zhihu Wang, Shiwan Zhao, Tianyu Huang, Huiting Zhao, Chenfei Liu, Shenao Zhang, and Junchi Yan. Entropy-tree: Tree-based decoding with entropy-guided exploration. arXiv preprint arXiv:2601.15296, 2026.
Junchao Wu, Runzhe Zhan, Derek F Wong, Shu Yang, Xuebo Liu, Lidia S Chao, and Min Zhang. Who wrote this? the key to zero-shot llm-generated text detection is gecscore. In Proceedings of the 31st International Conference on Computational Linguistics, pp. 10275–10292, 2025.
Yihuai Xu, Yongwei Wang, Yifei Bi, Huangsen Cao, Zhouhan Lin, Yu Zhao, and Fei Wu. Training-free llm-generated text detection by mining token probability sequences. In International Conference on Learning Representations, volume 2025, pp. 19072–19098, 2025.
Xianjun Yang, Wei Cheng, Yue Wu, Linda Petzold, William Wang, and Haifeng Chen. Dna-gpt: Divergent n-gram analysis for training-free detection of gpt-generated text. In International Conference on Learning Representations, volume 2024, pp. 48572–48597, 2024.
Chenghua Zhu, Siyan Wu, Xiangkang Zeng, Zishan Xu, Zhaolu Kang, Yifu Guo, Yuquan Lu, Junduan Huang, and Guojing Zhou. EDIS: Diagnosing LLM reasoning via entropy dynamics. arXiv preprint arXiv:2602.01288, 2026.
Xiaowei Zhu, Yubing Ren, Fang Fang, Qingfeng Tan, Shi Wang, and Yanan Cao. DNA-detectLLM: Unveiling AI-generated text via a DNA-inspired mutation-repair paradigm. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
Table 3: Per-dataset ROC AUC comparison between and for OLMo-3-32B-generated text. . Removing the variance denominator produces virtually no change in AUROC ().
| Condition | Variant | XSum | SQuAD | WritingP | CNN/DM | ELI5 | WikiText | PubMedQA | Average | |
|---|---|---|---|---|---|---|---|---|---|---|
| w/o Instruction | 0.7660.794 | 0.7530.749 | 0.7690.774 | 0.7080.707 | 0.6830.687 | 0.6090.615 | 0.7190.728 | 0.7150.722 | +0.007 | |
| w/ Instruction | 0.5690.569 | 0.5140.502 | 0.4940.501 | 0.4970.500 | 0.5560.552 | 0.5090.510 | 0.4650.469 | 0.5150.515 | 0.000 |
A FAILURE ANALYSIS
A.1 FAST-DETECTGPT
In the general dual-model formulation where serves as the sampling model and as the scoring model, Fast-DetectGPT (Bao et al., 2024) considers drawing candidate counterfactual tokens at each position . It computes their conditional expectation and variance under :
The detection score is then defined as the normalized sum of conditional likelihood deviations:
where the numerator accumulates conditional likelihood deviations, and the denominator normalizes them by the conditional variance. By definition, is the negative of the per-position cross-entropy, so summing over gives:
Substituting both into yields:
Table 3 compares against across generation conditions and datasets, to test whether the variance normalization denominator drives the performance collapse on instruction-tuned generations. As shown in the table, removing the denominator produces virtually identical detection performance across all settings, validating our analytical focus on decomposing in Section 3.2.
A.2 BINOCULARS AND DNA-DETECTLLM
Rather than measuring a difference, Binoculars (Hans et al., 2024) and DNA-DetectLLM (Zhu et al., 2025) employ a ratio-based formulation. Following their official code implementations, Binoculars defines its score as the negative ratio of log-perplexity to log cross-perplexity given model and model ,:
DNA-DetectLLM additionally repairs into a greedily re-decoded sequence under the scoring model, , and defines the conditional surprisal of given as the surprisal of the repaired sequence evaluated position-by-position against the original prefixes,
The score is defined as:

Figure 7: Distributions of the five information-theoretic components from Section 3.2 on ELI5, for machine text generated by OLMo-3.1-32B-Instruct without and with the instruction prompt. The y-axis shows the percentage of samples per bin. and denote the mean and standard deviation.
A.3 CROSS-ENTROPY DECOMPOSITION
At each position , the cross-entropy, entropy, and KL divergence between the sampling distribution and the scoring distribution satisfy the standard identity
which holds for any pair of distributions over the same support V. Averaging both sides over positions preserves the identity by linearity:
where denotes the sequence-level KL divergence.
A.4 DETECTION SCORE AND STATISTIC DISTRIBUTIONS ON ADDITIONAL DATASETS
Figure 6 shows the distributions of the Fast-DetectGPT numerator and the Binoculars score . Under instruction conditioning, the machine-text distributions shift markedly toward lower values and largely overlap with the human-text distributions, which severely reduces detection separability. We further report the distributions of the five statistics introduced in Section 3.2 on the remaining five datasets in Figures 7 to 11. Instruction conditioning consistently lowers the cross-entropy

(a) Fast-DetectGPT

(b) Binoculars
Figure 6: Distributions of the Fast-DetectGPT numerator and Binoculars score on XSum (OLMo-3.1-32B-Instruct).
. At a finer granularity, this shrinkage is driven predominantly by a drop in the KL divergence on CNN/DailyMail and WikiText, and primarily by a reduction in the model entropy on SQuAD and ELI5. The only exception is WritingPrompts, where the detection scores instead decrease because the surprisal increases, as the invisible prompt induces more diverse stories.
A.5 RELPPR DISTRIBUTIONS ON ADDITIONAL DATASETS
Figure 12 displays the corresponding distributions for the remaining three benchmark datasets. On SQuAD and WikiText, RelPPR clearly separates human writing from machine-generated text and exhibits the characteristic shift toward higher values under instruction conditioning.

Figure 8: Distributions of the five information-theoretic components from Section 3.2 on SQuAD, for machine text generated by OLMo-3.1-32B-Instruct without and with the instruction prompt. The y-axis shows the percentage of samples per bin. and denote the mean and standard deviation.

Figure 9: Distributions of the five information-theoretic components from Section 3.2 on CNN/DailyMail, for machine text generated by OLMo-3.1-32B-Instruct without (orange) and with (blue) the instruction prompt. The y-axis shows the percentage of samples per bin. and denote the mean and standard deviation.

Figure 10: Distributions of the five information-theoretic components from Section 3.2 on WikiText, for machine text generated by OLMo-3.1-32B-Instruct without (orange) and with (blue) the instruction prompt. The y-axis shows the percentage of samples per bin. and denote the mean and standard deviation.

Figure 11: Distributions of the five information-theoretic components from Section 3.2 on Writing-Prompts, for machine text generated by OLMo-3.1-32B-Instruct without (orange) and with (blue) the instruction prompt. The y-axis shows the percentage of samples per bin. and denote the mean and standard deviation.

(a) SQuAD

(b) WikiText

(c) PubMedQA
Figure 12: Distributions of RelPPR across SQuAD, WikiText, and PubMedQA for human text alongside machine-generated text from OLMo-3.1-32B-Instruct.
B EXPERIMENTAL SETUP AND IMPLEMENTATION DETAILS
In this section, we present the complete experimental setup, including prompt templates, text generation protocols, length-control mechanisms, and evaluator model pairings used across our experiments.
B.1 DETECTION SETTINGS AND EVALUATOR MODELS
Source Models. We use six instruction-tuned LLMs as source models: OLMo-3-7B-Instruct, OLMo-3.1-32B-Instruct (Olmo et al., 2025), Qwen3.5-35B-A3B (Qwen Team, 2026), Gemma-4-31B-it (Team et al., 2026), Mistral-Small-4-119B (Mistral AI, 2026).
Black-Box Setting. In the black-box setting, the detector operates without knowledge of the source model. Single-model statistical criteria employ Qwen3.5-2B-Base as the evaluator (and CoEdit-Large for GECScore). Dual-model baselines use Qwen3.5-2B-Base and Qwen3.5-2B-Instruct as and , respectively.
White-Box Setting. In the white-box regime, the detector directly utilizes the generative source model ( ). For dual-model detectors, the source instruction-tuned model serves as , while its same-lineage foundation base counterpart at the same parameter scale serves as the reference/observer model (e.g., OLMo-3-7B-Base for OLMo-3-7B-Instruct, Qwen3.5-35B-A3B-Base for Qwen3.5-35B-A3B). Mistral-Small-4-119B is excluded from the white-box setting, as no same-lineage base checkpoint is available for it; GECScore is likewise excluded, since it always scores against a fixed off-the-shelf grammar-correction model and therefore has no white-box variant.
B.2 PROMPT TEMPLATES AND DECODING CONFIGURATION
Table 5 details the instruction prompt template for each benchmark dataset. In our main experiments, all text generations are carried out using the vLLM engine with , , and top-k = 50.
B.3 TEXT LENGTH CONTROL AND SYMMETRICAL TRIMMING
Systematic length discrepancies between human and machine text can introduce trivial shortcut features into detection. To ensure rigorous, length-unbiased evaluation, we enforce a multi-stage length-control protocol:
-
Document pre-filtering: Human documents shorter than a minimum word threshold (200 words for standard datasets, and 150 words for ELI5) are filtered out to guarantee sufficient text length (PubMedQA is not filtered by length, since the sequence in it is short).
-
Generation constraint: The prompt parameter {word_target} is uniformly set to 150 words across six datasets, and to 30 words for PubMedQA to match its considerably shorter human answers. During generation, we set min_tokens to 150 for datasets except PubMedQA, and to 30 for PubMedQA, alongside an upper bound of max_new_tokens = 200 for all datasets.
-
Post-trimming: Following Bao et al. (2024), after generating machine continuations, both the human completion and machine text are encoded into token sequences under the
Table 4: Token length distributions (Mean ± Std) on the ELI5 and PubMedQA across all evaluated instruction models ( pairs per model), measured with each source model's own tokenizer.
| OLMo-7B | OLMo-32B | Gemma-4-31B | Qwen-35B-MoE | Mistral-119B | |
|---|---|---|---|---|---|
| ELI5 | 178.9 ± 12.8 | 174.4 ± 13.6 | 171.2 ± 9.7 | 170.2 ± 11.8 | 182.8 ± 14.6 |
| PubMedQA | 33.3 ± 6.1 | 34.3 ± 8.9 | 32.0 ± 4.7 | 32.9 ± 6.1 | 32.8 ± 6.2 |
Table 5: Instruction prompt templates across all seven benchmark datasets. {prefix} represents the conditioning context, and {word_target} denotes the expected word count (150 words, except PubMedQA at 30 words).
| Dataset | Instruction Prompt Template |
|---|---|
| XSum | “Continue the following text for about {word_target} words. Output ONLY the continuation - do not repeat or restate any of the given text: {prefix}” |
| CNN/DM | “Continue the following text for about {word_target} words. Output ONLY the continuation - do not repeat or restate any of the given text: {prefix}” |
| WikiText | “Continue the following text for about {word_target} words. Output ONLY the continuation - do not repeat or restate any of the given text: {prefix}” |
| SQuAD | “Continue the following text for about {word_target} words. Output ONLY the continuation - do not repeat or restate any of the given text: {prefix}” |
| WritingPrompts | “Please write a story of about {word_target} words based on the following writing prompt: {prefix}. Output ONLY the story - do not repeat or restate any of the given text: {prefix}” |
| ELI5 | “Please explain the following question in about {word_target} words: {prefix}. Output ONLY the explanation - do not repeat or restate any of the given text: {prefix}” |
| PubMedQA | “Please answer the question in about {word_target} words. Output ONLY the answer - do not repeat or restate any of the given text: {prefix}” |
generative model's tokenizer and trimmed down to their shared minimum token length: . Both trimmed sequences are then decoded back to text.
This guarantees that for every candidate pair, the human and machine texts have the exact same sequence length under the evaluation tokenizer. We draw 500 paired samples (1,000 texts total) per dataset and model, except for SQuAD where 143 pairs are yielded due to pre-filtering length constraint. The resulting sample lengths for XSum, WritingPrompts, SQuAD, and CNN/DailyMail are uniformly 200 tokens, with detailed token length distributions on ELI5 and PubMedQA provided in Table 4.
B.4 LENGTH-ABLATION AND DECODING-ABLATION EXPERIMENTAL SETUP
For each tier, we re-generate machine continuations with the prompt's {word_target} set to a length-matched word count (40, 80, 120 words), set min_tokens to this same value, and cap max_new_tokens at the token tier itself, forcing a continuation of approximately the target length. Human and machine texts are then symmetrically trimmed as in Appendix B.3. All other settings are unchanged from the main experiments. This procedure is applied in the black-box setting, across the XSum, WritingPrompts, SQuAD, WikiText, and CNN/DailyMail datasets; ELI5 and PubMedQA are excluded since their human documents are shorter.
For the decoding ablation, we re-generate machine continuations under three decoding configurations spanning the sampling-randomness spectrum: , , and , with all other generation settings (length control, datasets, source models) unchanged from the main experiments. Human and machine texts are again symmetrically trimmed as in Appendix B.3, and each baseline is re-scored at every decoding configuration across all seven datasets.
B.5 ROBUSTNESS ACROSS EVALUATOR SIZE AND FAMILY
We assess detection performance across varying evaluator models while fixing the source model to OLMo-3.1-32B-Instruct. As shown in Table 6, RelPPR demonstrates superior generalizability
Table 6: Zero-shot detection AUROC on OLMo-3.1-32B-Instruct (black-box, avg. over all 7 datasets) as the evaluator model varies in size and family (Qwen3.5 (Qwen Team, 2026), Gemma 4 (Team et al., 2026), Ministral 3 (Liu et al., 2026), and Falcon (Almazrouei et al., 2023; Falcon-LLM Team, 2024)). Best result per column is shown in bold, second-best is underlined.
| Methods | Qwen3.5 2B | Qwen3.5 9B | Qwen3.5 35B-MoE | Gemma4 12B | Gemma4 31B | Gemma4 26B-MoE | Falcon3 7B | Ministral3 8B | Falcon 7B | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| Entropy | 0.837 | 0.847 | 0.788 | 0.804 | 0.780 | 0.765 | 0.761 | 0.788 | 0.414 | 0.754 |
| Likelihood | 0.794 | 0.814 | 0.746 | 0.722 | 0.728 | 0.720 | 0.671 | 0.772 | 0.526 | 0.721 |
| LogRank | 0.789 | 0.814 | 0.749 | 0.732 | 0.731 | 0.723 | 0.687 | 0.770 | 0.535 | 0.726 |
| LastDE | 0.781 | 0.812 | 0.755 | 0.761 | 0.769 | 0.760 | 0.684 | 0.796 | 0.657 | 0.753 |
| Fast-DetectGPT | 0.515 | 0.513 | 0.456 | 0.507 | 0.230 | 0.301 | 0.653 | 0.625 | 0.825 | 0.514 |
| Binoculars | 0.521 | 0.526 | 0.472 | 0.683 | 0.652 | 0.523 | 0.649 | 0.642 | 0.827 | 0.611 |
| DNA-DetectLLM | 0.515 | 0.502 | 0.459 | 0.678 | 0.630 | 0.518 | 0.729 | 0.566 | 0.855 | 0.606 |
| RelPPR (Ours) | 0.887 | 0.863 | 0.826 | 0.805 | 0.804 | 0.804 | 0.759 | 0.835 | 0.602 | 0.798 |
Table 7: Detection performance (AUROC) by dataset (averaged across four source models) under white-box setting. The best and second-best results are shown in bold and underlined, respectively.
| Baseline | XSum | WritingP | SQuAD | WikiText | CNN/DM | ELI5 | PubMedQA | Avg |
|---|---|---|---|---|---|---|---|---|
| Entropy | 0.803 | 0.856 | 0.589 | 0.683 | 0.724 | 0.855 | 0.667 | 0.740 |
| Likelihood | 0.931 | 0.911 | 0.708 | 0.913 | 0.920 | 0.907 | 0.574 | 0.838 |
| LogRank | 0.926 | 0.901 | 0.697 | 0.909 | 0.915 | 0.896 | 0.601 | 0.835 |
| LRR | 0.798 | 0.797 | 0.614 | 0.767 | 0.777 | 0.811 | 0.620 | 0.741 |
| LastDE | 0.887 | 0.882 | 0.794 | 0.941 | 0.908 | 0.890 | 0.534 | 0.834 |
| LastDE++ | 0.416 | 0.555 | 0.245 | 0.414 | 0.485 | 0.381 | 0.426 | 0.418 |
| DNA-GPT | 0.739 | 0.783 | 0.561 | 0.877 | 0.771 | 0.711 | 0.535 | 0.711 |
| Fast-DetectGPT | 0.817 | 0.892 | 0.708 | 0.835 | 0.823 | 0.767 | 0.482 | 0.760 |
| Binoculars | 0.956 | 0.990 | 0.849 | 0.952 | 0.948 | 0.932 | 0.671 | 0.900 |
| DNA-DetectLLM | 0.964 | 0.992 | 0.845 | 0.946 | 0.949 | 0.915 | 0.584 | 0.885 |
| IRM | 0.966 | 0.962 | 0.941 | 0.974 | 0.958 | 0.972 | 0.679 | 0.922 |
| PPR (Ours) | 0.382 | 0.461 | 0.481 | 0.405 | 0.405 | 0.291 | 0.405 | 0.404 |
| DiffPPR (Ours) | 0.825 | 0.893 | 0.608 | 0.700 | 0.737 | 0.887 | 0.648 | 0.757 |
| RelPPR (Ours) | 0.769 | 0.883 | 0.617 | 0.663 | 0.689 | 0.903 | 0.567 | 0.727 |
| DiffPPR-S (Ours) | 0.935 | 0.920 | 0.716 | 0.925 | 0.926 | 0.913 | 0.548 | 0.840 |
across diverse evaluator architectures and parameter scales, securing the top performance on seven of the nine evaluators and ranking second on another. Notably, while scaling the evaluator size within the same family yields marginal impact on detection performance, cross-family shifts induce substantially more pronounced variations. Additionally, within the Qwen3.5 family, transitioning from dense architectures to the MoE variant visibly degrades the detection efficacy of all baselines.
B.6 WHITE-BOX DETECTION RESULTS
Single-model criteria employ the source model itself as the evaluator, whereas dual-model configurations follow Appendix B.1. In addition to PPR, DiffPPR, and RelPPR, we test whether PPR can offer complementary signals over standard likelihood by pairing it with sequence-level surprisal, yielding the variant DiffPPR-S:
Tables 7 and 8 report the detection results under white-box setting. Unlike the black-box setting, where RelPPR is state-of-the-art, dual-model detectors achieves the best performance under white-box setting, and IRM attains the best or second-best score in nearly every source model and dataset. This is expected: white-box access lets the evaluator model that matches the source model assign very high confidence to the machine text, while the other evaluator model cannot reach a comparable confidence, which restores cross-model discrepancy between the two evaluator models. Notably, since detectors still cannot access the user prompt under the white-box setting, the prompt conditioning gap described in Section 3.3 still persists, so resampling-based baselines remain ineffective under the white-box setting. While RelPPR itself is not competitive in this regime, DiffPPR-S ranks
Table 8: Detection performance (AUROC) by source model (averaged across seven datasets) under white-box setting. The best and second-best results are shown in bold and underlined, respectively.
| Baseline | OLMo37B | OLMo3.132B | Gemma431B | Qwen3.535B | Avg |
|---|---|---|---|---|---|
| Entropy | 0.791 | 0.805 | 0.552 | 0.810 | 0.740 |
| Likelihood | 0.901 | 0.870 | 0.776 | 0.803 | 0.838 |
| LogRank | 0.906 | 0.866 | 0.758 | 0.809 | 0.835 |
| LRR | 0.791 | 0.791 | 0.590 | 0.790 | 0.741 |
| LastDE | 0.893 | 0.884 | 0.745 | 0.813 | 0.834 |
| LastDE++ | 0.454 | 0.419 | 0.357 | 0.440 | 0.418 |
| DNA-GPT | 0.808 | 0.765 | 0.711 | 0.560 | 0.711 |
| Fast-DetectGPT | 0.934 | 0.913 | 0.466 | 0.729 | 0.760 |
| Binoculars | 0.947 | 0.924 | 0.949 | 0.779 | 0.900 |
| DNA-DetectLLM | 0.947 | 0.913 | 0.926 | 0.753 | 0.885 |
| IRM | 0.928 | 0.952 | 0.869 | 0.938 | 0.922 |
| PPR (Ours) | 0.317 | 0.300 | 0.571 | 0.429 | 0.404 |
| DiffPPR (Ours) | 0.774 | 0.801 | 0.625 | 0.826 | 0.757 |
| RelPPR (Ours) | 0.678 | 0.744 | 0.677 | 0.811 | 0.727 |
| DiffPPR-S (Ours) | 0.897 | 0.870 | 0.780 | 0.814 | 0.840 |
best among all single-model criteria, confirming that PPR can still serve as a complementary signal under the white-box setting.