arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03725cs.CL
收藏

LLMEmbed:重新思考轻量级大语言模型在文本分类中的真正功能

LLMEmbed: Rethinking Lightweight LLM's Genuine Function in Text Classification

Systems Engineering Institute, AMS(AMS系统工程研究所)

Chun Liu, Hongguang Zhang, Kainan Zhao, Xinghai Ju, Lin Yang

AI总结:

本文提出轻量级大语言模型迁移学习策略 LLMEmbed,通过提取和融合不同深度的文本嵌入训练分类器,在无需微调的情况下以极低参数、能耗和运行时间取得与大型模型相当的文本分类性能。

摘要:

随着大语言模型(LLMs)的蓬勃发展,提示学习已成为一种有前景的方法,主要在多个研究领域中得到研究。近年来,基于提示学习的许多尝试已被用于提升文本分类的性能。然而,这些方法大多基于启发式的思维链(CoT),往往更复杂但效率更低。在本文中,我们重新思考基于大语言模型的文本分类方法,提出一种简单有效的迁移学习策略,即 LLMEmbed,以解决这一经典但具有挑战性的任务。具体而言,我们首先研究如何通过不同网络深度的各种轻量级大语言模型来恰当地提取和融合文本嵌入,以提高其鲁棒性和判别力,然后适配这些嵌入来训练分类器。我们在公开数据集上进行了大量实验,结果表明,与基于更大规模大语言模型(如 GPT-3)和复杂提示策略的近期方法相比,LLMEmbed 在使用轻量级大语言模型骨干时取得了强劲的性能,同时享有较低的训练开销。我们的 LLMEmbed 在公开基准上无需任何微调即可获得足够的准确率,而仅使用 4% 的模型参数、1.8% 的电力消耗和 1.5% 的运行时间。代码可在 https://github.com/ChunLiu-cs/LLMEmbed-ACL2024 获取。

英文摘要:

With the booming of Large Language Models (LLMs), prompt-learning has become a promising method mainly researched in various research areas. Recently, many attempts based on prompt-learning have been made to improve the performance of text classification. However, most of these methods are based on heuristic Chain-of-Thought (CoT), and tend to be more complex but less efficient. In this paper, we rethink the LLM-based text classification methodology, propose a simple and effective transfer learning strategy, namely LLMEmbed, to address this classical but challenging task. To illustrate, we first study how to properly extract and fuse the text embeddings via various lightweight LLMs at different network depths to improve their robustness and discrimination, then adapt such embeddings to train the classifier. We perform extensive experiments on publicly available datasets, and the results show that LLMEmbed achieves strong performance while enjoys low training overhead using lightweight LLM backbones compared to recent methods based on larger LLMs, i.e. GPT-3, and sophisticated prompt-based strategies. Our LLMEmbed achieves adequate accuracy on publicly available benchmarks without any fine-tuning while merely use 4% model parameters, 1.8% electricity consumption and 1.5% runtime compared to its counterparts. Code is available at: https://github.com/ChunLiu-cs/LLMEmbed-ACL2024.

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

↑