Skip to main content
QUICK REVIEW

[论文解读] In-context Learning with Retrieved Demonstrations for Language Models: A Survey

Man Luo, Xin Xu|arXiv (Cornell University)|Jan 21, 2024
Topic ModelingComputer Science被引用 6
一句话总结

对检索演示的上下文学习(RetICL)的全面综述,概述检索、语料、训练与推理策略的设计选择,并比较 22 篇奠基性工作。

ABSTRACT

Language models, especially pre-trained large language models, have showcased remarkable abilities as few-shot in-context learners (ICL), adept at adapting to new tasks with just a few demonstrations in the input context. However, the model's ability to perform ICL is sensitive to the choice of the few-shot demonstrations. Instead of using a fixed set of demonstrations, one recent development is to retrieve demonstrations tailored to each input query. The implementation of demonstration retrieval is relatively straightforward, leveraging existing databases and retrieval systems. This not only improves the efficiency and scalability of the learning process but also has been shown to reduce biases inherent in manual example selection. In light of the encouraging results and growing research in ICL with retrieved demonstrations, we conduct an extensive review of studies in this area. In this survey, we discuss and compare different design choices for retrieval models, retrieval training procedures, and inference algorithms.

研究动机与目标

  • 解释为什么在大语言模型中上下文学习(ICL)有价值及其在固定演示的局限性。
  • 总结 RetICL 范式,即为每个查询动态检索演示。
  • 回顾检索目标、推理策略和检索语料的设计选择。
  • 对 22 篇关键论文进行分类与综合,以绘制 RetICL 的当前状态与未来方向。

提出的方法

  • 定义 ICL 问题并引入 RetICL 范式,其中检索器为每个查询选择演示。
  • 调查检索目标(相似性 vs. 多样性)及其对演示选择的影响。
  • 描述三种用于组装演示的推理策略(单次-one-shot、聚类、迭代)的检索方法。
  • 详细说明检索语料类型(同域、混域、跨域、无标签/生成数据、自由形式)及其影响。
  • 回顾现成的检索器(BM25、句子嵌入、双编码器)以及经过微调/学习的检索器。
  • 用 LLM 信号、奖励模型和排序目标解释为演示检索器训练的数据收集。
Figure 1: Structure of the Survey.
Figure 1: Structure of the Survey.

实验结果

研究问题

  • RQ1RetICL 中哪些主要设计选择会影响检索演示的有效性?
  • RQ2检索目标(相似性 vs. 多样性)如何影响跨任务与跨领域的表现?
  • RQ3哪些推理策略和语料设置最能支持稳健的上下文学习,结合检索演示?
  • RQ4现成的与微调的演示检索器在有效性和成本上有何差异?
  • RQ5使用 LLM 信号训练演示检索器的实际指南有哪些?

主要发现

  • RetICL 在通过对每个查询自适应演示而持续超越静态演示的方法。
  • 多样性和覆盖范围在模型对输出空间不熟悉时可能很重要。
  • 检索策略(单次、聚类、迭代)会影响检索演示的质量和互补性。
  • 不同的检索语料(同域、跨域、混域、无标签/生成)在注释成本和性能上存在权衡。
  • 对特定任务信号进行微调的演示检索器可以带来相对于现成检索器的收益。
  • 使用基于 LLM 的信号和排序目标来训练检索器,可实现任务对齐的演示选择。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。