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

一种隐式动态的简单扩展:上下文学习

A Simple Generalisation of the Implicit Dynamics of In-Context Learning

MRC Brain Network Dynamics Unit, University of Oxford, UK(牛津大学MRC脑网络动力学单元);MRC CoRE in Restorative Neural Dynamics, UK(英国MRC修复神经动力学中心);University of Sussex, Brighton, UK(苏塞克斯大学);University Mohammed VI Polytechnic, College of Computing, Rabat, Morocco(摩洛哥穆莱·易斯六世polytechnic大学计算学院)

Francesco Innocenti, El Mehdi Achour

AI总结:

本文提出了一种扩展的上下文学习隐式动态理论,适用于更广泛的序列位置和变换器块,并通过实验验证了其在不同令牌间的隐式更新关系。

摘要:

上下文学习(ICL)指的是模型能够从输入中的示例中学习新任务,而无需任何参数更新。与以往依赖玩具模型和数据设置的ICL理论不同,最近的研究表明,变换器块的抽象可以被视为根据上下文隐式更新其前馈网络的权重(Dherin等人,2025)。在此,我们为(i)所有序列位置(除了最后一个)(ii)任何变换器块(除了第一个)(iii)更现实的残差块(包括层归一化)提供了一个简单的扩展。我们在简单的上下文线性回归任务上实证验证了我们的理论,并研究了不同令牌在块内和块间隐式更新之间的关系。这些结果有助于将Dherin等人(2025)的理论更接近实践,有望在大规模模型上进行验证。

英文摘要:

In-context learning (ICL) refers to the ability of a model to learn new tasks from examples in its input without any parameter updates. In contrast to previous theories of ICL relying on toy models and data settings, recently it has been shown that an abstraction of a transformer block can be seen as implicitly updating the weights of its feedforward network according to the context (Dherin et al., 2025). Here, we provide a simple generalisation of this result for (i) all sequence positions beyond the last, (ii) any transformer block beyond the first, and (iii) more realistic residual blocks including layer normalisation. We empirically verify our theory on simple in-context linear regression tasks and investigate the relationship between the implicit updates related to different tokens within and between blocks. These results help to bring the theory of Dherin et al. (2025) even closer to practice, with potential for validation on large-scale models.

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

↑