Abstract
Sentiment Analysis (SA) has evolved from simple polarity detection to complex tasks involving aspect extraction and multifaceted subjective analysis. This paper provides a comprehensive evaluation of Large Language Models (LLMs) against traditional fine-tuned "Small" Language Models (SLMs) across 26 datasets and 13 distinct tasks. Our findings reveal that while LLMs are nearly on par with specialized models for basic classification, they encounter a "complexity ceiling" in structured tasks. However, LLMs remain superior in low-data, few-shot scenarios, highlighting their role as powerful general-purpose tools in the modern SA landscape.
Introduction
The rise of Large Language Models (LLMs) like ChatGPT has transformed natural language processing. However, their specific efficacy in Sentiment Analysis—a field that now includes Aspect-Based Sentiment Analysis (ABSA) and Multifaceted Analysis of Subjective Text (MAST)—remained under-explored. This research addresses this gap by conducting a systematic "reality check," comparing state-of-the-art LLMs with SLMs meticulously fine-tuned on domain-specific data.
Methodology and Datasets
The study evaluates four LLMs—Flan-T5 (11B), Flan-UL2 (20B), GPT-3.5, and ChatGPT—against a fine-tuned T5-large (770M) model. Evaluation settings included zero-shot and few-shot (1, 5, or 10 examples) configurations. To account for prompt sensitivity, GPT-4 was used to generate five prompt variations for each task to test the models' robustness.
The evaluation spanned 26 datasets categorized into three main areas:
- Sentiment Classification (SC): Standard benchmarks like IMDb and Yelp.
- Aspect-Based Sentiment Analysis (ABSA): Complex tasks requiring the extraction of (aspect, opinion, sentiment) triplets.
- Multifaceted Analysis (MAST): Detecting irony, hate speech, stance, and comparative opinions.
The researchers also introduced SENTIEVAL, a new benchmark designed to mimic real-world usage by mixing tasks and using diverse, natural language instructions to test model robustness.
Key Insights and Results
A primary finding is the "Complexity Ceiling." While LLMs have effectively solved binary sentiment classification, they struggle with tasks requiring structured outputs. For instance, some models failed ABSA tasks entirely due to formatting errors, such as failing to return a Python list of tuples as requested. In the Aspect Sentiment Triplet Extraction (ASTE) task, ChatGPT achieved a score of 34.47, significantly trailing the fine-tuned SLM's score of 61.06.
Conversely, LLMs exhibit "Few-Shot Dominance." In scenarios with only 1 to 10 labeled examples, LLMs using in-context learning consistently outperformed fine-tuned SLMs. This suggests that for data-scarce environments, LLMs are the preferred choice. Furthermore, the study found that instruction tuning is more critical than raw parameter count; the 20B Flan-UL2 often outperformed the 175B GPT-3.5.
In zero-shot simple classification, ChatGPT reached approximately 97% of the performance of a fully fine-tuned SLM. However, on the SENTIEVAL benchmark, ChatGPT led with a score of 47.55% (exact match). While this was the top performance among LLMs, the relatively low absolute score indicates that handling diverse, natural language prompts remains a significant challenge for current AI.
Limitations and Future Directions
The study notes several hurdles for the field, including a focus on English-language datasets, which may overlook cultural nuances in sentiment. Additionally, the rapid evolution of social media language (slang, new emojis, evolving sarcasm) presents a "moving target" that current static LLMs struggle to track. Future work should focus on real-time knowledge updates and expanding context windows to handle document-level tasks more effectively.
Conclusion
LLMs are exceptional generalists for sentiment analysis, particularly in few-shot settings. However, for high-precision, structured data extraction, specialized fine-tuned models remain indispensable. The choice between LLM and SLM ultimately depends on the complexity of the task and the availability of training data.
Summary updated