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.
This 2023 evaluation of LLMs (ChatGPT, text-davinci-003, Flan-T5, Flan-UL2) against small specialized models (SLMs) across 13 sentiment analysis tasks and 26 datasets finds that the LLM/SLM comparison flips once labeled data is scarce: "in the context of few-shot learning, with a limited quantity of annotated data, LLMs consistently outperform SLMs... suggesting the application of LLMs is advantageous when annotation resources are scarce." The paper qualifies this immediately: "the restricted context length of LLMs can limit their use case, particularly in document-level tasks where SLMs might be more suitable." A further qualification concerns scale itself: "larger models do not always guarantee superior performance, for instance, Flan-UL2 often performs comparably to the GPT-3.5 series of models, despite being much smaller in size," which the authors read as evidence that "employing instruction-tuning to attain a reasonably sized model may suffice for practical SA application."
The mechanism the paper points to is in-context learning versus fine-tuning from scratch: when both model types see the same handful of labeled examples, the LLM draws on pretrained general understanding rather than needing to learn task parameters from that small sample, which is why it wins where SLMs — needing enough examples to fit — do not. The context-length ceiling cuts against this in document-level tasks specifically, where long input text leaves little room for few-shot exemplars in the prompt. The instruction-tuning point is offered as the explanation for why scale and few-shot performance don't move together: a well instruction-tuned smaller model (Flan-UL2) can match a larger one (GPT-3.5 series).
Read alongside its sibling note, Do large language models actually excel at sentiment analysis tasks?, the two findings together say which resource is scarce matters more than whether the setting counts as "low-resource" in general: the structured-output gap is about task format, while this one is about how few labeled examples exist. That distinction also separates this finding from Why do language models fail confidently in specialized domains?, where LLMs are overconfident and inaccurate in a low-resource clinical/biomedical setting — there the scarce resource is domain knowledge, not labeled examples, and the outcome for LLMs is the opposite: failure rather than an advantage.
The excerpt does not give shot counts, accuracy or F1 deltas, or specify which of the 13 tasks the few-shot comparison covers (those figures sit in tables not included here), so the size of the few-shot advantage, and exactly how much context length erodes it on document-level tasks, remain unquantified. It is also silent on whether the instruction-tuning explanation for Flan-UL2's parity with GPT-3.5 was tested directly or is offered as an interpretation of the result.
Inquiring lines that read this note 1
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 2
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 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.
same source's complementary finding: task structure, not data scarcity, is where LLMs instead lag behind SLMs
-
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?
a contrasting low-resource setting: there scarce domain knowledge leaves LLMs overconfident and wrong, here scarce annotation is where LLMs win
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
- Adam's Law: Textual Frequency Law on Large Language Models
- Long-context LLMs Struggle with Long In-context Learning
- The Alternative Annotator Test for LLM-as-a-Judge: How to Statistically Justify Replacing Human Annotators with LLMs
- Linguistic Blind Spots of Large Language Models
- Six misconceptions about large language models: A minimal model and diagnostic taxonomy
- In-Context Principle Learning from Mistakes
- Bigger is not always better: The importance of human-scale language modeling for psycholinguistics
Original note title
LLMs outperform SLMs in few-shot sentiment analysis when annotated data is scarce despite limited context length