用双筒望远镜发现 LLM:机器生成文本的零样本检测
Spotting LLMs With Binoculars: Zero-Shot Detection of Machine-Generated Text
AI总结:
针对检测 LLM 生成文本困难的问题,提出名为 Binoculars 的零样本检测方法,通过对比两个相关预训练语言模型的分数来区分人机文本,无需训练数据即实现 SOTA 准确率,在 0.01% 误报率下检测出超 90% 的 ChatGPT 生成样本。
摘要:
检测现代大型语言模型生成的文本被认为是困难的,因为 LLM 和人类都可能表现出广泛而复杂的行为。然而,我们发现基于对比两个密切相关的语言模型的分数,在区分人类生成文本和机器生成文本方面具有极高的准确性。基于这一机制,我们提出了一种新颖的 LLM 检测器,仅需使用一对预训练的 LLM 进行简单计算即可。该方法被称为 Binoculars,在没有任何训练数据的情况下实现了最先进的准确率。它能够在无需任何特定模型修改的情况下,识别来自多种现代 LLM 的机器文本。我们在多种文本来源和不同场景下对 Binoculars 进行了全面评估。在广泛的文档类型中,尽管未在任何 ChatGPT 数据上进行训练,Binoculars 在 0.01% 的误报率下,检测出了超过 90% 的来自 ChatGPT(及其他 LLM)的生成样本。
英文摘要:
Detecting text generated by modern large language models is thought to be hard, as both LLMs and humans can exhibit a wide range of complex behaviors. However, we find that a score based on contrasting two closely related language models is highly accurate at separating human-generated and machine-generated text. Based on this mechanism, we propose a novel LLM detector that only requires simple calculations using a pair of pre-trained LLMs. The method, called Binoculars, achieves state-of-the-art accuracy without any training data. It is capable of spotting machine text from a range of modern LLMs without any model-specific modifications. We comprehensively evaluate Binoculars on a number of text sources and in varied situations. Over a wide range of document types, Binoculars detects over 90% of generated samples from ChatGPT (and other LLMs) at a false positive rate of 0.01%, despite not being trained on any ChatGPT data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。