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

用于零样本上下文学习的示例增强

Demonstration Augmentation for Zero-shot In-context Learning

School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)

Yi Su, Yunpeng Tai, Yixin Ji, Juntao Li, Bowen Yan, Min Zhang

AI总结:

提出DAIL方法,利用模型先前预测的历史样本作为后续示例,在不增加推理成本和依赖外部信息的情况下显著提升零样本ICL性能,甚至超越少样本ICL。

摘要:

大型语言模型(LLMs)展示了一种被称为上下文学习(ICL)的强大能力,使其能够从文本示例中获取知识而无需参数更新。然而,许多研究强调,模型的性能对示例的选择很敏感,这在我们缺乏用户查询先验知识的实际应用中构成了重大挑战。因此,我们需要构建一个庞大的示例池并结合外部数据库来辅助模型,导致大量时间和财务成本。有鉴于此,最近的一些研究将重点转向零样本ICL,旨在通过利用模型固有的生成能力来减少其对外部信息的依赖。尽管这些方法有效,但模型生成的内容可能不可靠,且生成过程耗时。为了解决这些问题,我们提出了用于上下文学习的示例增强(DAIL),它使用模型先前预测的历史样本作为后续样本的示例。DAIL不带来额外的推理成本,也不依赖模型的生成能力。我们的实验表明,DAIL能显著提升模型相对于直接零样本推理的性能,甚至能在无任何外部信息的情况下超越少样本ICL。

英文摘要:

Large Language Models (LLMs) have demonstrated an impressive capability known as In-context Learning (ICL), which enables them to acquire knowledge from textual demonstrations without the need for parameter updates. However, many studies have highlighted that the model's performance is sensitive to the choice of demonstrations, presenting a significant challenge for practical applications where we lack prior knowledge of user queries. Consequently, we need to construct an extensive demonstration pool and incorporate external databases to assist the model, leading to considerable time and financial costs. In light of this, some recent research has shifted focus towards zero-shot ICL, aiming to reduce the model's reliance on external information by leveraging their inherent generative capabilities. Despite the effectiveness of these approaches, the content generated by the model may be unreliable, and the generation process is time-consuming. To address these issues, we propose Demonstration Augmentation for In-context Learning (DAIL), which employs the model's previously predicted historical samples as demonstrations for subsequent ones. DAIL brings no additional inference cost and does not rely on the model's generative capabilities. Our experiments reveal that DAIL can significantly improve the model's performance over direct zero-shot inference and can even outperform few-shot ICL without any external information.

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

↑