Skip to main content
QUICK REVIEW

[Paper Review] DetectRL: Benchmarking LLM-Generated Text Detection in Real-World Scenarios

Junchao Wu, Runzhe Zhan|arXiv (Cornell University)|Oct 31, 2024
Natural Language Processing TechniquesComputer Science4 citations
TL;DR

This paper introduces DetectRL, a new benchmark for evaluating LLM-generated text detection in real-world scenarios. By simulating realistic attack patterns—such as prompt engineering, human revisions, and adversarial perturbations—using diverse LLMs and human-written data across academic, news, and social media domains, the study reveals that even state-of-the-art zero-shot detectors suffer up to 34.48% average AUROC drop under adversarial attacks, highlighting critical gaps in robustness and generalization.

ABSTRACT

Detecting text generated by large language models (LLMs) is of great recent interest. With zero-shot methods like DetectGPT, detection capabilities have reached impressive levels. However, the reliability of existing detectors in real-world applications remains underexplored. In this study, we present a new benchmark, DetectRL, highlighting that even state-of-the-art (SOTA) detection techniques still underperformed in this task. We collected human-written datasets from domains where LLMs are particularly prone to misuse. Using popular LLMs, we generated data that better aligns with real-world applications. Unlike previous studies, we employed heuristic rules to create adversarial LLM-generated text, simulating various prompts usages, human revisions like word substitutions, and writing noises like spelling mistakes. Our development of DetectRL reveals the strengths and limitations of current SOTA detectors. More importantly, we analyzed the potential impact of writing styles, model types, attack methods, the text lengths, and real-world human writing factors on different types of detectors. We believe DetectRL could serve as an effective benchmark for assessing detectors in real-world scenarios, evolving with advanced attack methods, thus providing more stressful evaluation to drive the development of more efficient detectors. Data and code are publicly available at: https://github.com/NLP2CT/DetectRL.

Motivation & Objective

  • To evaluate the performance of state-of-the-art LLM-generated text detectors in realistic, practical application scenarios beyond idealized test conditions.
  • To identify real-world factors—such as writing style, model type, attack method, text length, and human revisions—that impact detector robustness and generalization.
  • To develop a comprehensive benchmark that incorporates diverse attack patterns and realistic data distributions to stress-test detection systems.
  • To provide a publicly available benchmark that evolves with emerging attack techniques, driving the development of more resilient detection methods.

Proposed method

  • Collected human-written datasets from high-risk domains prone to LLM misuse, including academic writing, news, creative writing, and social media.
  • Generated LLM-generated text using powerful, widely used models (e.g., GPT-3.5-turbo, PaLM-2-bison, Claude-instant, Llama-2-70b) to ensure realism.
  • Applied heuristic rules to simulate real-world adversarial behaviors, including prompt-based attacks, word substitutions, and intentional writing errors.
  • Employed multiple attack strategies: prompt-based attacks, paraphrasing, adversarial perturbations, and data mixing to increase detection difficulty.
  • Balanced data distributions across domains, LLMs, and attack types to ensure diversity and realism in test scenarios.
  • Used varying-length augmentation to broaden text length coverage, enhancing practical relevance.
Figure 1: The overall framework of DetectRL . Human-written samples are collected from high-risk and abuse-prone domains. We employ widely-used and powerful LLMs to create LLM-generated samples. All samples undergo well-designed attacks to simulate real-world scenarios and a varying length augmentat
Figure 1: The overall framework of DetectRL . Human-written samples are collected from high-risk and abuse-prone domains. We employ widely-used and powerful LLMs to create LLM-generated samples. All samples undergo well-designed attacks to simulate real-world scenarios and a varying length augmentat

Experimental results

Research questions

  • RQ1How do state-of-the-art LLM-generated text detectors perform in real-world application scenarios that include human-like revisions and adversarial prompting?
  • RQ2What real-world factors—such as writing style, model type, attack method, and text length—most significantly affect detector performance and generalization?
  • RQ3To what extent do adversarial perturbation attacks degrade the performance of zero-shot versus supervised detectors?
  • RQ4How does the inclusion of human-written text revisions and errors influence detector robustness?
  • RQ5Does the length of training and test data impact detector effectiveness, and if so, how?

Key findings

  • Adversarial perturbation attacks reduced the average AUROC performance of all zero-shot detectors by 34.48%, indicating severe vulnerability to subtle input manipulations.
  • Supervised detectors demonstrated significantly more robust detection capabilities across diverse domains, LLMs, and attack types compared to zero-shot methods.
  • Shorter training data improved detector robustness, while longer test sequences enhanced detection performance, suggesting length-aware design is critical.
  • Human-written text revisions, including word substitutions and minor errors, had minimal negative impact on detectors and sometimes even improved performance.
  • Informal writing styles and distinct statistical patterns inherent to LLM outputs were key factors undermining detector generalization and reliability.
  • The benchmark revealed that current detectors fail to generalize effectively under realistic, complex attack conditions commonly found in real-world applications.
DetectRL: Benchmarking LLM-Generated Text Detection in Real-World Scenarios

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.