Conceptio › Archive › arXiv CS
arXiv CS open access

DeBERTa-ConPara: Attack-Aware and Deployment-Realistic Detection of AI-Generated Text

Mohamed Mady et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
Robust detection of AI-generated text under deployment conditions is challenging: distribution shifts across domains and generators, adversarial perturbations of the input surface, and the absence of target-domain labels for threshold calibration all degrade detectors that perform well in-domain. We
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

DeBERTa-ConPara: Attack-Aware and Deployment-Realistic Detection of AI-Generated Text Mohamed Mady1,2

Yupei Li3

Johannes Reschke2

Björn W. Schuller1,3

1

CHI, Chair of Health Informatics, Technical University of Munich, Germany 2 Smart Embedded Systems Lab, OTH Regensburg, Germany 3 GLAM, Group on Language, Audio & Music, Imperial College London, UK

mohamed.mady@tum.de

yupei.li22@imperial.ac.uk

arXiv:2610.00883v1 [cs.CL] 1 Oct 2026

Abstract Robust detection of AI-generated text under deployment conditions is challenging: distribution shifts across domains and generators, adversarial perturbations of the input surface, and the absence of targetdomain labels for threshold calibration all degrade detectors that perform well indomain. We present DeBERTa-ConPara, a deployment-oriented detector combining attack-aware Unicode preprocessing with a contextual transformer encoder trained over HC3 Plus, M4, MAGE and RAID. Our central finding is that preprocessing acts in opposite directions depending on where it is applied: normalising the training corpus deduplicates it, collapsing 35.4 % of RAID rows into copies of their clean siblings and deleting the adversarial supervision, whereas normalising at inference is an effective defence. A factorial varying the two placements independently identifies raw training with normalised inference as the best configuration, reaching 99.61 % AUROC, 99.01 % TPR@5 % FPR and 96.57 % TPR@1 % FPR on the official RAID hidden test, alongside 93.14 % average balanced accuracy across HC3 Plus and MAGE under a fixed threshold. The gain is confined to two of twelve attack classes: homoglyph and zero-width-space insertion rise from 11.05 % and 1.12 % to 96.98 %. The same signature reproduces in a zeroshot detector of different architecture, showing the effect belongs to the attacks rather than to our model. We additionally report two negative results: semantic-invariance augmentation through paraphrasing and supervised contrastive learning (ConPara) does not improve the best configuration, and the handcrafted feature-fusion branch is inert in distribution and harmful outside it.

johannes.reschke@oth-regensburg.de

1

schuller@tum.de

Introduction

Recent advances in large language models (LLMs) have dramatically improved the fluency and realism of AI-generated text, making machine-written content increasingly difficult to distinguish from human writing across domains such as education, journalism, scientific publishing, and online communication (Achiam et al., 2023; Gemini Team, 2023; Stanford Institute for Human-Centered Artificial Intelligence (HAI), 2025). While these capabilities enable powerful generative applications, they also introduce major concerns including misinformation propagation, academic dishonesty, synthetic reviews, and coordinated inauthentic behaviour (Turnitin LLC, 2024; Chakraborty et al., 2024; Goldstein et al., 2023; Stokel-Walker, 2022). Consequently, robust AIgenerated text detection has become a critical challenge for trustworthy deployment of generative AI systems. Existing detection approaches fall into three families, surveyed in Section 2: supervised classifiers (Li et al., 2025), zero-shot statistical detectors (Bao et al., 2024), and watermarking (Wouters, 2024). Watermarking requires cooperation from the generator and leaves already-generated text untouched, so post-hoc detection remains the practical setting and is the one we address. Although many detectors achieve strong in-domain performance, robustness degrades substantially under unseen generators, domain shifts, decoding variations, and adversarial perturbations (Dugan et al., 2024; Chakraborty et al., 2024). Lightweight surface-form attacks such as homoglyph substitutions and zero-width Unicode characters can severely disrupt tokenisation-sensitive pipelines and distort linguistic and statistical feature distributions while preserving semantic content.

Despite recent progress, two deployment challenges remain insufficiently addressed. First, most evaluation protocols implicitly assume access to target-domain labels by independently tuning decision thresholds for each dataset or domain at test time, an assumption that rarely holds in practical deployment. Second, many adversarial attacks operate primarily at the character and formatting level, exploiting weaknesses in Unicode handling and tokenisation before semantic modelling begins. Existing detectors therefore often focus on representation learning while overlooking vulnerabilities in preprocessing and tokenisation pipelines. We introduce DeBERTa-ConPara, a deployment-oriented detector built on microsoft/deberta-v3-large (He et al., 2023) that combines attack-aware preprocessing with a multi-dataset adversarial training corpus. On the official RAID hidden-test benchmark, DeBERTa-ConPara reaches 99.01 % TPR@5 % FPR while sustaining 93.14 % average balanced accuracy across HC3 Plus and MAGE under a fixed threshold. Several leaderboard systems score higher on RAID alone; our claim is the combination, restricted to the English domains, generators and attacks evaluated here. Our contributions are: • A controlled 2 × 2 × 2 factorial, all eight cells submitted to the official RAID hidden test, showing that Unicode preprocessing defends at inference time but removes adversarial supervision when applied to the training corpus. • An attribution of that robustness to two of twelve attack classes, reproduced in a zero-shot detector of different architecture: the effect belongs to the attacks, not to our model. • A multi-dataset curation strategy that keeps cross-dataset generalisation alongside that robustness, where systems tuned to one benchmark do not. • Two documented negative results: ConPara augmentation does not improve the best configuration, and the feature-fusion branch is inert in distribution and harmful out of it.

2

Related Work

AI-generated text detection has rapidly evolved alongside advances in large language models (LLMs), leading to a broad spectrum of detection paradigms including zero-shot statistical methods, supervised detectors, watermarking approaches, and adversarially robust detection frameworks (Wu et al., 2025). Despite substantial progress, existing methods continue to struggle under realistic deployment conditions involving unseen generators, domain shifts, and adversarial perturbations. 2.1

Zero-Shot and Statistical Detection

Zero-shot detectors identify machine-generated text without task-specific supervised training by exploiting statistical irregularities in language-model outputs. Representative approaches include GLTR (Gehrmann et al., 2019), DetectGPT (Mitchell et al., 2023), FastDetectGPT (Bao et al., 2024), and Binoculars (Hans et al., 2024), which analyse token distributions, probability curvature, or crossmodel likelihood patterns. These methods are computationally lightweight and avoid costly supervised training, making them attractive for rapid deployment and unseen-generator evaluation. Feature-based approaches such as Ghostbuster (Verma et al., 2024) additionally leverage stylometric and probabilistic signals for cross-domain generalisation. More recent work targets the proxy-model mismatch that arises when the scoring model differs from the unknown generator: SurpMark (Chen and Khisti, 2026) summarises a passage by the dynamics of its token surprisals and scores it against fixed human and machine references, avoiding the per-input contrastive generation that makes curvature-based methods expensive. Although zero-shot methods avoid costly labeled training data and may generalise to unseen generators, prior work shows substantial degradation under domain shifts, decoding variations, and adversarial rewriting attacks (Chakraborty et al., 2024; Dugan et al., 2024; Sadasivan et al., 2025). These limitations become particularly pronounced under fixed-threshold evaluation where target-domain calibration is unavailable.

2.2

Supervised Detection Methods

Supervised detectors fine-tune pretrained language encoders on labeled human-versus-AI text pairs. Early work leveraged transformer architectures such as BERT (Devlin et al., 2019) and RoBERTa (Liu et al., 2019) trained on benchmarks including HC3 (Guo et al., 2023) and HC3 Plus (Su et al., 2023). More recent approaches improve robustness through adversarial training, representation learning, and generator-aware adaptation. For example, RADAR (Hu et al., 2023) trains detectors adversarially against paraphrasing attacks. RepreGuard (Chen et al., 2025) instead detects machine-generated text from hidden representation patterns rather than output probabilities, and MGT-Prism (Liu et al., 2026) aligns spectral features to improve generalisation across domains. Recent studies further show that paraphrasing alone can evade many existing detectors (Krishna et al., 2023), motivating both adversarial training approaches and semanticinvariance augmentation strategies. Although supervised methods often achieve near-ceiling in-domain accuracy, large-scale benchmarks reveal substantial degradation under cross-generator and cross-domain evaluation (Wang et al., 2024b; Li et al., 2024; Dugan et al., 2024). Many detectors implicitly overfit to generator-specific artefacts, stylistic cues, or decoding signatures that fail to generalise under distribution shift. 2.3

Watermarking-Based Detection

Watermarking approaches embed detectable signals directly during text generation rather than relying on post-hoc analysis (Kirchenbauer et al., 2023). Subsequent work explored probabilistic and cryptographic watermarking strategies for LLM outputs (Wouters, 2024; Zhang et al., 2024). However, watermark robustness degrades substantially under paraphrasing and semantic-preserving rewriting attacks (Zhang et al., 2024). 2.4

Domain Generalisation and Adversarial Robustness

Several recent works explicitly target robustness under domain shift and adversarial perturbations. EAGLE (Bhattacharjee et al., 2024) employs domain-adversarial and

contrastive learning objectives to encourage generator-invariant representations, while MGT-Prism (Liu et al., 2026) explores spectralalignment techniques for improving robustness across domains and generators. Recent benchmark efforts further highlight the importance of deployment-realistic evaluation. DetectRL (Wu et al., 2024) showed that many detectors degrade substantially under natural distribution shifts and adversarial conditions. Similarly, RAID (Dugan et al., 2024) established a large-scale adversarial robustness benchmark covering paraphrasing, homoglyph attacks, whitespace perturbations, zero-width Unicode characters, and structural manipulations. Most existing approaches primarily address semantic attacks through adversarial training or paraphrase augmentation, while comparatively little attention has been paid to explicit mitigation of surface-form perturbations before tokenisation.

3

Datasets

DeBERTa-ConPara is trained and evaluated on four complementary large-scale benchmarks spanning semantic invariance, cross-domain generalisation, fluent multi-domain writing, and adversarial robustness: HC3 Plus (Su et al., 2023), M4 (Wang et al., 2024b), MAGE (Li et al., 2024), and RAID (Dugan et al., 2024). Together they expose the detector to substantial variability across generators, domains, writing styles and attacks. The training corpus holds 1,549,358 rows, balanced exactly between human and AIgenerated text, with 172,826 further rows held out for validation. Table 1 gives its composition; Appendix A.1.2 describes the humanwritten filler drawn from M4 to achieve that balance. Two subsets, PeerRead and WikiHow, are generated by us rather than drawn from a published benchmark, and they matter out of proportion to their size: the four public benchmarks use generators current in 2023, so these 43,059 rows are the corpus’s only exposure to newer models. Detailed dataset descriptions, split configurations, attack categories, and per-domain statistics are provided in Appendix A.1.

DeBERTa-ConPara Architecture ATTACK-AWARE PREPROCESSING

INPUT

inference only · training sees raw text

Raw Text

1

Linear reported path: h_cls → head

Transformer Encoder Tokenization

2

1024 → 512

CLS

24 layers · 1024 hidden dim

Extraction

GELU

disentangled attention + RTD

NFKD Decomposition + Mark Strip

whitespace synonym swap

CLASSIFICATION HEAD

MLP Head

DeBERTa-v3-large

confusables · quotes · dashes

zero-width

(ablated)

Contextual Transformer Encoder

Homoglyph & Typographic → ASCII

x ∈ Σ*

homoglyph

FEATURE FUSION

CONTEXTUAL ENCODING

h_cls ∈ ℝ¹⁰²⁴ é → e · fi → fi · NFC recompose

[ h_cls ⊕ g·f′ ] ↳ adversarial inputs

3

p = 0.1

↓

Invisible Character Removal

h_fused ∈ ℝ²⁰⁴⁸

Linguistic Feature Branch

every Cf: ZWSP · ZWJ · BOM · RLM

Whitespace Collapsing runs → single space · trim

62

MI Feature Selection

handcrafted features

62 → top-30 RobustScaler

perplexity · entropy

I(fᵢ; y) on the training split

Linear 512 → 2

evaluated in the factorial · not in the reported configuration

4

Dropout

Projection + Gate

head widens to 2048 → 512

ŷ ∈ {Human, AI}

Linear 30 → 1024 · GELU f′ ∈ ℝ¹⁰²⁴

readability · vocab

g = σ(wᵀ tanh(W_g [h_cls ; f′]))

burstiness · style

one scalar gates the branch

x̃ (normalised text)

Human

AI

g · f′ deterministic · idempotent

reported configuration: raw-text training, inference-time normalisation, no feature branch feature-fusion branch: one factor of the 2×2×2 ablation, negative in every condition (Sec. 5)

Figure 1: DeBERTa-ConPara architecture. Solid components form the reported configuration: attackaware preprocessing applied at inference only, a DeBERTa-v3-large encoder, and a two-layer head on the classification embedding. Dashed components are the linguistic feature branch and its gated fusion, one factor of the 2 × 2 × 2 ablation in Section 5, which is negative in every condition and is not part of the reported model.

Dataset

Rows

Domains

AI generators

RAID M4 (human filler) MAGE HC3 Plus M4 PeerRead† WikiHow†

530,534 438,305 319,071 148,040 70,349 28,047 15,012

8 5 7 4 5 1 1

11 0 27 1 8 5 7

Total

1,549,358

Table 1: Composition of the 1.55M-row training corpus. RAID contributes 398,834 AI-generated and 131,700 human rows; the M4 human filler carries no AI text. Domain and generator counts characterise each benchmark, not the sampled subset. A further 172,826 rows are held out for validation. † Generated by us: PeerRead with ChatGPT, LLaMA and LLaMA-2-chat at 7B, 13B and 70B; WikiHow with Claude, GPT-4o, Grok, Qwen-14B, LLaMA-3-8B, Mistral-7B and Cohere.

4

Method

We propose DeBERTa-ConPara, a deployment-oriented detector combining attack-aware preprocessing with contextual transformer representations. We also describe a linguistic feature-fusion branch and semanticinvariance augmentation (ConPara), both central to the submitted version and both reported as negative results in Section 5. The

configuration we report trains on raw text, normalises at inference, and carries no feature branch. 4.1

Overall Architecture

Figure 1 presents an overview of DeBERTaConPara. The input text, normalised at inference by the pipeline of Section 4.2, is encoded by a contextual transformer whose classification embedding feeds the head; the linguistic feature branch shown dashed is the ablated component described next. Contextual Transformer Encoder. We employ microsoft/deberta-v3-large (He et al., 2023) as the contextual encoder backbone. The submitted version used deberta-v3-base, appropriate for the smaller corpus then available. With the corpus extended to 1.55M rows we re-ran the comparison with every other factor held fixed (identical data, hyperparameters and seed, five epochs), and the larger backbone is consistently better: balanced accuracy at the optimal threshold rises from 94.56 % to 96.58 % and AUROC from 0.98655 to 0.99328. We therefore report the larger backbone throughout; backbone change and corpus extension were adopted together.

DeBERTa-v3 combines disentangled attention mechanisms with ELECTRA-style replacedtoken detection (RTD) pretraining (Clark et al., 2020), providing strong contextual representations and robust transfer performance across diverse language understanding tasks. The final hidden-state representation corresponding to the special classification token is extracted as a 1024-dimensional contextual embedding, denoted hcls below; in the reported configuration it is the only input to the classifier. Linguistic Feature Encoder. In parallel, we extract 62 handcrafted linguistic and statistical features designed to capture stylometric properties that may be weakly represented in transformer embeddings. The feature categories include probabilistic, stylometric, readability, and lexical-diversity signals. To reduce redundancy and improve robustness under distribution shift, we select the top k = 30 features using Mutual Information (Cover and Thomas, 2006) on the training set; the full feature list and the selection procedure are in Appendix A.2.2. Selected features are normalised using RobustScaler, projected to the encoder width, and combined with the contextual representation through a learned gate. Formally, given the selected feature vector f (x) ∈ R30 and the encoder’s classification embedding hcls ∈ R1024 , the branch computes  f ′ = Dropout ϕ(Wp f (x)) , Wp ∈ R1024×30 ,   g = σ w⊤ tanh Wg [hcls ; f ′ ] ,   h = hcls ; g f ′ ∈ R2048 , (1) where ϕ is GELU and σ the logistic function. Note that g is a single scalar : the gate admits or suppresses the projected feature vector as a whole rather than reweighting its coordinates. The gated features are concatenated with the 1024-dimensional DeBERTa representation, forming a 2048-dimensional fused representation passed to the classifier. Binary Classification Head. The fused representation is processed using a lightweight two-layer MLP:

2048 → 512 → GELU → Dropout(0.1) → 2.

(2)

In the configuration we report, which carries no feature branch, the classification embedding is passed to the same head directly, giving 1024 → 512 → GELU → Dropout(0.1) → 2. The released checkpoint implements exactly this head. 4.2

Attack-Aware Preprocessing Pipeline

We introduce an attack-aware preprocessing pipeline applied prior to tokenisation to improve robustness against Unicode-based and formatting-based adversarial perturbations such as homoglyph substitutions and zerowidth character insertions. The pipeline applies, in order: targeted homoglyph substitution using a curated confusables table spanning Cyrillic, Greek, fullwidth and stylised Latin variants; typographic normalisation of smart quotes, dashes and fractions to ASCII; NFKD decomposition with combining-mark removal, re-composed with NFC; removal of every Unicode format character (category Cf), which covers zero-width and directional marks; and whitespace collapsing. Homoglyphs are handled explicitly because they are canonically distinct and decomposition alone does not repair them. Full stage descriptions are given in Table 7. The pipeline is deterministic and idempotent, with negligible overhead. Where it is applied, however, matters more than whether it is applied: Section 5.2 shows that normalising the training corpus removes the adversarial supervision that corpus provides, whereas normalising at inference is an effective defence. The configuration we report therefore trains on raw text and normalises only at inference, in contrast to the submitted version, which applied the pipeline at both stages. 4.3

Semantic-Invariance Augmentation

To improve robustness against paraphrasing and semantic-preserving rewriting attacks, we investigate semantic-invariance augmentation through paraphrase generation and supervised contrastive learning.

Paraphrase Augmentation. For selected training samples, paraphrases are generated using flan-t5-base (Chung et al., 2024). Generated paraphrases are filtered using a cosinesimilarity threshold of ≥ 0.85, computed over sentence embeddings from a pretrained encoder (Krishna et al., 2023). This threshold empirically retains paraphrases that preserve the original semantic intent while introducing sufficient lexical and syntactic variation; lower thresholds admitted meaning-altering rewrites, while higher thresholds eliminated useful diversity in preliminary experiments. Supervised Contrastive Learning. We additionally experiment with supervised contrastive learning (SupCon) (Khosla et al., 2020) using paraphrased positive pairs and oppositeclass negatives. The training objective combines weighted cross-entropy with SupCon loss weighted by λ ∈ {0.05, 0.1, 0.2}, selected via ablation (Equation 3, Appendix A.2.3). 4.4

Training Configuration

Training uses AdamW (Loshchilov and Hutter, 2019) with weight decay 0.01, peak learning rate 2 × 10−5 , batch size 32 and maximum sequence length 512, under a OneCycleLR schedule with cosine annealing (Smith and Topin, 2019); the reported checkpoint is the epoch with the best validation balanced accuracy. Full hyperparameters are listed in Appendix A.2.4. The development sequence that preceded the factorial, from Cohere-focused oversampling through adversarial data scaling to a generator-difficulty weighted loss, is recorded in Appendix E; the controlled comparisons of Section 5 supersede it.

5

Experiments and Results

We evaluate DeBERTa-ConPara under a deployment-realistic fixed-threshold protocol. Following the official RAID hidden-test evaluation procedure (Dugan et al., 2024), we report TPR@5 % FPR, TPR@1 % FPR, and AUROC. In addition to RAID leaderboard evaluation, we assess cross-dataset generalisation on HC3 Plus and MAGE, perform external academicdomain validation, analyse multi-seed stability, and compare against strong zero-shot and supervised baselines.

5.1

Evaluation Protocol

We adopt a fixed-threshold evaluation protocol designed to better reflect realistic deployment conditions. A single decision threshold τ ∗ is calibrated on source validation data by maximising balanced accuracy (Youden, 1950) and is then held constant across all target distributions. Unlike standard evaluation settings that independently re-tune thresholds for each target dataset, the fixed-threshold setting exposes operating-point trade-offs and generatorspecific failure modes that emerge when targetdomain labels are unavailable. This setup more closely reflects practical deployment scenarios encountered in moderation systems, educational platforms, and misinformation-filtering pipelines. For RAID, we follow the official hiddentest leaderboard protocol (Dugan et al., 2024), where thresholds are calibrated to achieve exactly 5 % false positive rate (FPR) on humanwritten text within each domain. Performance is evaluated using TPR@5 % FPR (primary metric), TPR@1 % FPR, and AUROC (Fawcett, 2006). 5.2

Ablation Study: Preprocessing at Training Time and at Inference Time

Preprocessing can be applied when the training corpus is built, when a test document is scored, or both. The two are distinct interventions that, as we show below, act in opposite directions, so we vary them independently. Normalisation deduplicates the training corpus. RAID contains 13,371 unique human articles under twelve attack variants. Three attacks, homoglyph substitution, zero-widthspace insertion and whitespace manipulation, are pure character substitutions, so Unicode normalisation returns the original text exactly and the attacked row becomes a byte-identical duplicate that deduplication discards. On a matched 1,892-row sample, the normalised pipeline retains 1,223 distinct texts against 1,892 for the raw one: normalisation collapses 35.4 % of RAID and removes all three attack classes from the corpus. Raw-text training is therefore implicitly adversarial; normalising at training time deletes that supervision.

Ft Tr Inf AUR

T5

T1

T1cl

pen

✓ ✓ ✓ ✓

n n r r

n r r n

99.48 97.32 99.39 99.51

98.84 87.45 92.76 75.59 98.83 93.64 99.02 94.72

88.83 1.38 88.38 12.79 95.77 2.13 95.28 0.56

✗ ✗ ✗ ✗

n n r r

n r r† n

99.54 95.77 99.35 99.61

98.50 94.52 86.14 79.48 98.39 93.78 99.01 96.57

95.44 0.92 95.28 15.80 97.17 3.39 96.98 0.41

Table 2: The complete 2 × 2 × 2 factorial on the 672,000-row RAID hidden test. Ft = feature-fusion branch; Tr/Inf = normalisation at training and inference (n/r); AUR = AUROC; T5/T1 = TPR at 5 %/1 % FPR; T1cl = TPR@1 % on unattacked rows; pen = attack penalty T1cl −T1. Shading is a fixed scale shared with Appendix G. The last row is the configuration we report. † This cell is a vanilla fine-tuned DeBERTa-v3-large, with neither attackaware preprocessing nor handcrafted features; it is the supervised baseline requested during review.

An eight-cell factorial. Crossing preprocessing at training time with preprocessing at inference time, with and without the feature-fusion branch, gives eight configurations, trained from the same source corpus with identical hyperparameters and a fixed seed. The training factor is not normalisation alone: because normalisation collapses attacked rows into duplicates, the four n-trained cells see roughly 35 % fewer RAID rows than the r trained cells. Tr should therefore be read as normalisation and the deduplication it causes. All eight cells were submitted to the RAID hidden test, whose labels we never observe; Table 2 reports them. The −F r→r cell is a vanilla fine-tuned DeBERTa-v3-large with neither attack-aware preprocessing nor handcrafted features, and is the supervised baseline requested during review. Every comparison below is therefore on labels we never observe. Three main effects follow, each consistent across the conditions it is averaged over. Inference-time normalisation always helps, by +1.08 to +15.04 pp of TPR@1 % FPR. The gain is largest exactly where the model was trained on normalised text and so never met an attack (+11.86 and +15.04), and small where raw training already supplied that exposure (+1.08 and +2.79). Raw-corpus training always helps, by +2.05 to +18.05 pp, and most when inference is also

raw (+14.30, +18.05), where it is the only defence present. The feature branch never helps. It costs 7.07, 3.89, 1.85 and 0.14 pp in the four conditions: negative in all of them, and most expensive in the fully normalised setting the submitted version used. That aggregate conceals a far larger domain-specific effect, which we return to below. In the attack-penalty column, six of eight cells lose under 3.4 pp; the two that lose 12.79 and 15.80 pp are precisely the two trained on normalised text and evaluated on raw. Attack robustness is therefore not a property of the model but of the agreement between its training corpus and its inference pipeline. The feature branch fails on one domain. Per-domain results (Appendix G, Table 20) show that the branch’s cost is not spread evenly. On seven of eight RAID domains it changes TPR@1 % FPR by at most a few points, and on abstracts it is slightly beneficial. On poetry it costs 49.8 pp: 38.1 % with the branch against 87.9 % without, in the otherwise identical fully normalised configuration. The penalty falls to 7.8 pp once training uses raw text, so adversarial supervision partly compensates for it, but poetry remains the domain where the branch is most damaging in every condition. The effect is confined to two attack classes. For ten of the twelve RAID categories the penalty relative to unattacked text is within roughly a point across every configuration; the aggregate differences between cells are driven by homoglyph substitution and zerowidth-space insertion. Absolute rates still vary by attack, with paraphrase ranging from 75.9 to 90.4 %, but that variation is common to all eight cells. Without inference-time normalisation a normalised-trained model detects 11.05 % of homoglyph and 1.12 % of zero-widthspace attacks at 1 % FPR; with it, both reach 96.98 %, identical to its unattacked score. Normalisation does not reduce these attacks, it eliminates them. Neither placement alone suffices: raw training lifts homoglyph detection to 85.78 % and zero-width to 73.80 %; inference-time normalisation carries both to 96.98 %.

The mismatch penalty is also asymmetric, and the same two-attack signature reproduces in Fast-DetectGPT (Bao et al., 2024), which has a different tokeniser and no trained head (Appendix B). The feature-fusion branch. Four interventions applied to one checkpoint on an identical 20,000-row sample isolate the 30-feature branch; zeroing the projected representation and forcing the gate to zero are mathematically equivalent and produce bit-identical margins, confirming they act where intended. Removing the branch shifts the logit margin by 1.751 on average, yet AUROC is unchanged to four decimals (0.99326 against 0.99336) and TPR@1 % FPR falls 0.40 pp: saturation absorbs the shift. A model trained without the branch scores 92.30 % against 92.31 %, so its training signal is not needed either. Out of distribution it is harmful, costing 23.4 pp of TPR@1 % FPR on SemEval-2024 and 7.7 pp on HC3-SI. Note that zeroing the raw inputs is not equivalent to removing the branch: the projection is affine, so a zero input still emits its bias, worth 0.172 logits. Relation to the submitted version. This design supersedes the A1/A3 comparison in the submitted paper, whose two arms shared a corpus that had already been normalised at construction time; their difference therefore reflected a train/test mismatch rather than the effect of preprocessing. 5.3

Backbone Comparison

Is the result specific to DeBERTa? We trained bert-large-cased and roberta-large on the identical raw corpus with identical hyperparameters and seed and submitted all three to the hidden test (Table 16, Appendix C). All three tokenisers fragment homoglyphsubstituted words into subword pieces rather than emitting unknown tokens, so the vulnerability is a property of subword tokenisation rather than of one model. DeBERTa leads by six points of TPR@1 % FPR over BERT and by twenty-five over RoBERTa (99.61, 99.07 and 94.32 % AUROC), and the backbone ranking on our validation pool does not survive the hidden test: RoBERTa leads BERT by nine points there and trails it by nineteen on the hidden test.

5.4

Impact of the Training Data Scaling and Validation Design

Scaling to the full RAID corpus. To test whether the gains continue, we trained the best configuration on the complete RAID training split (9.38M balanced rows, roughly six times the adversarial exposure), selecting the checkpoint on validation AUROC, which peaked at the second epoch. Hidden-test performance improves marginally, to 99.63 % AUROC and 97.12 % TPR@1 % FPR, an increase of 0.55 pp over the 1.55M-row configuration. On a leakage-free evaluation restricted to sources absent from both training corpora, however, the same model loses 3.42 pp of TPR@1 % FPR on MAGE (91.99 → 88.57, disjoint 95 % intervals), and its cross-dataset average falls from 93.14 to 92.45 % (Table 3). Sixfold adversarial scaling therefore buys about half a point on the benchmark and costs several points of cross-dataset generalisation, which is the tradeoff our multi-dataset design is intended to avoid. We report the 1.55M-row configuration as our primary system for this reason. Validation composition also matters: an early configuration used a validation split in which MAGE was over-represented relative to training, biasing early stopping and costing three points of HC3-SI. Correcting to proportional validation restored it (Appendix F). 5.5

Cross-Dataset Generalisation

Table 3 evaluates the four no-feature cells on three external corpora under the fixedthreshold protocol, with τ ⋆ calibrated once on the source validation split and held constant. The result is that preprocessing placement, which separates the cells by 12.9 pp on RAID, separates them by at most 0.41 pp here: the cross-dataset averages are 93.35, 93.55, 93.17 and 93.14 %. Inference normalisation in particular is inert: N-nn against N-nr, and Nrr against N-rn, are the same weights differing only in inference, and their AUROC and TPR@1 % FPR agree to four decimal places on every benchmark. This is what the mechanism predicts: HC3 Plus and MAGE contain no Unicode perturbations, so normalisation has nothing to remove. Attack-aware preprocessing is not a general preprocessing benefit but a defence that is exactly inert in its absence.

Method

HC3-QA HC3-SI MAGE Avg RAID

RAID leaderboard systems with public checkpoints 94.64 66.86 96.17 85.89 MELD ModernBERT∗ 95.40 52.54 93.51 80.48 Desklib v1.01 97.87 56.38 83.44 79.23 SuperAnnotate 99.04 56.25 60.01 71.77 e5-small-lora 87.29 59.45 67.12 71.29 TMR 84.85 55.92 70.99 70.59 69.84 55.60 61.49 62.31 BERT-tiny-4M ADAL 59.89 44.89 61.23 55.34 RADAR 53.32 49.09 60.40 54.27

99.78 94.14 91.17 64.87 85.69 95.79 84.18 96.25 63.91

Ours, no-feature cells (DeBERTa-v3-large) 99.72 84.79 95.55 −F n→n −F n→r 99.67 85.77 95.22 −F r→r 99.68 83.64 96.20 −F r→n 99.69 83.50 96.23

93.35 93.55 93.17 93.14

98.50 86.14 98.39 99.01

Ours, other backbones (raw/norm) 98.85 81.39 BERT-large RoBERTa-large 99.28 72.38

90.94 96.77 88.12 87.08

92.59 92.70

Ours, trained on the full RAID split (Sec. 5.4) −F r→n 99.72 83.71 93.94 92.45 99.13

Table 3: Balanced accuracy at the fixed threshold τ ⋆ on the external benchmarks, and RAID TPR@5 % FPR from the official leaderboard (Dugan et al., 2024). Avg is the mean over HC3-QA, HC3-SI and MAGE. Competitors are every RAID entry with a public checkpoint, each scored under our protocol. The feature cells were not evaluated externally. ∗ Trained on MAGE, so that column is in-distribution for it.

M4GT-Bench. On M4GT-Bench (Wang et al., 2024a), which was not part of training, the four cells reach 97.67, 94.55, 96.70 and 93.59 % TPR@1 % FPR for +F n→n, −F n→n, +F r→r and −F r→n respectively. This is the one external corpus on which the feature branch helps, by about three points in both training conditions, the opposite sign to its effect on SemEval-2024 and HC3-SI, and a reminder that the branch is not uniformly harmful but unpredictable. Raw-corpus training is close to neutral rather than free: it costs about two points on HC3-SI and one on M4 while gaining one on MAGE, for a net change within half a point on the average. Set against a 17.1 pp gain in RAID TPR@1 % FPR, we regard that as an acceptable exchange, and we report it rather than the average alone.

5.6

Comparison Against Strong Baselines

We compare against every RAID leaderboard system that publishes a checkpoint (Table 3), each downloaded and evaluated under our fixedthreshold protocol rather than at numbers reported elsewhere. MELD is the only open system above ours on RAID alone (99.78 against 99.01); on adversarial robustness in isolation it is the stronger detector. And HC3, MAGE and M4 are training sources for our system, so those columns are held-out splits for us but external data for every competitor, which favours us by construction. What the table does show is that no open system combines both: our configuration leads the cross-dataset average by 7.3 points over MELD, and the systems nearest us on RAID (ADAL, TMR) fall to near chance on HC3-SI. Several commercial systems score above 99 on RAID but publish no checkpoint.

6

Discussion and Conclusion

In-domain accuracy alone is an insufficient indicator of robustness. Among systems with public checkpoints, ours is the only one that is both within a point of the best RAID score and first on the cross-dataset average. Two findings generalise. Normalisation before tokenisation neutralises zero-width and homoglyph attacks, but only at inference: applying it to the training corpus deletes the adversarial supervision it provides. And robustness here proved data-centric: the feature branch reduced TPR@1 % FPR in every condition, by 49.8 pp on poetry alone. Both findings are cheap to act on. Inferencetime normalisation is a deterministic pretokenisation step with no learned parameters, and the same signature appears in a zero-shot detector of different architecture, so existing detectors can adopt it without retraining; it cannot replace adversarial exposure during training. Code, checkpoint and live demo: github.com/MohamedMady19/deberta-conpara huggingface.co/mohamedmady/deberta-conpara huggingface.co/spaces/mohamedmady/ deberta-conpara

Further out-of-distribution evaluation (Appendix A.3.1) and the development sequence behind the submitted version (Appendix E) are consistent with these findings.

Limitations While DeBERTa-ConPara demonstrates strong robustness across multiple benchmarks and adversarial settings, several limitations remain. First, each configuration is a single training run. Three seeds of one configuration spanned 10.68 points of hidden-test TPR@1 % FPR. That spread belongs to the metric as much as to the model: TPR@1 % FPR is fixed by one percentile of the human score distribution, so small calibration shifts displace it disproportionately, whereas balanced accuracy on the same system varies by ±0.75 pp across five seeds (Appendix A.3.3). Our factorial comparisons are paired (identical corpus and seed, one factor changed), so they are not subject to the full between-run spread, but we could not quantify the paired variance without repeating the factorial. We therefore rest our conclusions on effects that are large relative to that spread (raw-corpus training, +2.05 to +18.05 pp; the poetry penalty, 49.8 pp) or consistent in sign across all four conditions (the feature branch is negative in every one). Differences of a few points between cells are indicative only; where we draw a conclusion in that range, as in the scaling analysis, it rests on the cross-dataset loss (3.42 pp, disjoint 95 % intervals), not on the small hidden-test gain. Second, all experiments focus exclusively on English-language datasets, and all robustness claims should be read as applying only to the English domains, generators and attacks evaluated here. Extending the framework to multilingual settings remains an important direction, particularly since Unicode-based attack patterns and linguistic structures vary substantially across languages. Multilingual benchmarks such as DetectRL-X (Wu et al., 2026), which spans eight languages and six domains, report that detector performance degrades unevenly across scripts and that short texts are substantially harder in morphologically richer languages than in English; whether attack-aware normalisation transfers to nonLatin scripts is therefore an open question our results do not address. Third, although attack-aware preprocessing substantially improves robustness against surface-level perturbations, semantically preserving transformations such as sophisticated

paraphrasing remain challenging for current detection systems. Fourth, the human-written training data originates from pre-2022 sources, predating the widespread availability of large-scale generative AI. While this temporal boundary provides provenance guarantees, human writing style is evolving in response to AI use, and AIassisted composition is emerging as a challenging intermediate category that binary detection frameworks do not address. We consider the development of three-class detection (human, AI-assisted, fully AI-generated) an important direction for future work. Finally, robustness evaluation is necessarily bounded by currently available benchmarks and attack strategies. AI text generation is advancing rapidly, including the emergence of post-processing humanisation filters that deliberately reduce the statistical detectability of AI-generated text (Chakraborty et al., 2024). A particularly challenging emerging scenario involves personally adapted AI systems that deliberately imitate an individual’s writing style including their characteristic errors, vocabulary, and syntactic patterns making stylometric detection ineffective by design. Addressing such threats will require author-adaptive detection approaches and continued benchmark refreshment as both human writing and AI generation capabilities evolve.

Ethical Considerations Reliable AI-generated text detection can support important applications including academic integrity, misinformation mitigation, content moderation, and quality control in humanannotated dataset construction. Detection systems carry false-positive risks, particularly for non-native speakers, minority dialects and stylistically atypical human writing, while false negatives cause harm in academic-integrity and misinformation settings. We therefore recommend that detectors serve as decision support rather than definitive evidence in high-stakes settings, accompanied by human oversight, transparent confidence reporting and clear appeal mechanisms. The released system is intended for defensive detection research rather than surveillance or censorship applications.

References Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, and 1 others. 2023. GPT-4 technical report. arXiv preprint arXiv:2303.08774. Preprint, arXiv:2303.08774. Guangsheng Bao, Yanbin Zhao, Zhiyang Teng, Linyi Yang, and Yue Zhang. 2024. FastDetectGPT: Efficient zero-shot detection of machine-generated text via conditional probability curvature. In 12th International Conference on Learning Representations, Vienna, Austria. Amrita Bhattacharjee, Raha Moraffah, Joshua Garland, and Huan Liu. 2024. EAGLE: A domain generalization framework for AI-generated text detection. arXiv preprint arXiv:2403.15690. Preprint, arXiv:2403.15690. Souradip Chakraborty, Amrit Bedi, Sicheng Zhu, Bang An, Dinesh Manocha, and Furong Huang. 2024. Position: On the possibilities of AIgenerated text detection. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 6093–6115, Vienna, Austria. PMLR. Shuangyi Chen and Ashish J. Khisti. 2026. Blackbox detection of LLM-generated text using generalized Jensen Shannon divergence. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 14913–14955, Seoul, South Korea. PMLR. Xin Chen, Junchao Wu, Shu Yang, Runzhe Zhan, Zeyu Wu, Ziyang Luo, Di Wang, Min Yang, Lidia S. Chao, and Derek F. Wong. 2025. RepreGuard: Detecting LLM-generated text by revealing hidden representation patterns. Transactions of the Association for Computational Linguistics, 13:1812–1831. Hyung Won Chung, Le Hou, Shayne Longpre, Barret Zoph, Yi Tay, William Fedus, Yunxuan Li, Xuezhi Wang, Mostafa Dehghani, Siddhartha Brahma, and 1 others. 2024. Scaling instructionfinetuned language models. Journal of Machine Learning Research, 25(70):1–53. Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. ELECTRA: Pretraining text encoders as discriminators rather than generators. In 8th International Conference on Learning Representations, Addis Ababa, Ethiopia. Thomas M. Cover and Joy A. Thomas. 2006. Elements of Information Theory, 2nd edition. John Wiley & Sons, Hoboken, New Jersey, USA. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language

understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. Liam Dugan, Alyssa Hwang, Filip Trhlı́k, Andrew Zhu, Josh Magnus Ludan, Hainiu Xu, Daphne Ippolito, and Chris Callison-Burch. 2024. RAID: A shared benchmark for robust evaluation of machine-generated text detectors. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12463–12492, Bangkok, Thailand. Association for Computational Linguistics. Tom Fawcett. 2006. An introduction to ROC analysis. Pattern Recognition Letters, 27(8):861–874. Sebastian Gehrmann, Hendrik Strobelt, and Alexander Rush. 2019. GLTR: Statistical detection and visualization of generated text. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 111–116, Florence, Italy. Association for Computational Linguistics. Gemini Team. 2023. Gemini: A family of highly capable multimodal models. arXiv preprint arXiv:2312.11805. Preprint, arXiv:2312.11805. Josh A. Goldstein, Girish Sastry, Micah Musser, Renée DiResta, Matthew Gentzel, and Katerina Sedova. 2023. Generative language models and automated influence operations: Emerging threats and potential mitigations. arXiv preprint arXiv:2301.04246. Biyang Guo, Xin Zhang, Ziyuan Wang, Minqi Jiang, Jinran Nie, Yuxuan Ding, Jianwei Yue, and Yupeng Wu. 2023. How close is ChatGPT to human experts? comparison corpus, evaluation, and detection. arXiv preprint arXiv:2301.07597. Preprint, arXiv:2301.07597. Abhimanyu Hans, Avi Schwarzschild, Valeriia Cherepanova, Hamid Kazemi, Aniruddha Saha, Micah Goldblum, Jonas Geiping, and Tom Goldstein. 2024. Spotting LLMs with binoculars: Zero-shot detection of machine-generated text. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 17519–17537, Vienna, Austria. PMLR. Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2023. DeBERTaV3: Improving DeBERTa using ELECTRA-style pre-training with gradientdisentangled embedding sharing. In The Eleventh International Conference on Learning Representations, Kigali, Rwanda. Xiaomeng Hu, Pin-Yu Chen, and Tsung-Yi Ho. 2023. RADAR: Robust AI-text detection via

adversarial learning. In Advances in Neural Information Processing Systems 36, pages 15077– 15095, New Orleans, Louisiana, USA. Curran Associates, Inc. Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. 2020. Supervised contrastive learning. In Advances in Neural Information Processing Systems 33, pages 18661–18673, Virtual. Curran Associates, Inc. John Kirchenbauer, Jonas Geiping, Yuxin Wen, Jonathan Katz, Ian Miers, and Tom Goldstein. 2023. A watermark for large language models. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 17061–17084, Honolulu, Hawaii, USA. PMLR. Kalpesh Krishna, Yixiao Song, Marzena Karpinska, John Wieting, and Mohit Iyyer. 2023. Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense. In Advances in Neural Information Processing Systems 36, pages 27469–27500, New Orleans, Louisiana, USA. Curran Associates, Inc. Yafu Li, Qintong Li, Leyang Cui, Wei Bi, Zhilin Wang, Longyue Wang, Linyi Yang, Shuming Shi, and Yue Zhang. 2024. MAGE: Machinegenerated text detection in the wild. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 36–53, Bangkok, Thailand. Association for Computational Linguistics. Yupei Li, Manuel Milling, Lucia Specia, and Björn W. Schuller. 2025. Discourse features enhance detection of document-level machinegenerated content. In Proceedings of the 2025 International Joint Conference on Neural Networks (IJCNN), pages 1–8, Rome, Italy. IEEE. Shengchao Liu, Xiaoming Liu, Chengzhengxu Li, Zhaohan Zhang, Guoxin Ma, Yu Lan, and Shuai Xiao. 2026. MGT-Prism: Enhancing domain generalization for machine-generated text detection via spectral alignment. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 32132–32140. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692. Preprint, arXiv:1907.11692.

Mohamed Mady. 2026b. HC3-Gemini-FlashResponses. Hugging Face Datasets. Mohamed Mady, Yupei Li, Johannes Reschke, and Björn W. Schuller. 2026. Featureaugmented transformers for robust AI-text detection across domains and generators. Preprint, arXiv:2605.03969. Eric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning, and Chelsea Finn. 2023. DetectGPT: Zero-shot machine-generated text detection using probability curvature. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 24950–24962, Honolulu, Hawaii, USA. PMLR. Vinu Sankar Sadasivan, Aounon Kumar, Sriram Balasubramanian, Wenxiao Wang, and Soheil Feizi. 2025. Can AI-generated text be reliably detected? stress testing AI text detectors under various attacks. Transactions on Machine Learning Research. Leslie N. Smith and Nicholay Topin. 2019. Superconvergence: Very fast training of neural networks using large learning rates. Preprint, arXiv:1708.07120. Also published in Proc. SPIE 11006, Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications, 2019. Stanford Institute for Human-Centered Artificial Intelligence (HAI). 2025. The 2025 AI index report. https://hai.stanford.edu/ai-index/ 2025-ai-index-report. Accessed: 2025-05-01. Chris Stokel-Walker. 2022. AI bot ChatGPT writes smart essays — should professors worry? Nature. News feature, 9 December 2022. Zhenpeng Su, Xing Wu, Wei Zhou, Guangyuan Ma, and Songlin Hu. 2023. HC3 plus: A semantic-invariant human ChatGPT comparison corpus. arXiv preprint arXiv:2309.02731. Preprint, arXiv:2309.02731. Turnitin LLC. 2024. 2024 turnitin wrapped. https://www.turnitin.com/ blog/2024-turnitin-wrapped. Accessed: 2025-05-01.

Ilya Loshchilov and Frank Hutter. 2019. Decoupled weight decay regularization. In 7th International Conference on Learning Representations, New Orleans, Louisiana, USA.

Vivek Verma, Eve Fleisig, Nicholas Tomlin, and Dan Klein. 2024. Ghostbuster: Detecting text ghostwritten by large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 1702–1717, Mexico City, Mexico. Association for Computational Linguistics.

Mohamed Mady. 2026a. Academic-Text-arxiv-gptgemini. Hugging Face Datasets.

Yuxia Wang, Jonibek Mansurov, Petar Ivanov, Jinyan Su, Artem Shelmanov, Akim Tsvigun,

Osama Mohammed Afzal, Tarek Mahmoud, Giovanni Puccetti, Thomas Arnold, Alham Fikri Aji, Nizar Habash, Iryna Gurevych, and Preslav Nakov. 2024a. M4GT-Bench: Evaluation benchmark for black-box machine-generated text detection. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3964–3992, Bangkok, Thailand. Association for Computational Linguistics. Yuxia Wang, Jonibek Mansurov, Petar Ivanov, Jinyan Su, Artem Shelmanov, Akim Tsvigun, Chenxi Whitehouse, Osama Mohammed Afzal, Tarek Mahmoud, Toru Sasaki, Thomas Arnold, Alham Fikri Aji, Nizar Habash, Iryna Gurevych, and Preslav Nakov. 2024b. M4: Multigenerator, multi-domain, and multi-lingual blackbox machine-generated text detection. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1369– 1407, St. Julian’s, Malta. Association for Computational Linguistics. Bram Wouters. 2024. Optimizing watermarks for large language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 53251–53269, Vienna, Austria. PMLR. Junchao Wu, Yefeng Liu, Chenyu Zhu, Hao Zhang, Zeyu Wu, Tianqi Shi, Yichao Du, Longyue Wang, Weihua Luo, Jinsong Su, and Derek F. Wong. 2026. DetectRL-X: Towards reliable multilingual and real-world LLM-generated text detection. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 38247–38294, San Diego, California, USA. Association for Computational Linguistics. Junchao Wu, Shu Yang, Runzhe Zhan, Yulin Yuan, Lidia S. Chao, and Derek F. Wong. 2025. A survey on LLM-generated text detection: Necessity, methods, and future directions. Computational Linguistics, 51(1):275–338. Junchao Wu, Runzhe Zhan, Derek F. Wong, Shu Yang, Xinyi Yang, Yulin Yuan, and Lidia S. Chao. 2024. DetectRL: Benchmarking LLM-generated text detection in real-world scenarios. In Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track, pages 100369–100401, Vancouver, BC, Canada. Curran Associates, Inc. W. J. Youden. 1950. Index for rating diagnostic tests. Cancer, 3(1):32–35. Hanlin Zhang, Benjamin L. Edelman, Danilo Francati, Daniele Venturi, Giuseppe Ateniese, and Boaz Barak. 2024. Watermarks in the sand: Impossibility of strong watermarking for language

models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 58851–58880, Vienna, Austria. PMLR.

A

Appendix

This appendix provides additional details on dataset composition, benchmark characteristics, preprocessing, feature engineering, and robustness evaluation settings used throughout this work. The supplementary material is intended to support reproducibility and provide deeper insight into the deployment-oriented robustness properties of DeBERTa-ConPara. A.1

Detailed Dataset and Benchmarks Descriptions

DeBERTa-ConPara is trained and evaluated on four complementary large-scale datasets spanning semantic invariance, cross-domain generalisation, highly fluent writing, and adversarial robustness settings. A.1.1 HC3 and HC3 Plus The HC3 benchmark (Guo et al., 2023) (Human ChatGPT Comparison Corpus) is one of the earliest large-scale datasets for AIgenerated text detection. It contains approximately 40,000 questions and responses from human experts collected through social media and Wikipedia, with ChatGPT (GPT-3.5 series) used to generate corresponding answers. HC3 is available in both English and Chinese, with the English subset covering five domains and the Chinese subset covering seven domains, spanning areas including open-domain question answering, medicine, finance, and law. HC3 Plus (Su et al., 2023) extends HC3 with semantic-invariant tasks beyond question answering. The semantic-invariant split incorporates summarisation, translation, and paraphrasing tasks, with human-written text sourced from CNN/DailyMail, XSum, LCSTS, the CLUE benchmark, and datasets from the Workshop on Machine Translation (WMT). AIgenerated outputs were produced using GPT3.5-Turbo for all tasks in the semantic-invariant split. Unlike the original HC3 questionanswering tasks, semantic-invariant tasks are substantially more challenging for detection because the AI output preserves the full semantic content of the human source, eliminating the stylistic differences that make standard QA detection tractable. We use only the English subset throughout this work. The official HC3 Plus training split contains 148,040 samples, while the SI split

is reserved exclusively for semantic robustness evaluation. A.1.2 M4 M4 (Wang et al., 2024b) (Multi-Generator, Multi-Domain, and Multi-Lingual Black-Box Machine-Generated Text Detection) is designed specifically for evaluating cross-generator and cross-domain robustness, and received the Best Resource Paper Award at EACL 2024. The full M4 corpus spans seven languages (Arabic, Bulgarian, Chinese, English, Indonesian, Russian, and Urdu) and contains approximately 147,000 human-machine parallel text pairs, of which 102,000 are English and 45,000 cover the remaining six languages. In addition, the corpus contains over 10 million non-parallel human-written texts. AI-generated outputs are produced by six generators: GPT-4, ChatGPT, GPT-3.5 (text-davinci-003), Cohere, Dollyv2, and BLOOMz 176B. Human-written English texts are sourced from Wikipedia (March 2022 snapshot), WikiHow, Reddit ELI5, arXiv, and PeerRead. We use the English subset only, covering five domains (Wikipedia, WikiHow, Reddit ELI5, PeerRead, and arXiv) and eight AI generators (ChatGPT, text-davinci-003, Cohere, BLOOMZ, Dolly, Dolly-2, Flan-T5, and LLaMA), as detailed in Table 5. After preprocessing, filtering, and deduplication, the English subset contains 78,766 samples (12,583 human-written and 66,183 AIgenerated). Because the English subset is heavily AI-dominated (approximately 84 % AIgenerated), we rebalance the training corpus by supplementing its human-written side with additional human-written texts drawn exclusively from the Wikipedia (March 2022 snapshot) and WikiHow subsets of M4. These sources predate the public release of ChatGPT (November 2022) and are therefore verifiably human-authored under a temporal guarantee. This filler contributes 438,305 rows, the single largest component of the 1.55M-row corpus, and is reported as its own line in Table 1 rather than folded into the M4 total. Full split statistics are provided in Table 5.

Split Train Validation Validation Test Test

Subset

Total

Human

AI

Purpose

HC3 Plus QA HC3 QA HC3 SI HC3 QA HC3 SI

148,040 5,839 5,839 24,969 38,110

83,261 2,919 2,919 16,951 19,047

64,779 2,920 2,920 8,018 19,063

Main training set Standard validation Semantic-invariant validation Standard evaluation Semantic-invariant evaluation

Table 4: Detailed composition of the English splits of HC3 Plus. All counts denote number of text samples. The HC3 Plus QA test split is human-heavy following the official benchmark configuration. Domain

Human

ChatGPT

Davinci003

Cohere

BLOOMZ

Dolly

Wikipedia Reddit ELI5 WikiHow PeerRead arXiv

3,000 3,000 3,001 586 2,996

2,995 3,000 3,000 586 3,000

3,000 3,000 3,000 586 3,000

2,336 3,000 3,000 586 1,220

3,000 3,000 3,000

2,702

3,000

586 3,000

Total

12,583

12,581

12,586

10,142

12,000

6,288

Dolly2

FlanT5

LLaMA

4,220 3,000 586 1,780 3,000

6,000

586

Table 5: Sample counts for the English subset of M4 used in this work, covering five domains and eight AI generators. A blank cell means M4 provides no text for that generator in that domain.

A.1.3 MAGE MAGE (Li et al., 2024) (MAchine-GEnerated text detection in the Wild) is a large-scale benchmark designed to evaluate AI-generated text detection under realistic, highly heterogeneous conditions resembling practical deployment scenarios. The benchmark collects human-written texts from seven distinct writing tasks, including story generation, news writing, scientific abstract writing, peer review, and biomedical question answering, among others. For each human-written text, corresponding machine-generated texts are produced using 27 large language models under three representative prompt types (continuation, topical, and specified), covering a wide spectrum of model families including OpenAI GPT (textdavinci-002/003, GPT-3.5-Turbo), LLaMA (6B/13B/30B/65B), GLM-130B, FLAN-T5 (small/base/large/xl/xxl), OPT (125M to 30B), and BigScience models (T0, BLOOM-7B1) (Li et al., 2024). The data is organised into eight testbeds of progressively increasing detection complexity, ranging from in-domain detection of a single white-box generator to the most challenging setting involving texts from entirely unseen domains and generators under paraphrasing attacks. The full corpus contains 447,674 samples. Following the official split configuration, we use 319,071 training samples.

Compared with HC3 Plus and M4, MAGE exhibits substantially weaker stylistic separation between human and AI text, particularly in formal and polished writing domains. This is partly because the dataset explicitly captures the “in-the-wild” regime where surface-level lexical cues are insufficient for reliable detection. This makes MAGE especially challenging under deployment-realistic fixed-threshold evaluation. A.1.4 RAID RAID (Dugan et al., 2024) (Robust AI-Text Detection Benchmark) is the primary benchmark used in this work for adversarial robustness evaluation, and the largest machine-generated text detection benchmark available at the time of writing. Corpus Structure. The full RAID corpus contains over 6.2 million AI-generated texts, constructed by generating 2,000 continuations for every combination of domain, model, decoding strategy, repetition penalty, and adversarial attack. Human-written reference texts are sourced from publicly available pre-2022 datasets across the same eight domains. Generators (11): ChatGPT, GPT-4, GPT3 (text-davinci-003), GPT-2 XL, LLaMA-270B (Chat), Cohere, Cohere (Chat), MPT-30B, MPT-30B (Chat), Mistral-7B, and Mistral-7B (Chat).

Attack Type

Example (Attacked)

After Preprocessing

Homoglyph substitution Zero-width insertion Whitespace perturbation Case perturbation Number/letter swap Alternative spelling Synonym substitution Paraphrasing Article deletion Misspelling Paragraph insertion

Thıs ıs ã test This[ZWS]is[ZWS]a test This is a test tHiS iS a TeSt Th1s 1s a test colour → color test → examination rewritten sentence sentence without articles artificail inteligence sentence + inserted para.

This is a test This is a test This is a test this is a test This is a test normalised semantic change remains semantic change remains unchanged partially corrected unchanged

Effectiveness Fully neutralised Fully neutralised Fully neutralised Mostly neutralised Partially neutralised Partial Limited Limited Limited Partial Limited

Table 6: Representative RAID attacks and the effect of the proposed preprocessing pipeline. Surface-form attacks are largely neutralised before tokenisation, while semantic attacks remain challenging.

Domains (8): arXiv abstracts, book summaries, news articles (NYT), poetry, recipes, Reddit posts, IMDb movie reviews, and Wikipedia. Adversarial attacks (11): paraphrasing, synonym substitution, homoglyph replacement, zero-width character insertion, whitespace addition, upper/lower case swap, article deletion, number swap, alternative spelling, perplexitybased misspelling, and paragraph insertion. Decoding strategies (4): greedy (T =0), sampling (T =1), greedy with repetition penalty (T =0, Θ=1.2), and sampling with repetition penalty (T =1, Θ=1.2). Repetition penalty variants are applied to open-source models only. Train/Test split. Ten per cent of the RAID corpus is withheld without labels as the official hidden test set, used exclusively through the public leaderboard at raid-bench.xyz. The remaining 90 % is released with labels and used for training. All leaderboard results are evaluated on the official hidden test set. RAID rows used in this work. The training corpus of Table 1 draws 398,834 AIgenerated texts from the labelled RAID split, sampled across the attack × domain cells, together with all 131,700 human reference texts, 530,534 rows in all. The submitted version used smaller subsets of the same construction with a fixed number of AI texts per cell and Cohere-focused oversampling (v2.2: ∼205k rows, 1,671 per cell; v2.4-3k: ∼322k, 3,000; v2.4-5k: ∼498k, 5,000; Appendix E). The fullsplit run of Section 5.4 uses every labelled RAID training row (9.38M balanced rows).

Data currency note. The RAID benchmark represents the state of adversarial AI-text detection as of its 2024 release, covering 11 generators and 11 attack categories available at that time. AI text generation capabilities are advancing rapidly, including the emergence of post-processing humanisation filters designed to reduce the statistical detectability of AIgenerated text (Chakraborty et al., 2024; Wu et al., 2025). Detectors trained on current benchmarks may therefore face accelerating distribution shift as newer, more human-like generators enter deployment. This is a known open challenge shared across the AI-text detection community, and motivates continued benchmark refreshment alongside the targeted adversarial data curation strategy introduced in this work. A.2

Additional Method Details

This section provides additional implementation, preprocessing, feature-engineering, and training details to facilitate reproducibility. Additional analyses are included to clarify the behaviour of the proposed attack-aware preprocessing pipeline, feature-fusion mechanism, and semantic-invariance augmentation strategies under adversarial and cross-domain conditions.

Stage

Purpose

1. Homo- Cyrillic, Greek and fullwidth characglyph substi- ters mapped to their Latin look-alikes tution through a curated confusables table. NFKD cannot repair these, as they are canonically distinct. 2. Typo- Smart quotes, dashes, fractions and regraphic lated symbols mapped to ASCII. normalisation 3. NFKD de- Decomposition followed by removal of composition combining marks (Mn), reducing accented Latin to ASCII (é → e) and expanding compatibility forms; the result is re-composed with NFC. 4. Invisible Removal of every Unicode format charchar. removal acter (category Cf): zero-width space, ZWNJ, ZWJ, BOM, directional marks and soft hyphen. 5. Whites- Runs of spaces collapsed to one. At inpace collaps- ference all whitespace is collapsed and ing the string trimmed.

Table 7: Stages of the attack-aware preprocessing pipeline, in the order applied. The pipeline is deterministic, idempotent and carries no learned parameters.

A.2.1

Attack Taxonomy and Preprocessing Pipeline RAID includes 11 adversarial attack categories covering both surface-form perturbations and semantic-preserving rewriting attacks. Many of these attacks exploit vulnerabilities in Unicode handling, tokenisation, whitespace processing, and stylometric feature extraction rather than high-level semantic modelling itself. Table 6 summarises all attack categories and their response to the proposed preprocessing pipeline. The attack-aware preprocessing pipeline mitigates surface-form perturbations before tokenisation and feature extraction, explicitly targeting Unicode-level and formatting-level manipulations that destabilise tokenisation, entropy estimation, burstiness statistics, and stylometric feature extraction. The pipeline performs six stages applied consistently during both training and inference. Table 7 details each stage; Table 8 provides representative normalisation examples. The pipeline additionally stabilises linguisticfeature distributions. Without normalisation, Unicode perturbations artificially inflate entropy, burstiness, and vocabulary-richness estimates, leading to unstable detector behaviour under adversarial attacks.

Original Adversarial Text

After Preprocessing

[Cyrillic] AI-generated AI-generated text text This[ZWS]isThis is a test [ZWS]a test T h i s i s A I This is AI Th1s t3xt This text. . . c0nta1ns subst. tHiS Is An this is an adv. aDvErSaRiAl SaMpLe

Attack Type Homoglyph

Zero-width Whitespace Char. subst. Case pert.

Table 8: Representative adversarial-text normalisation examples performed by the preprocessing pipeline. Category

N

Description

Perplexity

8

Total Selected

62 30 Via MI on training data

GPT-2 perplexity stats (doc/token) Entropy 10 Char., word, n-gram, POS entropy Burstiness 6 Repetition and interval burstiness Repetition 10 Self-BLEU, unique n-grams, compression Vocabulary 8 Zipf, Yule, Hapax, TTR, MATTR Coherence 6 Sentence similarity, topic drift Readability 6 Flesch, FK-grade, ARI, SMOG Stylometric 8 Punctuation, pronouns, caps ratio

Table 9: Handcrafted feature categories (m=62 total; k=30 selected via Mutual Information).

A.2.2 Linguistic Features The handcrafted feature space contains 62 linguistic and statistical features organised into eight categories. The top 30 features are selected for feature-attention fusion via Mutual Information (Cover and Thomas, 2006) computed on source-side training data, as detailed below.

Feature Normalisation and Selection. Feature selection is performed exclusively on source-side training data to avoid targetdomain leakage. All features are normalised using RobustScaler fitted on source training data only. The final subset (k=30) maximises Mutual Information with the binary human/AI label on the full training mix. Complete Feature List (62). Table 10 lists all 62 features with descriptions, organised by category. A.2.3

Contrastive Learning and Paraphrase Augmentation To improve robustness against semanticpreserving rewriting, we additionally investigate paraphrase augmentation and supervised contrastive learning (SupCon). Paraphrases are generated offline using flan-t5-base (Chung et al., 2024). Generated samples are filtered using a cosinesimilarity threshold of ≥ 0.85 over sentence embeddings. Following Krishna et al. (2023), this value was selected to balance semantic fidelity against lexical diversity: thresholds below 0.80 admitted meaning-altering rewrites that degraded classification signal, while thresholds above 0.90 produced near-identical paraphrases with insufficient diversity to improve robustness. For supervised contrastive learning, positive pairs consist of original and paraphrased samples from the same class, while in-batch samples from opposite classes serve as negatives. The SupCon objective is combined with weighted cross-entropy loss: L = LCE + λ LSupCon ,

(3)

where λ ∈ {0.05, 0.1, 0.2} is tuned experimentally. A.2.4 Training Hyperparameters All experiments use the same configuration. Hyperparameters are selected and kept fixed to ensure consistent comparison.

Parameter Backbone Max sequence length Batch size Optimiser Learning rate Weight decay Scheduler Dropout Gradient clipping SupCon temperature Hardware Framework

Value DeBERTa-v3-large 512 32 AdamW 2 × 10−5 0.01 OneCycleLR + cosine annealing 0.1 1.0 0.07 NVIDIA A100-SXM4-40GB PyTorch + Transformers

Table 11: Training Hyperparameters.

A.3

Additional Experimental Results

This section reports the out-of-distribution evaluation, the semantic-invariance (ConPara) ablation and the multi-seed check carried out on the submitted version of the system; the version sequence itself is in Appendix E. A.3.1

Extended Out-of-Distribution Evaluation To further assess generalisation beyond the training distribution, we evaluate DeBERTaConPara v2.4-3k (τ ∗ = 0.920) on two largescale benchmarks under the fixed-threshold protocol without any target-domain re-calibration. Table 12 summarises the results. DeBERTa-ConPara achieves strong generalisation across diverse unseen distributions. On 23K Gemini 2.0 Flash HC3-style responses (Mady, 2026b), the detector achieves 98.64 % recall despite Gemini outputs being entirely absent from training data. On the 669K academic benchmark spanning human arXiv paragraphs and GPT-3.5/Geminigenerated scientific prose (Mady, 2026a), the model achieves 94.69 % balanced accuracy and 99.90 % AUROC, with near-perfect AI recall (99.98 %) and 89.41 % human recall. A.3.2 ConPara Ablations To evaluate the contribution of semanticinvariance objectives, we investigate supervised contrastive learning (SupCon) and paraphrasing augmentation under the heterogeneous multi-domain setting used throughout this work.

Feature Perplexity (8) ppl text ppl mean token ppl max token ppl std token ppl skew token ppl low ratio ppl high ratio ppl trend Entropy (10) ent char ent word ent bigram ent trigram ent conditional ent rate ent pos ent punct ent sent len ent word len Burstiness (6) burst word burst sent len burst punct burst memory burst fano burst iat var Repetition (10) rep self bleu2 rep self bleu3 rep self bleu4 rep unique bigram rep unique trigram rep bigram rate rep trigram rate rep max ngram freq rep compression rep dup sent

Description Document-level GPT-2 perplexity Mean token-level perplexity Maximum token perplexity Std. of token perplexity Skewness of token perplexity Fraction of low-perplexity tokens Fraction of high-perplexity tokens Perplexity trend across sentences Character-level Shannon entropy Word-level Shannon entropy Bigram entropy Trigram entropy Conditional word entropy Entropy rate across document Part-of-speech tag entropy Punctuation entropy Sentence-length entropy Word-length entropy Word occurrence burstiness Sentence-length burstiness Punctuation burstiness Inter-arrival memory coefficient Fano factor of word frequency Inter-arrival time variance Self-BLEU at bigram level Self-BLEU at trigram level Self-BLEU at 4-gram level Unique bigram ratio Unique trigram ratio Bigram occurrence rate Trigram occurrence rate Maximum n-gram frequency Text compression ratio (zlib) Duplicate sentence ratio

Feature

Description

Vocabulary (8) vocab zipf coef vocab yules k

Zipf law coefficient Yule’s K richness measure vocab hapax Hapax legomena ratio Dis legomena ratio vocab dis vocab heaps Heaps’ law exponent vocab ttr Type-token ratio (TTR) Moving-average TTR vocab mattr (MATTR) vocab lexical density Content word ratio Coherence (6) coh sent sim mean coh sent sim var coh topic drift coh self sim coh semantic density coh consistency Readability (6) read flesch read fk grade read ari read coleman read smog read dale chall Stylometric (8) style func word style pronoun style conjunction style avg word len style avg sent len style sent len var style punct ratio style cap ratio

Mean adjacent sentence similarity Variance of sentence similarity Topic shift across sentences Global document self-similarity Average semantic density Cross-sentence consistency score Flesch Reading Ease Flesch-Kincaid grade level Automated Readability Index Coleman-Liau index SMOG grade Dale-Chall readability score Function word ratio Pronoun usage ratio Conjunction density Mean word length (characters) Mean sentence length (words) Sentence length variance Punctuation density Capitalisation ratio

Table 10: Complete list of all 62 handcrafted features with descriptions, organised by category. Left: Perplexity, Entropy, Burstiness, Repetition (38 features). Right: Vocabulary, Coherence, Readability, Stylometric (28 features). The top k=30 are selected via Mutual Information (Section A.2.2).

Dataset Gemini 2.0 Flash HC3 (Mady, 2026b) Academic Text (Mady, 2026a)

N

BA (%)

AI Rec. (%)

Hum. Rec. (%)

AUROC (%)

23,463 669,008

98.64 94.69

98.64 99.98

n/a 89.41

n/a 99.90

Table 12: Out-of-distribution evaluation under fixed-threshold protocol (τ ∗ = 0.920, DeBERTa-ConPara v2.4-3k) without target-domain re-calibration. The Gemini set contains AI-generated text only, so human recall and AUROC are undefined (n/a). Configuration

HC3-QA

HC3-SI

MAGE

Average

RAID TPR@5 %

v2 (no ConPara) v2.2 (baseline) + SupCon (λ = 0.05) + SupCon (λ = 0.1) + SupCon (λ = 0.2) + Offline paraphrasing (T5) v3 (SupCon + paraphrasing)

99.43 % 99.56 % 99.24 % 99.42 % 99.32 % 99.20 % 99.14 %

82.18 % 84.04 % 85.45 % 85.01 % 84.97 % 84.51 % 84.35 %

92.84 % 93.15 % 90.10 % 92.59 % 90.78 % 90.35 % 89.30 %

91.91 % 92.25 % 91.60 % 92.34 % 91.69 % 91.35 % 90.93 %

97.11 % 97.65 % n/s 97.18 % n/s n/s 95.88 %

Table 13: Ablation analysis of supervised contrastive learning and paraphrasing augmentation. Semanticinvariance objectives moderately improve HC3-SI but consistently reduce MAGE and RAID robustness under heterogeneous adversarial training conditions. n/s: variant not submitted to the RAID hidden test.

Supervised contrastive objectives produce only modest gains on semantic-invariant HC3 evaluation (+0.47 to +1.41 pp), while consistently degrading robustness on MAGE and RAID. The strongest HC3-SI performance (85.45 %) is achieved with SupCon (λ = 0.05), but this configuration simultaneously reduces MAGE performance by more than three percentage points. Similarly, offline paraphrasing augmentation slightly improves HC3-SI robustness but substantially decreases cross-domain adversarial robustness. The combined v3 configuration (SupCon + paraphrasing) produces the largest overall degradation, reducing RAID TPR@5 % FPR from 97.65 % to 95.88 %. These results suggest that semanticinvariance objectives partially conflict with the AI-vs-human discrimination objective under heterogeneous multi-generator settings: contrastive clustering of semantically related samples can reduce sensitivity to subtle stylistic and statistical signals that remain informative for adversarial detection. A.3.3 Multi-Seed Stability To evaluate robustness against random initialisation and stochastic optimisation effects, we repeat v2.2 training across five random seeds and evaluate on a held-out RAID subset containing 53,738 samples.

Metric

Mean

Std. Dev.

Balanced Accuracy AUROC

92.20 % 94.53 %

±0.75 pp ±1.20 pp

Table 14: Multi-seed stability results for DeBERTaConPara v2.2 on a 53k held-out RAID evaluation subset.

The results demonstrate that the observed robustness improvements are stable across repeated training runs, with relatively low variance despite the highly heterogeneous multidomain and multi-generator setting. In particular, the low balanced-accuracy variance (±0.75 pp) suggests that attack-aware preprocessing and adversarial data scaling produce consistent robustness gains that are not strongly dependent on favourable random initialisation. The AUROC variance (±1.20 pp) is slightly higher, consistent with known sensitivity of ranking-based metrics to probability calibration across seeds. Together, these results indicate that the primary robustness gains are attributable to architectural and data-centric design choices rather than fortunate random initialisation.

B

Factorial Ablation: Extended Results

Submission provenance. All eight cells were submitted individually to the RAID hidden test between 16 and 25 August 2026. The naming convention in the leaderboard history is: v218 denotes a model trained on the normalised corpus and v218b one trained on raw text; nofeat denotes removal of the feature-fusion branch; and the suffix records the inference-time pipeline. Table 15 maps each submission to its cell. Submission

Feat Train Infer

v2.18 v218-rawinf v2.18b-raw v2.18b-norm v218-nofeat-norm v218-nofeat-rawinf v218b-nofeat-raw v218b-nofeat-norminf

yes yes yes yes no no no no

norm norm raw raw norm norm raw raw

norm raw raw norm norm raw raw norm

Table 15: Mapping from leaderboard submission to factorial cell.

Interaction between the two placements. The two preprocessing placements are not independent. Averaged over the feature factor, inference-time normalisation is worth +13.45 pp after normalised-corpus training but only +1.94 pp after raw training; equivalently, raw training is worth +16.18 pp under raw inference and +4.66 pp under normalised inference. Each intervention substitutes for the other: whichever is applied first captures most of the available gain, and the second adds comparatively little. What is not viable is applying normalisation at training time only, which removes the adversarial supervision and leaves nothing at inference to compensate. Clean-text performance. The unattacked column separates attack robustness from baseline quality. On unattacked rows alone the eight cells span 88.38 to 97.17 % TPR@1 % FPR, and the ordering differs from the aggregate: the best clean score belongs to raw training with raw inference (97.17), not to the configuration we report (96.98). The configuration we report wins on the aggregate because its attack penalty is the smallest of the eight (0.41 pp).

The feature branch under every condition. The branch reduces TPR@1 % FPR in all four train/inference combinations, by 7.07, 3.89, 1.85 and 0.14 pp. Its cost is largest in the fully normalised configuration, the one used in the submitted version of this paper, and shrinks as raw training is introduced, consistent with the branch supplying a signal that adversarial supervision provides more reliably. Neither half of the defence is sufficient alone. The two components decompose cleanly. For homoglyph attacks, detection rises from 11.05 % with no defence to 85.78 % with raw-corpus training alone, and to 96.98 % when inference-time normalisation is added. For zero-width space the corresponding figures are 1.12 %, 73.80 % and 96.98 %. Adversarial supervision does most of the work; normalisation closes the remainder. Notably, inference-time normalisation slightly reduces performance on nine of the twelve attack classes (by 0.09 to 0.24 pp); it is worth applying only because the two classes it repairs are worth 11 and 23 points. The mismatch penalty is asymmetric. Withholding preprocessing at test time from a model trained with it costs 0.108 of mean submitted score across the hidden test. Adding preprocessing at test time to a model trained without it costs 0.007, fifteen times less and in the beneficial direction. This asymmetry is the signature of adversarial training: a model that has seen perturbations is undisturbed when they are removed, because the clean text was in its training set too, while a model that has never seen them is badly disturbed when they appear. Generalisation beyond this architecture. The same two-attack signature appears in a detector with no trained classification head and a different tokeniser. Scoring the identical validation rows with Fast-DetectGPT (Bao et al., 2024) using a GPT-Neo-2.7B scoring model, inference-time normalisation raises AUROC on zero-width-space attacks from 0.604 to 0.875 and on homoglyph attacks from 0.683 to 0.873, while the remaining ten classes move by between −0.025 and +0.005. The effect therefore belongs to the attacks and to the tokenisation failures they induce, not to our architecture.

Backbone DeBERTa-v3-large BERT-large RoBERTa-large

AUROC

T5

T1

T1cl

pen

99.61 99.07 94.32

99.01 96.77 87.08

96.57 90.54 71.23

96.98 92.31 69.68

0.41 1.77 −1.55

Table 16: Three backbones, identical corpus, hyperparameters and seed, all raw-trained with normalised inference. T5 and T1 are TPR at 5 % and 1 % FPR over all rows; T1cl is TPR@1 % FPR over unattacked rows only; pen = T1cl −T1 is the attack penalty, i.e. how much adversarial perturbation costs. RoBERTa is the only system whose penalty is negative, scoring worse on unattacked text than overall, which follows from its collapse on one domain rather than from any attack.

C

Backbone Comparison: Extended Results

Table 16 extends the backbone comparison of Section 5.3; the two observations below explain why the attack is not specific to DeBERTa and why validation-set ranking is an unreliable guide to the hidden test. The attack mechanism is architecturegeneral. All three tokenisers fragment homoglyph-substituted words into subword pieces rather than emitting an unknown-token symbol: measured token inflation on a matched sample is 3.40× for BERT, 4.00× for RoBERTa and 4.12× for DeBERTa, with zero unknown tokens in any of them. The vulnerability that inference-time normalisation repairs is therefore a property of subword tokenisation itself. Validation ranking does not transfer to the hidden test. On our own RAID validation pool, RoBERTa reaches 85.29 % TPR@1 % FPR against BERT’s 76.09 %, a nine-point lead. On the hidden test the ordering reverses and the gap widens in the opposite direction: BERT reaches 90.54 % and RoBERTa 71.23 %. Selecting a backbone on validation would have chosen the worse system by nineteen points. Two measurements explain the instability. RoBERTa is the most overconfident of the three, with a fitted temperature of 2.946 against 2.204 for DeBERTa and 2.154 for BERT, and correspondingly the widest bootstrap interval on validation TPR@1 % FPR (15.7 points against 2.1 for DeBERTa). Its hidden-test failure is also domain-localised rather than uniform: per-domain AUROC is 0.9913 on news and 0.9996 on recipes but

0.6562 on abstracts, and on books the ranking is sound (0.9820 AUROC) while the strict operating point collapses (35.45 % TPR@1 % FPR against 99.13 % at 5 %). A single global threshold is not viable for a model whose scores are that compressed. We report this as a caution about single-split model selection at low false-positive rates, and as motivation for the fixed-threshold protocol used throughout this paper.

D

Threshold Sensitivity

What freezing the operating point costs. Because τ ⋆ is fixed before any target data is seen, the relevant question is what that constraint costs. Sweeping the threshold on each benchmark and comparing balanced accuracy at the frozen τ ⋆ against the best achievable on that target gives an oracle gap for each of the 24 cell-benchmark pairs (Figure 2). The cost is negligible almost everywhere and concentrated on one split. Mean gaps are 0.11 pp on HC3-QA, 0.25 on M4 and 0.35 on MAGE; on HC3-SI the mean is 4.15 pp and the worst case 13.58. Excluding HC3-SI, all 18 remaining pairs fall between 0.02 and 0.99 pp. Fixed-threshold evaluation is therefore close to free on the benchmarks where scores are high, and expensive exactly where meaningpreserving rewriting has already compressed the score distribution. We tested whether the gap is explained by the shape of the threshold curve, as reported for a different model family (Mady et al., 2026): the width of the band keeping balanced accuracy within one point of its maximum correlates at r = −0.35 across all pairs, but the sign is inconsistent within benchmarks (−0.19, +0.48, +0.52, −0.90 for the four splits), so that account does not carry over here. The benchmark, not the curve, governs the cost. The configuration we report. For the released configuration the gap is 0.01 pp on HC3QA, 0.10 pp on MAGE and 0.25 pp on M4, so oracle access to the operating point is worth almost nothing on three of the four benchmarks. HC3-SI is again the exception at 2.97 pp, which localises the cost of the protocol to the split that is hardest in absolute terms.

oracle gap (pp of balanced accuracy)

The cost of freezing Fn n Fn r Fr r

10 3

, by benchmark

Fr n BERT RoBERTa

Concentrated on one split 4.15

HC3-SI

13.6

MAGE

0.35

M4

0.25

HC3-QA

0.11

1 0.5 0

HC3-QA

M4

MAGE

HC3-SI

0

1 2 3 4 mean gap across the six cells (pp)

Figure 2: Oracle gap, the balanced accuracy given up by fixing τ ⋆ in advance rather than tuning per target, across 24 cell-benchmark pairs. The cost is under one point everywhere except HC3-SI. Per-cell sweep curves are in Figure 3. Threshold sweeps; markers show the frozen HC3-QA

balanced accuracy

100

HC3-SI

MAGE

M4

90 Fn n Fn r Fr r Fr n BERT r n RoBERTa r n

80 70 60 50 0.0

0.2

0.4

0.6

0.8

threshold (normalised)

1.0

0.0

0.2

0.4

0.6

0.8

threshold (normalised)

1.0

0.0

0.2

0.4

0.6

0.8

threshold (normalised)

1.0

0.0

0.2

0.4

0.6

0.8

threshold (normalised)

1.0

Figure 3: Balanced accuracy as the decision threshold is swept across its range, for each cell on each benchmark. Markers show where the frozen τ ⋆ falls. HC3-QA and M4 give broad plateaux, so the frozen threshold lands almost anywhere without cost; HC3-SI is sharply peaked for every cell, which is where the oracle gap comes from.

E

Version History

The submitted version of this paper was built on deberta-v3-base and went through the development sequence in Table 17, which also lists the full-RAID run of Section 5.4. The sequence is reported for completeness; the factorial of Section 5.2 supersedes it as ablation evidence. Three observations from the sequence still hold. The gains were data-centric. The largest single step, v1 to v2 (+2.82 pp TPR@5 % FPR), changed preprocessing, corpus composition and adversarial coverage together, and every later step changed data or loss while the backbone stayed fixed. Scaling the RAID training coverage from 1,671 to 3,000 rows per attack × domain cell (v2.2 to v2.4-3k) added +0.14 pp at 5 % and +0.96 pp at 1 % FPR, with the largest gains on Reddit (+1.78 pp) and the Cohere generators (+0.99 to +1.27 pp). Ranking and operating-point quality diverge. v2.2 has the highest AUROC of the

sequence but v2.4-3k the best TPR at both operating points, and the generator-weighted loss of v2.3 raised TPR@5 % FPR slightly while cutting TPR@1 % FPR by 2.35 pp. AUROC alone hides calibration behaviour at strict operating points, which is why the paper reports fixed-threshold metrics throughout. The v2.45k row shows the complementary trade-off: proportional validation improved HC3-SI (Appendix F) at the cost of RAID operating-point robustness. The A1 and A3 arms are not a measure of preprocessing. Both were trained on a corpus normalised at construction time, and A1 was then evaluated on raw text, so their 13 pp gap is a mismatch between training corpus and inference pipeline rather than the contribution of the pipeline. The factorial isolates the same effect: its two cells trained on normalised text and evaluated on raw lose 12.79 and 15.80 pp to adversarial perturbation.

Version

TPR@5 % TPR@1 % AUROC Change

Reported (Sec. 5.2)

99.01 %

96.57 %

Full RAID (Sec. 5.4)

99.13 %

97.12 %

v1 v2 v2.2

94.29 % 97.11 % 97.65 %

87.36 % 93.34 % 93.99 %

v2.2-Seed42 v2.3 (GDWL) v2.4-3k v2.4-5k

97.29 % 97.69 % 97.79 % 96.70 %

93.55 % 91.64 % 94.95 % 90.98 %

A3 (norm. train, norm. inference)

97.39 %

92.05 %

96.79 %

A1 (norm. train, raw inference)

84.00 %

78.76 %

89.78 %

99.61 % deberta-v3-large, no features, raw training, normalised inference, 1.55M rows 99.63 % Same configuration on the complete RAID split (9.38M rows); loses 3.42 pp TPR@1 % FPR on MAGE 98.58 % deberta-v3-base, feature fusion 97.38 % Attack-diverse training data 97.87 % Cohere balancing, revised RAID validation 96.86 % v2.2, second seed 97.41 % Generator-difficulty weighted loss 97.35 % RAID scaled to 3,000 rows per cell 96.01 % 5,000 rows per cell, proportional validation (App. F) Submitted-version ablation arm, no features A3 without inference-time normalisation

Table 17: RAID hidden-test results of the configuration we report, of the same configuration trained on the complete RAID split, and of the development sequence behind the submitted version (all on deberta-v3-base). TPR at 5 % and 1 % FPR. Bold marks the configuration we report and, within the development sequence, the best value in each column. A1 and A3 differ only by a train/inference mismatch; the controlled comparison of the two preprocessing placements is the eight-cell factorial of Section 5.2.

Breakdown Level

TPR@1 % TPR@5 %

Attack

alternative spelling article deletion homoglyph insert paragraphs none number paraphrase perplexity misspelling synonym upper lower whitespace zero width space

97.13 97.87 96.98 96.98 96.98 97.08 89.61 97.41 96.78 98.10 96.98 96.98

99.03 99.09 99.04 99.04 99.04 99.09 98.33 99.03 99.10 99.27 99.04 99.04

Domain

abstracts books news poetry recipes reddit reviews wiki

96.12 98.72 95.62 94.48 99.45 93.45 97.83 96.91

98.59 99.50 99.02 98.75 99.84 98.12 99.46 98.83

Generator

chatgpt cohere cohere-chat gpt2 gpt3 gpt4 llama-chat mistral mistral-chat mpt mpt-chat

99.52 89.83 92.48 97.62 94.57 98.94 99.64 93.90 98.74 94.96 98.35

99.72 96.86 98.04 99.50 98.29 99.79 99.96 98.32 99.67 98.11 99.71

Decoding

greedy sampling

98.26 94.89

99.51 98.52

96.03 97.57

98.88 99.25

no Rep. penalty yes

Table 18: Cell −F r→n: without the feature branch, raw training, normalised inference; the configuration we report.

F

Validation-Set Composition

Effect of validation-set composition. Our initial v2.4-3k runs used a validation set in which MAGE made up 62.6 % of samples against ∼34 % of the training data; the resulting early-stopping bias cut HC3-SI from 84.04 % (v2.2) to 81.18 %. Correcting to proportional validation restored HC3-SI to 85.33 % while preserving RAID robustness, so validation composition is a hyperparameter in its own right.

G

Factorial Ablation: Complete Breakdowns

Cell labels: first letter, feature-fusion branch (F present, N absent); second and third, normalisation at training and at inference (n normalised, r raw). All numbers are TPR at the stated FPR on the 672,000-row RAID hidden test. Why the feature branch fails on poetry. Plausibly, the 30 features are surface statistics (sentence length, punctuation density, burstiness, type-token ratio) whose distributions poetry violates systematically, so the gated fusion supplies a confidently wrong contribution.

+F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n

Attack alternative spelling article deletion homoglyph insert paragraphs none number paraphrase perplexity misspelling synonym upper lower whitespace zero width space

88.8 89.1 88.8 89.3 88.8 88.7 77.6 89.0 83.7 87.8 88.8 88.8

88.4 88.8 32.8 88.7 88.4 88.2 75.9 88.5 83.0 87.5 86.0 10.9

95.5 95.9 89.7 96.4 95.8 95.8 90.1 95.8 94.7 95.2 95.5 83.3

95.0 95.3 95.3 96.2 95.3 95.3 90.4 95.3 93.8 94.3 95.3 95.3

95.6 96.3 95.4 95.4 95.4 95.4 83.1 95.9 93.5 97.2 95.4 95.4

95.5 96.1 11.0 95.3 95.3 95.3 82.8 95.7 93.3 97.1 95.3 1.1

97.3 98.0 85.8 97.2 97.2 97.3 88.9 97.5 97.0 98.2 97.2 73.8

97.1 97.9 97.0 97.0 97.0 97.1 89.6 97.4 96.8 98.1 97.0 97.0

Table 19: TPR@1 % FPR by attack, all eight factorial cells (cell labels as defined in Appendix G). Best per row in bold. Domain +F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n abstracts books news poetry recipes reddit reviews wiki

97.5 90.2 94.5 38.1 99.5 89.8 94.7 95.4

93.3 78.3 79.5 30.4 91.7 70.2 79.9 81.4

99.3 91.5 94.1 83.7 99.5 94.1 94.5 92.4

99.1 93.1 96.4 82.4 99.6 95.4 96.4 95.4

95.2 96.2 94.5 87.9 99.1 90.9 96.0 96.4

82.6 80.8 79.2 71.3 84.0 76.4 80.5 81.0

95.4 95.5 89.2 91.5 99.3 91.5 95.1 92.8

96.1 98.7 95.6 94.5 99.5 93.5 97.8 96.9

Table 20: TPR@1 % FPR by domain, all eight factorial cells. Best per row in bold. Generator +F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n chatgpt cohere cohere-chat gpt2 gpt3 gpt4 llama-chat mistral mistral-chat mpt mpt-chat

87.5 75.3 79.5 95.1 82.6 84.4 88.1 88.1 88.2 90.0 89.2

75.6 64.3 67.1 83.6 70.5 73.3 76.3 77.7 75.5 78.3 75.8

96.4 82.3 89.7 94.3 91.5 95.1 97.5 90.0 96.9 92.5 97.2

95.1 84.4 91.4 97.4 92.7 95.7 97.5 91.8 97.6 93.5 97.6

99.4 85.5 90.4 93.6 90.0 99.1 99.4 90.3 98.3 92.0 97.7

83.1 71.1 75.6 79.1 74.9 82.7 83.2 78.1 82.3 77.6 81.6

97.6 84.9 89.3 93.6 92.6 94.8 97.8 91.2 95.9 93.0 96.0

99.5 89.8 92.5 97.6 94.6 98.9 99.6 93.9 98.7 95.0 98.4

Table 21: TPR@1 % FPR by generator, all eight factorial cells. Best per row in bold.

G.1

Per-Cell Detail

Tables 19 to 25 and 22 give all eight cells on every breakdown. Table 18 reproduces, at full precision, only the configuration we report; the corresponding numbers for the other seven cells are the columns of those tables.

H

Per-Cell Performance Matrices

The ten configurations are laid out two per page, each with three breakdowns (generator×domain, generator×attack and domain×attack) on a colour scale fixed to [0, 100], so panels are comparable across pages.

The configuration we report appears again at the end, one breakdown per page at full size.

Condition +F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n TPR@1 % FPR, decoding 90.8 79.3 greedy sampling 84.1 71.9

96.6 90.7

96.8 92.6

96.1 92.9

81.3 77.7

96.6 91.0

98.3 94.9

TPR@1 % FPR, repetition penalty no 85.1 74.0 92.4 yes 91.8 78.5 95.9

93.4 97.2

93.3 96.7

78.7 81.0

93.2 94.9

96.0 97.6

TPR@5 % FPR, decoding greedy 99.5 94.2 98.2 91.3 sampling

99.5 98.1

99.6 98.5

99.3 97.7

87.7 84.6

99.3 97.5

99.5 98.5

TPR@5 % FPR, repetition penalty 98.7 93.4 98.6 no yes 99.2 91.6 99.2

98.9 99.3

98.2 99.0

86.3 85.8

98.2 98.8

98.9 99.2

Table 22: TPR by decoding strategy and repetition penalty at 1 % and 5 % FPR, all eight factorial cells. Best per row in bold. +F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n

Attack alternative spelling article deletion homoglyph insert paragraphs none number paraphrase perplexity misspelling synonym upper lower whitespace zero width space

99.0 99.0 99.0 98.9 99.0 99.0 97.5 99.0 98.8 99.1 99.0 99.0

99.0 99.0 87.9 99.0 99.0 99.0 97.5 99.0 98.8 99.1 98.9 36.8

99.2 99.2 97.9 99.2 99.2 99.2 98.2 99.2 99.3 99.3 99.1 96.9

99.1 99.2 99.1 99.1 99.1 99.1 98.0 99.1 99.2 99.2 99.1 99.1

98.7 98.7 98.7 98.7 98.7 98.7 96.6 98.7 98.3 98.9 98.7 98.7

98.7 98.7 43.0 98.7 98.7 98.7 96.6 98.7 98.3 98.9 98.7 6.0

99.1 99.2 96.4 99.1 99.1 99.1 98.4 99.1 99.2 99.3 99.1 93.7

99.0 99.1 99.0 99.0 99.0 99.1 98.3 99.0 99.1 99.3 99.0 99.0

Table 23: TPR@5 % FPR by attack, all eight factorial cells. Best per row in bold. Domain +F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n abstracts books news poetry recipes reddit reviews wiki

98.8 99.2 98.8 98.5 99.9 97.8 99.2 98.5

97.9 88.5 90.6 94.2 97.5 91.3 91.8 90.3

99.6 97.9 99.5 97.8 99.9 98.3 98.9 98.8

99.4 99.0 99.6 98.4 99.9 97.9 99.2 98.9

98.0 98.9 98.4 98.6 99.9 97.2 98.7 98.3

88.8 83.6 86.7 85.3 92.6 83.9 84.0 84.1

98.7 97.9 97.6 98.4 99.8 97.6 99.0 98.1

98.6 99.5 99.0 98.8 99.8 98.1 99.5 98.8

Table 24: TPR@5 % FPR by domain, all eight factorial cells. Best per row in bold. Generator +F n→n +F n→r +F r→r +F r→n −F n→n −F n→r −F r→r −F r→n chatgpt cohere cohere-chat gpt2 gpt3 gpt4 llama-chat mistral mistral-chat mpt mpt-chat

99.7 97.2 97.8 99.5 98.1 99.8 99.9 97.6 99.7 97.6 99.6

93.1 91.1 91.8 94.5 92.5 93.0 93.2 93.1 93.0 92.0 92.0

99.7 97.0 97.9 98.8 98.4 99.7 99.9 97.7 99.7 97.9 99.6

99.7 97.5 97.9 99.4 98.3 99.9 99.9 98.2 99.8 98.1 99.6

99.7 95.4 97.1 99.2 97.2 99.7 99.9 97.2 99.6 97.4 99.4

86.0 82.3 84.4 88.1 85.6 85.5 86.3 87.9 86.3 85.8 85.8

99.6 95.5 97.3 98.3 98.2 99.1 99.8 97.2 99.3 97.4 99.4

99.7 96.9 98.0 99.5 98.3 99.8 100.0 98.3 99.7 98.1 99.7

Table 25: TPR@5 % FPR by generator, all eight factorial cells. Best per row in bold.

F-nr Generator×Domain with features, norm train / raw inference

100

98

100

5

100

97

100

100

chatgpt

97

83

84

3

92

77

84

84

cohere

84

66

87

22

99

68

83

94

cohere

81

64

72

16

91

42

69

80

cohere-chat

96

87

90

13

100

65

89

95

cohere-chat

92

75

75

9

91

39

74

81

gpt2

99

94

96

83

99

96

95

98

gpt2

96

82

82

69

92

80

82

86

gpt3

92

83

94

24

100

80

95

93

gpt3

89

74

78

17

91

56

79

79

gpt4

100

80

99

5

100

95

97

99

gpt4

95

73

84

4

92

74

82

83

llama-chat

100

99

100

8

100

100

100

99

llama-chat

95

83

84

6

92

83

84

84

mistral

97

87

87

68

99

89

89

90

mistral

95

78

74

55

92

74

76

79

mistral-chat

100

99

99

17

100

96

100

96

mistral-chat

95

83

83

11

92

76

83

81

mpt

97

88

88

78

99

89

91

89

mpt

92

76

75

64

92

74

78

76

mpt-chat

100

94

99

34

100

91

98

98

mpt-chat

94

80

82

30

91

65

82

82

pes

dit

s

i wik

pes

dit red

s

wik

100

60

try poe

i rec

red

iew rev

Domain

0

60

boo

try

i rec

chatgpt 88

87

88

89

88

88

86

88

86

87

88

88

chatgpt 87

87

30

89

87

87

85

87

84

87

87

9

cohere 78

78

78

78

78

77

62

79

63

76

78

78

cohere 78

78

31

77

77

77

60

78

63

75

72

5

cohere-chat 79

80

30

80

80

80

67

80

69

78

76

7

gpt2 96

97

40

96

96

96

82

97

92

96

93

22

gpt3 84

84

30

84

84

84

69

84

75

84

78

7

gpt4 86

85

33

87

86

86

81

86

79

80

84

6

llama-chat 88

88

33

89

88

88

85

88

87

88

88

4

mistral 90

91

41

89

89

89

68

90

84

90

87

23

100

cohere-chat 81

82

81

82

81

81

70

82

70

79

81

81

gpt2 96

97

96

96

96

96

84

97

92

97

96

96

gpt3 85

84

85

84

85

85

71

85

74

84

85

85

gpt4 85

84

86

87

86

86

81

86

80

80

86

86

llama-chat 88

88

88

89

88

88

85

88

88

88

88

88

mistral 90

92

90

89

90

90

70

91

85

91

90

90

mistral-chat 89

89

89

91

89

89

83

89

86

88

89

89

mistral-chat 88

88

29

90

88

88

81

88

85

87

87

6

mpt 92

93

91

91

91

91

77

92

88

91

91

91

mpt 91

92

34

91

91

91

75

92

87

91

89

16

mpt-chat 91

91

91

92

91

91

75

91

85

89

91

91

mpt-chat 91

91

26

91

91

91

73

90

84

89

88

5

60 40

Generator

80

20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

100 80 60 40 20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

Attack

Attack

F-nn Domain×Attack with features, norm train / norm inference

F-nr Domain×Attack with features, norm train / raw inference

abstracts 98

98

98

98

98

98

96

98

97

98

98

98

books 93

92

94

93

94

93

73

94

82

87

94

94

news 96

97

96

96

96

95

83

96

92

96

96

96

poetry 40

39

40

45

40

40

24

40

31

36

40

40

60

recipes 100 100 100 100 100 100

97

100

100

100

100

100

40

reddit 92

93

91

91

91

91

80

92

81

92

91

91

reviews 96

97

96

96

96

96

83

97

91

95

96

96

wiki 96

97

96

96

96

96

85

96

96

97

96

96

100

Domain

TPR@1% FPR

80

abstracts 98

98

98

98

98

98

96

98

98

98

98

47

books 96

95

10

96

96

96

79

96

88

92

93

4

news 96

97

11

96

96

95

81

96

92

96

94

4

poetry 39

38

5

43

39

39

20

39

31

35

34

4

60

recipes 100 100

96

100

100

100

97

100

100

100

100

10

40

reddit 87

89

10

86

87

86

68

87

70

85

80

8

reviews 96

97

14

96

96

96

81

97

91

95

94

6

wiki 97

97

19

96

96

96

86

97

96

97

96

4

20

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati artic e xi ern zer ins ple alt per

Attack

0

i

ew

i rev

20

F-nr Generator×Attack with features, norm train / raw inference

TPR@1% FPR

Generator

poe

Domain

F-nn Generator×Attack with features, norm train / norm inference

Domain

s new

ks

cts

tra

abs

40

TPR@1% FPR

new

boo

20

80

0

100 80

TPR@1% FPR

s

ks

cts

tra

abs

40

Generator

80

100

TPR@1% FPR

chatgpt

TPR@1% FPR

Generator

F-nn Generator×Domain with features, norm train / norm inference

20 0

on lyph aphs none ber rase lling nym ower pace pace l eti m spe e del omog aragr nu araph isspe syno per l hites dth s e l v h rt p p ty m up w o wi ati artic i n e r s e zer lex in p alt r pe ling

Attack

Figure 4: Left: cell +F, norm→norm. Right: cell +F, norm→raw. Rows: generator×domain (top), generator×attack (middle), domain×attack (bottom). TPR@1 % FPR.

F-rn Generator×Domain with features, raw train / norm inference

100

97

99

78

100

98

99

99

chatgpt

100

98

100

64

100

99

99

100

cohere

95

66

86

61

100

79

83

88

cohere

94

68

91

56

100

83

89

93

cohere-chat

99

88

92

77

100

77

93

92

cohere-chat

99

91

95

77

100

79

95

95

gpt2

100

92

94

87

98

97

93

93

gpt2

100

97

98

93

99

99

97

98

gpt3

98

90

93

75

100

90

96

90

gpt3

98

90

97

76

100

90

97

94

gpt4

100

93

97

83

100

95

98

94

gpt4

100

94

100

75

100

99

100

99

llama-chat

100

96

99

89

100

100

98

97

llama-chat

100

98

100

84

100

100

99

99

mistral

99

88

85

81

99

94

88

87

mistral

98

89

89

83

99

96

91

90

mistral-chat

100

98

99

90

100

98

99

93

mistral-chat

100

99

100

88

100

98

100

96

mpt

99

89

91

89

99

94

92

87

mpt

99

89

92

90

99

95

94

89

mpt-chat

100

97

99

90

100

97

99

97

mpt-chat

100

99

100

89

100

97

99

98

pes

dit

s

i wik

pes

dit red

s

wik

100

60

try poe

i rec

red

iew rev

Domain

0

60

boo

try

i rec

chatgpt 96

96

98

99

97

97

99

96

94

94

97

93

chatgpt 94

95

95

99

95

95

99

94

93

92

95

95

cohere 86

86

75

88

86

86

78

87

83

84

84

63

cohere 85

84

86

87

86

85

80

86

81

83

86

86

cohere-chat 92

93

92

93

92

92

87

93

88

91

92

92

gpt2 98

98

98

98

98

98

92

98

97

98

98

98

gpt3 94

93

94

94

94

93

86

94

90

93

94

94

gpt4 95

94

96

99

96

96

98

96

94

92

96

96

llama-chat 97

98

98

99

98

98

98

98

96

96

98

98

mistral 93

94

93

93

93

93

80

93

93

93

93

93

100

cohere-chat 93

93

84

93

93

93

86

93

89

92

92

76

gpt2 98

98

83

98

98

98

91

98

98

98

98

76

gpt3 94

94

89

95

94

94

86

94

91

94

93

83

gpt4 96

96

91

99

97

97

98

97

96

94

98

81

llama-chat 98

98

98

99

98

98

98

98

97

96

99

92

mistral 93

94

84

93

93

93

80

93

94

94

92

78

mistral-chat 98

98

96

99

98

98

96

98

97

98

99

88

mistral-chat 98

98

98

99

98

98

96

98

96

97

98

98

mpt 94

95

88

94

94

94

85

95

95

95

94

86

mpt 94

95

94

94

94

94

85

94

94

94

94

94

mpt-chat 98

99

96

99

99

99

93

98

98

98

99

90

mpt-chat 98

98

98

99

98

98

92

98

97

98

98

98

60 40

Generator

80

20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

100 80 60 40 20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

Attack

Attack

F-rr Domain×Attack with features, raw train / raw inference

F-rn Domain×Attack with features, raw train / norm inference

abstracts 99

99

99

99

99

99

99

99

99

99

99

100

books 95

95

86

96

96

96

88

96

93

90

94

74

news 97

98

88

97

97

97

92

97

97

98

96

78

poetry 86

87

78

92

87

87

77

86

82

86

89

68

60

recipes 100 100

99

100

100

100

98

100

100

100

100

99

40

reddit 96

96

91

96

96

96

91

96

94

96

95

87

reviews 97

97

89

97

97

97

91

97

97

96

97

82

wiki 95

96

87

95

95

95

86

95

95

96

95

79

100

Domain

TPR@1% FPR

80

abstracts 99

99

99

99

99

99

99

99

99

99

99

99

books 93

93

95

95

95

95

88

94

91

86

95

95

news 97

98

97

97

97

97

92

97

97

98

97

97

poetry 82

83

83

90

83

83

77

82

76

82

83

83

60

recipes 100 100 100 100 100 100

98

100

100

100

100

100

40

reddit 96

96

96

96

96

96

91

96

94

97

96

96

reviews 97

97

97

97

97

97

91

97

97

96

97

97

wiki 96

97

96

96

96

96

88

96

96

97

96

96

20

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati artic e xi ern zer ins ple alt per

Attack

0

i

ew

i rev

20

F-rn Generator×Attack with features, raw train / norm inference

TPR@1% FPR

Generator

poe

Domain

F-rr Generator×Attack with features, raw train / raw inference

Domain

s new

ks

cts

tra

abs

40

TPR@1% FPR

new

boo

20

80

0

100 80

TPR@1% FPR

s

ks

cts

tra

abs

40

Generator

80

100

TPR@1% FPR

chatgpt

TPR@1% FPR

Generator

F-rr Generator×Domain with features, raw train / raw inference

20 0

on lyph aphs none ber rase lling nym ower pace pace l eti m spe e del omog aragr nu araph isspe syno per l hites dth s e l v h rt p p ty m up w o wi ati artic i n e r s e zer lex in p alt r pe ling

Attack

Figure 5: Left: cell +F, raw→raw. Right: cell +F, raw→norm. Rows: generator×domain (top), generator×attack (middle), domain×attack (bottom). TPR@1 % FPR.

N-nr Generator×Domain no features, norm train / raw inference

100

100

100

98

100

98

100

100

chatgpt

85

83

83

81

84

82

83

83

cohere

71

86

83

85

99

75

90

94

cohere

60

72

69

68

83

62

75

79

cohere-chat

91

93

92

86

99

70

96

95

cohere-chat

80

78

77

68

83

58

80

80

gpt2

98

97

96

77

97

92

94

98

gpt2

86

81

81

60

83

78

80

84

gpt3

87

96

94

74

100

80

96

94

gpt3

76

80

78

57

83

67

80

78

gpt4

99

99

99

98

100

97

100

100

gpt4

84

83

82

82

84

81

83

83

llama-chat

100

99

99

98

100

100

100

100

llama-chat

86

83

83

81

85

83

83

83

mistral

94

94

85

77

98

92

89

93

mistral

87

81

72

63

84

81

76

81

mistral-chat

99

99

99

96

100

96

100

97

mistral-chat

85

83

83

79

84

80

83

81

mpt

95

93

91

82

98

92

93

92

mpt

82

78

76

66

85

78

78

77

mpt-chat

99

99

99

96

100

91

99

99

mpt-chat

84

82

83

79

84

75

83

82

pes

dit

s

i wik

pes

dit red

s

wik

100

60

try poe

i rec

red

iew rev

Domain

0

60

boo

try

i rec

chatgpt 100 100 100 100 100 100

97

100

99

100 100 100

chatgpt 100 100

4

100 100 100

97

100

99

100 100

0

cohere 88

66

89

77

93

cohere 88

90

3

87

87

87

65

89

77

93

87

0

cohere-chat 92

93

8

91

92

92

77

92

84

94

92

0

gpt2 94

95

18

94

94

94

81

94

93

97

94

2

gpt3 91

87

87

87

87

87

87

cohere-chat 92

93

92

92

92

92

77

93

85

95

92

92

gpt2 94

96

94

94

94

94

81

95

94

97

94

94

gpt3 92

92

91

91

91

91

76

92

86

95

91

91

gpt4 100 100 100 100 100

99

95

100

98

100 100 100

llama-chat 100 100 100 100 100 100

95

100

99

100 100 100

100 80 60 40

Generator

90

20

91

7

91

91

91

76

91

85

94

91

0

gpt4 100 100

3

100 100

99

95

99

98

100 100

0

llama-chat 100 100

6

100 100 100

95

100

99

100 100

0

mistral 92

93

32

91

91

91

69

92

91

95

91

7

mistral 92

94

92

92

92

92

69

93

91

95

92

92

mistral-chat 99

99

99

99

99

99

92

99

98

99

99

99

mistral-chat 99

99

6

99

99

99

91

99

98

99

99

0

mpt 93

94

93

93

93

93

77

93

93

95

93

93

mpt 93

94

14

93

93

93

77

93

93

95

93

1

mpt-chat 99

99

99

99

99

99

86

99

97

99

99

99

mpt-chat 99

99

5

99

99

99

86

99

97

99

99

0

0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

100 80 60 40 20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

Attack

Attack

N-nn Domain×Attack no features, norm train / norm inference

N-nr Domain×Attack no features, norm train / raw inference

abstracts 96

96

95

95

95

95

90

96

95

97

95

95

books 97

98

97

97

97

97

85

98

95

99

97

97

news 96

96

95

95

95

95

84

96

94

96

95

95

poetry 90

91

90

90

90

90

62

90

87

95

90

90

60

recipes 100 100 100 100 100

99

94

100

100

100

100

100

40

reddit 93

94

92

92

92

92

77

93

86

95

92

92

reviews 97

98

97

97

97

97

84

98

95

98

97

97

wiki 97

97

97

97

97

97

88

97

97

98

97

97

100

Domain

TPR@1% FPR

80

abstracts 96

96

34

96

96

96

90

96

95

97

96

5

books 98

98

5

98

98

98

86

98

96

99

98

0

news 96

96

6

95

96

96

84

96

94

97

96

0

poetry 88

89

3

88

88

88

58

89

84

93

88

0

60

recipes 100 100

16

100

100

99

94

100

100

100

100

3

40

reddit 93

94

8

92

92

92

77

93

86

96

92

0

reviews 97

98

7

97

97

97

85

98

95

98

97

0

wiki 97

97

10

97

97

97

88

97

97

98

97

0

20

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati artic e xi ern zer ins ple alt per

Attack

0

i

ew

i rev

20

N-nr Generator×Attack no features, norm train / raw inference

TPR@1% FPR

Generator

poe

Domain

N-nn Generator×Attack no features, norm train / norm inference

Domain

s new

ks

cts

tra

abs

40

TPR@1% FPR

new

boo

20

80

0

100 80

TPR@1% FPR

s

ks

cts

tra

abs

40

Generator

80

100

TPR@1% FPR

chatgpt

TPR@1% FPR

Generator

N-nn Generator×Domain no features, norm train / norm inference

20 0

on lyph aphs none ber rase lling nym ower pace pace l eti m spe e del omog aragr nu araph isspe syno per l hites dth s e l v h rt p p ty m up w o wi ati artic i n e r s e zer lex in p alt r pe ling

Attack

Figure 6: Left: cell −F, norm→norm. Right: cell −F, norm→raw. Rows: generator×domain (top), generator×attack (middle), domain×attack (bottom). TPR@1 % FPR.

N-rn Generator×Domain no features, raw train / norm inference

100

98

95

95

100

96

99

98

chatgpt

100

100

100

98

100

99

100

100

cohere

79

89

77

83

100

75

86

89

cohere

77

97

89

87

100

79

94

96

cohere-chat

93

93

84

88

100

72

93

92

cohere-chat

93

97

93

91

100

74

97

96

gpt2

96

94

89

91

97

95

93

93

gpt2

99

99

97

95

98

98

98

98

gpt3

91

98

89

88

100

87

98

91

gpt3

90

99

98

89

100

87

99

95

gpt4

97

95

91

93

100

90

97

94

gpt4

99

100

99

97

100

97

100

100

llama-chat

99

98

95

96

100

98

99

97

llama-chat

100

100

100

99

100

100

100

99

mistral

95

95

80

87

98

93

90

91

mistral

95

98

88

90

99

94

94

94

mistral-chat

98

97

94

94

100

95

99

91

mistral-chat

99

100

99

98

100

97

100

97

mpt

94

95

88

91

99

93

93

90

mpt

95

98

91

93

99

94

96

93

mpt-chat

98

96

93

94

100

93

98

95

mpt-chat

99

99

99

97

100

94

99

99

pes

dit

s

i wik

pes

dit red

s

wik

100

60

try poe

i rec

red

iew rev

Domain

0

60

boo

try

i rec

chatgpt 100 100

94

100 100 100

98

100 100 100 100

81

chatgpt 100 100 100 100 100 100

98

100

99

100 100 100

cohere 92

65

91

75

93

52

cohere 91

94

90

90

90

91

77

92

89

95

90

90

cohere-chat 93

95

93

93

93

93

84

94

91

96

93

93

gpt2 98

99

98

98

98

98

92

98

98

99

98

98

gpt3 95

96

95

95

95

95

88

95

93

97

95

95

gpt4 99

100

99

99

99

99

96

100

99

100

99

99

llama-chat 100 100 100 100 100 100

97

100 100 100 100 100

91

91

90

95

91

cohere-chat 94

95

79

93

93

94

83

94

92

96

93

67

gpt2 98

99

79

98

98

98

91

99

98

99

98

67

gpt3 95

96

88

95

95

95

88

95

94

97

95

77

gpt4 100 100

81

99

99

99

95

100

99

100

99

67

llama-chat 100 100

96

100 100 100

96

100 100 100 100

82

mistral 95

97

82

95

95

95

79

95

96

97

95

74

mistral-chat 99

99

90

99

99

99

95

99

99

99

99

74

mpt 96

97

85

95

96

96

85

96

96

97

96

82

mpt-chat 99

99

93

99

99

99

90

99

99

99

99

75

100 80 60 40

Generator

94

20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

mistral 95

97

95

95

95

95

80

95

96

97

95

95

mistral-chat 99

99

99

99

99

99

95

99

99

99

99

99

mpt 95

97

95

95

95

96

86

96

96

97

95

95

mpt-chat 99

99

99

99

99

99

90

99

98

99

99

99

100 80 60 40 20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

Attack

Attack

N-rr Domain×Attack no features, raw train / raw inference

N-rn Domain×Attack no features, raw train / norm inference

abstracts 97

97

94

97

97

97

93

97

96

98

97

87

books 99

100

87

99

99

99

93

99

99

100

99

74

news 96

98

71

96

96

96

85

97

96

98

96

46

poetry 96

97

84

96

96

96

78

96

96

97

96

69

60

recipes 100 100

99

100

100

100

97

100

100

100

100

98

40

reddit 95

96

85

95

95

95

85

96

93

97

95

72

reviews 98

99

87

98

98

98

91

99

98

99

98

78

wiki 97

98

82

97

97

97

89

97

97

98

97

67

100

Domain

TPR@1% FPR

80

abstracts 96

97

96

96

96

96

92

96

96

98

96

96

books 99

100

99

99

99

99

94

99

99

100

99

99

news 96

98

96

96

96

96

87

97

96

98

96

96

poetry 96

97

96

96

96

96

78

96

95

97

96

96

60

recipes 100 100 100 100 100 100

97

100

100

100

100

100

40

reddit 94

96

94

94

94

94

85

95

92

96

94

94

reviews 98

99

98

98

98

98

93

99

98

99

98

98

wiki 97

98

97

97

97

97

90

97

97

98

97

97

20

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati artic e xi ern zer ins ple alt per

Attack

0

i

ew

i rev

20

N-rn Generator×Attack no features, raw train / norm inference

TPR@1% FPR

Generator

poe

Domain

N-rr Generator×Attack no features, raw train / raw inference

Domain

s new

ks

cts

tra

abs

40

TPR@1% FPR

new

boo

20

80

0

100 80

TPR@1% FPR

s

ks

cts

tra

abs

40

Generator

80

100

TPR@1% FPR

chatgpt

TPR@1% FPR

Generator

N-rr Generator×Domain no features, raw train / raw inference

20 0

on lyph aphs none ber rase lling nym ower pace pace l eti m spe e del omog aragr nu araph isspe syno per l hites dth s e l v h rt p p ty m up w o wi ati artic i n e r s e zer lex in p alt r pe ling

Attack

Figure 7: Left: cell −F, raw→raw. Right: cell −F, raw→norm. Rows: generator×domain (top), generator×attack (middle), domain×attack (bottom). TPR@1 % FPR.

R-rn Generator×Domain RoBERTa-large, raw train / norm inference

99

100

100

92

99

94

100

100

chatgpt

1

38

100

99

100

61

100

53

cohere

50

80

75

58

98

54

88

89

cohere

0

43

99

95

100

84

96

75

cohere-chat

83

88

80

63

99

48

95

93

cohere-chat

1

38

99

91

100

63

94

66

gpt2

94

90

89

79

94

91

96

94

gpt2

0

46

99

91

99

78

97

88

gpt3

70

88

86

41

99

62

96

87

gpt3

0

12

99

95

100

54

99

70

gpt4

96

99

98

81

99

90

100

97

gpt4

3

16

100

98

100

64

100

79

llama-chat

100

99

99

88

99

98

100

99

llama-chat

1

11

100

98

100

31

100

71

mistral

90

90

84

69

97

88

94

89

mistral

0

43

99

93

100

83

97

87

mistral-chat

98

99

98

88

99

91

100

96

mistral-chat

2

19

100

92

100

50

99

66

mpt

93

91

87

78

96

90

95

90

mpt

0

65

94

89

99

93

96

87

mpt-chat

97

97

97

88

99

76

98

98

mpt-chat

1

45

100

94

100

84

99

67

pes

dit

s

i wik

pes

dit red

s

wik

100

60

try poe

i rec

red

iew rev

Domain

0

60

boo

try

i rec

chatgpt 99

99

99

99

99

99

90

99

98

99

99

99

chatgpt 69

69

66

65

66

67

84

69

71

71

66

66

cohere 76

72

76

76

76

76

54

77

68

85

76

76

cohere 74

77

74

76

74

75

65

74

74

76

74

74

cohere-chat 68

69

68

72

68

69

71

69

68

70

68

68

gpt2 74

76

74

77

74

74

72

75

77

76

74

74

gpt3 65

67

64

64

64

66

66

68

72

67

65

64

gpt4 68

69

67

76

67

67

83

68

72

70

67

67

llama-chat 61

63

60

67

60

61

85

62

65

63

61

60

mistral 76

76

76

76

76

76

66

76

77

77

76

76

100

cohere-chat 83

80

83

83

83

83

65

84

77

88

83

83

gpt2 92

91

92

92

92

92

74

93

90

95

92

92

gpt3 81

77

81

81

81

81

60

80

74

84

81

81

gpt4 96

96

96

96

96

96

84

96

94

97

96

96

llama-chat 99

99

99

99

99

99

87

99

98

99

99

99

mistral 90

88

90

90

90

90

62

91

87

94

90

90

mistral-chat 98

97

98

98

98

98

81

98

96

98

98

98

mistral-chat 63

65

63

70

63

64

82

64

67

66

63

63

mpt 91

90

92

92

92

91

71

92

90

94

92

92

mpt 79

79

79

79

79

79

68

79

79

79

79

79

mpt-chat 96

96

97

97

97

96

69

96

94

97

97

97

mpt-chat 73

74

72

73

72

73

77

74

76

74

72

72

60 40

Generator

80

20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

100 80 60 40 20 0

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati rtic e xi ern a zer ins ple alt per

Attack

Attack

B-rn Domain×Attack BERT-large, raw train / norm inference

R-rn Domain×Attack RoBERTa-large, raw train / norm inference

abstracts 92

90

92

92

92

92

77

92

90

95

92

92

books 95

94

95

95

95

95

77

95

92

97

95

95

news 93

91

93

93

93

93

73

93

90

95

93

93

poetry 81

80

82

82

82

81

38

81

76

84

82

82

60

recipes 99

99

99

99

99

99

83

99

99

99

99

99

40

reddit 85

83

85

85

85

85

68

85

79

90

85

85

reviews 97

97

97

97

97

97

88

98

96

98

97

97

wiki 95

94

96

96

96

95

80

95

93

97

96

96

abstracts

100

Domain

TPR@1% FPR

80

1

1

1

0

1

1

2

1

1

1

1

1

books 30

34

29

39

29

29

77

32

37

32

30

29

news 99

99

99

99

99

99

94

99

99

99

99

99

poetry 96

96

95

96

95

95

76

95

95

95

95

95

60

recipes 100 100 100 100 100 100

98

100

100

100

100

100

40

reddit 67

68

65

71

65

65

82

68

72

70

65

65

reviews 99

98

99

99

99

99

90

98

97

99

99

99

wiki 73

77

70

80

70

75

78

75

82

81

71

70

20

r r s e e e e n h g g llin etio lyp aph non umbe hras pellin onym lowe spac spac spe e del omog aragr n arap iss syn per hite dth e i l p v h rt p w ow p ty m u ati artic e xi ern zer ins ple alt per

Attack

0

i

ew

i rev

20

R-rn Generator×Attack RoBERTa-large, raw train / norm inference

TPR@1% FPR

Generator

poe

Domain

B-rn Generator×Attack BERT-large, raw train / norm inference

Domain

s new

ks

cts

tra

abs

40

TPR@1% FPR

new

boo

20

80

0

100 80

TPR@1% FPR

s

ks

cts

tra

abs

40

Generator

80

100

TPR@1% FPR

chatgpt

TPR@1% FPR

Generator

B-rn Generator×Domain BERT-large, raw train / norm inference

20 0

on lyph aphs none ber rase lling nym ower pace pace l eti m spe e del omog aragr nu araph isspe syno per l hites dth s e l v h rt p p ty m up w o wi ati artic i n e r s e zer lex in p alt r pe ling

Attack

Figure 8: Left: cell BERT, raw→norm. Right: cell RoBERTa, raw→norm. Rows: generator×domain (top), generator×attack (middle), domain×attack (bottom). TPR@1 % FPR.

chatgpt

100

100

100

98

100

99

100

100

cohere

77

97

89

87

100

79

94

96

cohere-chat

93

97

93

91

100

74

97

96

gpt2

99

99

97

95

98

98

98

98

gpt3

90

99

98

89

100

87

99

95

gpt4

99

100

99

97

100

97

100

100

llama-chat

100

100

100

99

100

100

100

99

mistral

95

98

88

90

99

94

94

94

mistral-chat

99

100

99

98

100

97

100

97

mpt

95

98

91

93

99

94

96

93

mpt-chat

99

99

99

97

100

94

99

99

it

s ew i v re

wik

80 60

cts

ra bst

a

100

ks

boo

s

new

ry

t poe

es

ip rec

Domain

d red

40

TPR@1% FPR

Generator

N-rn Generator×Domain no features, raw train / norm inference

20 0

i

Figure 9: The configuration we report (−F, raw→norm) at full size: generator×domain, TPR@1 % FPR.

chatgpt 100 100 100 100 100 100

98

100

99

100 100 100

cohere 91

94

90

90

90

91

77

92

89

95

90

90

cohere-chat 93

95

93

93

93

93

84

94

91

96

93

93

gpt2 98

99

98

98

98

98

92

98

98

99

98

98

gpt3 95

96

95

95

95

95

88

95

93

97

95

95

gpt4 99

100

99

99

99

99

96

100

99

100

99

99

llama-chat 100 100 100 100 100 100

97

100 100 100 100 100

mistral 95

97

95

95

95

95

80

95

96

97

95

95

mistral-chat 99

99

99

99

99

99

95

99

99

99

99

99

mpt 95

97

95

95

95

96

86

96

96

97

95

95

mpt-chat 99

99

99

99

99

99

90

99

98

99

99

99

100 80 60 40

TPR@1% FPR

Generator

N-rn Generator×Attack no features, raw train / norm inference

20 0

r r s ling letion glyph raph none mbe hrase elling onym lowe space space l e sp e de omo arag nu arap issp syn per hite dth e l v h i p ty m p up w o wi at artic rt i n e r x s e zer le in p alt r pe

Attack

Figure 10: The configuration we report (−F, raw→norm) at full size: generator×attack, TPR@1 % FPR.

abstracts 96

97

96

96

96

96

92

96

96

98

96

96

books 99

100

99

99

99

99

94

99

99

100

99

99

news 96

98

96

96

96

96

87

97

96

98

96

96

poetry 96

97

96

96

96

96

78

96

95

97

96

96

60

recipes 100 100 100 100 100 100

97

100

100

100

100

100

40

reddit 94

85

95

92

96

94

94

96

94

94

94

94

100 80

TPR@1% FPR

Domain

N-rn Domain×Attack no features, raw train / norm inference

20

reviews 98

99

98

98

98

98

93

99

98

99

98

98

wiki 97

98

97

97

97

97

90

97

97

98

97

97

0

r r s ling letion glyph raph none mbe hrase elling onym lowe space space l e sp e de omo arag nu arap issp syn per hite dth e l v h i p ty m p c up w o wi t rti t a r i n e a er ex zer l ins p alt per

Attack

Figure 11: The configuration we report (−F, raw→norm) at full size: domain×attack, TPR@1 % FPR.

Related documents

Record · ID 1160957 · SHA-256 885016cdf69e1ea5
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive