[Paper Review] Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Science
In a zero-shot setting, off-the-shelf instruction-tuned LLMs (GPT-3.5-turbo and OpenAssistant-LLaMA) underperform compared with fine-tuned BERT-large on six CSS classification tasks, though prompt design and synonym variations can substantially impact accuracy and F1 scores.
Instruction-tuned Large Language Models (LLMs) have exhibited impressive language understanding and the capacity to generate responses that follow specific prompts. However, due to the computational demands associated with training these models, their applications often adopt a zero-shot setting. In this paper, we evaluate the zero-shot performance of two publicly accessible LLMs, ChatGPT and OpenAssistant, in the context of six Computational Social Science classification tasks, while also investigating the effects of various prompting strategies. Our experiments investigate the impact of prompt complexity, including the effect of incorporating label definitions into the prompt; use of synonyms for label names; and the influence of integrating past memories during foundation model training. The findings indicate that in a zero-shot setting, current LLMs are unable to match the performance of smaller, fine-tuned baseline transformer models (such as BERT-large). Additionally, we find that different prompting strategies can significantly affect classification accuracy, with variations in accuracy and F1 scores exceeding 10\%.
Motivation & Objective
- Evaluate zero-shot performance of GPT-3.5-turbo and OpenAssistant-LLaMA on six CSS classification tasks.
- Compare zero-shot LLM performance with a Logistic Regression baseline and a fine-tuned BERT-large baseline.
- Systematically assess prompting strategies (instruction, task/label descriptions, few-shot prompts, memory recall) and their effects on performance.
- Explore risks such as data leakage/memory recall and the stability of LLM outputs under different prompts.
Proposed method
- Evaluate six English-language social media datasets (Complaint, Vaccine Stance, Bragging, Rumor Stance, Sarcasm, Hate Speech) with train/test splits.
- Test prompting strategies: Basic Instruction, Task/Label Description, Few-shot, Memory Recall, and Synonym-based variants.
- Compare zero-shot LLMs (GPT-3.5-turbo and OA-LLaMA) against Logistic Regression with TF-IDF and a fine-tuned BERT-large baseline.
- Operate LLMs with low temperature settings to ensure repeatability; run baselines with three random seeds; report Accuracy and macro-F1.
- In Synonyms experiments, substitute class labels with synonyms and apply ensemble methods (Ensemble Majority, Ensemble All Agreed).
- Examine memory recall prompts using arXiv paper titles and assess potential data leakage concerns.
Experimental results
Research questions
- RQ1RQ1: What zero-shot performance level can LLMs achieve on social media classification tasks, and how does it compare to fine-tuned baselines?
- RQ2RQ2: Which LLM prompt strategies yield the best zero-shot performance for social media classification tasks?
- RQ3RQ3: What risks arise from using these prompt strategies, including memory recall and potential data leakage?
Key findings
- LLMs in zero-shot settings generally outperform Logistic Regression but often lag behind fine-tuned BERT-large on most tasks.
- GPT-3.5-turbo tends to have higher F1-macro than OpenAssistant-LLaMA across tasks, though OA can outperform GPT in accuracy on some imbalanced datasets.
- Simple prompts often perform as well or better than complex prompts; adding labels, task descriptions, or few-shot examples can introduce noise or decrease performance.
- Using synonyms for class labels can significantly boost OA performance across datasets (except Bragging); ensemble methods with synonyms can further improve robustness.
- Memory recall prompts (e.g., including arXiv paper titles) reveal potential data leakage risks and memory effects, prompting caution in zero-shot evaluation.
- Overall, LLMs show potential as data annotation aids but require careful prompt design and awareness of limitations and costs.
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.