arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.15936cs.CLcs.AI
收藏

使用预训练大语言模型的零样本垃圾邮件分类

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

Universidad Distrital Francisco José de Caldas(弗朗西斯科·何塞·德·卡尔达斯大区大学)

Sergio Rojas-Galeano

AI总结:

本文研究零样本提示下预训练大语言模型用于垃圾邮件分类,在SpamAssassin数据集上比较Flan-T5、ChatGPT和GPT-4在截断内容与摘要两种方法上的表现,并指出高推理成本是实际部署的主要障碍。

摘要:

本文研究了预训练大语言模型(LLMs)在零样本提示下用于垃圾邮件分类的应用。我们在著名的SpamAssassin数据集上评估了开源模型(Flan-T5)和专有模型(ChatGPT、GPT-4)的性能。我们探索了两种分类方法:(1)截断的邮件主题和正文原始内容,以及(2)基于ChatGPT生成的摘要进行分类。我们的实证分析利用整个数据集进行评估,无需进一步训练,结果令人鼓舞。Flan-T5在截断内容方法上取得了90%的F1分数,而GPT-4使用摘要方法达到了95%的F1分数。虽然这些在单一数据集上的初步发现表明,基于LLM子任务(例如摘要和分类)的分类流程具有潜力,但仍需要在多样化数据集上进行进一步验证。专有模型的高运营成本,加上LLM的普遍推理成本,可能严重阻碍其在垃圾邮件过滤中的实际部署。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑