How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Study
Matthieu Dubois, François Yvon, Pablo Piantanida · ArXiv.org · 2025
AI-generated evidence extraction, verified across multiple analytical personas. Not a substitute for the peer-reviewed original.
This is an AI analysis. Read the peer-reviewed original at the publisher: https://doi.org/10.48550/arxiv.2510.13681
Methodology & findings
Study design
Comprehensive empirical study combining supervised and unsupervised text detection methods evaluated on a large-scale dataset.
Main result
The study found that "even minor adjustments to decoding parameters - such as temperature, top-p, or nucleus sampling - can severely impair detector accuracy, with AUROC dropping from near-perfect levels to 1% in some settings." More specifically, "state-of-the-art detection systems are highly sensitive to generation parameters—revealing drastic performance drops (e.g., AUROC from 0.99 to 0.01)—thus exposing critical blind spots in current benchmarks."
Research paradigm
Empirical-computational positivism
Author conclusions
The authors conclude: "In this work, we have presented a systematic study of how sampling-based decoding strategies affect the detectability of texts produced by large language models. Considering 37 different configurations—varying multiple generation parameters, we have shown that even modest adjustments in the (sub)word-level generation distribution can undermine state-of-the-art detectors, observing AUROC drops from near-perfect down to null simply by tuning the repetition-penalty. Our analysis sheds light on the underlying failure mechanisms: different sampling techniques induce distinctive distributional signatures (e.g., changes in token entropy or frequency tails) that current detectors are not able to recognize. This suggests that robustness in detection is still an open issue, both for supervised and unsupervised methods."
Risk of bias
Single language bias (English only); Single base model bias (Llama-3.2-3B); Limited detector architectures tested (one RoBERTa variant); Training-test split bias: supervised detector trained and tested on same generator model; Domain bias: human texts from specific sources (RAID dataset, BBC News, Common Crawl); Selection bias in decoding parameter choices; Training and test set used texts from same generator model (Llama-3.2-3B), potentially introducing model-specific bias; Overfitting risk in supervised detector to in-domain human training data (BBC News articles); Potential selection bias in choosing specific decoding parameter ranges from continuous spaces; Only English language evaluated, limiting generalizability; Single supervised architecture (RoBERTa-base) tested; Only two unsupervised methods evaluated; Limited to single language (English); Limited to single base model (Llama-3.2-3B); Single supervised architecture evaluated (RoBERTa); Only two unsupervised detectors tested; Domain mismatch in validation experiment (BBC News training vs. CCNews test) showed brittleness; Generation parameters selected based on availability in HuggingFace, not exhaustive coverage
Limitations
- "In this empirical study of the impact of the generation parameters and strategies used in text generation, we had to limit ourselves to a small number of parameters, and to a restricted set of values
- Likewise, our study only considered one supervised architectures, and two unsupervised models
- Finally, only text generation in English was considered, using Llama-3.2-3B
- These choices were made for the sake of limiting the computational expenses to a reasonable budget."
Open questions raised
- Need for more comprehensive evaluation protocols for detection methods
- Robustness of detection systems to advanced generation techniques such as Minimum Bayes Risk (MBR) decoding and Monte Carlo Tree Search (MCTS)
- Detection of texts generated across multiple languages
- Detection across different base language models beyond Llama-3.2-3B
- Understanding why two-model unsupervised methods require detector models to assign very similar probabilities
- Out-of-domain generalization for supervised detectors
Explore related topics
Related papers
- Estimating the reproducibility of psychological scienceAlexander A. Aarts · 2015 · 8,669 citations
- Academic Integrity considerations of AI Large Language Models in the post-pandemic era: ChatGPT and beyondMike Perkins · 2023 · 668 citations
- Comparing scientific abstracts generated by ChatGPT to real abstracts with detectors and blinded human reviewersCatherine A. Gao · 2023 · 657 citations
- ChatGPT and the rise of generative AI: Threat to academic integrity?Damian Eke · 2023 · 476 citations
- Nonhuman “Authors” and Implications for the Integrity of Scientific Publication and Medical KnowledgeAnnette Flanagin · 2023 · 399 citations
- Fabrication and errors in the bibliographic citations generated by ChatGPTWilliam H. Walters · 2023 · 352 citations