Skip to content
Conference

Performance and Explainability of Open-Weight Large Language Models for Spam Email Detection

Jul 2026 · 2026 7th International Conference on Smart Systems and Inventive Technology (ICSSIT) · pp. 1633-1637 · 0 citations · 26 references

Abstract

Despite the advancements made by researchers, spam emails remain one of the biggest challenges in the field of cybersecurity. Spam emails can serve as phishing emails or carry viruses that compromise the security of an organization's system. Current detection techniques depend on supervised learning or rely on cloud-based services, which can compromise user data privacy and affect implementation flexibility. This paper evaluates the capability of five large language models (LLMs) in zero-shot spam email classification. The models used in this study include llama3.1:8b, deepseek-r1:8b, gemma3:4b, falcon3:7b, and mistral:7b. In addition to predicting whether the email is spam or not, the LLM was also asked to generate an explanation of its prediction in natural language form. The experiments were conducted on two benchmark datasets: the Ling and TREC2007 datasets. In terms of performance, llama3.1:8b outperformed other LLMs when evaluated on the TREC2007 dataset (98.78% accuracy) and deepseek-r1:8b had the best performance on the Ling dataset (98.79%). The results show that open-weight LLMs can achieve competitive spam detection performance in a local, privacy-preserving environment without any fine-tuning.

View source

Similar papers

Open access Aug 2026

Email Security: Predictive Analysis of Spam Detection Using Machine Learning

The proposed system utilizes textual features such as word frequency, message structure, and content patterns to classify emails as spam or legitimate (ham) through supervised learning techniques, and is developed using Python and Scikit-learn.

M. K, S. Nandhini · 0 citations
Review Open access Jul 2026

A Comprehensive Review of Long Short-term Memory Network for Email Spam Detection

This paper aims to explore the state of the art in LSTM networks for email spam detection and present a systematic approach to their use and combine them with other deep learning methods, for instance, Convolutional Neural Networks (CNNs), to enhance their ability to extract more durable features from email.

Ekramul Haque Tusher, Mohd Arfian Ismail, Nurfadhilah Idris et al. · 0 citations
#machine learning Preprint Sep 2026

AURA: Adaptive Uncertainty-Routed Analysis for Email Threat Detection

Email spam and phishing attacks remain a critical security threat. Adversaries increasingly exploit large language models to craft contextually convincing malicious messages, and existing spam detection systems often struggle to keep pace. Generalization across diverse and evolving attack scenarios is limited, which re...

Omran Berjawi, W. Fahs, Rida Khatoun · 0 citations
Open access Sep 2026

Comparative Analysis of Transformer-Based and ClassicalMachine Learning Models for Phishing Email Detection:A Multi-Source Dataset Evaluation with Explainability

This paper compares five classifiers: Multinomial Naive Bayes, Random Forest, Bidirectional Long Short-Term Memory, BiLSTM, DistilBERT, and BERT-base, and finds that BERT-base achieves the highest F1-score and DistilBERT the lowest, representing the strongest accuracy–latency trade-off in the evaluated environment.

Andre Sebastian Samaniego Buñay, Ariel Misael Orellana Albarracin, Joel Marcelo Chuquimarca Pomagualli · 0 citations
Conference Aug 2026

Spam Email Detection and Categorization using Deep Learning Techniques

Email has become one of the most widely used forms of communication. Email spam refers to unsolicited messages sent in large volumes. While some spam emails may contain useful information, most are unwanted and can lead to online fraud. Therefore, filtering spam emails from legitimate ones is essential. Effective categ...

Keerththana Kishalathan · 0 citations
Aug 2026

An Intelligent Email Spam Detection System Using Machine Learning and Natural Language Processing

Abstract Email spam is a persistent problem in digital communication because unsolicited advertisements, phishing attempts, malicious links, and fraudulent messages consume attention and can expose users and organizations to security risks. This paper presents an intelligent email spam detection system that combines Na...

G. Amaladevi, Byreddi Ganesh · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.