Papers › DetectRL: Benchmarking LLM-Generated Text Detection in Real-World Scenarios

DetectRL: Benchmarking LLM-Generated Text Detection in Real-World Scenarios

31 Oct 2024arXiv:2410.23746archive 2025-07-28

Junchao Wu, Runzhe Zhan, Derek F. Wong, Shu Yang, Xinyi Yang, Yulin Yuan, Lidia S. Chao

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 advanced prompt usages, human revisions like word substitutions, and writing errors. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2410.23746")

Code

Syntology Ran 1 of 16 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 16 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nlp2ct/detectrl officialmentioned in papermentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 1 ran; 1 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
15unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from NLP2CT/DetectRL. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

lexical_diversity NLP2CT/DetectRL/Analysis/benchmark_statistics/statistics_lexical_diversity.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · accb4f4eb000e081 · report
bt_translation nlp2ct/detectrl/Data_Generation/data_generation.py official repository unverified no licence file found · pointer only · 125ca1328bad554f · report
chat_deepinfra nlp2ct/detectrl/Data_Generation/Chat_API.py official repository unverified no licence file found · pointer only · 3173c07643d9b286 · report
chat_openai nlp2ct/detectrl/Data_Generation/Chat_API.py official repository unverified no licence file found · pointer only · 71794aa47e77d1cc · report
count_masks nlp2ct/detectrl/Detectors/DetectGPT.py official repository unverified no licence file found · pointer only · 23c3416429f69fee · report
get_bm25_retriver nlp2ct/detectrl/Data_Generation/data_generation.py official repository unverified no licence file found · pointer only · 0178d9374b7ab0be · report
get_ll nlp2ct/detectrl/Detectors/loss.py official repository unverified no licence file found · pointer only · e2fc29bd5a992600 · report
get_lls nlp2ct/detectrl/Detectors/loss.py official repository unverified no licence file found · pointer only · d0cd5a24eb8ebb54 · report
get_sampling_discrepancy_analytic nlp2ct/detectrl/Detectors/Fast_DetectGPT.py official repository unverified no licence file found · pointer only · cd334919390112d3 · report
get_sentences_in_paragraph nlp2ct/detectrl/Data_Generation/data_mixing.py official repository unverified no licence file found · pointer only · e86e359f633b93cb · report
get_text_crit nlp2ct/detectrl/Detectors/Fast_DetectGPT.py official repository unverified no licence file found · pointer only · c3a387dd367bcfa3 · report
read_data nlp2ct/detectrl/Data_Generation/DIPPER.py official repository unverified no licence file found · pointer only · 0af108cefcec3d33 · report
replace_masks nlp2ct/detectrl/Detectors/DetectGPT.py official repository unverified no licence file found · pointer only · cd67487f05408843 · report
sample_multiple_of_four nlp2ct/detectrl/Data_Generation/data_mixing.py official repository unverified no licence file found · pointer only · e4e96676b2972694 · report
spilt_paragraph nlp2ct/detectrl/Data_Generation/DIPPER.py official repository unverified no licence file found · pointer only · 150e39aff29a1dc7 · report
tokenize_and_mask nlp2ct/detectrl/Detectors/DetectGPT.py official repository unverified no licence file found · pointer only · 6bef9b8781ddec1a · report

Tasks

BenchmarkingLLM-generated Text DetectionText Detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections