[Paper Review] On the Possibilities of AI-Generated Text Detection
The paper proves that AI-generated text detection is generally possible with multiple samples, derives sample-complexity bounds, and validates the theory with experiments across several datasets and detectors.
Our work addresses the critical issue of distinguishing text generated by Large Language Models (LLMs) from human-produced text, a task essential for numerous applications. Despite ongoing debate about the feasibility of such differentiation, we present evidence supporting its consistent achievability, except when human and machine text distributions are indistinguishable across their entire support. Drawing from information theory, we argue that as machine-generated text approximates human-like quality, the sample size needed for detection increases. We establish precise sample complexity bounds for detecting AI-generated text, laying groundwork for future research aimed at developing advanced, multi-sample detectors. Our empirical evaluations across multiple datasets (Xsum, Squad, IMDb, and Kaggle FakeNews) confirm the viability of enhanced detection methods. We test various state-of-the-art text generators, including GPT-2, GPT-3.5-Turbo, Llama, Llama-2-13B-Chat-HF, and Llama-2-70B-Chat-HF, against detectors, including oBERTa-Large/Base-Detector, GPTZero. Our findings align with OpenAI's empirical data related to sequence length, marking the first theoretical substantiation for these observations.
Motivation & Objective
- Assess whether AI-generated text can be detected in practice across various distributions of human and machine text.
- Derive sample complexity bounds for detecting AI-generated text under IID and non-IID settings.
- Provide empirical validation using multiple datasets, LLMs, and detectors to illustrate practical detectability.
Proposed method
- Model the detection problem as a binary hypothesis test between human and machine text distributions h(s) and m(s).
- Use Le Cam’s lemma to relate detection error to the total variation TV(m,h) and derive an upper bound on AUROC via likelihood-ratio detectors.
- Show that collecting n i.i.d. samples inflates TV(m^{⊗n},h^{⊗n}) exponentially with n, enabling high AUROC for any delta>0.
- Prove that a likelihood-ratio-based detector attains the AUROC bound and provide centered sample-complexity results (Theorem 1).
- Extend results to non-IID settings with a dependence parameter rho and group structure (Theorem 2).
- Validate theory with experiments on XSum, Squad, IMDb, Kaggle FakeNews using generators such as GPT-2, GPT-3.5-Turbo, Llama variants, and detectors like RoBERTa-based detectors and ZeroGPT.
Experimental results
Research questions
- RQ1Is AI-generated text detectable in practice under realistic distributional proximity between human and machine text?
- RQ2How does the number of samples affect detector performance (AUROC) under IID and non-IID conditions?
- RQ3What are the theoretical sample-complexity bounds for achieving a target AUROC in AI text detection?
- RQ4Do empirical results on standard datasets align with the proposed information-theoretic bounds across multiple detectors and generators?
Key findings
- AUROC upper bound grows exponentially with the number of samples n, via TV(m^{⊗n},h^{⊗n}).
- A likelihood-ratio-based detector attains the AUROC bound and is optimal for this task.
- Theorem 1: To achieve a target AUROC epsilon, n = Ω((1/δ^2) log(1/(1−ε))) when TV(m,h)=δ>0 (IID case).
- Theorem 2 extends to non-IID settings with additional terms dependent on dependence across samples (ρ and c_j).
- Empirical results on XSum and Squad show AUROC improving from about 58% to 97% as sequence length/number of samples increases (with various detectors and generators).
- Zero-shot and paraphrase-robust experiments indicate detection performance improves with more samples, though paraphrasing reduces AUROC by roughly 15%.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.