Abstract
Many commercial and open-source models claim to detect machine-generated text with extremely high accuracy (99% or more). However, very few of these detectors are evaluated on shared benchmark datasets and even when they are, the datasets used for evaluation are insufficiently challenging—lacking variations in sampling strategy, adversarial attacks, and open-source generative models. In this work we present RAID: the largest and most challenging benchmark dataset for machine-generated text detection. RAID includes over 6 million generations spanning 11 models, 8 domains, 11 adversarial attacks and 4 decoding strategies. Using RAID, we evaluate the out-of-domain and adversarial robustness of 8 open- and 4 closed-source detectors and find that current detectors are easily fooled by adversarial attacks, variations in sampling strategies, repetition penalties, and unseen generative models. We release our data along with a leaderboard to encourage future research.
Introduction
As Large Language Models (LLMs) become ubiquitous, the need to distinguish between human and machine-written text has become a high-stakes challenge for academia, journalism, and cybersecurity. While many commercial and open-source detectors claim accuracy rates exceeding 99%, these claims are often based on "easy" datasets that utilize default model settings and in-domain data.
The authors identify a significant "robustness gap," where current detectors fail to account for the diversity of real-world usage, including different generative models, varied decoding strategies, and intentional adversarial attacks.
The RAID Benchmark
To address these shortcomings, the researchers introduced RAID (Robust AI Detection), the largest and most comprehensive dataset for evaluating machine-generated text detectors to date. The benchmark consists of:
- 6.2 Million Generations: Spanning 11 different LLMs, including GPT-4, LLaMA 2 70B, and Mistral 7B.
- 8 Diverse Domains: Including News, Recipes, Poetry, Reddit, and Wikipedia.
- 11 Adversarial Attacks: Ranging from "Homoglyphs" (replacing Latin characters with identical-looking Cyrillic ones) to synonym swapping and whitespace manipulation.
- 4 Decoding Strategies: Testing the impact of random sampling and repetition penalties.
Additionally, RAID-extra provides 2.3 million additional samples covering Python code and multilingual text (Czech and German).
Methodology
The study systematically "stress-tested" 12 detectors (8 open-source, such as Binoculars and RADAR, and 4 closed-source, such as GPTZero and Originality). A critical methodological shift was the use of Accuracy at a fixed 5% False Positive Rate (FPR). This metric better reflects real-world requirements where false accusations against human authors are often more damaging than failing to detect AI-generated content.
Key Findings: The Fragility of Detection
The evaluation revealed that current detectors are remarkably brittle when faced with variations in generation or adversarial manipulation.
The Impact of Decoding Strategies
One of the most significant findings was that adding a repetition penalty—which forces the LLM to be less repetitive—makes the output appear much more "human" to statistical detectors. This simple adjustment caused accuracy to drop by as much as 32 points.
Generalization and Adversarial Vulnerability
Detectors were found to be "homebodies," performing well on their training models and domains but failing to generalize. For instance, a detector trained on GPT-2 News might achieve 95% accuracy but drop to 60% when evaluating LLaMA-generated movie reviews.
Adversarial attacks were even more devastating. The Homoglyph attack caused Originality's performance to plummet from 85% to 9.3%. While RADAR showed more resilience due to adversarial training, it remained vulnerable.
Conclusion
The RAID benchmark highlights that the "99% accuracy" claims of many detectors do not hold up under realistic, challenging conditions. As LLMs evolve, the "cat and mouse" game between generators and detectors will continue. The authors advocate for a shift toward "human-in-the-loop" systems and have released the raid-bench Python package and a public leaderboard to foster more robust research in this critical field.
Summary updated