首页|期刊导航|北京信息科技大学学报(自然科学版)|基于混合架构的SLM-LLM协同垃圾邮件检测方法

基于混合架构的SLM-LLM协同垃圾邮件检测方法OA

An SLM-LLM collaborative spam detection method based on hybrid architecture

中文摘要英文摘要

针对人工智能生成内容(artificial intelligence generated content,AIGC)驱动下垃圾邮件从"规模化泛播"向"语义化对抗"演进的威胁,传统小参数语言模型(small language model,SLM)在应对语义去特征化攻击时存在认知盲区,而大语言模型(large language model,LLM)的直接应用则受限于高昂算力成本与判别偏见.对此,提出了一种基于混合架构的SLM-LLM协同垃圾邮件检测方法.深入研究了SLM与LLM在中文垃圾邮件检测场景下的效能边界,剖析了通用LLM因安全对齐机制诱发的"礼貌偏见"及其漏报机理,并提出了结构化思维链(chain-of-thought,CoT)补偿策略.据此,利用置信度窗口机制实现流量的动态分流与专家级深度仲裁,设计并实现了一种SLM-LLM异步协同检测架构.实验结果表明,该架构在维持毫秒级平均响应时延的同时,将综合算力成本降低约84.78%,F1值提升至0.950 7,显著优于LoRA微调LLMs、蒸馏SLMs等单一模型方案,为AIGC时代的邮件安全治理提供了高效、低成本的技术范式.

Given the escalating threat of spam evolving from"mass-dissemination"to"semantic confrontation"driven by artificial intelligence generated content(AIGC),traditional small language models(SLMs)encounter cognitive blind spots when facing semantic de-featurization attacks,whereas the direct application of large language models(LLMs)is hindered by high computational costs and inherent judgment biases.Regarding this issue,a SLM-LLM collaborative spam detection method based on hybrid architecture was proposed.An in-depth investigation into the efficacy boundaries of SLMs and LLMs within the context of Chinese spam detection was conducted,in which the"politeness bias"induced by safety alignment mechanisms in general-purpose LLMs and its associated mechanism for false negatives was analyzed,and a structured chain-of-thought(CoT)compensation strategy was proposed.Consequently,an SLM-LLM asynchronous collaborative detection architecture was designed and implemented,leveraging a confidence window mechanism to facilitate dynamic traffic shunting and expert-level deep arbitration.Experimental results indicate that while maintaining millisecond-level average response latency,the proposed architecture reduces comprehensive computational costs by approximately 84.78%,improves the F1 score to 0.950 7,and significantly outperforms single-model baselines,such as LoRA-fine-tuned LLMs and distilled SLMs,thereby providing an efficient and cost-effective technical paradigm for email security governance in the AIGC era.

刘志豪;郭师光

北京信息科技大学 信息与通信工程学院,北京 100192北京信息科技大学 信息与通信工程学院,北京 100192

信息技术与安全科学

垃圾邮件检测大语言模型思维链推理双模型混合架构安全对齐偏见

spam detectionlarge language model(LLM)chain-of-thought(CoT)reasoningdual-model hybrid architecturesafety alignment bias

《北京信息科技大学学报(自然科学版)》 2026 (4)

75-82,后插1,9

10.16508/j.cnki.11-5866/n.2026.04.009

评论