Do large language models actually excel at sentiment analysis tasks?
Recent work compares ChatGPT-era LLMs to fine-tuned smaller models across sentiment tasks to understand where LLMs perform well and where they struggle compared to specialized alternatives.
This 2023 "reality check" evaluates large language models — ChatGPT (gpt-3.5-turbo), text-davinci-003, Flan-T5, Flan-UL2 — against small specialized models (SLMs, e.g. T5) trained on domain-specific data, across 13 sentiment analysis (SA) tasks on 26 datasets: sentiment classification (SC), aspect-based sentiment analysis (ABSA), and multifaceted analysis of subjective texts (MAST, e.g. hate speech and irony detection). The headline finding draws a capability line by task structure, not just task name: "For simple SA tasks such as binary or trinary sentiment classification, LLMs can already serve as effective solutions... their performance can match or surpass fine-tuned smaller language models, and with little sensitivity to different prompt designs." But "for tasks requiring structured sentiment output, like aspect-based sentiment analysis tasks, LLMs might not be the best option. They tend to lag behind SLMs in both automatic and human evaluations, and performance can vary significantly with different prompt designs."
The paper's own account of the mechanism is about output format, not raw difficulty: ABSA (e.g. UABSA, jointly extracting an aspect term and its polarity, scored by exact-match Micro-F1) demands "structured sentiment information" from a model that is "typically a text generation" system rather than a classifier trained to produce that structure. The same mismatch shows up as prompt fragility — the discussion's "Sensitivity on Prompt Design" section notes that "variations in prompt design can substantially influence the performance of ChatGPT" on these structured tasks, while simple classification stays stable across prompt phrasings.
This sharpens a boundary also visible in Why do language models fail confidently in specialized domains?, where LLMs underperform and stay overconfident on specialized clinical/biomedical inference despite prompting fixes — both findings locate LLM weakness not in sentiment or emotion recognition generally but in tasks that require precise, structured, or specialized output rather than a holistic read. Do language models overestimate how often irony appears? gives a concrete MAST-category instance of the same boundary: irony detection is simple to frame as a task but, like ABSA, exposes a gap between surface pattern-matching and the structured or pragmatic understanding the task actually requires.
The excerpt does not report the actual accuracy or F1 gaps (its numbers sit in a Table 1 not included here), so the size of the LLM/SLM lag on ABSA is unquantified. It also tests only GPT-3.5-era models (ChatGPT, text-davinci-003) and open-source Flan models, not later, more capable instruction-tuned LLMs, so whether this structured-output gap narrows or persists in newer models is an open question the excerpt cannot settle — only that, as of this 2023 evaluation, task structure predicts LLM sentiment-analysis performance better than task familiarity does.
Inquiring lines that read this note 2
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Do language models learn genuine linguistic structure or just surface patterns?Related concepts in this collection 3
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Do large language models beat smaller ones when training data is scarce?
When labeled examples are limited, do LLMs outperform specialized smaller models despite their context-length constraints? This matters because it determines whether to invest in annotation or rely on pretrained general knowledge.
same source's complementary finding: annotation scarcity, not task structure, is where the comparison flips in LLMs' favor
-
Why do language models fail confidently in specialized domains?
LLMs perform poorly on clinical and biomedical inference tasks while remaining overconfident in their wrong answers. Do standard benchmarks hide this fragility, and can prompting techniques fix it?
another specialized-task setting where LLMs underperform despite prompting, echoing the structured/specialized-task capability boundary
-
Do language models overestimate how often irony appears?
This explores whether LLMs systematically misread ironic intent in text, assigning higher irony scores than humans do. The gap suggests models learn irony patterns from training data without understanding their actual frequency in real communication.
irony detection is one of the MAST tasks this capability boundary covers, showing a concrete nuanced-sentiment failure mode
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Sentiment Analysis in the Era of Large Language Models: A Reality Check
- Large Language Models: A Survey
- Linguistic Blind Spots of Large Language Models
- Monitoring AI-Modified Content at Scale: A Case Study on the Impact of ChatGPT on AI Conference Peer Reviews
- Hybrid LLM: Cost-Efficient and Quality-Aware Query Routing
- Stance Detection on Social Media with Fine-Tuned Large Language Models
- Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference
- Are LLMs All You Need for Task-Oriented Dialogue?
Original note title
LLMs match SLMs on simple sentiment classification zero-shot but lag behind on structured aspect-based sentiment analysis