AdaDetectGPT: Adaptive Detection of LLM-Generated Text with Statistical Guarantees
Tsinghua University · University of Birmingham · London School of Economics and Political Sciencies · London School of Economics and Political Science, University of London · Tsinghua University, Tsinghua University · City University of Hong Kong · LSE
PDF 由论文原始站点提供,PaperCompass 不保存论文文件。
摘要
We study the problem of determining whether a piece of text has been authored by a human or by a large language model (LLM). Existing state of the art logits-based detectors make use of statistics derived from the log-probability of the observed text evaluated using the distribution function of a given source LLM. However, relying solely on log probabilities can be sub-optimal. In response, we introduce AdaDetectGPT -- a novel classifier that adaptively learns a witness function from training data to enhance the performance of logits-based detectors. We provide statistical guarantees on its true positive rate, false positive rate, true negative rate and false negative rate. Extensive numerical studies show AdaDetectGPT nearly uniformly improves the state-of-the-art method in various combination of datasets and LLMs, and the improvement can reach up to 37\%. A python implementation of our method is available at https://github.com/Mamba413/AdaDetectGPT.