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

使用Token连贯性的LLM生成文本零样本检测

Zero-Shot Detection of LLM-Generated Text using Token Cohesiveness

Beijing University of Posts and Telecommunications(北京邮电大学)

Shixuan Ma, Quan Wang

AI总结:

本文提出了一种名为token连贯性的新特征,并基于此设计了TOCSIN双通道检测范式,通过即插即用模块改进现有零样本检测器,在黑盒设置下有效检测LLM生成文本。

摘要:

大型语言模型(LLMs)日益增强的能力和广泛的使用凸显了自动检测LLM生成文本的必要性。零样本检测器因其免训练的特性而备受关注并取得了显著成功。在本文中,我们识别了一种新特征——token连贯性,该特征对零样本检测很有用,并且我们证明了LLM生成的文本往往比人类撰写的文本表现出更高的token连贯性。基于这一观察,我们设计了TOCSIN,这是一种通用的双通道检测范式,它使用token连贯性作为即插即用模块来改进现有的零样本检测器。为了计算token连贯性,TOCSIN只需要几轮随机token删除和语义差异测量,这使其特别适用于生成源模型无法访问的实用黑盒设置。在多种数据集、源模型和评估设置下,对四个最先进的基础检测器进行的大量实验证明了所提方法的有效性和通用性。代码获取地址:https://github.com/Shixuan-Ma/TOCSIN。

英文摘要:

The increasing capability and widespread usage of large language models (LLMs) highlight the desirability of automatic detection of LLM-generated text. Zero-shot detectors, due to their training-free nature, have received considerable attention and notable success. In this paper, we identify a new feature, token cohesiveness, that is useful for zero-shot detection, and we demonstrate that LLM-generated text tends to exhibit higher token cohesiveness than human-written text. Based on this observation, we devise TOCSIN, a generic dual-channel detection paradigm that uses token cohesiveness as a plug-and-play module to improve existing zero-shot detectors. To calculate token cohesiveness, TOCSIN only requires a few rounds of random token deletion and semantic difference measurement, making it particularly suitable for a practical black-box setting where the source model used for generation is not accessible. Extensive experiments with four state-of-the-art base detectors on various datasets, source models, and evaluation settings demonstrate the effectiveness and generality of the proposed approach. Code available at: \url{https://github.com/Shixuan-Ma/TOCSIN}.

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

↑