Skip to main content
QUICK REVIEW

[论文解读] On the Possibilities of AI-Generated Text Detection

Souradip Chakraborty, Amrit Singh Bedi|arXiv (Cornell University)|Apr 10, 2023
Topic ModelingComputer Science被引用 51
一句话总结

本研究证明在多份样本的情况下,AI 生成文本的检测通常是可行的,推导了样本复杂度界限,并在多个数据集和检测器上通过实验验证了理论。

ABSTRACT

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.

研究动机与目标

  • 评估在现实分布下,人类文本与机器文本之间的分布差异是否能在实践中检测出 AI 生成文本。
  • 推导在 IID 与非 IID 设置下检测 AI 生成文本的样本复杂度界限。
  • 通过多数据集、多种大型语言模型和检测器的经验验证,说明实际可检测性。

提出的方法

  • 将检测问题建模为人类文本分布 h(s) 与机器文本分布 m(s) 之间的二元假设检验。
  • 使用 Le Cam 引理将检测误差与总变差 TV(m,h) 联系起来,并通过似然比检测器推导 AUROC 的上界。
  • 证明收集 n 个独立同分布样本会使 TV(m^{⊗n},h^{⊗n}) 指数增长,从而在任意 delta>0 的情况下实现较高的 AUROC。
  • 证明基于似然比的检测器达到 AUROC 界,并给出以中值化的样本复杂度结果(定理 1)。
  • 将结果推广到具有相关性参数 rho 和分组结构的非 IID 设置(定理 2)。
  • 通过在 XSum、Squad、IMDb、Kaggle FakeNews 上使用如 GPT-2、GPT-3.5-Turbo、Llama 变体等生成器,以及 RoBERTa 基检测器和 ZeroGPT 等检测器的实验来验证理论。

实验结果

研究问题

  • RQ1在人类文本与机器文本之间的分布接近度现实的情况下,AI 生成文本在实践中是否可检测?
  • RQ2在 IID 与非 IID 条件下,样本数量如何影响检测器的性能(AUROC)?
  • RQ3在 AI 文本检测中实现目标 AUROC 的理论样本复杂度界限是什么?
  • RQ4在标准数据集上的经验结果是否与提出的信息论界限以及多个检测器和生成器一致?

主要发现

  • AUROC 上界通过 TV(m^{⊗n},h^{⊗n}) 指数增长,随样本数量 n 增加而增大。
  • 基于似然比的检测器达到 AUROC 上界,并且在此任务中是最优的。
  • 定理 1:当 TV(m,h)=δ>0(IID 情况)时,要实现目标 AUROC ε,n = Ω((1/δ^2) log(1/(1−ε)))。
  • 定理 2 将结果扩展到带有额外依赖项的非 IID 设置,依赖于样本间的相关性(ρ 与 c_j)。
  • 在 XSum 和 Squad 的经验结果表明,AUROC 随序列长度/样本数量增加从大约 58% 提升至 97%(使用不同的检测器和生成器)。
  • 零-shot 和改写鲁棒性实验表明,随着样本增多检测性能提高,尽管改写会使 AUROC 下降大约 15%。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。