arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.01116cs.IR
收藏

“上下文学习”或:我如何学会停止担忧并爱上“应用信息检索”

"In-Context Learning" or: How I learned to stop worrying and love "Applied Information Retrieval"

Andrew Parry, Debasis Ganguly, Manish Chandra

AI总结:

本文将上下文学习类比为信息检索,提出用任务特定的相关性概念训练有监督神经排序模型,以最优选择少样本示例,从而提升下游ICL预测效果。

摘要:

随着大语言模型(LLM)能力的不断增强,上下文学习(in-context learning,ICL)已发展为自然语言处理(NLP)的一种新范式:不再针对下游任务用带标签样本微调LLM的参数,而是将少量此类样本附加到提示指令中,以控制解码器的生成过程。因此,ICL在概念上类似于k-NN这类非参数方法,其中每个实例的预测本质上取决于局部拓扑,即取决于一组局部化的相似实例及其标签(称为少样本示例)。这表明ICL中的测试实例类似于信息检索(IR)中的查询,而从训练集中检索到的ICL相似示例则对应IR中从文档集合检索到的一组文档。虽然标准的无监督排序模型可用于从训练集中检索这些少样本示例,但通过重新定义与下游任务效用相关的相关性概念,示例的有效性有可能得到提升,即如果将一个示例纳入提示指令能够带来正确预测,就认为该示例是相关的。借助这种任务特定的相关性概念,可以训练一个有监督排序模型(例如双编码器或交叉编码器),使其潜在地学会最优地选择少样本示例。我们相信,神经排序模型的最新进展有望为这一最优选择示例以提升下游ICL预测效果的任务找到应用场景。

英文摘要:

With the increasing ability of large language models (LLMs), in-context learning (ICL) has evolved as a new paradigm for natural language processing (NLP), where instead of fine-tuning the parameters of an LLM specific to a downstream task with labeled examples, a small number of such examples is appended to a prompt instruction for controlling the decoder's generation process. ICL, thus, is conceptually similar to a non-parametric approach, such as $k$-NN, where the prediction for each instance essentially depends on the local topology, i.e., on a localised set of similar instances and their labels (called few-shot examples). This suggests that a test instance in ICL is analogous to a query in IR, and similar examples in ICL retrieved from a training set relate to a set of documents retrieved from a collection in IR. While standard unsupervised ranking models can be used to retrieve these few-shot examples from a training set, the effectiveness of the examples can potentially be improved by re-defining the notion of relevance specific to its utility for the downstream task, i.e., considering an example to be relevant if including it in the prompt instruction leads to a correct prediction. With this task-specific notion of relevance, it is possible to train a supervised ranking model (e.g., a bi-encoder or cross-encoder), which potentially learns to optimally select the few-shot examples. We believe that the recent advances in neural rankers can potentially find a use case for this task of optimally choosing examples for more effective downstream ICL predictions.

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

↑