arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.07230cs.CL
收藏

提示在敏感性方面有何不同?

How are Prompts Different in Terms of Sensitivity?

Technical University of Darmstadt(达姆施塔特工业大学);Hessian Center for AI (hessian.AI)(黑森人工智能中心);Department of Computer Science(计算机科学系);Ubiquitous Knowledge Processing Lab (UKP Lab)(普适知识处理实验室)

Sheng Lu, Hendrik Schuff, Iryna Gurevych

AI总结:

该研究针对提示工程缺乏跨模型任务系统分析的问题,提出基于函数敏感性的提示分析方法,验证其与准确率强负相关,还提出敏感性感知解码提升输入信息稀缺时的效果,助力理解ICL机制。

摘要:

上下文学习(In-context learning, ICL)已成为最流行的学习范式之一。尽管目前聚焦于提示工程的文献日益增多,但仍缺乏跨不同模型与任务的提示效果对比的系统性分析。为填补这一空白,我们提出了一种基于函数敏感性的综合性提示分析方法。分析结果表明,敏感性是模型性能的无监督代理指标,因为它与准确率呈现强负相关关系。我们使用基于梯度的显著性分数,通过实证展示了不同提示如何影响输入词元与输出的相关性,进而导致不同程度的敏感性。此外,我们提出了敏感性感知解码方法,将敏感性估计作为惩罚项引入标准贪心解码中。研究表明,当输入信息稀缺时,该方法尤其有效。本研究为提示分析提供了全新视角,有助于更好地理解ICL的作用机制。

英文摘要:

In-context learning (ICL) has become one of the most popular learning paradigms. While there is a growing body of literature focusing on prompt engineering, there is a lack of systematic analysis comparing the effects of prompts across different models and tasks. To address this gap, we present a comprehensive prompt analysis based on the sensitivity of a function. Our analysis reveals that sensitivity is an unsupervised proxy for model performance, as it exhibits a strong negative correlation with accuracy. We use gradient-based saliency scores to empirically demonstrate how different prompts affect the relevance of input tokens to the output, resulting in different levels of sensitivity. Furthermore, we introduce sensitivity-aware decoding which incorporates sensitivity estimation as a penalty term in the standard greedy decoding. We show that this approach is particularly helpful when information in the input is scarce. Our work provides a fresh perspective on the analysis of prompts, and contributes to a better understanding of the mechanism of ICL.

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

↑