Language Models for Text Classification: Is In-Context Learning Enough?
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
34 more
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2020Domain-Specific Language Model Pretraining for Biomedical Natural Language Processingcited by 996
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2016Bag of Tricks for Efficient Text Classificationcited by 869
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 858
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 668
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
- 2018Generalized Zero- and Few-Shot Learning via Aligned Variational Autoencoderscited by 206
- 2019SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Social Media (OffensEval)cited by 206
- 2021How Many Data Points is a Prompt Worth?cited by 197
- 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 134
- 2019Large-Scale Multi-Label Text Classification on EU Legislationcited by 104
- 2017Deceiving Google's Perspective API Built for Detecting Toxic Commentscited by 99
- 2020The Turking Test: Can Language Models Understand Instructions?cited by 82
- 2023Evaluating the Zero-shot Robustness of Instruction-tuned Language Modelscited by 63
- 2020An Empirical Study on Large-Scale Multi-Label Text Classification Including Few and Zero-Shot Labelscited by 44
- 2023Prompt2Model: Generating Deployable Models from Natural Language Instructionscited by 40
- 2022Zero-Shot Text Classification with Self-Trainingcited by 26
- 2023A Zero-shot and Few-shot Study of Instruction-Finetuned Large Language Models Applied to Clinical and Biomedical Taskscited by 25
- 2020Don't Patronize Me! An Annotated Dataset with Patronizing and Condescending Language towards Vulnerable Communitiescited by 19
- 2021Guiding Generative Language Models for Data Augmentation in Few-Shot Text Classificationcited by 14
- 2022Few-shot learning for medical text: A systematic reviewcited by 12
- 2023Large Language Models Vote: Prompting for Rare Disease Identificationcited by 9
- 2017Towards a Seamless Integration of Word Senses into Downstream NLP Applicationscited by 4
- 2021A Sentence-level Hierarchical BERT Model for Document Classification with Limited Labelled Datacited by 4
Built on by
Citing papers per year: 2024: 10; 2025: 18; 2026: 11.
39 papers.
Sort:
By area:
- 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classificationcited by 66
- 2024RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Contentcited by 26
- 2024Evaluating the Capabilities of Large Language Models for Multi-label Emotion Understandingcited by 17
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attackscited by 9
- 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuningcited by 7
- 2025LLM-based Semantic Augmentation for Harmful Content Detectioncited by 7
- 2025Active Few-Shot Learning for Text Classificationcited by 6
- 2025STEER-BENCH: A Benchmark for Evaluating the Steerability of Large Language Modelscited by 6
- 2025Human Behavior Atlas: Benchmarking Unified Psychological and Social Behavior Understandingcited by 5
- 2024Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detectioncited by 3
- 2025IYKYK: Using language models to decode extremist cryptolectscited by 3
- 2024Zero-shot prompt-based classification: topic labeling in times of foundation models in German Tweetscited by 2
27 more
- 2024Leveraging Open-Source Large Language Models for Native Language Identificationcited by 2
- 2024Scalable Detection of Salient Entities in News Articlescited by 1
- 2024Concept Distillation from Strong to Weak Models via Hypotheses-to-Theories Promptingcited by 1
- 2024Data Quality Enhancement on the Basis of Diversity with Large Language Models for Text Classification: Uncovered, Difficult, and Noisycited by 1
- 2025Inceptive Transformers: Enhancing Contextual Representations through Multi-Scale Feature Learning Across Domains and Languagescited by 1
- 2025From Domain Documents to Requirements: Retrieval-Augmented Generation in the Space Industrycited by 1
- 2025A Multi-Stage Large Language Model Framework for Extracting Suicide-Related Social Determinants of Healthcited by 1
- 2025Are LLMs Enough for Hyperpartisan, Fake, Polarized and Harmful Content Detection? Evaluating In-Context Learning vs. Fine-Tuningcited by 1
- 2025Order from Chaos: Comparative Study of Ten Leading LLMs on Unstructured Data Categorizationcited by 1
- 2025Efficient Text Classification with Conformal In-Context Learningcited by 1
- 2026CodeGuard: Improving LLM Guardrails in CS Educationcited by 1
- 2026A Controlled Synthetic Benchmark for Educational Aspect-Based Sentiment Analysiscited by 1
- 2025Exploring Imbalanced Annotations for Effective In-Context Learningcited by 0
- 2025A Comparative Study of Task Adaptation Techniques of Large Language Models for Identifying Sustainable Development Goalscited by 0
- 2025Online Anti-sexist Speech: Identifying Resistance to Gender Bias in Political Discoursecited by 0
- 2025Trained Miniatures: Low cost, High Efficacy SLMs for Sales & Marketingcited by 0
- 2025From scratch to silver: Creating trustworthy training data for patent-SDG classification using Large Language Modelscited by 0
- 2025Poodle: Seamlessly Scaling Down Large Language Models with Just-in-Time Model Replacementcited by 0
- 2026PerSoMed: A Large-Scale Balanced Dataset for Persian Social Media Text Classificationcited by 0
- 2026How Much Noise Can BERT Handle? Insights from Multilingual Sentence Difficulty Detectioncited by 0
- 2026AI Appeals Processor: A Deep Learning Approach to Automated Classification of Citizen Appeals in Government Servicescited by 0
- 2026AutoTail-BSFGM: Class-Balance-Aware Fine-Tuning for Chinese Scholarly Text Classificationcited by 0
- 2026Supervision versus Demonstration-Based In-Context Learning for Multiword Expression Classificationcited by 0
- 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate Newscited by 0
- 2026The Cross-Domain Generalization Cost of Offensive Language Detectioncited by 0
- 2026Against Political Polarization: A Unified Framework for Tracing Evolving Political Ideologies on Social Mediacited by 0
- 2026Automated Detection and Structuring of Social Tipping Point Evidence in Climate related Documents: A Modular AI Frameworkcited by 0
- 2026Automated Detection and Structuring of Social Tipping Point Evidence in Climate related Documents: A Modular AI Framework10 Sep 2026
- 2026Against Political Polarization: A Unified Framework for Tracing Evolving Political Ideologies on Social Media18 Aug 2026
- 2026The Cross-Domain Generalization Cost of Offensive Language Detection26 Jul 2026
- 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate News25 Jun 2026
- 2026Supervision versus Demonstration-Based In-Context Learning for Multiword Expression Classification5 Jun 2026
- 2026AutoTail-BSFGM: Class-Balance-Aware Fine-Tuning for Chinese Scholarly Text Classification2 Jun 2026
- 2026A Controlled Synthetic Benchmark for Educational Aspect-Based Sentiment Analysis25 May 2026
- 2026AI Appeals Processor: A Deep Learning Approach to Automated Classification of Citizen Appeals in Government Services4 Apr 2026
- 2026How Much Noise Can BERT Handle? Insights from Multilingual Sentence Difficulty Detection7 Mar 2026
- 2026PerSoMed: A Large-Scale Balanced Dataset for Persian Social Media Text Classification22 Feb 2026
- 2026CodeGuard: Improving LLM Guardrails in CS Education22 Jan 2026
- 2025Efficient Text Classification with Conformal In-Context Learning5 Dec 2025
27 more
- 2025Poodle: Seamlessly Scaling Down Large Language Models with Just-in-Time Model Replacement5 Dec 2025
- 2025Order from Chaos: Comparative Study of Ten Leading LLMs on Unstructured Data Categorization14 Oct 2025
- 2025Human Behavior Atlas: Benchmarking Unified Psychological and Social Behavior Understanding6 Oct 2025
- 2025From scratch to silver: Creating trustworthy training data for patent-SDG classification using Large Language Models11 Sep 2025
- 2025Are LLMs Enough for Hyperpartisan, Fake, Polarized and Harmful Content Detection? Evaluating In-Context Learning vs. Fine-Tuning9 Sep 2025
- 2025Trained Miniatures: Low cost, High Efficacy SLMs for Sales & Marketing21 Aug 2025
- 2025Online Anti-sexist Speech: Identifying Resistance to Gender Bias in Political Discourse15 Aug 2025
- 2025A Multi-Stage Large Language Model Framework for Extracting Suicide-Related Social Determinants of Health7 Aug 2025
- 2025From Domain Documents to Requirements: Retrieval-Augmented Generation in the Space Industry10 Jul 2025
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks2 Jul 2025
- 2025A Comparative Study of Task Adaptation Techniques of Large Language Models for Identifying Sustainable Development Goals18 Jun 2025
- 2025IYKYK: Using language models to decode extremist cryptolects5 Jun 2025
- 2025STEER-BENCH: A Benchmark for Evaluating the Steerability of Large Language Models27 May 2025
- 2025Inceptive Transformers: Enhancing Contextual Representations through Multi-Scale Feature Learning Across Domains and Languages26 May 2025
- 2025LLM-based Semantic Augmentation for Harmful Content Detection22 Apr 2025
- 2025Active Few-Shot Learning for Text Classification26 Feb 2025
- 2025Exploring Imbalanced Annotations for Effective In-Context Learning6 Feb 2025
- 2024Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detection29 Dec 2024
- 2024Evaluating the Capabilities of Large Language Models for Multi-label Emotion Understanding17 Dec 2024
- 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuning11 Dec 2024
- 2024Data Quality Enhancement on the Basis of Diversity with Large Language Models for Text Classification: Uncovered, Difficult, and Noisy9 Dec 2024
- 2024Leveraging Open-Source Large Language Models for Native Language Identification15 Sep 2024
- 2024Concept Distillation from Strong to Weak Models via Hypotheses-to-Theories Prompting18 Aug 2024
- 2024Zero-shot prompt-based classification: topic labeling in times of foundation models in German Tweets26 Jun 2024
- 2024RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Content17 Jun 2024
- 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classification12 Jun 2024
- 2024Scalable Detection of Salient Entities in News Articles30 May 2024
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attackscited by 9
- 2025LLM-based Semantic Augmentation for Harmful Content Detectioncited by 7
- 2025Are LLMs Enough for Hyperpartisan, Fake, Polarized and Harmful Content Detection? Evaluating In-Context Learning vs. Fine-Tuningcited by 1
- 2026CodeGuard: Improving LLM Guardrails in CS Educationcited by 1
- 2026CodeGuard: Improving LLM Guardrails in CS Education22 Jan 2026
- 2025Are LLMs Enough for Hyperpartisan, Fake, Polarized and Harmful Content Detection? Evaluating In-Context Learning vs. Fine-Tuning9 Sep 2025
- 2025ICLShield: Exploring and Mitigating In-Context Learning Backdoor Attacks2 Jul 2025
- 2025LLM-based Semantic Augmentation for Harmful Content Detection22 Apr 2025
- 2024Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classificationcited by 66
- 2024RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Contentcited by 26
- 2024Advancing Single and Multi-task Text Classification through Large Language Model Fine-tuningcited by 7
- 2025Active Few-Shot Learning for Text Classificationcited by 6
- 2025STEER-BENCH: A Benchmark for Evaluating the Steerability of Large Language Modelscited by 6
- 2025Human Behavior Atlas: Benchmarking Unified Psychological and Social Behavior Understandingcited by 5
- 2024Controlling Out-of-Domain Gaps in LLMs for Genre Classification and Generated Text Detectioncited by 3
- 2025IYKYK: Using language models to decode extremist cryptolectscited by 3
- 2024Zero-shot prompt-based classification: topic labeling in times of foundation models in German Tweetscited by 2
- 2024Leveraging Open-Source Large Language Models for Native Language Identificationcited by 2
- 2024Scalable Detection of Salient Entities in News Articlescited by 1
- 2024Concept Distillation from Strong to Weak Models via Hypotheses-to-Theories Promptingcited by 1
12 most cited of 33 All 33 (JSON)
- 2026Automated Detection and Structuring of Social Tipping Point Evidence in Climate related Documents: A Modular AI Framework10 Sep 2026
- 2026Against Political Polarization: A Unified Framework for Tracing Evolving Political Ideologies on Social Media18 Aug 2026
- 2026The Cross-Domain Generalization Cost of Offensive Language Detection26 Jul 2026
- 2026Comparing BERT Sentence-Pair Classification and Few-Shot LLM Prompting for Detecting Threat and Solution Framing in German Climate News25 Jun 2026
- 2026Supervision versus Demonstration-Based In-Context Learning for Multiword Expression Classification5 Jun 2026
- 2026AutoTail-BSFGM: Class-Balance-Aware Fine-Tuning for Chinese Scholarly Text Classification2 Jun 2026
- 2026A Controlled Synthetic Benchmark for Educational Aspect-Based Sentiment Analysis25 May 2026
- 2026AI Appeals Processor: A Deep Learning Approach to Automated Classification of Citizen Appeals in Government Services4 Apr 2026
- 2026How Much Noise Can BERT Handle? Insights from Multilingual Sentence Difficulty Detection7 Mar 2026
- 2026PerSoMed: A Large-Scale Balanced Dataset for Persian Social Media Text Classification22 Feb 2026
- 2025Efficient Text Classification with Conformal In-Context Learning5 Dec 2025
- 2025Poodle: Seamlessly Scaling Down Large Language Models with Just-in-Time Model Replacement5 Dec 2025
12 newest of 33 All 33 (JSON)