Saved in:
Bibliographic Details
Main Authors: Irie, Kazuki, Yau, Morris, Gershman, Samuel J.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.00744
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917034963501056
author Irie, Kazuki
Yau, Morris
Gershman, Samuel J.
author_facet Irie, Kazuki
Yau, Morris
Gershman, Samuel J.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_00744
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Blending Complementary Memory Systems in Hybrid Quadratic-Linear Transformers
Irie, Kazuki
Yau, Morris
Gershman, Samuel J.
Machine Learning
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.
title Blending Complementary Memory Systems in Hybrid Quadratic-Linear Transformers
topic Machine Learning
url https://arxiv.org/abs/2506.00744