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

基于Transformer的终身上下文学习需要注意力的参数化形式

Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention

UC San Diego(加州大学圣地亚哥分校)

Luke McDermott, Robert W. Heath, Rahul Parhi

AI总结:

本文提出将上下文学习扩展到终身设置是AI代理持续学习的实用方案,并论证需要参数化注意力机制来在固定硬件预算下理解终身上下文。

摘要:

终身持续学习仍然是通往类人智能道路上的障碍。现代Transformer通过上下文学习展现出智能的火花。然而,注意力的二次性质阻止了Transformer对任意长序列执行此过程。在这项工作中,我们论证将上下文学习扩展到终身设置是AI代理中持续学习的实用方案。特别地,我们论证需要注意力的参数化形式来在固定硬件预算下用Transformer理解终身上下文。这些注意力机制在测试时通过参数化回归学习键与其关联值之间的关系。我们对参数化方法(线性注意力、状态空间模型、快速权重编程器和测试时训练层)的泛化与softmax注意力等非参数化方法形成对比。它们用在线可训练的神经网络取代不断增长的键值缓存,保持恒定的内存占用。我们强调了参数化注意力目前由于有限的内存容量或昂贵的在线更新而在终身学习方面存在不足。为了解决这些问题,我们提出了一系列具有新颖见解的开放问题,以引导该领域走向长时域代理。

英文摘要:

Lifelong continual learning remains an obstacle on the path to human-like intelligence. Modern transformers show sparks of intelligence with in-context learning. The quadratic nature of attention, however, prohibits transformers from performing this process on arbitrarily long sequences. In this work, we argue that extending in-context learning to lifelong settings is a practical solution for continual learning in AI agents. In particular, we argue that parametric forms of attention are needed to understand a lifetime of context with transformers on a fixed hardware budget. These attention mechanisms learn the relationship between keys and their associated values at test-time with parametric regression. Our generalization of parametric approaches (linear attention, state-space models, fast weight programmers, and test-time training layers) contrasts with nonparametric counterparts like softmax attention. They replace the ever-growing key-value cache with an online-trainable neural network, maintaining a constant memory footprint. We highlight how parametric attention currently fall short of lifelong learning due to limited memory capacity or costly online updates. To address these issues, we pose a set of open questions with novel insights to guide the field toward long-horizon agents.

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

↑