🤖 AI Summary
This work addresses the problem of detecting text generated by large language models (LLMs). We propose AdaDetectGPT, a novel detection framework that enhances logit-based statistical detection via a learnable, adaptive witness function. Crucially, it provides the first finite-sample statistical guarantees on both true positive rate (TPR) and false positive rate (FPR)—a theoretical advance absent in prior methods. The approach integrates probabilistic distribution modeling, adaptive machine learning, and controlled error-rate design. Evaluated across diverse LLMs—including LLaMA, ChatGLM, and GPT variants—and multiple benchmark datasets, AdaDetectGPT consistently outperforms state-of-the-art baselines, achieving up to a 58% absolute improvement in detection accuracy. Extensive experiments demonstrate strong generalization across unseen models and domains, as well as practical deployability. By unifying statistical rigor with empirical effectiveness, AdaDetectGPT establishes a new paradigm for trustworthy LLM-generated content identification.
📝 Abstract
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 58%. A python implementation of our method is available at https://github.com/Mamba413/AdaDetectGPT.