arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2301.11305cs.CLcs.AI
收藏

DetectGPT:利用概率曲率的零样本机器生成文本检测

DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvature

Stanford University(斯坦福大学)

Eric Mitchell, Yoonho Lee, Alexander Khazatsky, Christopher D. Manning, Chelsea Finn

AI总结:

针对大语言模型生成文本的检测需求,该研究提出基于对数概率曲率的DetectGPT零样本检测方法,无需训练分类器或水印,在假新闻检测任务上显著优于现有零样本基线。

摘要:

大语言模型(LLM)的流畅性日益提升且应用愈发广泛,凸显了开发辅助检测LLM生成文本的相应工具的必要性。本文指出了LLM概率函数的一项结构特性,可用于此类检测任务。具体而言,我们证明从LLM中采样得到的文本往往处于模型对数概率函数的负曲率区域。基于这一观察,我们定义了一种新的基于曲率的判别准则,用于判断一段文本是否由给定LLM生成。我们将该方法命名为DetectGPT,它无需训练单独的分类器,无需收集真实或生成文本的数据集,也无需对生成文本添加显式水印。它仅使用目标模型计算的对数概率,以及由另一个通用预训练语言模型(如T5)生成的文本随机扰动。实验发现,DetectGPT在模型样本检测方面比现有零样本方法更具判别力,值得注意的是,对于由200亿参数的GPT-NeoX生成的假新闻文章,最强零样本基线的AUROC为0.81,而DetectGPT的AUROC提升至0.95。代码、数据及其他项目信息详见https://ericmitchell.ai/detectgpt。

英文摘要:

The increasing fluency and widespread usage of large language models (LLMs) highlight the desirability of corresponding tools aiding detection of LLM-generated text. In this paper, we identify a property of the structure of an LLM's probability function that is useful for such detection. Specifically, we demonstrate that text sampled from an LLM tends to occupy negative curvature regions of the model's log probability function. Leveraging this observation, we then define a new curvature-based criterion for judging if a passage is generated from a given LLM. This approach, which we call DetectGPT, does not require training a separate classifier, collecting a dataset of real or generated passages, or explicitly watermarking generated text. It uses only log probabilities computed by the model of interest and random perturbations of the passage from another generic pre-trained language model (e.g., T5). We find DetectGPT is more discriminative than existing zero-shot methods for model sample detection, notably improving detection of fake news articles generated by 20B parameter GPT-NeoX from 0.81 AUROC for the strongest zero-shot baseline to 0.95 AUROC for DetectGPT. See https://ericmitchell.ai/detectgpt for code, data, and other project information.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑