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

Sergio Rojas-Galeano
5/24/2024
cs.CLcs.AI

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rojasgaleano2024zeroshot,
  title  = {Zero-Shot Spam Email Classification Using Pre-trained Large Language Models},
  author = {Sergio Rojas-Galeano},
  year   = {2024},
  eprint = {2405.15936},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.15936v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.15936.svg)](https://codeofpaper.com/paper/2405.15936)

Discussion