arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.11624cs.CLcs.AIcs.IR
收藏

基于检索示例的语言模型上下文学习:综述

In-context Learning with Retrieved Demonstrations for Language Models: A Survey

Arizona State University(亚利桑那州立大学);Google Research(谷歌研究院)

Man Luo, Xin Xu, Yue Liu, Panupong Pasupat, Mehran Kazemi

AI总结:

本文综述了基于检索示例的语言模型上下文学习(ICL)研究,比较了检索模型、训练过程和推理算法的不同设计选择,指出该方法能提升效率、可扩展性并减少偏差。

摘要:

语言模型,尤其是预训练的大型语言模型,作为少样本上下文学习器(ICL)展现出了卓越的能力,能够仅凭输入上下文中的少量示例就适应新任务。然而,模型执行ICL的能力对少样本示例的选择非常敏感。不使用固定的示例集,最近的一项发展是为每个输入查询检索量身定制的示例。示例检索的实现相对简单,利用现有的数据库和检索系统即可。这不仅提高了学习过程的效率和可扩展性,而且已被证明能减少手动选择示例中固有的偏差。鉴于基于检索示例的ICL所取得的令人鼓舞的结果和日益增长的研究,我们对这一领域的研究进行了广泛的回顾。在本综述中,我们讨论并比较了检索模型、检索训练过程和推理算法的不同设计选择。

英文摘要:

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.

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

↑