atlas

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

DNA-GPT: Divergent N-Gram Analysis for Training-Free Detection of GPT-Generated Text

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 DNA-GPT, a training-free zero-shot detector that truncates a text, regenerates the remainder with an LLM several times, and scores divergence via n-gram overlap (black-box) or log-probability ratio (white-box).

Problem

Detecting whether a given text was generated by a known GPT-family LLM, especially closed API models where token probabilities are unavailable and trained classifiers fail to generalize to new models, domains, revisions, and non-English text.

Approach

Truncate the candidate text at a ratio, have the LLM regenerate the remainder K times from the prefix, and measure how similar the original remainder is to the regenerations: machine text reproduces itself closely (high n-gram overlap / likelihood), while human text diverges. The BScore (n-gram) works in black-box and WScore (log-likelihood ratio) in white-box, and the overlapping n-grams double a

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DNA-GPT instead of the supervised GPTZero and OpenAI classifierGPT-4-0314 black-box detection · Reddit-ELI5AUROC: 94.50 -> 99.63; 71.64 -> 99.63Helped
Use DNA-GPT instead of the supervised GPTZero and OpenAI classifierGPT-3.5-turbo black-box detection · XsumAUROC: 90.79 -> 97.12; 94.74 -> 97.12Helped
Use DNA-GPT white-box instead of DetectGPTtext-davinci-003 detection · Reddit-ELI5AUROC: 54.21 -> 99.99Helped
Use DNA-GPT black-box rather than GPTZero or OpenAI classifierLLaMa-13B detection · RedditAUROC: 84.34 -> 91.20; 66.74 -> 91.20Helped
Set γ=0.5 rather than γ=0.7 (ablation)DNA-GPT, GPT-4-0314 black-box · Reddit-ELI5TPR at 1% FPR: 87.34 -> 91.00Helped
Set γ=0.5 rather than γ=0.7 (ablation)DNA-GPT, GPT-3.5-turbo black-box · Scientific AbstractsAUROC: 98.02 -> 99.65Helped
Remove the golden prompt (ablation)DNA-GPT, GPT-4-0314 black-box · XsumTPR at 1% FPR: 30.13 -> 32.67Hurt
Remove the golden prompt (ablation)DNA-GPT, GPT-3.5-turbo black-box · XsumTPR at 1% FPR: 52.48 -> 62.67Helped
Remove the golden prompt (ablation)DNA-GPT, text-davinci-003 black-box · XsumTPR at 1% FPR: 51.00 -> 65.00Helped
Remove the golden prompt (ablation)DNA-GPT, text-davinci-003 white-box · XsumTPR at 1% FPR: 100.00 -> 99.00Hurt
Use 10 re-generations instead of 20 (ablation)DNA-GPT detection · Four datasetsAUROCMixed
Set the starting n-gram length n₀ to 1 or 6 rather than 4 (ablation)DNA-GPT black-box · Reddit, PubMedQA, and XsumAUROC: 93.07; 92.60; 93.06Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Reddit ELI5 Scientific Abstracts PubMedQA XSum WMT16 English and German WikiText-103

Benchmarks: Reddit ELI5 Scientific Abstracts PubMedQA XSum WMT16 German WikiText-103

Metrics: AUROC TPR at 1% FPR F1 accuracy

Baselines: GPTZero OpenAI text classifier DetectGPT

Builds on: DetectGPT GPTZero OpenAI text classifier LeCam's lemma

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