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

面向上下文学习的基于覆盖度的示例选择

Coverage-based Example Selection for In-Context Learning

University of California Irvine(加州大学尔湾分校);Scaled Cognition

Shivanshu Gupta, Matt Gardner, Sameer Singh

AI总结:

针对上下文学习中标准示例选择方法冗余且缺信息的问题,提出基于BERTScore-Recall及扩展的集合级指标Set-BSR的示例选择方法,在多任务多模型上验证了有效性,组合任务提升显著且无需训练。

摘要:

上下文学习(ICL)是大语言模型通过接收包含少量任务示例的提示来执行新任务的能力,该能力要求这些示例能为测试实例提供有效信息。独立排序并选择最相似示例的标准方法会选出冗余示例,同时遗漏重要信息。本研究表明,BERTScore-Recall(BSR,BERT得分-召回率)能选出更优的示例,这些示例能展现测试输入更多的显著特征,例如推理模式。我们进一步将BSR和许多标准指标扩展为易于优化的集合级指标,从而更好地覆盖这些显著特征。在涵盖6项任务的15个数据集以及7种不同大语言模型上的实验表明:(1)BSR在所有场景下都是用于上下文示例选择的更优指标;(2)对于组合任务,使用Set-BSR(集合-BSR)的集合选择方法平均比独立排序方法高出最多17个百分点,且尽管无需训练,其表现超过了利用任务特定或大语言模型特定训练的方法。

英文摘要:

In-context learning (ICL), the ability of large language models to perform novel tasks by conditioning on a prompt with a few task examples, requires these examples to be informative about the test instance. The standard approach of independently ranking and selecting the most similar examples selects redundant examples while omitting important information. In this work, we show that BERTScore-Recall (BSR) selects better examples that demonstrate more of the salient aspects, e.g. reasoning patterns, of the test input. We further extend BSR and many standard metrics to easily optimizable set-level metrics, giving still better coverage of those salient aspects. On 15 datasets spanning 6 tasks and with 7 diverse LLMs, we show that (1) BSR is the superior metric for in-context example selection across the board, and (2) for compositional tasks, set selection using Set-BSR outperforms independent ranking by up to 17 points on average and, despite being training-free, surpasses methods that leverage task or LLM-specific training.

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

↑