Papers › Raidar: geneRative AI Detection viA Rewriting

Raidar: geneRative AI Detection viA Rewriting

23 Jan 2024arXiv:2401.12970archive 2025-07-28

Chengzhi Mao, Carl Vondrick, Hao Wang, Junfeng Yang

We find that large language models (LLMs) are more likely to modify human-written text than AI-generated text when tasked with rewriting. This tendency arises because LLMs often perceive AI-generated text as high-quality, leading to fewer modifications. We introduce a method to detect AI-generated content by prompting LLMs to rewrite text and calculating the editing distance of the output. We dubbed our geneRative AI Detection viA Rewriting method Raidar. Raidar significantly improves the F1 detection scores of existing AI content detection models -- both academic and commercial -- across various domains, including News, creative writing, student essays, code, Yelp reviews, and arXiv papers, with gains of up to 29 points. Operating solely on word symbols without high-dimensional features, our method is compatible with black box LLMs, and is inherently robust on new content. Our results illustrate the unique imprint of machine-generated text through the lens of the machines themselves.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2401.12970")

Code

Syntology Ran 8 of 10 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 8 ran with no contract checked.

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

cvlab-columbia/raidarllmdetect officialmentioned in papermentioned on GitHub report
jameslwang/raft mentioned on GitHubpytorch 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

10 samples harvested; 8 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

8ran
2unverified

Licence: 10 of the 10 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 cvlab-columbia/RaidarLLMDetect. “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.

GPT_self_prompt cvlab-columbia/RaidarLLMDetect/Arxiv/gen_fake_arxiv.py official repository ran no licence file found · pointer only · c4d3f42a15aeeb27 · report
GPT_self_prompt cvlab-columbia/RaidarLLMDetect/Arxiv/gen_gpt3weak_inv_rewrite.py official repository ran no licence file found · pointer only · 794bd23758356fb8 · report
common_elements cvlab-columbia/RaidarLLMDetect/histogram.py official repository ran no licence file found · pointer only · a4fc1609228faee5 · report
extract_ngrams cvlab-columbia/RaidarLLMDetect/histogram.py official repository ran fingerprinted no licence file found · pointer only · 079bb8b088818abf · report
rewrite_json cvlab-columbia/RaidarLLMDetect/Arxiv/gen_arxiv_equi.py official repository ran no licence file found · pointer only · e0ff484431e739bc · report
rewrite_json cvlab-columbia/RaidarLLMDetect/Arxiv/gen_arxiv_rewrite.py official repository ran no licence file found · pointer only · d42def8633eec110 · report
tokenize_and_normalize cvlab-columbia/RaidarLLMDetect/histogram.py official repository ran fingerprinted no licence file found · pointer only · 8af5d585e399971f · report
tokenize_and_normalize cvlab-columbia/raidarllmdetect/Arxiv/fake_gen_by_diff_diff_model/arxiv_gen_other_fake.py official repository ran fingerprinted no licence file found · pointer only · 0f60a6ff68c1e4af · report
GPT_self_prompt cvlab-columbia/RaidarLLMDetect/Arxiv/fake_gen_by_diff_diff_model/gen_inv_rewrite4detect.py official repository unverified no licence file found · pointer only · 235e87832f8a04cc · report
rewrite_json cvlab-columbia/RaidarLLMDetect/Arxiv/gen_gpt3weak_inv_rewrite.py official repository unverified no licence file found · pointer only · fc05dcecd6ea4278 · report

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