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

上下文学习应标注哪些示例?迈向有效且高效的选择

Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selection

University of Minnesota(明尼苏达大学);Amazon Web Services(亚马逊云服务)

Costas Mavromatis, Balasubramaniam Srinivasan, Zhengyuan Shen, Jiani Zhang, Huzefa Rangwala, Christos Faloutsos, George Karypis

AI总结:

本文提出主动学习算法 AdaICL,结合不确定性与语义多样性选择标注示例,以最大覆盖问题动态优化采样,在多个 LLM 和数据集上显著提升 ICL 性能与预算效率。

摘要:

大型语言模型(LLMs)可以通过上下文学习(ICL)适应新任务。ICL 效率高,因为它不需要对已训练的 LLM 进行任何参数更新,只需少量标注示例作为 LLM 的输入。在本工作中,我们研究了一种用于 ICL 的主动学习方法,其中标注示例的预算有限。我们提出了一种模型自适应的免优化算法,称为 AdaICL,该算法识别模型不确定的示例,并执行基于语义多样性的示例选择。基于多样性的采样提高了整体有效性,而基于不确定性的采样提高了预算效率,并帮助 LLM 学习新信息。此外,AdaICL 将其采样策略表述为一个最大覆盖问题,该问题根据模型的反馈动态调整,并可通过贪心算法近似求解。在九个数据集和七个 LLM 上的大量实验表明,AdaICL 比 SOTA 提高了 4.4% 的准确率点(相对提升 7.7%),其预算效率比均匀随机标注高出最多 3 倍,同时它用少 2 倍的 ICL 示例就超越了 SOTA。

英文摘要:

Large Language Models (LLMs) can adapt to new tasks via in-context learning (ICL). ICL is efficient as it does not require any parameter updates to the trained LLM, but only few annotated examples as input for the LLM. In this work, we investigate an active learning approach for ICL, where there is a limited budget for annotating examples. We propose a model-adaptive optimization-free algorithm, termed AdaICL, which identifies examples that the model is uncertain about, and performs semantic diversity-based example selection. Diversity-based sampling improves overall effectiveness, while uncertainty sampling improves budget efficiency and helps the LLM learn new information. Moreover, AdaICL poses its sampling strategy as a Maximum Coverage problem, that dynamically adapts based on the model's feedback and can be approximately solved via greedy algorithms. Extensive experiments on nine datasets and seven LLMs show that AdaICL improves performance by 4.4% accuracy points over SOTA (7.7% relative improvement), is up to 3x more budget-efficient than performing annotations uniformly at random, while it outperforms SOTA with 2x fewer ICL examples.

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

↑