[Paper Review] Sentiment Analysis in the Era of Large Language Models: A Reality Check
The paper evaluates large language models (LLMs) on 13 sentiment analysis tasks across 26 datasets, comparing zero-shot and few-shot LLM performance to small domain-tuned models, and proposes SentiEval as a new benchmark for realistic SA evaluation.
Sentiment analysis (SA) has been a long-standing research area in natural language processing. It can offer rich insights into human sentiments and opinions and has thus seen considerable interest from both academia and industry. With the advent of large language models (LLMs) such as ChatGPT, there is a great potential for their employment on SA problems. However, the extent to which existing LLMs can be leveraged for different sentiment analysis tasks remains unclear. This paper aims to provide a comprehensive investigation into the capabilities of LLMs in performing various sentiment analysis tasks, from conventional sentiment classification to aspect-based sentiment analysis and multifaceted analysis of subjective texts. We evaluate performance across 13 tasks on 26 datasets and compare the results against small language models (SLMs) trained on domain-specific datasets. Our study reveals that while LLMs demonstrate satisfactory performance in simpler tasks, they lag behind in more complex tasks requiring deeper understanding or structured sentiment information. However, LLMs significantly outperform SLMs in few-shot learning settings, suggesting their potential when annotation resources are limited. We also highlight the limitations of current evaluation practices in assessing LLMs' SA abilities and propose a novel benchmark, extsc{SentiEval}, for a more comprehensive and realistic evaluation. Data and code during our investigations are available at \url{https://github.com/DAMO-NLP-SG/LLM-Sentiment}.
Motivation & Objective
- Assess how well LLMs perform across a broad spectrum of sentiment analysis tasks from simple SC to ABSA and MAST.
- Compare zero-shot and few-shot LLM performance with small, domain-tuned language models on in-domain data.
- Critically evaluate current SA evaluation practices in the era of LLMs and propose a more comprehensive benchmark (SentiEval).
- Provide data and code to enable reproducibility and further research in LLM-based SA.”
Proposed method
- Systematic evaluation of 13 SA tasks across 26 datasets with a capped test set of 500 samples per dataset.
- Comparison of open-source LLMs (Flan-T5 XXL, Flan-UL2) and OpenAI GPT-3.5 family (ChatGPT, text-davinci-003) against a small language model (T5 large) trained on in-domain data.
- Use of zero-shot and few-shot prompting with carefully designed prompts to ensure consistency across models; exploration of multiple prompts (including GPT-4 generated prompts) to assess prompt sensitivity.
- Analysis includes standard automatic metrics (e.g., accuracy, micro-F1, macro-F1) and targeted human evaluation on fine-grained ABSA tasks.
- Evaluation of ABSA variants (UABSA, ASTE, ASQP) and MAST tasks (implicit sentiment, hate speech, irony, offensive language, stance, comparative, emotion).
- Investigation of prompt design sensitivity and its impact on ABSA versus SC tasks; discussion of RLHF-related biases (e.g., hate speech, irony, offensive language) observed in ChatGPT."
Experimental results
Research questions
- RQ1How well do large language models perform on a wide range of sentiment analysis tasks?
- RQ2Do large models outperform small, domain-tuned models in zero-shot and few-shot settings across SA tasks?
- RQ3Are current SA evaluation practices adequate for assessing LLM-based sentiment analysis, or is a more comprehensive benchmark needed?
- RQ4What are the limitations and pitfalls (e.g., prompt sensitivity, task structure) in applying LLMs to SA?
Key findings
- LLMs show satisfactory zero-shot performance on simple SA tasks like binary sentiment classification but lag behind fine-tuned small models on complex or structured tasks (e.g., ABSA).
- ChatGPT achieves about 97% of a fine-tuned T5 model on SC tasks and about 83% on MAST tasks in zero-shot settings, illustrating strong inherent SA ability but remaining gaps for structured outputs.
- In few-shot settings, LLMs consistently outperform SLMs with limited annotation, though context length and prompt design can constrain effectiveness.
- RLHF-aligned models (e.g., ChatGPT) may underperform on hate speech, irony, and offensive language tasks compared to some larger non-RLHF models, suggesting alignment biases.
- Prompt design substantially affects ABSA-type tasks, while SC tasks show relatively less sensitivity; human evaluation often shows better performance than automatic metrics for ABSA with LLMs.
- The authors introduce SentiEval as a benchmark to enable more comprehensive, varied-task evaluation and reduce prompt-design biases in SA testing.
- Data and code for reproducibility are provided at the authors’ repository (https://github.com/DAMO-NLP-SG/LLM-Sentiment).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.