Measuring Artifact Reliance in Machine-Generated Text Detectors
Organizations: Advacheck OÜ Tallinn, Estonia · Moscow State University Moscow, Russia
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.
Figures & tables
| Subset | Raw | Norm. | fmt-only | len-only | TF-IDF | ||
| SemEval24 arXiv | 20,000 | 0.997 | 0.729 | 0.268 | 0.997 | 0.503 | 0.880 |
| M4 arXiv | 20,000 | 0.995 | 0.746 | 0.249 | 0.996 | 0.635 | 0.917 |
| COLING25 arXiv | 20,000 | 0.951 | 0.752 | 0.199 | 0.943 | 0.613 | 0.916 |
| M4 PeerRead | 5,860 | 0.959 | 0.954 | 0.005 | 0.822 | 0.780 | 0.998 |
| SemEval24 PeerRead | 4,714 | 0.941 | 0.914 | 0.027 | 0.709 | 0.541 | 0.947 |
| COLING25 PeerRead | 6,600 | 0.854 | 0.839 | 0.015 | 0.708 | 0.488 | 0.967 |
| Dataset | DeBERTa | Perpl. | Perturb. |
| CHEAT | 0.892 | 0.901 | 0.908 |
| COLING25 (arXiv) | 0.824 | 0.733 | 0.868 |
| COLING25 (PeerRead) | 0.680 | 0.804 | 0.946 |
| GPABench2 (CS) | 0.781 | 0.834 | 0.984 |
| GPABench2 (Physics) | 0.767 | 0.795 | 0.998 |
| IDMGSP | 0.759 | 0.745 | 0.965 |
| HC3 | GPT-2 | RADAR | ||||||||
| Subset | fmt | rec | flip | unc | rec | flip | unc | rec | flip | unc |
| SemEval24 arXiv | 0.997 | 0.318 | 0.453 | +0.200 | 0.420 | 0.343 | +0.137 | 0.226 | 0.177 | 0.006 |
| M4 arXiv | 0.996 | 0.366 | 0.579 | +0.267 | 0.512 | 0.230 | +0.121 | 0.334 | 0.054 | 0.019 |
| COLING25 arXiv | 0.943 | 0.444 | 0.423 | +0.207 | 0.380 | 0.347 | +0.138 | 0.262 | 0.115 | +0.013 |
| M4 PeerRead | 0.822 | 0.224 | 0.312 | +0.097 | 0.752 | 0.003 | +0.002 | 0.978 | 0.000 | 0.002 |
| IDMGSP (rev.) | 0.785 | 0.478 | 0.339 | 0.862 | 0.005 | 0.005 | 0.634 | 0.035 | +0.046 | |
| Subset | surface probe | RoBERTa | DeBERTa |
| M4 arXiv | 0.995 | 0.996 | 0.687 |
| SemEval24 arXiv | 0.997 | 0.997 | 0.711 |
| COLING25 arXiv | 0.951 | 0.995 | 0.773 |
| Backbone | Cond. | in-domain | OOD | |
| RoBERTa | rand , raw | 0.986 0.004 | 0.666 0.004 | 0.320 |
| clust , raw | 0.981 0.003 | 0.662 0.014 | 0.320 | |
| + norm. | 0.907 0.009 | 0.692 0.010 | 0.216 | |
| + debias | 0.836 0.010 | 0.657 0.018 | 0.179 | |
| DeBERTa | rand , raw | 0.884 0.030 | 0.653 0.024 | 0.231 |
| clust , raw | 0.878 0.021 | 0.649 0.012 | 0.229 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Competition | Metric | Best result |
| SemEval24 Mono | Accuracy | 0.975 |
| SemEval24 Multi | Accuracy | 0.959 |
| COLING25 Mono | Macro-F 1 | 0.8307 |
| COLING25 Multi | Macro-F 1 | 0.7916 |
| Subset | exact | near |
| M4 PeerRead | 40.0% | 50.0% |
| M4 arXiv | 35.2% | 49.5% |
| COLING25 PeerRead | 28.0% | 55.1% |
| COLING25 arXiv | 7.7% | 15.7% |
| SemEval24 PeerRead | 1.3% | 2.7% |
| SemEval24 arXiv | 0.00% | 0.01% |
| Subset | Document type | Median tokens H / M | #Gen. | Generators | ||
| M4-based datasets | ||||||
| M4 arXiv | abstracts | 15,000 | 15,000 | 198 / 180 | 5 | gpt-3.5-turbo, text-davinci-003, cohere, dolly-v2-12b, flan-t5 |
| M4 PeerRead | peer reviews | 2,930 | 2,930 | 2173 / 1026 | 5 | chatgpt, davinci, cohere, dolly-v2, flan-t5 |
| SemEval24 arXiv | abstracts | 15,498 | 11,999 | 194 / 194 | 4 | chatGPT, davinci, cohere, dolly |
| SemEval24 PeerRead | peer reviews | 2,357 | 9,374 | 197 / 238 | 4 | chatGPT, davinci, cohere, dolly |
| COLING25 arXiv | abstracts | 22,484 | 30,684 | 192 / 178 | 12 | + gpt4o, gpt4, llama3-70b/8b, gemma2-9b, gemma-7b, mixtral-8x7b, bloomz |