Text Classification via Large Language Models
Xiaofei Sun, Xiaoya Li, Jiwei Li et al. · 2023
Despite the remarkable success of largescale Language Models (LLMs) such as GPT-3, their performances still significantly underperform fine-tuned models in the task of text classification.This is due to ( 1) the lack of reasoning ability in addressing complex linguistic phenomena (e.g., intensification, contrast, irony etc); (2) limited number of tokens allowed in in-context learning.In this paper, we introduce Clue And Reasoning Prompting (CARP).CARP adopts a progressive reasoning strategy tailored to addressing the complex linguistic phenomena involved in text classification: CARP first prompts LLMs to find superficial clues (e.g., keywords, tones, semantic relations, references, etc), based on which a diagnostic reasoning process is induced for final decisions.To further address the limited-token issue, CARP uses a fine-tuned model on the supervised dataset for kNN demonstration search in the in-context learning, allowing the model to take the advantage of both LLM's generalization ability and the task-specific evidence provided by the full labeled dataset.Remarkably, CARP yields new SOTA performances on 4 out of 5 widely-used text-classification benchmarks, 97.39 (+1.24) on SST-2, 96.40 (+0.72) on AGNews, 98.78 (+0.25) on R8 and 96.95 (+0.6) on R52, and a performance comparable to SOTA on MR (92.39 v.s.93.3).More importantly, we find that CARP delivers impressive abilities on low-resource and domain-adaptation setups: using 16 examples per class, CARP achieves comparable performances to supervised models with 1,024 examples per class.Code is available at github.com/ShannonAI/GPT-CLS- CARP 1 2 3
Cited by 199 works. doi:10.18653/v1/2023.findings-emnlp.603 Open-access PDF
Authors
References
- Exploiting Generative AI to Scale up Intelligent Tutoring Systems
- AI-Assisted Pipeline for Dynamic Generation of Trustworthy Health Supplement Content at Scale
- Convolutional Neural Networks for Sentence Classification
- HISTORIAE, History of Socio-Cultural Transformation as Linguistic Data Science. A Humanities Use Case
- Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank
- Aion Framework: Dimensional Emergence of AI Consciousness, Observer-Induced Collapse, and Cosmological Portal Dynamics
- Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension
- Universal Language Model Fine-tuning for Text Classification
- A large annotated corpus for learning natural language inference