mlsanityData to 7 Oct 2026

Zero-Shot Spam Email Classification Using Pre-trained Large Language Models

arXiv 2405.15936 ↗First posted 24 May 2024cs.CL cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

This paper investigates the application of pre-trained large language models (LLMs) for spam email classification using zero-shot prompting. We evaluate the performance of both open-source (Flan-T5) and proprietary LLMs (ChatGPT, GPT-4) on the well-known SpamAssassin dataset. Two classification approaches are explored: (1) truncated raw content from email subject and body, and (2) classification based on summaries generated by ChatGPT. Our empirical analysis, leveraging the entire dataset for evaluation without further training, reveals promising results. Flan-T5 achieves a 90% F1-score on the truncated content approach, while GPT-4 reaches a 95% F1-score using summaries. While these initial findings on a single dataset suggest the potential for classification pipelines of LLM-based subtasks (e.g., summarisation and classification), further validation on diverse datasets is necessary. The high operational costs of proprietary models, coupled with the general inference costs of LLMs, could significantly hinder real-world deployment for spam filtering.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 16 of its 32 references that are in the map. First posted on arXiv 24 May 2024.

Builds on

16 of 32 references.

References · 16

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  7. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  8. 2023A Survey of Large Language Modelscited by 2,537
  9. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
  10. 2023A Survey of GPT-3 Family Large Language Models Including ChatGPT and GPT-4cited by 81
  11. 2024ChatSpamDetector: Leveraging Large Language Models for Effective Phishing Email Detectioncited by 25
  12. 2023Generating Phishing Attacks using ChatGPTcited by 14
4 more
  1. 2023Spam-T5: Benchmarking Large Language Models for Few-Shot Email Spam Detectioncited by 12
  2. 2023Detecting Phishing Sites Using ChatGPTcited by 9
  3. 2024Evaluating the Performance of ChatGPT for Spam Email Detectioncited by 4
  4. 2021Using BERT Encoding to Tackle the Mad-lib Attack in SMS Spam Detectioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.