Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Language Models for Text Classification: Is In-Context Learning Enough? (2403.17661v2)

Published 26 Mar 2024 in cs.CL and cs.AI

Abstract: Recent foundational LLMs have shown state-of-the-art performance in many NLP tasks in zero- and few-shot settings. An advantage of these models over more standard approaches based on fine-tuning is the ability to understand instructions written in natural language (prompts), which helps them generalise better to different tasks and domains without the need for specific training data. This makes them suitable for addressing text classification problems for domains with limited amounts of annotated instances. However, existing research is limited in scale and lacks understanding of how text generation models combined with prompting techniques compare to more established methods for text classification such as fine-tuning masked LLMs. In this paper, we address this research gap by performing a large-scale evaluation study for 16 text classification datasets covering binary, multiclass, and multilabel problems. In particular, we compare zero- and few-shot approaches of LLMs to fine-tuning smaller LLMs. We also analyse the results by prompt, classification type, domain, and number of labels. In general, the results show how fine-tuning smaller and more efficient LLMs can still outperform few-shot approaches of larger LLMs, which have room for improvement when it comes to text classification.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (2)
  1. Aleksandra Edwards (3 papers)
  2. Jose Camacho-Collados (58 papers)
Citations (8)
X Twitter Logo Streamline Icon: https://streamlinehq.com