Skip to main content
QUICK REVIEW

[论文解读] Navigating Prompt Complexity for Zero-Shot Classification: A Study of Large Language Models in Computational Social Science

Yida Mu, Ben P. Wu|arXiv (Cornell University)|May 23, 2023
Topic ModelingComputer Science被引用 13
一句话总结

在零-shot设置中,现成的指令微调LLMs(GPT-3.5-turbo 和 OpenAssistant-LLaMA)在六个CSS分类任务上表现落后于经过微调的BERT-large,尽管提示设计和同义词变体可以显著影响准确率和F1分数。

ABSTRACT

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\%.

研究动机与目标

  • 评估GPT-3.5-turbo和OpenAssistant-LLaMA在六个CSS分类任务上的零-shot性能。
  • 将零-shot LLM性能与逻辑回归基线和微调后的BERT-large基线进行比较。
  • 系统评估提示策略(指令、任务/标签描述、少样本提示、记忆召回)及其对性能的影响。
  • 探讨诸如数据泄露/记忆召回以及在不同提示下LLM输出的稳定性等风险。

提出的方法

  • 在六个英文社交媒体数据集(Complaint、Vaccine Stance、Bragging、Rumor Stance、Sarcasm、Hate Speech)上进行训练/测试分割的评估。
  • 测试提示策略:基本指令、任务/标签描述、少样本、记忆召回,以及基于同义词的变体。
  • 将零-shot LLM(GPT-3.5-turbo 与 OA-LLaMA)与使用TF-IDF的逻辑回归和微调的BERT-large基线进行比较。
  • 以低温度设置运行LLMs以确保重复性;对基线使用三个随机种子;报告Accuracy和macro-F1。
  • 在同义词实验中,用同义词替换类别标签并应用集成方法(Ensemble Majority、Ensemble All Agreed)。
  • 使用arXiv论文标题检查记忆召回提示,并评估潜在的数据泄漏问题。

实验结果

研究问题

  • RQ1RQ1:在社交媒体分类任务中,LLMs在零-shot下能达到怎样的性能水平,与经过微调的基线相比,有何差异?
  • RQ2RQ2:哪些LLM提示策略能在社交媒体分类任务上实现最佳零-shot性能?
  • RQ3RQ3:使用这些提示策略会带来哪些风险,包括记忆召回和潜在的数据泄漏?

主要发现

  • 零-shot设置下的LLMs通常优于逻辑回归,但在大多数任务上往往落后于微调的BERT-large。
  • GPT-3.5-turbo在各任务中往往具有更高的F1-macro,而OA在某些不平衡数据集的准确率上可能超过GPT。
  • 简单提示通常表现与复杂提示同样好或更好;添加标签、任务描述或少样本示例可能引入噪声或降低性能。
  • 对类别标签使用同义词可显著提升OA在跨数据集的表现(Bragging 除外);使用同义词的集成方法可进一步提高鲁棒性。
  • 记忆召回提示(例如包含arXiv论文标题)揭示潜在的数据泄漏风险和记忆效应,提示在零-shot评估中需谨慎。
  • 总体而言,LLMs在数据标注方面显示出潜力,但需要小心提示设计并意识到局限性和成本。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。