Evaluation of Transformer-Based Large Language Models for Email Spam Detection Using BERT, Phi, and Gemma
| dc.contributor.author | Grassmann, Ana Clara C. [UNESP] | |
| dc.contributor.author | Feitosa, Juliana C. [UNESP] | |
| dc.contributor.author | Brega, José R.F. [UNESP] | |
| dc.contributor.author | da Costa, Kelton A.P. [UNESP] | |
| dc.contributor.institution | Universidade Estadual Paulista (UNESP) | |
| dc.date.accessioned | 2025-04-29T20:01:13Z | |
| dc.date.issued | 2025-01-01 | |
| dc.description.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. | en |
| dc.description.affiliation | Department of Computing São Paulo State University - UNESP | |
| dc.description.affiliationUnesp | Department of Computing São Paulo State University - UNESP | |
| dc.description.sponsorship | Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP) | |
| dc.description.sponsorshipId | FAPESP: 2023/12830-0 | |
| dc.format.extent | 459-473 | |
| dc.identifier | http://dx.doi.org/10.19139/soic-2310-5070-2267 | |
| dc.identifier.citation | Statistics, Optimization and Information Computing, v. 13, n. 2, p. 459-473, 2025. | |
| dc.identifier.doi | 10.19139/soic-2310-5070-2267 | |
| dc.identifier.issn | 2310-5070 | |
| dc.identifier.issn | 2311-004X | |
| dc.identifier.scopus | 2-s2.0-85216991328 | |
| dc.identifier.uri | https://hdl.handle.net/11449/304869 | |
| dc.language.iso | eng | |
| dc.relation.ispartof | Statistics, Optimization and Information Computing | |
| dc.source | Scopus | |
| dc.subject | Binary Classification | |
| dc.subject | Cybersecurity | |
| dc.subject | Fine-Tuning | |
| dc.subject | Large Language Models | |
| dc.subject | Spam Detection | |
| dc.title | Evaluation of Transformer-Based Large Language Models for Email Spam Detection Using BERT, Phi, and Gemma | en |
| dc.type | Artigo | pt |
| dspace.entity.type | Publication |

