Evaluating the Performance of ChatGPT for Spam Email Detection

Si Shijing et al.

Pacific Journal of Optimization2025https://doi.org/10.61208/pjo-2025-019article
AJG 1
Weight
0.41

What the paper says

(Communicated by Aifan Ling) Email continues to be a pivotal and extensively utilized communication medium within professional and commercial domains. Nonetheless, the prevalence of spam emails poses a significant challenge for users, disrupting their daily routines and diminishing productivity. Consequently, accurately identifying and filtering spam based on content has become crucial for cybersecurity. Recent advancements in natural language processing, particularly with large language models like ChatGPT, have shown remarkable performance in tasks such as question answering and text generation. However, its potential in spam identification remains underexplored. To fill in the gap, this study attempts to evaluate ChatGPT's capabilities for spam identification in both English and Chinese email datasets. We employ ChatGPT for spam email detection using in-context learning, which requires a prompt instruction with (or without) a few demonstrations. We also investigate how the number of demonstrations in the prompt affects the performance of ChatGPT. For comparison, we also implement five popular benchmark methods, including naive Bayes, support vector machines (SVM), logistic regression (LR), feedforward dense neural networks (DNN), and BERT classifiers. Through extensive experiments, the performance of ChatGPT is significantly worse than deep supervised learning methods in the large English dataset, while it presents superior performance on the low-resourced Chinese dataset. This study provides insights into the potential and limitations of ChatGPT for spam identification, highlighting its potential as a viable solution for resource-constrained language domains.

2 citations

Open paper page →

Cite this paper

https://doi.org/https://doi.org/10.61208/pjo-2025-019

Or copy a formatted citation

@article{si2025,
  title        = {{Evaluating the Performance of ChatGPT for Spam Email Detection}},
  author       = {Si Shijing et al.},
  journal      = {Pacific Journal of Optimization},
  year         = {2025},
  doi          = {https://doi.org/https://doi.org/10.61208/pjo-2025-019},
}

Paste directly into BibTeX, Zotero, or your reference manager.

Flag this paper

Evaluating the Performance of ChatGPT for Spam Email Detection

Flags are reviewed by the Arbiter methodology team within 5 business days.


Evidence weight

0.41

Balanced mode · F 0.40 / M 0.15 / V 0.05 / R 0.40

F · citation impact0.25 × 0.4 = 0.10
M · momentum0.55 × 0.15 = 0.08
V · venue signal0.50 × 0.05 = 0.03
R · text relevance †0.50 × 0.4 = 0.20

† Text relevance is estimated at 0.50 on the detail page — for your query’s actual relevance score, open this paper from a search result.