Raidar: geneRative AI Detection viA Rewriting
Chengzhi Mao, Carl Vondrick, Hao Wang, Junfeng Yang
TL;DR
Raidar tackles AI-generated text detection by exploiting rewriting behavior: prompts prompt LLMs to rewrite input text and the method derives invariance, equivariance, and uncertainty signals from symbol-level edits. These signals feed a binary detector, enabling robust detection across domains and under adaptive evasion, without requiring access to LLM probability scores. Across six paragraph-level datasets and multiple generation models, Raidar yields substantial F1 gains over prior detectors (up to 29 points in-distribution and up to 32 points OOD) and remains effective when rewrites come from different models or are aimed at evasion. The approach is simple, model-agnostic for the generating side (black-box LLMs), robust to fine-tuning and non-native writing, and offers a practical path for auditing AI-generated content in education, publishing, and online platforms.
Abstract
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.
