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

ICLR:表征的上下文学习

ICLR: In-Context Learning of Representations

CBS-NTT Program in Physics of Intelligence, Harvard University(哈佛大学物理智能联合项目);Department of Physics, Harvard University(哈佛大学物理系);Physics & Informatics Lab, NTT Research Inc.(NTT研究公司物理与信息学实验室);SEAS, Harvard University(哈佛大学科学与工程学院);CSE, University of Michigan, Ann Arbor(密歇根大学安娜堡分校计算机科学系)

Core Francisco Park, Andrew Lee, Ekdeep Singh Lubana, Yongyi Yang, Maya Okawa, Kento Nishi, Martin Wattenberg, Hidenori Tanaka

AI总结:

本文研究LLM能否根据上下文示例改变预训练语义来重组表征,通过图追踪任务发现扩大上下文规模能使表征从预训练语义突然重组为上下文指定结构,揭示了隐式优化过程及解锁新能力的潜力。

摘要:

最近的工作表明,预训练数据指定的语义会影响大型语言模型(LLM)中不同概念表征的组织方式。然而,鉴于LLM的开放性(例如其上下文学习能力),我们可以追问:模型是否会改变这些预训练语义以采用替代的、由上下文指定的语义?具体而言,如果提供上下文示例,其中某个概念扮演了与预训练数据所建议的不同的角色,模型是否会根据这些新语义重组其表征?为回答此问题,我们从概念角色语义理论中汲取灵感,定义了一个玩具“图追踪”任务,其中图的节点通过训练中见过的概念(如apple、bird等)来引用,图的连通性通过某种预定义结构(如方阵网格)来定义。给定指示图上随机游走轨迹的示例,我们分析了模型的中间表征,发现随着上下文规模的扩大,表征突然从预训练语义表征重组为与图结构对齐的上下文表征。此外,我们发现当引用概念在其语义中存在相关性(如Monday、Tuesday等)时,上下文指定的图结构仍存在于表征中,但无法主导预训练结构。为解释这些结果,我们将我们的任务类比为预定义图拓扑的能量最小化,为推断上下文指定语义的隐式优化过程提供了证据。总体而言,我们的发现表明扩大上下文规模能灵活重组模型表征,可能解锁新能力。

英文摘要:

Recent work has demonstrated that semantics specified by pretraining data influence how representations of different concepts are organized in a large language model (LLM). However, given the open-ended nature of LLMs, e.g., their ability to in-context learn, we can ask whether models alter these pretraining semantics to adopt alternative, context-specified ones. Specifically, if we provide in-context exemplars wherein a concept plays a different role than what the pretraining data suggests, do models reorganize their representations in accordance with these novel semantics? To answer this question, we take inspiration from the theory of conceptual role semantics and define a toy "graph tracing" task wherein the nodes of the graph are referenced via concepts seen during training (e.g., apple, bird, etc.) and the connectivity of the graph is defined via some predefined structure (e.g., a square grid). Given exemplars that indicate traces of random walks on the graph, we analyze intermediate representations of the model and find that as the amount of context is scaled, there is a sudden re-organization from pretrained semantic representations to in-context representations aligned with the graph structure. Further, we find that when reference concepts have correlations in their semantics (e.g., Monday, Tuesday, etc.), the context-specified graph structure is still present in the representations, but is unable to dominate the pretrained structure. To explain these results, we analogize our task to energy minimization for a predefined graph topology, providing evidence towards an implicit optimization process to infer context-specified semantics. Overall, our findings indicate scaling context-size can flexibly re-organize model representations, possibly unlocking novel capabilities.

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

↑