Optimizing SMS Spam Detection with Large Language Models and Transformer Architectures

In recent years, the Short Message Service (SMS) has become omnipresent, with most people ignoring emails while nearly all check their daily text messages. These messages may contain spam, providing useless promotions or links that could lead to the installation of malicious applications into the system. Spam detection involves identifying minute linguistic signs and patterns in text messages, with detecting disguised spam presenting a significant challenge due to the continuous evolution of techniques. It aims to develop an intelligent system for classifying messages into two different classes, namely Spam or Ham from English SMS spam messages. In order to do so, this study explores different fine-tuned machine learning (Logistic Regression-LR, Multinomial Naive Bayes-MNB, Support Vector Machine-SVM) models, deep learn- ing(Convolutional Neural Network-CNN, Bidirectional Long Short-Term Memory-BiLSTM, CNN+BiLSTM) models, transformer(M-BERT, BERT<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">base</inf>, XLM-R<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">base</inf>, XLNet<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">base</inf>) techniques and two large language models(Phi-3 and H2O-Danube). Finally, we experimented with two large language models, Phi-3 and H2O-Danube. Out of all the models we tested, H2O-Danube outperformed all other models with a macro F1-score of 0.94, proving to be the best for SMS spam detection, surpassing traditional machine learning, transformer, and LLM models.

Authors

Institutions

Publication Details

Published
2025-02-13
DOI
https://doi.org/10.1109/ecce64574.2025.11013998
Citations
1
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
3.25
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing SMS Spam Detection with Large Language Models and Transformer Architectures

Fahim Shakil Tamim, Mohamed H. Ahmed, A. S. M. Shakil Ahamed
1 citations
Spam and Phishing Detection
3.25
article

Optimizing SMS Spam Detection with Large Language Models and Transformer Architectures

Fahim Shakil Tamim, Mohamed H. Ahmed, A. S. M. Shakil Ahamed
article en
1 citations

Abstract

In recent years, the Short Message Service (SMS) has become omnipresent, with most people ignoring emails while nearly all check their daily text messages. These messages may contain spam, providing useless promotions or links that could lead to the installation of malicious applications into the system. Spam detection involves identifying minute linguistic signs and patterns in text messages, with detecting disguised spam presenting a significant challenge due to the continuous evolution of techniques. It aims to develop an intelligent system for classifying messages into two different classes, namely Spam or Ham from English SMS spam messages. In order to do so, this study explores different fine-tuned machine learning (Logistic Regression-LR, Multinomial Naive Bayes-MNB, Support Vector Machine-SVM) models, deep learn- ing(Convolutional Neural Network-CNN, Bidirectional Long Short-Term Memory-BiLSTM, CNN+BiLSTM) models, transformer(M-BERT, BERT<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">base</inf>, XLM-R<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">base</inf>, XLNet<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">base</inf>) techniques and two large language models(Phi-3 and H2O-Danube). Finally, we experimented with two large language models, Phi-3 and H2O-Danube. Out of all the models we tested, H2O-Danube outperformed all other models with a macro F1-score of 0.94, proving to be the best for SMS spam detection, surpassing traditional machine learning, transformer, and LLM models.

International University of Business Agriculture and Technology (BD)
Openalex Percentile: Top 9%
Spam and Phishing Detection
3.25
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.