mlsanityData to 7 Oct 2026

Language Models for Text Classification: Is In-Context Learning Enough?

arXiv 2403.17661 ↗First posted 26 Mar 2024cs.CL cs.AIcited by 39

Not on the map. Why?

Abstract (arXiv)

Recent foundational language models 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 language models. 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 large language models to fine-tuning smaller language models. 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 language models can still outperform few-shot approaches of larger language models, which have room for improvement when it comes to text classification.

Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Builds on 46 of its 79 references that are in the map. First posted on arXiv 26 Mar 2024.

Builds on

46 of 79 references.

References · 46

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  9. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  10. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  11. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  12. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
34 more
  1. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  2. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  3. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  4. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  5. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
  6. 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 996
  7. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
  8. 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
  9. 2016Bag of Tricks for Efficient Text Classificationcited by 869
  10. 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
  11. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  12. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  13. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  14. 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
  15. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
  16. 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
  17. 2018Generalized Zero- and Few-Shot Learning via Aligned Variational Autoencoderscited by 206
  18. 2019SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)cited by 206
  19. 2021How Many Data Points is a Prompt Worth?cited by 197
  20. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 134
  21. 2019Large-Scale Multi-Label Text Classification on EU Legislationcited by 104
  22. 2017Deceiving Google's Perspective API Built for Detecting Toxic Commentscited by 99
  23. 2020The Turking Test: Can Language Models Understand Instructions?cited by 82
  24. 2023Evaluating the Zero-shot Robustness of Instruction-tuned Language Modelscited by 63
  25. 2020An Empirical Study on Large-Scale Multi-Label Text Classification Including Few and Zero-Shot Labelscited by 44
  26. 2023Prompt2Model: Generating Deployable Models from Natural Language Instructionscited by 40
  27. 2022Zero-Shot Text Classification with Self-Trainingcited by 26
  28. 2023A Zero-shot and Few-shot Study of Instruction-Finetuned Large Language Models Applied to Clinical and Biomedical Taskscited by 25
  29. 2020Don't Patronize Me! An Annotated Dataset with Patronizing and Condescending Language towards Vulnerable Communitiescited by 19
  30. 2021Guiding Generative Language Models for Data Augmentation in Few-Shot Text Classificationcited by 14
  31. 2022Few-shot learning for medical text: A systematic reviewcited by 12
  32. 2023Large Language Models Vote: Prompting for Rare Disease Identificationcited by 9
  33. 2017Towards a Seamless Integration of Word Senses into Downstream NLP Applicationscited by 4
  34. 2021A Sentence-level Hierarchical BERT Model for Document Classification with Limited Labelled Datacited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 10; 2025: 18; 2026: 11.

39 papers.

Sort:

By area:

  1. 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classificationcited by 66
  2. 2024RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Contentcited by 26
  3. 2024Evaluating the Capabilities of Large Language Models for Multi-label Emotion Understandingcited by 17
  4. 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attackscited by 9
  5. 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuningcited by 7
  6. 2025LLM-based Semantic Augmentation for Harmful Content Detectioncited by 7
  7. 2025Active Few-Shot Learning for Text Classificationcited by 6
  8. 2025STEER-BENCH: A Benchmark for Evaluating the Steerability of Large Language Modelscited by 6
  9. 2025Human Behavior Atlas: Benchmarking Unified Psychological and Social Behavior Understandingcited by 5
  10. 2024Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detectioncited by 3
  11. 2025IYKYK: Using language models to decode extremist cryptolectscited by 3
  12. 2024Zero-shot prompt-based classification: topic labeling in times of foundation models in German Tweetscited by 2
27 more
  1. 2024Leveraging Open-Source Large Language Models for Native Language Identificationcited by 2
  2. 2024Scalable Detection of Salient Entities in News Articlescited by 1
  3. 2024Concept Distillation from Strong to Weak Models via Hypotheses-to-Theories Promptingcited by 1
  4. 2024Data Quality Enhancement on the Basis of Diversity with Large Language Models for Text Classification: Uncovered, Difficult, and Noisycited by 1
  5. 2025Inceptive Transformers: Enhancing Contextual Representations through Multi-Scale Feature Learning Across Domains and Languagescited by 1
  6. 2025From Domain Documents to Requirements: Retrieval-Augmented Generation in the Space Industrycited by 1
  7. 2025A Multi-Stage Large Language Model Framework for Extracting Suicide-Related Social Determinants of Healthcited by 1
  8. 2025Are LLMs Enough for Hyperpartisan, Fake, Polarized and Harmful Content Detection? Evaluating In-Context Learning vs. Fine-Tuningcited by 1
  9. 2025Order from Chaos: Comparative Study of Ten Leading LLMs on Unstructured Data Categorizationcited by 1
  10. 2025Efficient Text Classification with Conformal In-Context Learningcited by 1
  11. 2026CodeGuard: Improving LLM Guardrails in CS Educationcited by 1
  12. 2026A Controlled Synthetic Benchmark for Educational Aspect-Based Sentiment Analysiscited by 1
  13. 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
  14. 2025A Comparative Study of Task Adaptation Techniques of Large Language Models for Identifying Sustainable Development Goalscited by 0
  15. 2025Online Anti-sexist Speech: Identifying Resistance to Gender Bias in Political Discoursecited by 0
  16. 2025Trained Miniatures: Low cost, High Efficacy SLMs for Sales & Marketingcited by 0
  17. 2025From scratch to silver: Creating trustworthy training data for patent-SDG classification using Large Language Modelscited by 0
  18. 2025Poodle: Seamlessly Scaling Down Large Language Models with Just-in-Time Model Replacementcited by 0
  19. 2026PerSoMed: A Large-Scale Balanced Dataset for Persian Social Media Text Classificationcited by 0
  20. 2026How Much Noise Can BERT Handle? Insights from Multilingual Sentence Difficulty Detectioncited by 0
  21. 2026AI Appeals Processor: A Deep Learning Approach to Automated Classification of Citizen Appeals in Government Servicescited by 0
  22. 2026AutoTail-BSFGM: Class-Balance-Aware Fine-Tuning for Chinese Scholarly Text Classificationcited by 0
  23. 2026Supervision versus Demonstration-Based In-Context Learning for Multiword Expression Classificationcited by 0
  24. 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate Newscited by 0
  25. 2026The Cross-Domain Generalization Cost of Offensive Language Detectioncited by 0
  26. 2026Against Political Polarization: A Unified Framework for Tracing Evolving Political Ideologies on Social Mediacited by 0
  27. 2026Automated Detection and Structuring of Social Tipping Point Evidence in Climate related Documents: A Modular AI Frameworkcited by 0