SpaLLM-Guard:利用开源和商业 LLM 配对进行 SMS 垃圾短信检测
SpaLLM-Guard: Pairing SMS Spam Detection Using Open-source and Commercial LLMs
AI总结:
本文系统比较开源与商业 LLM 在 SMS 垃圾短信检测中的多种学习范式,证明微调(尤其结合少样本)可实现高准确率并增强对抗与概念漂移鲁棒性。
摘要:
由不断演进的对抗技术和概念漂移所驱动的 SMS 垃圾短信威胁日益增加,这需要更鲁棒、更具适应性的检测方法。本文评估了大语言模型(LLM)在 SMS 垃圾短信检测方面的潜力,涵盖开源和商业模型,并比较了它们在零样本、少样本、微调和思维链提示方法下的性能。我们使用一个全面的 SMS 消息数据集,评估了 GPT-4、DeepSeek、LLAMA-2 和 Mixtral 等知名 LLM 的垃圾短信检测能力。研究结果表明,尽管零样本学习提供了便利,但对于有效的垃圾短信检测并不可靠。少样本学习(尤其是在使用精心选择的示例时)能够改进检测效果,但在不同模型之间表现出差异性。微调成为最有效的策略:Mixtral 达到 98.6% 的准确率,且平衡的误报率和漏报率均低于 2%,满足鲁棒垃圾短信检测的标准。此外,我们探索了这些模型对对抗攻击的恢复能力,发现微调显著增强了其对可感知和不可感知操纵的鲁棒性。最后,我们研究了概念漂移的影响,并证明经过微调的 LLM(尤其是与少样本学习结合时)能够减轻其影响,即使在不断演变的垃圾短信数据集上也能保持高性能。本研究强调了微调与定制化学习策略对于在真实世界 SMS 垃圾短信检测中有效部署 LLM 的重要性。
英文摘要:
The increasing threat of SMS spam, driven by evolving adversarial techniques and concept drift, calls for more robust and adaptive detection methods. In this paper, we evaluate the potential of large language models (LLMs), both open-source and commercial, for SMS spam detection, comparing their performance across zero-shot, few-shot, fine-tuning, and chain-of-thought prompting approaches. Using a comprehensive dataset of SMS messages, we assess the spam detection capabilities of prominent LLMs such as GPT-4, DeepSeek, LLAMA-2, and Mixtral. Our findings reveal that while zero-shot learning provides convenience, it is unreliable for effective spam detection. Few-shot learning, particularly with carefully selected examples, improves detection but exhibits variability across models. Fine-tuning emerges as the most effective strategy, with Mixtral achieving 98.6% accuracy and a balanced false positive and false negative rate below 2%, meeting the criteria for robust spam detection. Furthermore, we explore the resilience of these models to adversarial attacks, finding that fine-tuning significantly enhances robustness against both perceptible and imperceptible manipulations. Lastly, we investigate the impact of concept drift and demonstrate that fine-tuned LLMs, especially when combined with few-shot learning, can mitigate its effects, maintaining high performance even on evolving spam datasets. This study highlights the importance of fine-tuning and tailored learning strategies to deploy LLMs effectively for real-world SMS spam detection
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。