arXiv:2410.02185cs.CLcs.AI2024-10EMNLP被引 81

提出新指标POSIX,量化大模型对提示词微小变化的敏感度。

POSIX: A Prompt Sensitivity Index For Large Language Models

  • 通过对比意图不变的提示词间对数似然变化,衡量模型敏感性。
  • 仅加一个示例就能显著降低模型敏感度,参数量增大无此效果。
  • 模板改动对选择题最敏感,改写对开放生成最敏感,适合评估模型鲁棒性。

尽管大型语言模型能力强大,但其对提示词的微小变化(如拼写错误、用词替换或模板调整)表现出显著敏感性,导致输出差异巨大。然而,当前评估多聚焦下游任务性能,忽视了提示敏感性。为此,本文提出POSIX——一种新的提示敏感性指数,通过计算意图保持的前提下更换提示后响应对数似然的相对变化来衡量敏感性。实验充分验证了其有效性,并用于比较多个开源LLM的提示敏感性。结果表明,单纯增加参数量或指令微调并不能降低敏感性;而加入少量示例(哪怕仅一个)几乎总能显著降低敏感性。在多项选择题中,提示模板变化引发最高敏感度;而在开放式生成任务中,改写最易引发敏感性。代码已开源:https://github.com/kowndinya-renduchintala/POSIX。

原文摘要 · Abstract (English)

Despite their remarkable capabilities, Large Language Models (LLMs) are found to be surprisingly sensitive to minor variations in prompts, often generating significantly divergent outputs in response to minor variations in the prompts, such as spelling errors, alteration of wording or the prompt template. However, while assessing the quality of an LLM, the focus often tends to be solely on its performance on downstream tasks, while very little to no attention is paid to prompt sensitivity. To fill this gap, we propose POSIX - a novel PrOmpt Sensitivity IndeX as a reliable measure of prompt sensitivity, thereby offering a more comprehensive evaluation of LLM performance. The key idea behind POSIX is to capture the relative change in loglikelihood of a given response upon replacing the corresponding prompt with a different intent-preserving prompt. We provide thorough empirical evidence demonstrating the efficacy of POSIX in capturing prompt sensitivity and subsequently use it to measure and thereby compare prompt sensitivity of various open-source LLMs. We find that merely increasing the parameter count or instruction tuning does not necessarily reduce prompt sensitivity whereas adding some few-shot exemplars, even just one, almost always leads to significant decrease in prompt sensitivity. We also find that alterations to prompt template lead to the highest sensitivity in the case of MCQ type tasks, whereas paraphrasing results in the highest sensitivity in open-ended generation tasks. The code for reproducing our results is open-sourced at https://github.com/kowndinya-renduchintala/POSIX.

提示敏感性大模型评估鲁棒性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。