arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.07476cs.CLcs.AI
收藏

可比较的示例在上下文学习中很重要:关于示例选择的一个新视角

Comparable Demonstrations are Important in In-Context Learning: A Novel Perspective on Demonstration Selection

MoE Key Lab of Artificial Intelligence, AI Institute, \ Jiao Tong University, Shanghai, China

Caoyun Fan, Jidong Tian, Yitian Li, Hao He, Yaohui Jin

AI总结:

本文提出通过最小编辑文本翻转标签构建可比较示例(CDs),以缓解上下文学习中的示例偏差,实验证明CDs能显著减少偏差并在分布外场景表现优异。

摘要:

上下文学习(ICL)是通过少量示例将大型语言模型(LLMs)适配到下游任务的重要范式。尽管 ICL 取得了巨大成功,但示例数量的限制可能导致示例偏差,即 LLMs 诱导的输入-标签映射误解了任务的本质。受人类经验启发,我们尝试从示例间关系的视角来缓解这种偏差。具体而言,我们通过对文本进行最小编辑以翻转相应标签,构建了可比较的示例,旨在通过示例间比较突出任务本质并消除潜在的虚假相关性。通过一系列关于 CDs 的实验,我们发现:(1)示例偏差确实存在于 LLMs 中,而 CDs 能显著减少这种偏差;(2)CDs 在 ICL 中表现出良好性能,尤其是在分布外场景中。总之,本研究从新视角探讨了 ICL 机制,为 ICL 的示例选择策略提供了更深刻的见解。

英文摘要:

In-Context Learning (ICL) is an important paradigm for adapting Large Language Models (LLMs) to downstream tasks through a few demonstrations. Despite the great success of ICL, the limitation of the demonstration number may lead to demonstration bias, i.e. the input-label mapping induced by LLMs misunderstands the task's essence. Inspired by human experience, we attempt to mitigate such bias through the perspective of the inter-demonstration relationship. Specifically, we construct Comparable Demonstrations (CDs) by minimally editing the texts to flip the corresponding labels, in order to highlight the task's essence and eliminate potential spurious correlations through the inter-demonstration comparison. Through a series of experiments on CDs, we find that (1) demonstration bias does exist in LLMs, and CDs can significantly reduce such bias; (2) CDs exhibit good performance in ICL, especially in out-of-distribution scenarios. In summary, this study explores the ICL mechanisms from a novel perspective, providing a deeper insight into the demonstration selection strategy for ICL.

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

↑