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

从大型语言模型中蒸馏细粒度情感理解能力

Distilling Fine-grained Sentiment Understanding from Large Language Models

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Peng Cheng Laboratory(鹏城实验室)

Yice Zhang, Guangyu Xie, Hongling Xu, Kaiheng Hou, Jianzhu Bao, Qianlong Wang, Shiwei Chen, Ruifeng Xu

AI总结:

本文提出通过提示LLMs生成情感解释来预训练SLMs,将细粒度情感理解能力蒸馏到小模型中,在自建FSA基准上蒸馏模型以220M参数超越Llama-2-7b并具备优秀的零样本分类能力。

摘要:

细粒度情感分析(FSA)旨在从大量带有观点的文本中提取和总结用户意见。近期研究表明,大型语言模型(LLMs)具备出色的情感理解能力。然而,直接将LLMs部署到FSA应用中会带来高昂的推理成本。因此,本文研究了将LLMs的细粒度情感理解能力蒸馏到小型语言模型(SLMs)中的方法。我们提示LLMs审视并解释给定评论的情感,然后利用生成的内容对SLMs进行预训练。此外,我们构建了一个全面的FSA基准,用于评估SLMs和LLMs。在该基准上的大量实验表明:(1)蒸馏显著提升了SLMs在FSA任务上的性能,F1分数提高了6.00%,并且蒸馏后的模型仅用220M参数就能超越Llama-2-7b;(2)蒸馏赋予SLMs出色的零样本情感分类能力,使其能够达到甚至超越其教师模型。这些结果表明,从LLMs中蒸馏是FSA领域一个极具前景的方向。我们将在https://github.com/HITSZ-HLT/FSA-Distillation发布代码、数据和预训练模型权重。

英文摘要:

Fine-grained sentiment analysis (FSA) aims to extract and summarize user opinions from vast opinionated text. Recent studies demonstrate that large language models (LLMs) possess exceptional sentiment understanding capabilities. However, directly deploying LLMs for FSA applications incurs high inference costs. Therefore, this paper investigates the distillation of fine-grained sentiment understanding from LLMs into small language models (SLMs). We prompt LLMs to examine and interpret the sentiments of given reviews and then utilize the generated content to pretrain SLMs. Additionally, we develop a comprehensive FSA benchmark to evaluate both SLMs and LLMs. Extensive experiments on this benchmark reveal that: (1) distillation significantly enhances the performance of SLMs in FSA tasks, achieving a 6.00\% improvement in $F_1$-score, and the distilled model can outperform Llama-2-7b with only 220M parameters; (2) distillation equips SLMs with excellent zero-shot sentiment classification capabilities, enabling them to match or even exceed their teacher models. These results suggest that distillation from LLMs is a highly promising direction for FSA. We will release our code, data, and pretrained model weights at https://github.com/HITSZ-HLT/FSA-Distillation.

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

↑