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

面向文本分类的语言模型:上下文学习足够了吗?

Language Models for Text Classification: Is In-Context Learning Enough?

Aleksandra Edwards, Jose Camacho-Collados

AI总结:

该研究针对大语言模型上下文学习用于文本分类的效果开展大规模评估,对比16个数据集下大模型零/少样本方法与小模型微调的表现,发现小模型微调性能仍更优,大模型文本分类能力有待提升。

摘要:

近期的基础语言模型在零样本和少样本设置下的众多自然语言处理任务中展现出了当前最优性能。与基于微调的更标准方法相比,这类模型的一大优势是能够理解以自然语言编写的指令(即提示),这有助于它们在无需特定训练数据的情况下更好地泛化到不同任务和领域,因此适用于解决标注实例数量有限的领域的文本分类问题。然而,现有研究的规模有限,且对于结合提示技术的文本生成模型与更成熟的文本分类方法(例如微调掩码语言模型)相比表现如何,仍缺乏清晰认知。在本文中,我们通过开展一项大规模评估研究来填补这一研究空白,该研究覆盖16个文本分类数据集,涉及二分类、多分类和多标签问题。我们具体将大语言模型的零样本和少样本方法与微调更小语言模型的方法进行了对比,还从提示、分类类型、领域和标签数量等维度对结果展开了分析。总体而言,结果表明,微调更小且更高效的语言模型的表现仍能优于大语言模型的少样本方法,后者在文本分类任务上仍有提升空间。

英文摘要:

Recent foundational language models have shown state-of-the-art performance in many NLP tasks in zero- and few-shot settings. An advantage of these models over more standard approaches based on fine-tuning is the ability to understand instructions written in natural language (prompts), which helps them generalise better to different tasks and domains without the need for specific training data. This makes them suitable for addressing text classification problems for domains with limited amounts of annotated instances. However, existing research is limited in scale and lacks understanding of how text generation models combined with prompting techniques compare to more established methods for text classification such as fine-tuning masked language models. In this paper, we address this research gap by performing a large-scale evaluation study for 16 text classification datasets covering binary, multiclass, and multilabel problems. In particular, we compare zero- and few-shot approaches of large language models to fine-tuning smaller language models. We also analyse the results by prompt, classification type, domain, and number of labels. In general, the results show how fine-tuning smaller and more efficient language models can still outperform few-shot approaches of larger language models, which have room for improvement when it comes to text classification.

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

↑