paper-with-me

홈 › Papers

Hybrid Associative Memories

2026-03-20 · Leon Lufkin, Tomás Figliolia, Beren Millidge, Kamesh Krishnamurthy arxiv

Recurrent neural networks (RNNs) and self-attention are both widely used sequence-mixing layers that maintain an internal memory. However, this memory is constructed using two orthogonal mechanisms: RNNs compress the entire past into a fixed-size state, whereas self-attention's state stores every past time step growing its state (the KV cache) linearly with the sequence length. This results in orthogonal strengths and weaknesses. Self-attention layers excel at retrieving information in the context but have large memory and computational costs, while RNNs are more efficient but degrade over longer contexts and underperform for precise recall tasks. Prior work combining these mechanisms has focused primarily on naively interleaving them to reduce computational cost without regard to their complementary mechanisms. We propose the Hybrid Associative Memory (HAM) layer, which combines self-attention and RNNs while leveraging their individual strengths: the RNN compresses the entire sequence, while attention supplements it *only* with information that is difficult for the RNN to predict, which is hence the most valuable information to explicitly store. HAM layers enable data-dependent growth of the KV cache, which can be precisely controlled by the user with a single, continuous threshold. We find that this fine-grained control of the KV cache growth rate has a smooth trade-off with loss and performance. Empirically, we show that our hybrid architecture offers strong, competitive performance relative to RNNs and Transformers even at substantially lower KV-cache usage.

📄 PDF Abstract BibTeX arXiv:2603.22325

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A Massively Parallel Associative Memory Based on Sparse Neural Networks

2013-03-28 · Zhe Yao, Vincent Gripon, Michael G. Rabbat

Associative memories store content in such a way that the content can be later retrieved by presenting the memory with a small portion of the content, rather than presenting the memory with an address as in more traditio…

Anomaly DetectionDiversityFace RecognitionGPU+1

A Chaotic Associative Memory

2024-01-15 · Nurani Rajagopal Rohan, Sayan Gupta, V. Srinivasa Chakravarthy

We propose a novel Chaotic Associative Memory model using a network of chaotic Rossler systems and investigate the storage capacity and retrieval capabilities of this model as a function of increasing periodicity and cha…

Retrieval

Associative Memories via Predictive Coding

2021-09-16 · NeurIPS 2021 12 · Tommaso Salvatori, Yuhang Song, Yujian Hong, Simon Frieder 외

Associative memories in the brain receive and store patterns of activity registered by the sensory neurons, and are able to retrieve them when necessary. Due to their importance in human intelligence, computational model…

HippocampusRetrieval

An Entropic Associative Memory

2020-09-28 · Luis A. Pineda, Gibrán Fuentes, Rafael Morales

Natural memories are associative, declarative and distributed. Symbolic computing memories resemble natural memories in their declarative character, and information can be stored and recovered explicitly; however, they l…

Capacity, Fidelity, and Noise Tolerance of Associative Spatial-Temporal Memories Based on Memristive Neuromorphic Network

2017-07-12 · Dmitri Gavrilov, Dmitri Strukov, Konstantin K. Likharev

We have calculated the key characteristics of associative (content-addressable) spatial-temporal memories based on neuromorphic networks with restricted connectivity - "CrossNets". Such networks may be naturally implemen…

Retrieval