Skip to content

RAID: a shared benchmark for robust evaluation of machine-generated text detectorsRAID: A Shared Benchmark for Robust Evaluation of Machine-Generated Text Detectors

arXiv· arXiv:2405.07940· Liam Dugan, Alyssa Hwang, Filip Trhlik, Josh Magnus Ludan, Andrew Zhu, Hainiu Xu, Daphne Ippolito, Chris Callison-BurchUniversity of Pennsylvania; University College London; King’s College London; Carnegie Mellon UniversityIndexed by this site · 25 days ago· Originally publishedSelected EvaluationSelectedAttention39

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors released RAID, a machine-generated text detection benchmark (6.2 million generated texts), evaluated 12 detectors, and found their accuracy drops substantially under sampling, repetition penalty and adversarial attacks.

Questions
Many machine-generated text detectors claim accuracy above 99%, but are rarely evaluated on shared benchmarks, and existing datasets lack variation in sampling strategies, adversarial attacks and open-source models, which the authors believe leads to overestimated accuracy.
Methods
The authors build the RAID benchmark: taking about 2000 human texts from each of 8 domains, generating 6.2 million texts with 11 generative models, 4 decoding strategies and 11 black-box query-free adversarial attacks, and evaluating 12 detectors at a fixed 5% false positive rate.
Experiments and results
Open-source detectors have very high false positive rates under naive thresholds (e.g., GLTR at 100% when τ=0.25); repetition penalty reduces accuracy by up to 32 percentage points; the effect of adversarial attacks varies by detector, and some attacks actually increase accuracy.
Limitations and future work
The authors note that the dataset lacks multi-domain multilingual text, will become outdated as models advance, and that public benchmarks themselves will be overfitted; the experiments cover 12 detectors, 11 generative models and 8 domains, and repetition penalty is used only for open-source models.
Experimental setupRoBERTa-Base (GPT2)、RoBERTa-Large (GPT2) et al. · RAID、RAID-extra · Accuracy at FPR=5%、False Positive Rate (FPR)
Evaluated models
RoBERTa-Base (GPT2)RoBERTa-Large (GPT2)RoBERTa-Base (ChatGPT)RADARGLTRFast DetectGPTLLMDetBinocularsGPTZeroOriginalityWinstonZeroGPT
Benchmarks
RAIDRAID-extra
Metrics
Accuracy at FPR=5%False Positive Rate (FPR)
AI summaryand selection rationaleResearchers release RAID, a benchmark for machine-generated text detection, containing more than 6 million generated texts, covering 11 models, 8 domains, 11 black-box adversarial attacks and 4 decoding strategies. After evaluating 8 open-source and 4 closed-source detectors with this benchmark, they find that detectors are easily fooled by adversarial attacks, sampling strategy changes, repetition penalties and unseen generative models, and adding a repetition penalty reduces accuracy by up to 32 percentage points. When using common default thresholds, open-source detectors, especially metric-based detectors, have excessively high false positive rates, while closed-source detectors all stay at or below 1.7%. The authors also release the dataset, hold out 10% unlabeled data as a hidden test set, and launch a public leaderboard; they additionally release RAID-extra, containing Python code, Czech and German news, totaling 2.3 million generated texts.

Researchers release RAID, a benchmark for machine-generated text detection, containing more than 6 million generated texts, covering 11 models, 8 domains, 11 black-box adversarial attacks and 4 decoding strategies. After evaluating 8 open-source and 4 closed-source detectors with this benchmark, they find that detectors are easily fooled by adversarial attacks, sampling strategy changes, repetition penalties and unseen generative models, and adding a repetition penalty reduces accuracy by up to 32 percentage points. When using common default thresholds, open-source detectors, especially metric-based detectors, have excessively high false positive rates, while closed-source detectors all stay at or below 1.7%. The authors also release the dataset, hold out 10% unlabeled data as a hidden test set, and launch a public leaderboard; they additionally release RAID-extra, containing Python code, Czech and German news, totaling 2.3 million generated texts.

Why it was selectedEvaluations on more than 6 million generated texts show that repetition penalty and random sampling reduce detector accuracy by up to 32 percentage points, which can serve as a reference when deploying detection tools.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Existing machine-generated text detectors lack a unified and challenging shared evaluation benchmark, and their accuracy is overestimated.

    Core problem: machine-generated text detectors claim accuracy above 99%, but there is a lack of shared, sufficiently challenging benchmarks to verify these claims.

    • Problem setting: LLM-generated text has been used in abuse scenarios such as phishing, spam and disinformation, and the authors believe reliable automatic detectors are needed to document and mitigate these harms.
    • Existing shortcomings: the authors point out that detector papers usually build their own evaluation data and do not test on shared resources; existing public datasets rarely include adversarial attacks, and none include decoding strategy variation (Table 1), leading to inflated accuracy and widespread researcher pessimism about detection.
    • Core observation: the authors believe that changes such as sampling strategy, repetition penalty, unseen generative models and simple black-box adversarial modifications cause marked drops in detector performance, and existing evaluations do not cover these dimensions.
    • Paper proposal: the RAID (Robust AI Detection) benchmark — over 6.2 million generated texts, covering 11 generative models, 8 domains, 11 adversarial attacks and 4 decoding strategies; used to evaluate 8 open-source and 4 commercial detectors, with a leaderboard and hidden test set also released.
    • Evaluation target setting: adversarial attacks assume the attacker has only one query and does not know the detector (black-box, query-free); detectors are selected in three categories — neural, metric-based, commercial — and compared by accuracy at a fixed 5% false positive rate.
  2. What related research exists?

    Related work includes public generated-text datasets, small-scale robustness studies and adversarial attack studies, and the authors state that RAID is the first benchmark to simultaneously cover all three types of variation.

    Public generated-text datasets

    • MAGE by Li et al. (2024) — 447k generations, 7 model families, 10 domains; the paper calls it the most similar work to this one; the difference is that this paper does not train its own neural detector but examines the generalization ability of off-the-shelf detectors.
    • Other resources each focus on a sub-area: MULTITuDE and M4 focus on multilingual, CCD on code, HC3, HC-Var and HC3 Plus on question answering, IMDGSP on scientific papers; AuTextification and RuATD are shared tasks (Table 1 summarizes 12 datasets).
    • The paper points out that these datasets rarely include adversarial attacks and none include decoding strategy variation (often not even listing the strategy used), and the authors believe they are insufficiently challenging and have encouraged inflated accuracy reports.

    Small-scale comparative studies

    • Such studies vary one factor at a time to compare detector accuracy, covering dimensions such as unseen generative models, domains, decoding strategies, prompts, repetition penalty and human editing (e.g., Ippolito et al., 2020; Fishchuk and Braun, 2023).

    Adversarial robustness studies

    • Existing work covers homoglyph, whitespace insertion, sentiment and fact modification, paraphrase attacks (Krishna et al., 2023; Sadasivan et al., 2023) and synonym substitution, among others; the authors state that this paper synthesizes elements from these robustness studies into a systematic benchmark.

    Baseline detectors evaluated

    • Neural: RoBERTa-Base/Large (GPT2), RoBERTa-Base (ChatGPT), RADAR; metric-based: GLTR, Binoculars, Fast DetectGPT, LLMDet; commercial: GPTZero, Originality, Winston, ZeroGPT — 12 in total, all evaluated on RAID and RAID-extra.

    The authors position this paper as synthesizing the above three lines of work into a single large-scale systematic benchmark, and state that RAID is the only released dataset that simultaneously covers diverse domains, sampling strategies and adversarial attacks (Table 1).

  3. How does the paper address this problem?

    Building the RAID benchmark: human texts from 8 domains paired with prompts, generating 6.2 million texts with 11 models × 4 decodings × 11 attacks, and evaluating 12 detectors at a fixed 5% false positive rate.

    Overall approach: first build a large-scale, multi-dimensionally varied generated-text dataset RAID, then use accuracy at a fixed false positive rate (FPR=5%) as a unified metric to evaluate the out-of-domain and adversarial robustness of 12 off-the-shelf detectors.

    Data construction process

    • Human texts: about 2000 documents each sampled from 8 target domains (Abstracts, Books, News, Poetry, Recipes, Reddit, Reviews, Wikipedia) from public datasets before 2022 to avoid contamination; Reviews has only 1143 documents (Table 9).
    • Prompts: zero-shot prompts, split into Chat templates (dialogue fine-tuned models) and Non-Chat templates (continuation models), with only the human document title dynamically filled in; the authors state they intentionally did not restrict length and style, and used multiple rounds of human review to reduce degenerate repetition and meta-commentary (Table 2, Appendix E.3).
    • Generative models: 11 models — GPT-2 XL, GPT-3 (text-davinci-002), ChatGPT (gpt-3.5-turbo-0613), GPT-4 (gpt-4-0613), Cohere command (generate and chat endpoints), MPT-30B (+ Chat), Mistral-7B (+ Chat), LLaMA 2 70B (Chat) (Table 10).

    Decoding strategies and adversarial attacks

    • Decoding: 4 outputs generated per prompt — greedy (temp=0), random sampling (temp=1, p=1), and each of the two with a repetition penalty (θ=1.2, following Keskar et al. 2019); only open-source models provide a repetition penalty interface, so closed-source models have only two decodings (Appendix E.5).
    • Adversarial attacks: 11 black-box, query-free attacks, assuming the attacker has only one query and does not know the detector; including Alternative Spelling, Article Deletion, Insert Paragraphs, Upper-Lower, Zero-Width Space, Whitespace, Homoglyph, Number Swap, Misspelling, Paraphrase (using the T5-11B rewriting model of Krishna et al. 2023), Synonym (based on BERT candidate words). Each attack applies only a small subset of available perturbations, with proportions determined by human review (Appendix E.4 gives full implementation details).
    • Post-processing: remove prompts, filter failed generations, and balance the data so that each human document corresponds to exactly one generation under each model, decoding strategy and attack.

    Evaluation method

    • Metric: detectors output a scalar score, binarized by threshold τ; for each detector the threshold is searched separately per domain so that the FPR on human texts in that domain is 5%, and the accuracy on machine-generated texts under this setting is reported (Appendix C, F.2).
    • Release structure: 10% of the data is released without labels as a hidden test set; RAID-extra (2.3 million entries, including three additional domains: Python Code, Czech News, German News) is also released; the leaderboard distinguishes whether training was done on RAID.
  4. What experiments did the paper conduct?

    Evaluating 12 detectors on RAID: open-source detectors have high false positive rates under naive thresholds, repetition penalty and adversarial attacks substantially reduce accuracy, and detectors are biased toward the models and domains seen during training.

    Experimental setup

    • Detectors evaluated: 12 — neural: RoBERTa-Base (GPT2), RoBERTa-Large (GPT2), RoBERTa-Base (ChatGPT), RADAR; metric-based: GLTR, Fast DetectGPT, LLMDet, Binoculars; commercial: GPTZero, Originality, Winston, ZeroGPT.
    • Data: the non-adversarial portion of RAID contains 509,014 generations and 14,971 human texts, and 6,287,820 entries including adversarial attacks; RAID-extra has 2.3 million entries (Python Code, Czech News, German News).
    • Metric and decision rule: detection accuracy at a fixed FPR=5%, with thresholds calibrated separately per domain; ZeroGPT cannot reach 5% FPR in multiple domains (marked *, Table 5, 13).
    • Comparison dimensions: decoding strategy (greedy/sampling ± repetition penalty), model groups (open-source/closed-source × chat/non-chat), domain, 11 adversarial attacks.

    Main results

    Table 5: accuracy (%) of each detector under different model groups and decoding strategies at FPR=5%, excerpt:

    Swipe horizontally to read the table

    DetectorOpen-source chat greedy no penaltyOpen-source chat sampling+penaltyOpen-source non-chat greedy no penaltyOpen-source non-chat sampling+penaltyClosed-source chat greedyClosed-source non-chat sampling
    R-L GPT279.719.598.553.461.448.6
    RADAR88.866.491.831.881.667.7
    F-DetectGPT98.640.597.80.696.086.3
    Binoculars99.960.699.90.699.295.0
    GPTZero98.882.574.74.892.353.4
    Originality98.672.599.951.296.885.4

    (According to Table 5; six rows omitted: R-B GPT2, R-B CGPT, GLTR, LLMDet, Winston, ZeroGPT, of which LLMDet is overall the lowest, e.g., only 16.5 for open-source chat sampling+penalty)

    • The authors state that adding repetition penalty reduces accuracy by up to 32 percentage points, independent of decoding strategy (Figure 5); each detector generally performs better under greedy decoding than under random sampling.
    • The authors state that some strong detectors drop from near-perfect to complete failure when only the generative model, decoding strategy or repetition penalty is changed, with error rates reaching over 95%.

    False positive rates under naive thresholds

    • What was tested: FPR when thresholds are not calibrated and common default values are used directly (Table 4).
    • Results: at τ=0.25, GLTR is 100%, LLMDet 97.9%, F-DetectGPT 47.3%; commercial detectors all do not exceed 1.71% (ZeroGPT), and Binoculars is 0.07%.
    • Authors' interpretation: open-source (especially metric-based) detectors have high false positive rates under naive thresholds, and practitioners are advised to calibrate on in-domain data before use; subsequent experiments uniformly switch to thresholds calibrated at FPR=5%.

    Adversarial attack robustness

    • What was tested: change in accuracy of 6 representative detectors under 11 attacks (Table 6; all 12 in Table 16).
    • Results: under the homoglyph attack, Originality drops from 85.0 to 9.3 (-75.7), while GPTZero drops only 0.3; the synonym attack reduces Binoculars by 36.1; paraphrase instead raises R-L GPT2 by 16.2 and Originality by 11.7.
    • Authors' interpretation: different detectors differ in vulnerability to attacks, making a general attack difficult without knowing the detector type; the authors believe attacks sometimes make the text more like the detector's training data, thereby increasing accuracy.

    Training data bias and out-of-domain generalization

    • Model × domain bias: RoBERTa-L GPT2 exceeds 95% accuracy on five domains of GPT2-generated text, but rarely exceeds 60% on text from other models in the same domains; RADAR performs poorly on the Reviews domain for all generative models (Figure 6). The authors conclude from this that detectors are biased toward the domains and models seen during training.
    • RAID-extra: metric-based detectors are overall better in code and multilingual domains — Binoculars overall accuracy 69.6, F-DetectGPT 62.7, while neural and commercial detectors are mostly 38–56 (Table 7); the authors speculate that metric-based methods can use any generative model to compute probabilities and are thus better suited to rare domains.

    Other ablations and analyses

    • Accuracy as a function of FPR: some detectors cannot reach low FPR, with ZeroGPT bottoming out at 16.9%, F-DetectGPT at 0.88%, Originality at 0.62% (Figure 4).
    • Under a single global threshold, FPR is uneven across domains: RADAR 20.4% on Reviews, GLTR 33.4% on Recipes (Table 8), so the authors calibrate separately per domain.
    • On non-adversarial text, base models are harder to detect than their chat versions (Table 15).
  5. What are some points that can be further explored?

    The authors note that the dataset lacks multilingual coverage, will become outdated, and that public benchmarks will be overfitted; the experiments cover 12 detectors and 11 generative models, and repetition penalty is tested only on open-source models.

    Limitations and future directions noted by the authors

    • Insufficient multilingual coverage (Limitations): The dataset lacks multi-domain multilingual text; the multilingual text in RAID-extra covers only the news domain; the authors encourage future work to extend the multilingual benchmark.
    • Data will become outdated (Limitations): As language models improve, generated-text datasets will naturally become outdated, requiring continuous maintenance, re-running of detectors, and updating of metrics; the authors plan to release updated versions irregularly.
    • Public benchmarks will be overfitted (Limitations): Public out-of-domain robustness benchmarks are inherently limited, and practitioners will specifically optimize for the aspects covered by the benchmark, causing accuracy to be overestimated again; the authors hope to mitigate this by periodically releasing new versions and keeping private hidden test sets.
    • Extend generation settings (Conclusion): The authors encourage future work to include more models, languages, and generation settings in the shared resource.
    • Other decoding strategies (Finding 3): Strategies such as contrastive, eta/epsilon, and typical sampling may similarly reduce detection accuracy, and the authors encourage future robustness research to examine them.
    • Zero-width space phenomenon (Appendix G.5): This attack appears to make detectors predict all positive or all negative, which the authors state requires future research.

    Scope of experimental coverage

    • 12 detectors were tested: 4 neural, 4 metric-based, 4 commercial (Section 5.1).
    • 11 generative models, 8 domains (main benchmark) + 3 (RAID-extra), 4 decoding strategies, 11 adversarial attacks (Figure 2).
    • Repetition penalty was varied only on open-source models, because OpenAI and Cohere provide different frequency/presence penalties (Section 3.5, Appendix E.5).
    • Adversarial attacks were limited to black-box, query-free, excluding gradient-based methods (Section 3.6).
    • The paper does not report standard deviations or number of repeated runs for each detector's results; commercial detectors are recorded only by version as of the query date (Appendix F.1).
  6. Summarize the main content of the paper

    RAID is a 6.2 million-item detection benchmark covering 11 models, 8 domains, 4 decoding methods and 11 attacks; the accuracy of 12 detectors drops substantially under sampling, repetition penalty and adversarial attacks.

    A benchmark paper on machine-generated text detection: the authors argue that existing detectors' claimed accuracy of over 99% lacks shared and challenging evaluation validation, so they build RAID and systematically evaluate 12 detectors.

    • Problem: Existing public datasets rarely contain adversarial attacks and do not include decoding strategy variations, which the authors argue leads to overestimated detector accuracy and widespread pessimism among researchers about detection.
    • Method: RAID takes approximately 2000 human texts from each of 8 domains to generate prompts, and uses 11 models, 4 decoding strategies, and 11 black-box query-free attacks to generate 6.2 million texts; evaluation uses a unified accuracy at FPR=5% calibrated by domain.
    • False positive rate: Open-source detectors have high false positive rates under naive thresholds—at τ=0.25, GLTR 100%, LLMDet 97.9%, while commercial detectors are all no more than 1.71% (Table 4).
    • Decoding impact: The authors state that adding repetition penalty reduces accuracy by up to 32 percentage points, and random sampling is harder to detect than greedy (Figure 5, Table 5).
    • Adversarial attacks: Effects vary by detector—homoglyph reduces Originality from 85.0 to 9.3, while GPTZero drops only 0.3; paraphrase instead improves some detectors (Table 6).
    • Conclusion: The authors argue that current detectors are not yet sufficient to support large-scale deployment or high-risk use, and that public, diverse, shared evaluation is essential for building trust in detection capabilities; they also note that detection is only a means, and identifying specific harmful content should take priority over judging whether it is machine-generated.
Read originalarxiv.org