Saved in:
Bibliographic Details
Main Authors: Zhang, Yice, Xie, Guangyu, Xu, Hongling, Hou, Kaiheng, Bao, Jianzhu, Wang, Qianlong, Chen, Shiwei, Xu, Ruifeng
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.18552
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910766084390912
author Zhang, Yice
Xie, Guangyu
Xu, Hongling
Hou, Kaiheng
Bao, Jianzhu
Wang, Qianlong
Chen, Shiwei
Xu, Ruifeng
author_facet Zhang, Yice
Xie, Guangyu
Xu, Hongling
Hou, Kaiheng
Bao, Jianzhu
Wang, Qianlong
Chen, Shiwei
Xu, Ruifeng
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_18552
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Distilling Fine-grained Sentiment Understanding from Large Language Models
Zhang, Yice
Xie, Guangyu
Xu, Hongling
Hou, Kaiheng
Bao, Jianzhu
Wang, Qianlong
Chen, Shiwei
Xu, Ruifeng
Computation and Language
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.
title Distilling Fine-grained Sentiment Understanding from Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2412.18552