Lune

EMNLP Findings2025

How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Study

Matthieu Dubois, François Yvon, Pablo Piantanida

Abstract

As texts generated by Large Language Models (LLMs) are ever more common and often indistinguishable from human-written content, research on automatic text detection has attracted growing attention.Many recent detectors report near-perfect accuracy, often boasting AUROC scores above 99%.However, these claims typically assume fixed generation settings, leaving open the question of how robust such systems are to changes in decoding strategies.In this work, we systematically examine how sampling-based decoding impacts detectability, with a focus on how subtle variations in a model's (sub)word-level distribution affect detection performance.We find 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.Our findings expose critical blind spots in current detection methods and emphasize the need for more comprehensive evaluation protocols.To facilitate future research, we release a large-scale dataset encompassing 37 decoding configurations, along with our code and evaluation framework https://github.com/ BaggerOfWords/Sampling-and-Detection.t y p ic a l: 0 .3t y p ic a l: 0 .5 t y p ic a l: 0 .7 t y p ic a l: 0 .8t y p ic a l: 0 .9t y p ic a l: 0 .9 5 e t a : 1 e -4 e t a : 1 e -3 e t a : 5 e -3 e t a : 0 .0 1 e t a : 0 .0 5 e t a : 0 .1 m ix t u r e : 4 7 .0temp: 0.5 temp: 0.7 temp: 0.9 temp: 1.0

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature cites Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
  • Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense cites The Curious Case of Neural Text Degeneration
  • Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text cites Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defense
  • Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
  • Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text cites Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvature
  • Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvature cites DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on25

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  2. DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability CurvatureEric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning et al.ICML 2023 · 988 citations
  3. Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defenseKalpesh Krishna, Yixiao Song, Marzena Karpinska, John Wieting et al.NeurIPS 2023 · 657 citations
  4. Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability CurvatureGuangsheng Bao, Yanbin Zhao, Zhiyang Teng, Linyi Yang et al.ICLR 2024 · 311 citations
  5. Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated TextAbhimanyu Hans, Avi Schwarzschild, Valeriia Cherepanova, Hamid Kazemi et al.ICML 2024 · 262 citations

Related papers

  1. TempParaphraser: "Heating Up" Text to Evade AI-Text Detection through ParaphrasingJunjie Huang, Ruiquan Zhang, Jinsong Su, Yidong ChenEMNLP 2025
  2. Automatic Detection of Generated Text is Easiest when Humans are FooledDaphne Ippolito, Daniel Duckworth, Chris Callison-Burch, Douglas EckACL 2020 · 21 citations
  3. Zero-Shot Detection of LLM-Generated Text using Temperature SensitivityShixuan Ma, Jiahao Li, Zhendong Mao, Quan WangACL 2026
  4. On the Generalization of Training-based ChatGPT Detection MethodsHan Xu, Jie Ren, Pengfei He, Shenglai Zeng et al.EMNLP Findings 2024 · 9 citations
  5. DualCodeDetect: Zero-Shot LLM-Generated Code Detection via Dual-Channel PerturbationZhengdao Li, Xiuwei Shang, Zhenkan Fu, Shikai Guo et al.FSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines