Skip to content
AI.info

Research

Measuring Artifact Reliance in Machine-Generated Text Detectors

Overview Research area: Natural Language Processing — machine-generated text (MGT) detection, benchmark validity, and dataset artifacts. Technical level: Intermediate. The core idea (formatting confou

Measuring Artifact Reliance in Machine-Generated Text Detectors
arXiv
2610.13583
Published
2026-10-09
Authors
Anastasia Voznyuk, Andrey Grabovoy

AI summary

Overview

Research area: Natural Language Processing — machine-generated text (MGT) detection, benchmark validity, and dataset artifacts.

Technical level: Intermediate. The core idea (formatting confounds between human and machine documents) is intuitive, but the paper's diagnostic metrics (format counterfactuals, Artifact Reliance Score) and the transfer experiments involve some formal machinery.

Scope: The paper audits ten scientific-document subsets drawn from six MGT-detection benchmarks, shows that a content-free classifier over 27 surface features matches or beats real detectors, and introduces a content-preserving intervention for measuring how much a detector relies on formatting artifacts.

What This Paper Is About

Benchmarks for detecting machine-written text report near-perfect scores — shared-task systems above 0.97 accuracy, and over 99.9% accuracy reported on fully GPT-written abstracts in GPABench2 — even though text generators have kept improving. The authors argue that on several of these benchmarks, the apparent ease comes from how the datasets were assembled rather than from the detection task itself: human documents were scraped or converted and keep their original line breaks and punctuation, while machine documents came straight out of an API as clean text blocks. The goal is to quantify which benchmarks contain such a cue, and which detectors actually depend on it.

Key Contributions

  1. A surface-attribution analysis of ten scientific-document subsets from six resources, showing that content-independent stylistic features can match or exceed the corresponding shared-task winners, and identifying which surface dimensions carry the shortcut.
  2. Format counterfactuals and the Artifact Reliance Score — a content-preserving intervention and a model-agnostic measure of a detector's reliance on formatting when making machine-class decisions, requiring neither retraining nor access to model internals.
  3. The finding that artifact exploitability is tokenizer-dependent: SentencePiece-based models discard the whitespace cue, so detector scores on these benchmarks are not comparable across tokenizer families.
  4. Evidence that normalizing formatting before training improves cross-benchmark generalization by reducing reliance on document-construction artifacts, including when detectors trained on artifact-containing datasets are evaluated on format-clean benchmarks.

Main Findings

  • A content-free probe matches real detectors. A logistic regression over 27 superficial features (document, sentence and word lengths, type–token ratio, per-character rates of punctuation, digits, uppercase, whitespace runs, newlines and non-ASCII characters) reached macro-F1 between 0.833 and 0.997, and on the three arXiv subsets it outperformed every detector the authors evaluated with F1-scores of 0.951–0.997. On the arXiv subsets it beats a fine-tuned transformer by 0.18–0.31 macro-F1.

  • Four formatting features alone nearly separate the classes. Newline rate, whitespace-run rate, curly-quote rate and em-dash rate reach 0.996 AUC on the arXiv subsets. On 20,000-document subsets: SemEval24 arXiv fmt-only AUC 0.997, M4 arXiv 0.996, COLING25 arXiv 0.943.

  • The artifact has a mechanical explanation. Human arXiv abstracts keep source line wrapping, with median line length of 76 characters (consistent with 80-column limits), while generations arrived as unwrapped blocks with median line length 479–481. Every human abstract in M4 and SemEval24 contains a double space, against 2.2% and 2.0% of machine abstracts; the double-space predicate is a 99%-accurate classifier for SemEval-2024's arXiv subtask. Newlines appear in 100% of human documents against 53.1% and 66.3% of machine ones. In COLING-2025 the double-space gap was partly fixed (4.3% human against 6.8% machine) but the newline gap remained (90.6% against 26.3%).

  • Two distinct artifact families. The arXiv subsets carry a pipeline artifact: normalization costs the full probe 0.199–0.268 macro-F1. The abstract collections (GPABench2, CHEAT) are format-clean (fmt-only AUC 0.519–0.547) but lexically near-separable (TF-IDF 0.992–0.999), driven by a mean-word-length gap. Document length is not a confound except on IDMGSP and M4 peer reviews.

  • Format counterfactuals reverse real detector decisions. The abstract reports that re-wrapping a machine-written abstract without changing a single word reverses 20–27% of a public detector's correct decisions. In the results section, for chatgpt-detector-roberta, re-wrapping the lines of a machine-written arXiv abstract reverses 42–58% of its correct decisions relative to the placebo, with an unconditioned margin of +0.20 to +0.27. Ranking: the HC3 detector relies most on formatting, OpenAI's GPT-2 detector less, and adversarially trained RADAR does not rely at all (−0.004 on the arXiv subsets).

  • A reversed-artifact control supports the interpretation. IDMGSP is the one subset where machine introductions carry newlines (24%) and human ones do not (0%), and chatgpt-detector-roberta reverses sign there (−0.171, CI [−0.206, −0.138]), with imposing the machine profile flipping 41.8% of correct decisions against 7.9% for the human profile. CHEAT, whose classes do not differ in formatting, shows a null (−0.010, CI spanning zero).

  • The probe predicts artifact reliance but not transfer failure. Across the ten subsets, probe macro-F1 correlates with chatgpt-detector-roberta's ARS_net at ρ = 0.939 (p = 0.0001); formatting-only AUC at ρ = 0.770 (p = 0.0092); normalization drop at ρ = 0.673 (p = 0.0330); lexical TF-IDF does not (ρ = −0.552, p = 0.098). Against the generalization gap, every diagnostic is uninformative — probe macro-F1 ρ = −0.164 (p = 0.65), formatting-only AUC ρ = −0.236 (p = 0.51), ARS_net ρ = −0.333 (p = 0.35).

  • Exploitability depends on the tokenizer. DeBERTa-v3-base uses SentencePiece, which collapses whitespace runs and discards newlines, so raw and normalized documents give identical token sequences. Under a cluster-aware split on the arXiv subsets: surface probe 0.995–0.997, RoBERTa (byte-pair encoding) 0.995–0.997, DeBERTa-v3 0.687–0.773. On raw text, the byte-pair model reaches 0.995–0.997 in-domain on the arXiv subsets and 0.333 on every one of the four format-clean benchmarks — a complete collapse to single-class prediction.

  • Normalization trades in-domain score for generalization. Normalizing before training drops in-domain macro-F1 by 0.074 in aggregate (0.225 on the arXiv subsets) while raising decontaminated out-of-domain macro-F1 by 0.030, reducing the generalization gap from 0.320 to 0.216. Restricting to arXiv-trained models evaluated on four disjoint benchmarks, mean macro-F1 rises from 0.333 to 0.652 (+0.319), with gains of +0.411 (COLING25 arXiv), +0.347 (SemEval24 arXiv) and +0.197 (M4 arXiv). Subsets without a formatting artifact barely change.

  • Debiasing by reweighting fails here. Reweighting examples by the surface bias model degraded both in-domain (0.981 to 0.836) and out-of-domain (0.662 to 0.657). On the arXiv subsets the bias model reaches p_bias ≈ 0.99, giving near-zero weight to almost every example and collapsing to majority-class prediction (0.333 ± 0.000 for both backbones). Where the bias model is informative but not saturated, reweighting helps out-of-domain: GPABench2 CS 0.733 → 0.748, Physics 0.748 → 0.751, IDMGSP 0.669 → 0.684.

  • Duplication is real but does not inflate scores. M4 arXiv contains 2,999 duplicate groups of about five members each, summing to 15,002 rows (35.2% exact, 49.5% near duplication). Replacing the random split with a cluster-aware split changes in-domain macro-F1 by 0.005 (RoBERTa) and 0.006 (DeBERTa); a subset's duplicate rate does not predict its change (ρ = 0.34, p = 0.34). Even M4 arXiv moves only from 0.740 to 0.687. The authors call duplication a defect in effective dataset size, not a source of score inflation.

Methodology in Plain English

The authors first select datasets on four criteria: the documents must be scientific artifacts (abstracts, introductions or peer reviews); the task must be binary human-versus-machine; both classes must be present; and the machine class must be written from scratch from a title or prompt, because rewriting a human text conditions the generation on human writing. They keep only from-scratch regimes — the gpt-write task for GPABench2, the generation split for CHEAT — and all subsets are English.

On balanced samples of up to 10,000 documents per class, with 5-fold cross-validation and 1000-sample bootstrap intervals, they fit a logistic regression over 27 features that never look at word identity, giving an estimate of how far a detector can get without reading the text.

To test whether detectors actually use these cues, they build format counterfactuals. An operator is admissible if it changes formatting or punctuation but never the words — checkable mechanically, since source and transformed document must be character-identical once all non-alphanumeric characters are removed. A strip operator collapses whitespace runs and newlines and folds curly quotes and dashes to ASCII; an impose operator re-wraps lines, inserts double spaces after sentences and restores curly quotes and dashes according to a profile θ estimated separately on the human and machine documents of each subset.

The Artifact Reliance Score measures how often a human-profile edit reverses a correct machine-class decision, minus a placebo edit that imposes the machine profile instead. Because conditioning on correct decisions can inflate the effect, the authors also report Δ_net: the mean drop in machine score under the counterfactual minus the drop under the placebo, computed over all machine documents, which needs no decision threshold and is comparable across detector families. They report machine-class recall alongside, since a detector with low recall has little probability mass to move.

They evaluate three families: a fine-tuned DeBERTa-v3-base; zero-shot likelihood methods Binoculars and Fast-DetectGPT; and three public detectors not trained on these benchmarks (chatgpt-detector-roberta from HC3, roberta-base-openai-detector, and RADAR). Transfer experiments fine-tune RoBERTa and DeBERTa on each subset and test on the other nine, after excluding test documents that share a near-duplicate with the training subset.

Why This Matters

Impact on research: The paper provides a cheap, content-free check that dataset builders and benchmark consumers can run at release time, and a model-agnostic diagnostic for detecting format reliance without retraining or model internals. It reframes reported detector performance on several leading benchmarks as partly a property of data collection pipelines rather than of detection ability, and shows that scores are not comparable across tokenizer families.

Real-world applications:

  • Publishers, reviewers and archives need detectors they can trust; the paper cites an analysis of 15 million PubMed abstracts estimating that 13.5% of papers written in 2024 were LLM-assisted.
  • Benchmark and dataset maintainers can normalize surface form before release and publish a surface-probe score and per-feature AUCs with each resource.
  • Detector developers can check whether a deployed system relies on formatting before shipping it into a new domain.
  • Evaluation designers can avoid architectures that silently erase or exploit artifacts, and can report which tokenizer family a benchmark advantages.

Industry relevance: Model and detector vendors that publish accuracy numbers on

Authors’ abstract

Detectors of machine-generated text score almost perfectly on scientific-literature benchmarks, implying we can reliably distinguish with these detectors human and machine-generated documents. We looked at ten scientific-document subsets from six popular resources, and on several of them that apparent ease is a side effect of how the documents were put together. A logistic regression using 27 superficial features reached 0.833-0.997 macro-F1, and on the three arXiv subsets it outperformed every detector we evaluate with F1-scores 0.951-0.997. The strongest cue to the detector is the PDF extraction artifact: human texts retain their original line breaks, whereas generated texts are extracted as a single block of prose. This cue, together with three other formatting features, tell the classes apart at 0.996 AUC. To distinguish benchmarks that contain such a signal from detectors that rely on one, we introduce format counterfactuals: just re-wrapping a machine-written abstract without changing a single word reverses 20-27% of a public detector's correct decisions. Normalizing formatting before training reduces the generalization gap from 0.32 to 0.22. On format-clean benchmarks, it also raises out-of-domain macro-F1 from 0.33 to 0.65 for detectors trained on artifact-containing subsets.

Read the original paper