atlas

Research map / Large language models / Language, safety and interpretability

Raidar: geneRative AI Detection viA Rewriting

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Zero-shot machine-text detection · 5 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Raidar detects machine-generated text by prompting GPT-3.5-Turbo to rewrite inputs and using edit-distance features (invariance, equivariance, uncertainty) with a simple classifier, outperforming zero-shot, GPTZero, DetectGPT and Ghostbuster on paragraph-level detection.

Problem

Detecting machine-generated paragraphs, especially short text, when token log-probabilities are unavailable (black-box LLMs such as GPT-3.5 and GPT-4) and high-dimensional detector features overfit.

Approach

LLM-generated text is edited less when an LLM is asked to rewrite it, so the character-level Levenshtein edit ratio of rewrites (under invariance, equivariance and output-uncertainty designs) serves as a symbolic, model-agnostic detection feature that needs only generated tokens, not logits.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use invariance rewriting features rather than the strongest listed baselineRaidar · CodeF1: 67.39 -> 95.38Helped
Use invariance rewriting features rather than the strongest listed baselineRaidar · Yelp ReviewsF1: 71.47 -> 87.75Helped
Use equivariance instead of invariance (ablation)Raidar · NewsF1: 60.29 -> 58.00Hurt
Use equivariance instead of invariance (ablation)Raidar · Creative WritingF1: 62.88 -> 60.27Hurt
Use equivariance instead of invariance (ablation)Raidar · Student EssayF1: 64.81 -> 60.07Hurt
Use equivariance instead of invariance (ablation)Raidar · CodeF1: 95.38 -> 80.55Hurt
Use equivariance instead of invariance (ablation)Raidar · Yelp ReviewsF1: 87.75 -> 83.50Hurt
Use output uncertainty instead of invariance (ablation)Raidar · NewsF1: 60.29 -> 60.27No clear effect
Use output uncertainty instead of invariance (ablation)Raidar · CodeF1: 95.38 -> 77.14Hurt
Train on multiple prompts instead of a single prompt (ablation)Raidar · Code, adaptive prompt 1F1: 34.15 -> 86.95Helped
Train on multiple prompts instead of a single prompt (ablation)Raidar · Yelp Reviews, no adaptive promptF1: 87.75 -> 58.04Hurt
Use GPT-3.5-Turbo rather than Ada for rewriting (ablation)Raidar · CodeF1: 77.42 -> 95.38Helped

Surprising findings

Limitations

Experimental setup

Datasets: Reuters 50-50 (News) WritingPrompts creative writing (Ghostbuster) British Academic Written English student essays (Ghostbuster) HumanEval (code) Yelp Reviews ICLR arXiv abstracts ASAP TOEFL essays

Benchmarks: News Creative Writing Student Essay Code Yelp Reviews Arxiv Abstract

Metrics: F1 score

Baselines: GPT Zero-Shot GPTZero DetectGPT Ghostbuster

Builds on: DetectGPT Ghostbuster Levenshtein distance

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy