Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Science

Yida Mu, Ben P. Wu, William Thorne, Ambrose Robinson, Nikolaos Aletras, Carolina Scarton, Kalina Bontcheva, Xingyi Song · DOI

Introduction

Recently accepted at LREC-COLING 2024, this study provides a critical evaluation of the "LLMs can do everything" narrative within specialized social science contexts. Researchers from the University of Sheffield investigated how instruction-tuned models, such as ChatGPT and OpenAssistant, perform on zero-shot classification across six Computational Social Science (CSS) tasks. Their findings suggest that while Large Language Models (LLMs) are formidable, they often struggle to surpass smaller, task-specific fine-tuned models.

The Challenge of Nuance in CSS

Computational Social Science involves the analysis of human behavior through digital footprints, frequently requiring the classification of complex speech acts like sarcasm, bragging, or rumor-mongering. Traditionally, these tasks necessitate labor-intensive manual annotation and the development of specialized models.

The emergence of instruction-tuned LLMs has led to a shift toward "off-the-shelf" zero-shot usage. However, the effectiveness of various prompting strategies—ranging from simple instructions to elaborate label definitions—remains poorly understood in the CSS domain.

Methodology

The researchers compared two LLMs—GPT-3.5-turbo (proprietary) and OpenAssistant-LLaMA (open-source)—against a weak baseline (Logistic Regression) and a strong baseline (BERT-large fine-tuned on specific tasks).

The study evaluated four distinct prompting strategies:

  1. Basic Instruction: A direct command (e.g., "Identify if this tweet is X").
  2. Task and Label Description (T/L Desc): Incorporating formal definitions from the original dataset creators.
  3. Few-sample Prompting: Providing one example per label.
  4. Memory Recall: Including the original research paper title to test if the model could leverage its training data.
Prompting strategies used in the study.

Additionally, the team explored Synonym Ensembling, where label names were replaced with synonyms (e.g., "toxic" instead of "offensive") and a final classification was determined via majority voting.

Datasets

The evaluation spanned six benchmark datasets:

  • Complaint: Customer complaints on Twitter.
  • Vaccine Stance: Pro-vaccine, anti-vaccine, or neutral sentiment.
  • Bragging: Self-presentation detection.
  • Rumour Stance: Support, denial, or questioning of rumors.
  • Sarcasm: Intended sarcasm detection.
  • Hate Speech: Offensive vs. non-offensive content.

Key Insights and the "Prompting Paradox"

The study revealed several critical insights:

  • The Fine-Tuning Advantage: Despite having significantly fewer parameters, the fine-tuned BERT-large model outperformed zero-shot LLMs in four out of six tasks, reaffirming that specialized models remain the gold standard for high-stakes research.
  • The Prompting Paradox: Counter-intuitively, adding detailed label descriptions or few-shot examples often decreased performance. The authors suggest that longer prompts may introduce noise or distract the model from the primary instruction.
  • Label Sensitivity: LLMs showed extreme sensitivity to label phrasing. Swapping a label for a synonym could alter accuracy and F1 scores by more than 10%.
  • Data Leakage Concerns: "Memory Recall" experiments indicated that LLMs could often describe the specific research papers associated with the datasets, questioning whether "zero-shot" performance is truly independent of pre-training data.

Comparative Performance

GPT-3.5 consistently outperformed OpenAssistant-LLaMA. Notably, GPT-3.5 achieved its highest accuracy on the Complaint task (89.7%), surpassing the fine-tuned BERT model. However, on more complex tasks like Rumour Stance, BERT maintained a substantial lead (73.2% vs. GPT's 59.2%).

Performance comparison on Complaint, Vaccine Stance, and Bragging tasks.

Synonym ensembling proved to be a robust technique for improving performance and mitigating the models' sensitivity to specific phrasing.

Limitations and Future Outlook

The study notes limitations regarding opaque training data (making data leakage hard to quantify) and the exclusion of newer models like GPT-4. Future work should investigate advanced techniques like Chain-of-Thought (CoT) prompting and the role of LLMs as "assistants" in human-in-the-loop annotation processes rather than total replacements for human coders.

Summary updated

BibTeX
@inproceedings{mu2024navigating,
  author = {Yida Mu and Ben P. Wu and William Thorne and Ambrose Robinson and Nikolaos Aletras and Carolina Scarton and Kalina Bontcheva and Xingyi Song},
  title = {{Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Science}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=rWyB9h80jM},
}
Figure