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

基于影响分析的上下文学习示例选择

In-Context Learning Demonstration Selection via Influence Analysis

University of Arkansas(阿肯色大学)

Vinay M. S., Minh-Hao Van, Xintao Wu

AI总结:

针对ICL示例选择难题,本文提出InfICL方法,利用影响函数识别最具影响力的训练样本作为示例,并仅用LLM生成输入嵌入以避免微调,实验显示其优于现有基线。

摘要:

大型语言模型(LLM)已经展示了其上下文学习(ICL)能力,无需梯度更新即可实现少样本学习。尽管具有这些优势,ICL的有效性在很大程度上取决于示例的选择。为ICL选择最有效的示例仍然是一项重大的研究挑战。为解决这一问题,我们提出了一种名为InfICL的示例选择方法,该方法利用影响函数来分析训练样本的影响。通过识别最具影响力的训练样本作为示例,InfICL旨在提升ICL的泛化性能。为了使InfICL保持成本效益,我们仅使用LLM生成样本输入嵌入,从而避免昂贵的微调。通过在多个真实世界数据集上的实证研究,我们证明了InfICL相较于最先进基线方法的优势。

英文摘要:

Large Language Models (LLMs) have showcased their In-Context Learning (ICL) capabilities, enabling few-shot learning without the need for gradient updates. Despite its advantages, the effectiveness of ICL heavily depends on the choice of demonstrations. Selecting the most effective demonstrations for ICL remains a significant research challenge. To tackle this issue, we propose a demonstration selection method named InfICL, which utilizes influence functions to analyze impacts of training samples. By identifying the most influential training samples as demonstrations, InfICL aims to enhance the ICL generalization performance. To keep InfICL cost-effective, we only use the LLM to generate sample input embeddings, avoiding expensive fine-tuning. Through empirical studies on various real-world datasets, we demonstrate advantages of InfICL compared to state-of-the-art baselines.

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

↑