arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.08587cs.CLcs.AI
收藏

通过大语言模型微调推进单任务与多任务文本分类

Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuning

Meta Platforms, Inc.(Meta平台公司);Anthropic PBC(Anthropic公司)

Hang Zhao, Qile P. Chen, Yijing Barry Zhang, Gang Yang

AI总结:

本文系统比较微调后的编码器模型与 LLM 的单任务及多任务文本分类性能,证明完全微调的 Llama3-70B 表现最优,且整合式多任务 LLM 可等效替代双模型并降低延迟。

摘要:

仅编码器模型(例如 BERT、RoBERTa)和大语言模型(LLM,例如 Llama3)均已被广泛用于文本分类任务。然而,目前缺乏系统性研究来比较基于编码器的模型与 LLM 在文本分类中的性能,尤其是在涉及微调时。本研究采用了一系列在规模和架构上各不相同的模型与方法,既包括微调方法,也包括预训练方法。我们首先在 20 Newsgroups(20NG)和 MASSIVE 数据集上评估了这些 LLM 的性能,并将其与仅编码器的 RoBERTa 模型进行比较。此外,我们利用来自两个数据集的数据,将意图检测和槽位填充等多个分类任务合并到单个模型中,探究了两类模型的多任务能力。结果表明,在不同分类任务和数据集上,完全微调的 Llama3-70B 模型优于 RoBERTa-large 和其他解码器 LLM。此外,整合后的多任务微调 LLM 在两个数据集的两项任务上均达到了与双模型设置相当的性能。总体而言,本研究提供了仅编码器模型与 LLM 在文本分类任务上的全面基准,并展示了一种组合两个或多个完全微调的解码器 LLM 的方法,可在保持等效性能的同时降低延迟。

英文摘要:

Both encoder-only models (e.g., BERT, RoBERTa) and large language models (LLMs, e.g., Llama3) have been widely used for text classification tasks. However, there is a lack of systematic studies comparing the performance of encoder-based models and LLMs in text classification, particularly when fine-tuning is involved. This study employed a diverse range of models and methods, varying in size and architecture, and including both fine-tuned and pre-trained approaches. We first assessed the performances of these LLMs on the 20 Newsgroups (20NG) and MASSIVE datasets, comparing them to encoder-only RoBERTa models. Additionally, we explored the multi-task capabilities of both model types by combining multiple classification tasks, including intent detection and slot-filling, into a single model using data from both datasets. Our results indicate that fully fine-tuned Llama3-70B models outperform RoBERTa-large and other decoder LLMs across various classification tasks and datasets. Moreover, the consolidated multi-task fine-tuned LLMs matched the performance of dual-model setups in both tasks across both datasets. Overall, our study provides a comprehensive benchmark of encoder-only and LLM models on text classification tasks and demonstrates a method to combine two or more fully fine-tuned decoder LLMs for reduced latency and equivalent performance.

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

↑