信息安全研究 ›› 2026, Vol. 12 ›› Issue (11): 1001-1010.DOI: 10.12379/j.issn.2096-1057.2026.11.04

• • 上一篇    

融合多维度特征和对比学习的轻量级人工智能生成文本检测

智路平,方俪颖,蔡妙   

  • 发布日期:2026-11-11

Lightweight AI-Generated Text Detection Model Fusing Multi-dimensional Features and Contrastive Learning

Zhi Luping, Fang Liying, Cai Miao   

  • Published:2026-11-11

摘要: 随着生成式大语言模型快速发展,其生成文本与人类文本愈发相似,需高效检测以避免混淆视听,但复杂精确的检测方法存在计算资源消耗大、推理时间长的问题。针对这一需求,本文设计轻量级检测方案,具体实现路径如下:采用Sentence-BERT捕捉文本隐含的语义逻辑关联;依托自然语言工具包(Natural Language Toolkit,NLTK)库获取情感与统计特征,构建浅层特征集合;引入注意力加权机制完成两类浅层特征的自适应融合,强化关键浅层信息的表征能力;将融合后的浅层特征与深层语义表征进行维度拼接,采用对比学习策略对联合特征进行优化,最终以支持向量机(Support Vector Machine,SVM)完成分类。该模型采用深度语义表征与轻量分类耦合架构,从根本上降低计算资源需求、缩短推理时间,在中文、英文测试集准确率分别达92%和90%,实现检测精度与效率的平衡。

关键词: 人工智能生成文本检测;生成式大语言模型;支持向量机;对比学习

Abstract: With the rapid development of generative large language models, the texts generated by these models are increasingly similar to human texts. Efficient detection is required to avoid misleading the public. Nevertheless, sophisticated and accurate detection methods suffer from high computational resource consumption and long inference time. To meet this requirement, this paper designs a lightweight detection scheme. Specifically, Sentence-BERT is adopted to capture implicit semantic logical correlations of texts; the Natural Language Toolkit (NLTK) library is used to extract sentiment and statistical features for constructing a shallow feature set; an attention-weighted mechanism is introduced for adaptive fusion of the two categories of shallow features to strengthen the representation capability of critical shallow information; after dimension-wise concatenation of fused shallow features and deep semantic representations, contrastive learning is utilized to optimize joint features, and Support Vector Machine (SVM) is applied for final classification. The model adopts a coupled architecture of deep semantic representation and lightweight classification, which fundamentally reduces computational resource consumption and shortens inference time. It achieves detection accuracies of 92% and 90% on Chinese and English test sets, realizing the balance between detection accuracy and efficiency.

Key words: AI-generated text detection; generative large language model; support vector machine; contrastive learning

中图分类号: