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

使用贝叶斯代理模型高效检测LLM生成的文本

Efficient Detection of LLM-generated Texts with a Bayesian Surrogate Model

Qing Yuan Research Institute(庆元研究院);Shanghai Jiao Tong University(上海交通大学);University of Chinese Academy of Sciences(中国科学院大学);University of California, San Diego(加利福尼亚大学圣迭戈分校)

Yibo Miao, Hongcheng Gao, Hao Zhang, Zhijie Deng

AI总结:

本文提出引入贝叶斯代理模型,通过基于不确定性选择典型样本并插值分数来提升查询效率,在低查询预算下显著优于DetectGPT等现有LLM生成文本检测方法。

摘要:

检测机器生成的文本,尤其是来自大型语言模型(LLMs)的文本,对于防止因其滥用而导致的严重社会问题至关重要。一些方法在特定数据集上训练专门的检测器,但在泛化到未见过的测试数据时表现不佳,而其他零样本方法通常产生次优的性能。尽管最近的DetectGPT展示了有前景的检测性能,但它存在显著的低效问题,因为检测单个候选文本需要用数百个扰动查询源LLM。本文旨在弥合这一差距。具体地,我们提出引入一个贝叶斯代理模型,这允许我们基于贝叶斯不确定性选择典型样本,并将典型样本的分数插值到其他样本,以提高查询效率。实证结果表明,在低查询预算下,我们的方法显著优于现有方法。值得注意的是,当检测由LLaMA系列模型生成的文本时,我们仅用2或3次查询的方法就能超越使用200次查询的DetectGPT。

英文摘要:

The detection of machine-generated text, especially from large language models (LLMs), is crucial in preventing serious social problems resulting from their misuse. Some methods train dedicated detectors on specific datasets but fall short in generalizing to unseen test data, while other zero-shot ones often yield suboptimal performance. Although the recent DetectGPT has shown promising detection performance, it suffers from significant inefficiency issues, as detecting a single candidate requires querying the source LLM with hundreds of its perturbations. This paper aims to bridge this gap. Concretely, we propose to incorporate a Bayesian surrogate model, which allows us to select typical samples based on Bayesian uncertainty and interpolate scores from typical samples to other samples, to improve query efficiency. Empirical results demonstrate that our method significantly outperforms existing approaches under a low query budget. Notably, when detecting the text generated by LLaMA family models, our method with just 2 or 3 queries can outperform DetectGPT with 200 queries.

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

↑