atlas

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

Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvature

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Zero-shot machine-text detection · 20 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.

Proposes Fast-DetectGPT, a zero-shot machine-generated text detector that replaces DetectGPT's perturbation step with conditional probability curvature computed via token-wise sampling from a sampling model, achieving ~340x speedup and ~75% relative AUROC gains.

Problem

Zero-shot detection of machine-generated text with DetectGPT is accurate but requires around 100 perturbation and scoring model calls per passage, making it computationally prohibitive.

Approach

Defines conditional probability curvature, comparing log p(x|x) for the passage against the expected log-probability of alternative tokens sampled conditionally per position from a sampling model; a single sampling pass and one scoring pass replace DetectGPT's many perturbation and scoring calls, and the expectation can be computed analytically.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace DetectGPT perturbation-based scoring with conditional probability curvatureZero-shot machine-generated text detection · 5-model generations, white-boxAUROC: 0.9554 -> 0.9887; relative↑ 74.7%Helped
Replace DetectGPT perturbation-based scoring with conditional probability curvatureZero-shot machine-generated text detection · 5-model generations, black-boxAUROC: 0.8736 -> 0.9677; relative↑ 74.5%Helped
Replace DetectGPT with Fast-DetectGPTZero-shot machine-generated text detection · XSum news dataset, Tesla A100speedup: 340xHelped
Use GPT-J rather than the source model as the sampling model (ablation)Fast-DetectGPT in the white-box setting · XSum, SQuAD, and WritingPrompts; three source modelsAUROC: +0.0020 AUROC; relative improvement of 27%Helped
Use GPT-2 as the sampling model instead of the source model (ablation)Fast-DetectGPT · XSum, SQuAD, and WritingPrompts; three source modelsAUROC: 0.9925 -> 0.9743Hurt
Use Neo-2.7 as the sampling model instead of the source model (ablation)Fast-DetectGPT · XSum, SQuAD, and WritingPrompts; three source modelsAUROC: 0.9925 -> 0.9755Hurt
Normalize conditional probability curvature by the sample standard deviation (ablation)Fast-DetectGPT · Detection experimentsAUROC: +0.0020; 10% relative improvementHelped
Calculate curvature analytically rather than using sampling approximation (ablation)Fast-DetectGPT · Detection experimentsAUROCNo clear effect
Calculate curvature analytically rather than using sampling approximation (ablation)Fast-DetectGPT · Detection experimentsspeedup: about 10%Helped
Include the entropy term in the curvature numerator (ablation)Fast-DetectGPT · Machine-generated text detectionAUROC: 65%Helped

Surprising findings

Limitations

Experimental setup

Datasets: XSum SQuAD WritingPrompts WMT16 English WMT16 German PubMedQA

Benchmarks: XSum SQuAD WritingPrompts PubMedQA WMT16

Metrics: AUROC relative AUROC improvement inference speedup

Baselines: DetectGPT NPR DNA-GPT Likelihood Entropy LogRank LRR RoBERTa-base RoBERTa-large GPTZero

Builds on: DetectGPT NPR LRR DNA-GPT

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