arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.06072cs.CL
收藏

通过挖掘词元概率序列实现无需训练的大语言模型生成文本检测

Training-free LLM-generated Text Detection by Mining Token Probability Sequences

Zhejiang University(浙江大学);Zhejiang Gongshang University(浙江工商大学);Georgia Institute of Technology(佐治亚理工学院);Shanghai Jiao Tong University(上海交通大学)

Yihuai Xu, Yongwei Wang, Yifei Bi, Huangsen Cao, Zhouhan Lin, Yu Zhao, Fei Wu

AI总结:

针对现有无需训练的LLM生成文本检测方法忽略局部特征的问题,本研究提出融合局部与全局统计的Lastde检测器,首次引入时间序列分析捕捉词元概率序列动态,还推出实时版本Lastde++,在多场景实验中达SOTA且抗释义攻击鲁棒性更强。

摘要:

大语言模型(LLM)已展现出在多领域生成高质量文本的卓越能力,但LLM的潜在滥用引发了广泛担忧,凸显了可靠检测LLM生成文本的迫切需求。传统基于训练的检测器通常泛化能力不足,尤其在跨域和跨模型场景下表现受限。相比之下,无需训练的方法通过精心设计的统计特征挖掘文本固有差异,具备更优的泛化性和可解释性。尽管如此,现有无需训练的检测方法通常依赖全局文本序列统计量,忽略了局部判别特征的建模,进而限制了检测效果。本研究提出一种新型无需训练的检测器Lastde,该方法融合局部与全局统计量以提升检测性能。我们首次将时间序列分析引入LLM生成文本检测任务,捕捉词元概率序列的时序动态特征。通过将这些局部统计量与全局统计量相结合,该检测器能够揭示人类文本与LLM生成文本之间的显著差异。我们还提出了一种高效的改进版本Lastde++,以支持实时检测。我们在六个数据集上开展了大量实验,涵盖跨域、跨模型和跨语言检测场景,同时在白盒和黑盒设置下进行测试,结果表明所提方法始终取得最优(state-of-the-art)性能。此外,与现有基线方法相比,该方法对释义攻击具备更强的鲁棒性。

英文摘要:

Large language models (LLMs) have demonstrated remarkable capabilities in generating high-quality texts across diverse domains. However, the potential misuse of LLMs has raised significant concerns, underscoring the urgent need for reliable detection of LLM-generated texts. Conventional training-based detectors often struggle with generalization, particularly in cross-domain and cross-model scenarios. In contrast, training-free methods, which focus on inherent discrepancies through carefully designed statistical features, offer improved generalization and interpretability. Despite this, existing training-free detection methods typically rely on global text sequence statistics, neglecting the modeling of local discriminative features, thereby limiting their detection efficacy. In this work, we introduce a novel training-free detector, termed \textbf{Lastde} that synergizes local and global statistics for enhanced detection. For the first time, we introduce time series analysis to LLM-generated text detection, capturing the temporal dynamics of token probability sequences. By integrating these local statistics with global ones, our detector reveals significant disparities between human and LLM-generated texts. We also propose an efficient alternative, \textbf{Lastde++} to enable real-time detection. Extensive experiments on six datasets involving cross-domain, cross-model, and cross-lingual detection scenarios, under both white-box and black-box settings, demonstrated that our method consistently achieves state-of-the-art performance. Furthermore, our approach exhibits greater robustness against paraphrasing attacks compared to existing baseline methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑