Detecting LLM-Generated Text with Performance Guarantees
Hongyi Zhou, Jin Zhu, Ying Yang, Chengchun Shi
TL;DR
This paper tackles the challenge of detecting LLM-generated text with performance guarantees without relying on watermarks or model-specific information. It introduces a flexible, model-agnostic statistic $S(\bm{X})$ learned from a large, diverse dataset and fine-tuned using LoRA to maximize AUC, while providing statistically calibrated thresholds via empirical nulls for valid inference. Across eight domains, the detector achieves near-perfect AUC and controlled type-I error, and it demonstrates robustness to distribution shifts in the RAID benchmark. A public web interface showcases practical deployment and continual updating to adapt to evolving LLMs, highlighting the method’s scalability and real-world impact.
Abstract
Large language models (LLMs) such as GPT, Claude, Gemini, and Grok have been deeply integrated into our daily life. They now support a wide range of tasks -- from dialogue and email drafting to assisting with teaching and coding, serving as search engines, and much more. However, their ability to produce highly human-like text raises serious concerns, including the spread of fake news, the generation of misleading governmental reports, and academic misconduct. To address this practical problem, we train a classifier to determine whether a piece of text is authored by an LLM or a human. Our detector is deployed on an online CPU-based platform https://huggingface.co/spaces/stats-powered-ai/StatDetectLLM, and contains three novelties over existing detectors: (i) it does not rely on auxiliary information, such as watermarks or knowledge of the specific LLM used to generate the text; (ii) it more effectively distinguishes between human- and LLM-authored text; and (iii) it enables statistical inference, which is largely absent in the current literature. Empirically, our classifier achieves higher classification accuracy compared to existing detectors, while maintaining type-I error control, high statistical power, and computational efficiency.
