arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.11324cs.CLcs.AIcs.LG
收藏

量化语言模型对提示设计中虚假特征的敏感性,或:我如何学会开始担心提示格式

Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting

Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of California, Berkeley(加州大学伯克利分校)

Melanie Sclar, Yejin Choi, Yulia Tsvetkov, Alane Suhr

AI总结:

本文研究开源 LLM 对提示格式的敏感性,提出无需模型权重的 FormatSpread 评估多种合理格式并报告性能区间,证明单一固定提示格式不足以可靠评估或比较模型。

摘要:

随着大型语言模型(LLM)被用作语言技术的基础组件,准确刻画其性能至关重要。由于提示设计中的选择会强烈影响模型行为,因此该设计过程对于有效使用任何现代预训练生成式语言模型都非常关键。在本研究中,我们关注 LLM 对一类典型的保持语义不变的设计选择的敏感性:提示格式。我们发现,若干广泛使用的开源 LLM 在少样本设置下对提示格式的细微变化极其敏感;在使用 LLaMA-2-13B 评估时,性能差异最高可达 76 个准确率点。即使增大模型规模、增加少样本示例数量或进行指令微调,这种敏感性仍然存在。我们的分析表明,使用基于提示的方法评估 LLM 的研究,应报告在合理提示格式范围内的性能区间,而不是采用当前标准做法,即只报告单一格式上的性能。我们还表明,不同模型之间的格式性能仅存在弱相关,这使使用任意选择的固定提示格式比较模型的方法有效性受到质疑。为促进系统分析,我们提出 FormatSpread,这是一种快速评估给定任务的一组采样得到的合理提示格式的算法,并在不访问模型权重的情况下报告预期性能区间。此外,我们提出一系列分析来刻画这种敏感性的本质,包括探究特定原子扰动的影响以及特定格式的内部表示。

英文摘要:

As large language models (LLMs) are adopted as a fundamental component of language technologies, it is crucial to accurately characterize their performance. Because choices in prompt design can strongly influence model behavior, this design process is critical in effectively using any modern pre-trained generative language model. In this work, we focus on LLM sensitivity to a quintessential class of meaning-preserving design choices: prompt formatting. We find that several widely used open-source LLMs are extremely sensitive to subtle changes in prompt formatting in few-shot settings, with performance differences of up to 76 accuracy points when evaluated using LLaMA-2-13B. Sensitivity remains even when increasing model size, the number of few-shot examples, or performing instruction tuning. Our analysis suggests that work evaluating LLMs with prompting-based methods would benefit from reporting a range of performance across plausible prompt formats, instead of the currently-standard practice of reporting performance on a single format. We also show that format performance only weakly correlates between models, which puts into question the methodological validity of comparing models with an arbitrarily chosen, fixed prompt format. To facilitate systematic analysis we propose FormatSpread, an algorithm that rapidly evaluates a sampled set of plausible prompt formats for a given task, and reports the interval of expected performance without accessing model weights. Furthermore, we present a suite of analyses that characterize the nature of this sensitivity, including exploring the influence of particular atomic perturbations and the internal representation of particular formats.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑