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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Miao, Yibo, Gao, Hongcheng, Zhang, Hao, Deng, Zhijie
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911901135405056
author Miao, Yibo
Gao, Hongcheng
Zhang, Hao
Deng, Zhijie
author_facet Miao, Yibo
Gao, Hongcheng
Zhang, Hao
Deng, Zhijie
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2305_16617
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Efficient Detection of LLM-generated Texts with a Bayesian Surrogate Model
Miao, Yibo
Gao, Hongcheng
Zhang, Hao
Deng, Zhijie
Machine Learning
Artificial Intelligence
Computation and Language
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.
title Efficient Detection of LLM-generated Texts with a Bayesian Surrogate Model
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2305.16617