融合自一致性与对数秩的大语言模型生成文本检测OA
Integrating Self-Consistency and ln-Rank for LLM-Generated Text Detection
大语言模型(LLM)在文本生成领域的快速发展,在带来显著便利的同时,也引发了对其潜在滥用的担忧.传统的基于训练数据的检测方法在适应新领域方面存在局限,且通常依赖于访问生成文本的源模型.针对上述问题,提出一种无需大规模训练数据、也无需访问源模型的新型检测方法.该方法融合了大语言模型的自一致性(self-consistency)特征与对数秩(ln-rank)特征.对输入文本进行句子级别的随机部分删除;将删除后的文本输入到一个大语言模型以补全缺失内容;利用语义相似度模型计算源文本与补全文本之间的语义相似度,并据此计算自一致性分数;将自一致性分数与对数秩特征相结合,构建一个综合性度量指标.基于该指标可建立有效的分类阈值,从而判别文本来源.实验结果表明,该方法在XSum和HC3两个真实数据集上表现优异,平均检测准确率和AUROC分别达到92.52%和96.13%.此外,该方法不仅在中文数据集上展现出良好的性能,平均AUROC达84.57%,而且在跨域检测场景下的平均AUROC较当前最优方法高出6.53个百分点,充分体现了其优越的泛化能力.
The rapid advancement of large language models(LLMs)in text generation has brought significant conve-nience but also raised concerns about potential misuse.Traditional detection methods reliant on training data face limita-tions in adapting to new domains and typically require access to the source model of the generated text.To address these challenges,this paper proposes a novel detection method that requires neither extensive training data nor access to the source model.This method integrates the self-consistency feature of LLMs with the ln-rank feature.Random partial dele-tions are performed at the sentence level on the input text.The modified text is fed into a large language model to recon-struct the missing content.A semantic similarity model is used to compute the semantic similarity between the original and reconstructed texts,from which a self-consistency score is derived.This self-consistency score is combined with the ln-rank feature to construct a comprehensive metric.Based on this metric,an effective classification threshold is estab-lished to determine the origin of text.Experimental results demonstrate that this method achieves superior performance on two real-world datasets,XSum and HC3,with an average detection accuracy of 92.52%and an AUROC of 96.13%.Fur-thermore,the method exhibits robust performance on Chinese datasets,achieving an average AUROC of 84.57%.In cross-domain detection scenarios,it outperforms the current state-of-the-art method by an average AUROC improvement of 6.53 percentage points,highlighting its exceptional generalization capability.
陈鹏飞;孙更新;宾晟
青岛大学 计算机科学技术学院,山东 青岛 266071青岛大学 计算机科学技术学院,山东 青岛 266071青岛大学 计算机科学技术学院,山东 青岛 266071
信息技术与安全科学
大语言模型自然语言处理生成文本检测零样本自一致性
large language modelnatural language processinggenerated text detectionzero-shot learningself-consistency
《计算机工程与应用》 2026 (19)
188-199,12
国家社会科学基金一般项目(23BXW043)山东省自然科学基金(ZR2022MG005).
评论