[Paper Review] Text Classification via Large Language Models
CARP introduces Clue And Reasoning Prompting to enhance LLM-based text classification by (1) collecting clues, (2) diagnostic reasoning, and (3) final decision, using kNN-based demonstrations from a fine-tuned model to overcome token limits; it achieves SOTA on multiple benchmarks and strong low-resource/domain-adaptation performance.
Despite the remarkable success of large-scale 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 $k$NN 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. Specifically, using 16 examples per class, CARP achieves comparable performances to supervised models with 1,024 examples per class.
Motivation & Objective
- Motivate the use of large language models (LLMs) for text classification despite existing gaps to fine-tuned models.
- Propose CARP (Clue And Reasoning Prompting) to decomposed reasoning into clues collection, diagnostic reasoning, and final decision.
- Address token limitations in in-context learning by incorporating kNN-based demonstrations from a fine-tuned model.
- Demonstrate state-of-the-art performance on popular text-classification benchmarks under zero-shot, few-shot, and full-data regimes.
- Showcase CARP's robustness in low-resource and domain-adaptation settings.
Proposed method
- Decompose text classification reasoning into three steps: collect clues (keywords, tones, relations), induce diagnostic reasoning from clues and input, and make a final label decision.
- Use in-context learning with demonstrations; retrieve k nearest neighbors from a fine-tuned RoBERTa-based encoder to form task-specific demonstrations (kNN) to mitigate token limits.
- Adopt a progressive prompting strategy (CARP) where LLMs first identify superficial clues, then reason over them, and finally output the label.
- Employ zero-shot, few-shot, and full data experiments with InstructGPT-3 (text-davinci-003) as the backbone; compare against vanilla ICL, CoT, and supervised baselines.
- Conduct demonstrations via multiple sampling strategies (Random, SimCSE kNN-Sampler, FT kNN-Sampler) and propose voting schemes (Majority, Weighted Probability) to aggregate multiple runs.
- Evaluate on SST-2, AGNews, R8, R52, MR datasets; report mean and std over 5 runs.
Experimental results
Research questions
- RQ1Can CARP improve text classification by decomposing reasoning into clues and diagnostic reasoning beyond standard prompting?
- RQ2Does using kNN demonstrations from a task-tuned encoder improve in-context learning under token constraints?
- RQ3How does CARP perform relative to vanilla prompting, Chain-of-Thought prompting, and supervised baselines across datasets and resource settings?
- RQ4Is CARP robust to domain shifts and low-resource scenarios?
- RQ5What are the effects of different demonstration sampling strategies and voting schemes on CARP performance?
Key findings
- CARP achieves new SOTA on four of five benchmarks: SST-2, AGNews, R8, and R52; MR is competitive with a small margin.
- Zero-shot CARP and few-shot CARP consistently outperform vanilla prompting and CoT baselines.
- With 16 demonstrations per class, CARP reaches performance comparable to supervised models trained on much larger labelled sets; in low-resource regimes, CARP approaches full-data supervised performance.
- kNN-based demonstration retrieval using a fine-tuned encoder (FT RoBERTa) outperforms semantic encoders like SimCSE for task-specific retrieval.
- WP voting further improves results, e.g., CARP (WP Vote) achieving 97.39 on SST-2, 96.40 on AGNews, 98.78 on R8, 96.95 on R52, and 92.39 on MR.
- CARP shows strong domain adaptation capabilities, with limited degradation when demonstrations come from a different domain.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.