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

Spam-T5:大型语言模型在少样本电子邮件垃圾邮件检测中的基准测试

Spam-T5: Benchmarking Large Language Models for Few-Shot Email Spam Detection

JPMorgan Chase(摩根大通)

Maxime Labonne, Sean Moran

AI总结:

本文提出Spam-T5,一种基于Flan-T5微调的模型,用于少样本电子邮件垃圾邮件检测,在多个数据集上优于基线方法和其他LLMs。

摘要:

本文通过比较来自三个不同家族的著名模型:BERT类、Sentence Transformers和Seq2Seq,研究了大型语言模型(LLMs)在电子邮件垃圾邮件检测中的有效性。此外,我们考察了成熟的机器学习垃圾邮件检测技术,如朴素贝叶斯和LightGBM,作为基线方法。我们在四个公开数据集上评估了这些模型的性能,使用了不同数量的训练样本(完整训练集和少样本设置)。我们的研究结果表明,在大多数情况下,LLMs的性能超过了流行的基线技术,特别是在少样本场景中。这种适应性使得LLMs特别适合垃圾邮件检测任务,因为在这些任务中,标记样本数量有限,且模型需要频繁更新。此外,我们引入了Spam-T5,这是一个专门为检测电子邮件垃圾邮件而调整和微调的Flan-T5模型。我们的结果表明,Spam-T5在大多数场景中超过了基线模型和其他LLMs,特别是在训练样本数量有限的情况下。我们的代码公开在https://github.com/jpmorganchase/emailspamdetection。

英文摘要:

This paper investigates the effectiveness of large language models (LLMs) in email spam detection by comparing prominent models from three distinct families: BERT-like, Sentence Transformers, and Seq2Seq. Additionally, we examine well-established machine learning techniques for spam detection, such as Naïve Bayes and LightGBM, as baseline methods. We assess the performance of these models across four public datasets, utilizing different numbers of training samples (full training set and few-shot settings). Our findings reveal that, in the majority of cases, LLMs surpass the performance of the popular baseline techniques, particularly in few-shot scenarios. This adaptability renders LLMs uniquely suited to spam detection tasks, where labeled samples are limited in number and models require frequent updates. Additionally, we introduce Spam-T5, a Flan-T5 model that has been specifically adapted and fine-tuned for the purpose of detecting email spam. Our results demonstrate that Spam-T5 surpasses baseline models and other LLMs in the majority of scenarios, particularly when there are a limited number of training samples available. Our code is publicly available at https://github.com/jpmorganchase/emailspamdetection.

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

↑