Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

RepreGuard: Detecting LLM-Generated Text by Revealing Hidden Representation Patterns

About

Detecting content generated by large language models (LLMs) is crucial for preventing misuse and building trustworthy AI systems. Although existing detection methods perform well, their robustness in out-of-distribution (OOD) scenarios is still lacking. In this paper, we hypothesize that, compared to features used by existing detection methods, the internal representations of LLMs contain more comprehensive and raw features that can more effectively capture and distinguish the statistical pattern differences between LLM-generated texts (LGT) and human-written texts (HWT). We validated this hypothesis across different LLMs and observed significant differences in neural activation patterns when processing these two types of texts. Based on this, we propose RepreGuard, an efficient statistics-based detection method. Specifically, we first employ a surrogate model to collect representation of LGT and HWT, and extract the distinct activation feature that can better identify LGT. We can classify the text by calculating the projection score of the text representations along this feature direction and comparing with a precomputed threshold. Experimental results show that RepreGuard outperforms all baselines with average 94.92% AUROC on both in-distribution (ID) and OOD scenarios, while also demonstrating robust resilience to various text sizes and mainstream attacks. Data and code are publicly available at: https://github.com/NLP2CT/RepreGuard

Xin Chen, Junchao Wu, Shu Yang, Runzhe Zhan, Zeyu Wu, Ziyang Luo, Di Wang, Min Yang, Lidia S. Chao, Derek F. Wong• 2025

Related benchmarks

TaskDatasetResultRank
AI-generated text detectionEssay
AUROC (GPT4All)94.66
35
Machine-generated text detectionMAGE
AUROC (Avg)47.3
24
LLM-generated text detectionDetectRL--
12
AI Text DetectionMELD (eval)
AUROC93.9
10
LLM-generated text detectionMELD GPT-5.4-Mini (eval)
TPR @ 1% FPR23
10
LLM-generated text detectionMELD-eval Gemini-3-Flash
TPR@1%FPR27.2
10
LLM-generated text detectionMELD-eval Claude-Haiku-4.5
TPR @ 1% FPR41.2
10
LLM-generated text detectionMELD Qwen-3.6-Plus (eval)
TPR @ 1% FPR45.4
10
LLM-generated text detectionMELD Overall (eval)
TPR @ 1% FPR34.2
10
AI Text DetectionM4GT
AUROC75.9
10
Showing 10 of 13 rows

Other info

Follow for update