发现提示不明确是大模型分类敏感性的主因,改进提示设计可提升稳定性。
Revisiting Prompt Sensitivity in Large Language Models for Text Classification: The Role of Prompt Underspecification
- 对比不明确提示与具体指令提示的性能差异
- 不明确提示导致性能波动大、相关词得分低
- 问题出在模型最后层而非内部表示,适合优化提示工程
大语言模型广泛用于零样本和少样本文本分类,其行为主要由提示控制。越来越多研究发现模型对提示变化高度敏感,微小改动可能引发性能大幅波动。然而,许多研究使用信息极少、约束力弱的不明确提示,这可能导致误判敏感性来源。本文系统比较了不明确提示与具体指令提示的敏感性差异。通过性能分析、逻辑值分析和线性探针,发现不明确提示表现出更高的性能方差和更低的相关词逻辑值,而指令提示则更稳定。但线性探针显示,提示不明确对模型内部表示影响极小,问题主要出现在最终输出层。结果表明,当前对提示敏感性的研究需更严谨,提示设计应更规范。
原文摘要 · Abstract (English)
Large language models (LLMs) are widely used as zero-shot and few-shot classifiers, where task behaviour is largely controlled through prompting. A growing number of works have observed that LLMs are sensitive to prompt variations, with small changes leading to large changes in performance. However, in many cases, the investigation of sensitivity is performed using underspecified prompts that provide minimal task instructions and weakly constrain the model's output space. In this work, we argue that a significant portion of the observed prompt sensitivity can be attributed to prompt underspecification. We systematically study and compare the sensitivity of underspecified prompts and prompts that provide specific instructions. Utilising performance analysis, logit analysis, and linear probing, we find that underspecified prompts exhibit higher performance variance and lower logit values for relevant tokens, while instruction-prompts suffer less from such problems. However, linear probing analysis suggests that the effects of prompt underspecification have only a marginal impact on the internal LLM representations, instead emerging in the final layers. Overall, our findings highlight the need for more rigour when investigating and mitigating prompt sensitivity.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。