Evaluation of Transformer-Based Large Language Models for Email Spam Detection Using BERT, Phi, and Gemma

In this paper, we study how LLMs based on the transformer architecture work and the possibility of adjusting these models to use only the body of email messages to classify them as spam or ham. The models studied are BERT, Gemma, and Phi. All of them underwent quantization stages, fine-tuning with a real dataset, and evaluation with metrics commonly used in binary classification problems. The Gemma model achieves over 99% accuracy in detecting spam, standing out as the best among the compared models.

Authors

Institutions

Publication Details

Journal
Statistics Optimization & Information Computing
Published
2024-12-26
DOI
https://doi.org/10.19139/soic-2310-5070-2267
Citations
1
Primary Topic
Spam and Phishing Detection
Type
article
Field-Weighted Citation Impact
0.78

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluation of Transformer-Based Large Language Models for Email Spam Detection Using BERT, Phi, and Gemma

Kelton Augusto Pontara da Costa, Juliana da Costa Feitosa, José Remo Ferreira Brega, Ana Clara C. Grassmann
1 citations
Statistics Optimization & Information Computing
Spam and Phishing Detection
0.78
article

Evaluation of Transformer-Based Large Language Models for Email Spam Detection Using BERT, Phi, and Gemma

Kelton Augusto Pontara da Costa, Juliana da Costa Feitosa, José Remo Ferreira Brega, Ana Clara C. Grassmann
article en
1 citations

Abstract

In this paper, we study how LLMs based on the transformer architecture work and the possibility of adjusting these models to use only the body of email messages to classify them as spam or ham. The models studied are BERT, Gemma, and Phi. All of them underwent quantization stages, fine-tuning with a real dataset, and evaluation with metrics commonly used in binary classification problems. The Gemma model achieves over 99% accuracy in detecting spam, standing out as the best among the compared models.

Statistics Optimization & Information ComputingVol. 13(2)
Universidade Estadual Paulista (Unesp) (BR)
Fundação de Amparo à Pesquisa do Estado de São Paulo
Openalex Percentile: Top 17%
Spam and Phishing Detection
0.78
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.