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

基于影响的上下文示例选择

In-context Example Selection with Influences

University of Pennsylvania(宾夕法尼亚大学)

Tai Nguyen, Eric Wong

AI总结:

本文提出利用 in-context influences 分析少样本 ICL 并选择上下文示例,可识别正负示例,在 9 项 SuperGLUE 任务上超过基线,并量化排序近因偏差。

摘要:

上下文学习(ICL)是大型语言模型(LLM)涌现出的一种强大范式。尽管其前景广阔,但众所周知,ICL 性能对输入示例高度敏感。在本文中,我们使用 in-context influences(上下文影响)直接从上下文示例分析少样本 ICL 性能。我们提出的基于影响的示例选择方法能够识别正面和负面示例,在 9 项 SuperGLUE 任务上评估时优于若干基线。我们的分析揭示,使用最负面的上下文示例与最正面的上下文示例相比,性能差距最高达 16.3%。在一项案例研究中,我们应用基于影响的框架来量化少样本 ICL 中示例排序的近因偏差现象。

英文摘要:

In-context learning (ICL) is a powerful paradigm emerged from large language models (LLMs). Despite its promises, ICL performance is known to be highly sensitive to input examples. In this work, we use $\textit{in-context influences}$ to analyze few-shot ICL performance directly from the in-context examples. Our proposed influence-based example selection method can identify both positive and negative examples, outperforming several baselines when evaluated on 9 SuperGLUE tasks. Our analysis uncovers up to a $16.3\%$ performance gap between using the most negative in-context examples compared to the most positive. In a case study, we apply our influence-based framework to quantify the phenomena of recency bias in example ordering for few-shot ICL.

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

↑