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

混合二次-线性Transformer中的互补记忆系统融合

Blending Complementary Memory Systems in Hybrid Quadratic-Linear Transformers

Harvard University(哈佛大学);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Kempner Institute for the Study of Natural and Artificial Intelligence(自然与人工智能研究学院)

Kazuki Irie, Morris Yau, Samuel J. Gershman

AI总结:

本研究提出混合记忆架构,融合二次Transformer的键值记忆与线性Transformer的快速权重记忆,通过三种融合方法克服各自局限,在语言建模、检索及强化学习任务中验证了混合系统的优势。

摘要:

我们为通用序列处理神经网络开发了混合记忆架构,该架构将使用softmax注意力的键值记忆(KV-memory)与通过动态突触调节实现的快速权重记忆(FW-memory)相结合——这两者分别是二次Transformer和线性Transformer的核心原理。这两种记忆系统具有互补但各自受限的特性:KV-memory提供精确检索,但受限于序列长度的二次复杂度;而FW-memory支持任意长序列,并能实现更具表达力的计算,但牺牲了精确回忆。我们提出并比较了三种将这两个系统融合为单一记忆系统的方法,这些方法在向每个系统传递输入信息的方式和时间上有所不同,以利用两者的优势。我们在通用语言建模和检索任务上进行了实验,从头训练了340M和1.3B参数的模型,并设计了合成算法任务来精确展示某些混合方法相对于其他方法的优势。我们还在部分可观测环境中的强化学习上评估了我们的混合记忆系统。总体而言,我们展示了设计良好的混合系统如何克服其单个组件的局限性,为神经记忆系统的设计原则提供了新的见解。

英文摘要:

We develop hybrid memory architectures for general-purpose sequence processing neural networks, that combine key-value memory using softmax attention (KV-memory) with fast weight memory through dynamic synaptic modulation (FW-memory) -- the core principles of quadratic and linear transformers, respectively. These two memory systems have complementary but individually limited properties: KV-memory offers precise retrieval but is constrained by quadratic complexity in sequence length, while FW-memory supports arbitrarily long sequences and enables more expressive computation but sacrifices precise recall. We propose and compare three methods to blend these two systems into a single memory system, differing in how and when input information is delivered to each system, to leverage the strengths of both. We conduct experiments on general language modeling and retrieval tasks by training 340M- and 1.3B-parameter models from scratch, as well as on synthetic algorithmic tasks designed to precisely illustrate the benefits of certain hybrid methods over others. We also evaluate our hybrid memory systems on reinforcement learning in partially observable environments. Overall, we demonstrate how a well-designed hybrid can overcome the limitations of its individual components, offering new insights into the design principle of neural memory systems.

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

↑