arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15004cs.CL
收藏

LLMDet:一款第三方大语言模型生成文本检测工具

LLMDet: A Third Party Large Language Models Generated Text Detection Tool

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Sea-NExT Joint Lab, National University of Singapore(新加坡国立大学Sea-NExT联合实验室)

Kangxi Wu, Liang Pang, Huawei Shen, Xueqi Cheng, Tat-Seng Chua

AI总结:

针对现有大语言模型生成文本检测工具依赖模型访问、仅能区分人机文本的不足,提出安全高效可扩展的LLMDet工具,通过代理困惑度溯源文本来源,检测准确率高且速度快,还可扩展至新开源模型。

摘要:

大语言模型(LLM)生成的文本与人类撰写的高质量文本高度相似,引发了人们对其可能被滥用于传播虚假信息和学术不端的担忧。因此,迫切需要一款实用性强、能够准确识别给定文本来源的检测工具。然而,现有检测工具通常依赖对LLM的访问权限,且仅能区分机器生成文本和人类撰写文本,无法满足细粒度溯源、中间判断和快速检测的需求。为此,我们提出了LLMDet,这是一款针对特定模型、安全、高效且可扩展的检测工具,能够溯源文本来自哪些特定LLM,例如GPT-2、OPT、LLaMA等。在LLMDet中,我们记录显著n元语法的下一词元概率作为特征,为每个LLM计算代理困惑度。通过联合分析各LLM的代理困惑度,我们可以确定生成文本的来源。实验结果表明,LLMDet在保证速度和安全性的同时,取得了出色的检测性能,识别人类撰写文本的准确率达98.54%,速度提升5.0倍。此外,LLMDet可以轻松将其检测能力扩展到新的开源模型。我们将在https://github.com/TrustedLLM/LLMDet提供一款开源工具。

英文摘要:

Generated texts from large language models (LLMs) are remarkably close to high-quality human-authored text, raising concerns about their potential misuse in spreading false information and academic misconduct. Consequently, there is an urgent need for a highly practical detection tool capable of accurately identifying the source of a given text. However, existing detection tools typically rely on access to LLMs and can only differentiate between machine-generated and human-authored text, failing to meet the requirements of fine-grained tracing, intermediary judgment, and rapid detection. Therefore, we propose LLMDet, a model-specific, secure, efficient, and extendable detection tool, that can source text from specific LLMs, such as GPT-2, OPT, LLaMA, and others. In LLMDet, we record the next-token probabilities of salient n-grams as features to calculate proxy perplexity for each LLM. By jointly analyzing the proxy perplexities of LLMs, we can determine the source of the generated text. Experimental results show that LLMDet yields impressive detection performance while ensuring speed and security, achieving 98.54% precision and x5.0 faster for recognizing human-authored text. Additionally, LLMDet can effortlessly extend its detection capabilities to a new open-source model. We will provide an open-source tool at https://github.com/TrustedLLM/LLMDet.

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

↑