Skip to main content
QUICK REVIEW

[论文解读] DetectLLM: Leveraging Log Rank Information for Zero-Shot Detection of Machine-Generated Text

Jinyan Su, Terry Yue Zhuo|arXiv (Cornell University)|May 23, 2023
Topic ModelingComputer Science被引用 15
一句话总结

本文介绍了两个零样本检测器 DetectLLM-LRR 和 DetectLLM-NPR,利用对数似然和对数秩统计来检测机器生成文本,在零样本方法中实现了最先进的 AUROC 提升。

ABSTRACT

With the rapid progress of large language models (LLMs) and the huge amount of text they generated, it becomes more and more impractical to manually distinguish whether a text is machine-generated. Given the growing use of LLMs in social media and education, it prompts us to develop methods to detect machine-generated text, preventing malicious usage such as plagiarism, misinformation, and propaganda. Previous work has studied several zero-shot methods, which require no training data. These methods achieve good performance, but there is still a lot of room for improvement. In this paper, we introduce two novel zero-shot methods for detecting machine-generated text by leveraging the log rank information. One is called DetectLLM-LRR, which is fast and efficient, and the other is called DetectLLM-NPR, which is more accurate, but slower due to the need for perturbations. Our experiments on three datasets and seven language models show that our proposed methods improve over the state of the art by 3.9 and 1.75 AUROC points absolute. Moreover, DetectLLM-NPR needs fewer perturbations than previous work to achieve the same level of performance, which makes it more practical for real-world use. We also investigate the efficiency--performance trade-off based on users preference on these two measures and we provide intuition for using them in practice effectively. We release the data and the code of both methods in https://github.com/mbzuai-nlp/DetectLLM

研究动机与目标

  • 动机:由于在教育和媒体中广泛使用大语言模型,迫切需要可扩展的机器生成文本检测。
  • 提出无需训练即可使用、并利用对数秩统计区分人类文本与机器文本的零样本检测器。
  • 比较两种变体——LRR(快速)和 NPR(更高准确但更慢)——在多个数据集和模型上的表现。
  • 就实际部署中的效率与性能提供指导。
  • 发布数据和代码以实现可重复评估。

提出的方法

  • 将 Log-Likelihood Log-Rank Ratio (LRR) 定义为平均对数概率和平均标记秩信息的结合。
  • 定义归一化扰动对数秩(NPR)为基于扰动的分数,按原始对数秩进行归一化,并对文本进行小的改写。
  • 在白盒、零样本设置下使用 LRR 或 NPR 对文本进行分类,无需模型训练。
  • 在多个大型语言模型和数据集上,将两种方法与基线零样本检测器(log p、Rank、Log Rank、Entropy、DetectGPT)进行比较评估。
  • 分析解码策略(top-k、nucleus)和温度对性能的影响。
  • 讨论计算成本并提供在实际中平衡效率与准确性的实用指南。

实验结果

研究问题

  • RQ1对数秩信息能否增强对数似然信号,以提高对机器生成文本的零样本检测?
  • RQ2相对于现有零样本检测器,Log-Likelihood Log-Rank Ratio (LRR) 和 Normalized Perturbed Log-Rank (NPR) 在不同数据集和模型规模下的表现如何?
  • RQ3在使用无扰动与基于扰动的零样本方法时,存在怎样的效率-性能权衡?
  • RQ4解码策略和扰动设置如何影响检测准确性与实用性?
  • RQ5在资源约束和模型获取方面,能给出哪些现实世界部署的建议?

主要发现

  • LRR 与 NPR 在所有数据集和模型上平均比先前的最佳零样本方法提高了 3.9 和 1.75 个 AUROC 点。
  • NPR 为达到相同性能所需的扰动次数较先前工作更少,提升了实用性。
  • 在三组数据集和七种语言模型中,未扰动的 LRR 可以超越部分基于扰动的方法,突显了效率提升。
  • 在相同扰动预算下,NPR 通常优于 DetectGPT,表明在效率-准确度方面更好;然而,较大扰动设置仍然提升了性能。
  • 本研究分析了解码策略和温度,显示 LRR 和 Log Rank 偏好不同的解码模式,并且 NPR 在多种设定下仍具备竞争力。
  • 作者提供了一个成本-收益框架,详细说明了计算时间以及在实践中如何平衡速度与准确性。

阅读本论文

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

在 Nubint 中阅读本论文

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