Abstract
As Large Language Models (LLMs) redefine the landscape of Natural Language Processing, their efficacy in specialized domains like Sentiment Analysis (SA) warrants a rigorous evaluation. This paper provides a comprehensive "reality check" by benchmarking LLMs—including ChatGPT and GPT-3.5—against traditional fine-tuned Small Language Models (SLMs) across 13 diverse tasks. The findings reveal that while LLMs are highly capable in data-scarce and simple classification scenarios, they continue to lag behind specialized models in complex, structured extraction tasks.
Introduction
Sentiment Analysis has transitioned from basic polarity classification to nuanced tasks involving aspect-level extraction, irony detection, and intent analysis. Historically, the field relied on specialized Small Language Models (SLMs) fine-tuned on extensive labeled datasets. The emergence of general-purpose LLMs like GPT-4 and ChatGPT raises a pivotal question: are specialized models still necessary? This study addresses this by providing a holistic evaluation of LLM capabilities across the entire SA spectrum.
Methodology and Prompting Strategy
The researchers compared several LLMs, including Flan-T5 (11B), Flan-UL2 (20B), GPT-3.5 (text-davinci-003), and ChatGPT, against a specialized T5-large (770M) baseline. To evaluate these models fairly, a consistent prompting strategy was employed, incorporating task names, definitions, and specific output format requirements.
The models were tested in zero-shot and few-shot (1, 5, and 10 examples) configurations. Beyond automated metrics, human evaluation was conducted under both "strict" and "relaxed" conditions to determine if LLMs captured the correct sentiment even when failing to adhere to exact formatting constraints.
Evaluation Framework: The SENTIEVAL Benchmark
The study utilized 26 datasets categorized into three primary areas:
- Sentiment Classification (SC): Standard document and sentence-level datasets (e.g., IMDb, Yelp).
- Aspect-Based Sentiment Analysis (ABSA): Complex tasks requiring (aspect, opinion, sentiment) extraction.
- Multifaceted Analysis of Subjective Text (MAST): Specialized tasks such as Hate Speech detection, Irony detection, and Emotion recognition.
To unify these disparate tasks, the authors introduced SENTIEVAL, a benchmark designed to assess model robustness against varying prompt designs within a single instruction-following framework.
Key Insights and Results
The Structure Struggle
A significant finding is the "Structure Struggle": LLMs demonstrate a strong conceptual understanding of sentiment but often fail to adhere to the rigid output formats required for Aspect-Based tasks. In the ASQP (Aspect-Sentiment-Quadruple Prediction) task, the fine-tuned SLM achieved an F1 score of 61.06, whereas zero-shot ChatGPT managed only 37.09.
Data Efficiency and Few-Shot Performance
LLMs emerge as "data-efficient" champions. In few-shot scenarios (1–10 examples), LLMs consistently outperformed SLMs. Analysis suggests that an SLM typically requires 5 to 10 times more labeled data to match the performance of a 10-shot ChatGPT baseline.
Instruction Tuning vs. Parameter Count
The results indicate that instruction tuning is more critical than raw size. For instance, Flan-UL2 (20B) frequently outperformed the much larger text-davinci-003 (175B), highlighting the importance of training models to follow specific directions.
The RLHF "Over-alignment" Trap
Interestingly, ChatGPT underperformed in irony and hate speech detection. The authors hypothesize that Reinforcement Learning from Human Feedback (RLHF), intended to ensure safety and politeness, may make models "too nice," causing them to overlook subtle toxicity or ironic negativity.
Conclusion and Future Directions
While LLMs offer impressive zero-shot capabilities—reaching 97% of fine-tuned performance on simple binary tasks—they are not yet a total replacement for specialized models. Limitations include context window constraints for long documents and difficulties with rapidly evolving linguistic nuances like social media slang. Future research should focus on improving instruction-following for structured extraction and developing mechanisms for rapid, real-time model updates to handle evolving language.
Summary updated