重新思考上下文学习中的标签一致性:一种隐含的归纳标签传播视角
Rethinking Label Consistency of In-Context Learning: An Implicit Transductive Label Propagation Perspective
AI总结:
本文从归纳标签传播视角重新思考上下文学习中的标签一致性问题,提出TopK-SD方法提升演示的一致性,优于传统TopK采样。
摘要:
大型语言模型(LLMs)通过最少的监督示例进行上下文学习(ICL),这有助于各种自然语言处理(NLP)任务。一个关键的研究重点是提示演示的选择。当前的方法通常使用检索模型来选择最语义相似的前K个示例作为演示。然而,我们认为现有方法存在局限,因为在演示选择过程中标签一致性无法得到保证。我们的观点来源于ICL的贝叶斯观点以及我们从归纳标签传播视角重新思考ICL。我们将ICL视为一种归纳学习方法,并结合贝叶斯观点中的潜在概念,推导出相似的演示引导查询的概念,一致的标签作为估计。基于这一理解,我们建立了一个标签传播框架,将标签一致性与传播误差界联系起来。为了建模标签一致性,我们提出了一种数据合成方法,利用语义和标签信息,并使用TopK采样与合成数据(TopK-SD)来获取具有一致标签的演示。TopK-SD在多个基准上优于原始TopK采样。我们的工作为理解ICL内部的工作机制提供了新的视角。
英文摘要:
Large language models (LLMs) perform in-context learning (ICL) with minimal supervised examples, which benefits various natural language processing (NLP) tasks. One of the critical research focus is the selection of prompt demonstrations. Current approaches typically employ retrieval models to select the top-K most semantically similar examples as demonstrations. However, we argue that existing methods are limited since the label consistency is not guaranteed during demonstration selection. Our cognition derives from the Bayesian view of ICL and our rethinking of ICL from the transductive label propagation perspective. We treat ICL as a transductive learning method and incorporate latent concepts from Bayesian view and deduce that similar demonstrations guide the concepts of query, with consistent labels serving as estimates. Based on this understanding, we establish a label propagation framework to link label consistency with propagation error bounds. To model label consistency, we propose a data synthesis method, leveraging both semantic and label information, and use TopK sampling with Synthetic Data (TopK-SD) to acquire demonstrations with consistent labels. TopK-SD outperforms original TopK sampling on multiple benchmarks. Our work provides a new perspective for understanding the working mechanisms within ICL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。