Memory Attention
Summary
Memory Attention (Jiale Kang) replaces the Transformer's learned value projection with V = K + Norm(E[s]) — the sum of contextual keys and layer-specific token-indexed memory vectors. Under matched training budgets it beats standard attention on WikiText perplexity and downstream average while enabling CPU offloading of the memory tables, trading parameter storage for lookup-based capacity.
- Venue
- arXiv:2609.28399 (via alphaXiv)
- Source
- web
- Access
- public
- Language
- en
- Added
- Sep 29, 2026
- Verified
- Sep 29, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Published
- Sep 23, 2026
- arXiv categories
- cs.LG
- Citations
- 0
- References
- 14
Abstract (from arXiv)
Language models typically construct attention values from contextual hidden states, even when some of their content may be reusable across contexts. We investigate whether token-indexed memory can replace the dedicated value projection when complemented by contextual information. We propose Memory Attention (MA), which forms values by combining layer-specific token memory with contextual keys. The memory supplies token-specific representations, while the keys preserve context dependence. At inference, normalization can be folded into the memory tables, reducing value construction to lookup and addition. Token-indexed retrieval also enables CPU offloading with prefetching, reducing GPU parameter storage. Under matched training token budgets and with additional memory parameters, experiments across attention configurations show improved language modeling and average downstream performance.
Tags
Topics
attention, memory, architecture, efficiency
Research notes
- Method: Remove the learned value projection; instead retrieve a learned vector by token ID from a per-layer embedding table, RMSNorm it per token/head, and add it to the contextual key. Keep standard attention weighting/aggregation (RoPE applied to Q/K before values are formed).
- Key findings: V = K + Norm(E[s]): values formed by adding layer-specific token-indexed memory to contextual keys; each layer has its own table, same token → same row across positions/contexts; At matched 10B-token training budgets: better WikiText perplexity and higher downstream average than standard attention, at the cost of more parameters; At inference, normalization folds into the tables → value construction is lookup + addition; MA-Offload: tables stored on CPU/SSD with prefetching, cutting GPU parameter storage; MA-Recall: reconstruct values from retained keys + memory to cut value-cache storage
- Limitations: Single-author paper; more total parameters than baseline; latency cost of CPU offload depends on retrieval/transfer overlap with compute — not yet benchmarked at scale.
- Related to Value Embedding, DeepEmbed, Per-Layer Embeddings, STEM, Engram — but replaces rather than supplements the value projection.
Similar entries
- Paper Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation
- Paper MoBA: Mixture of Block Attention for Long-Context LLMs
- Idea KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)
- Paper High-Dimensional Learning Dynamics of Attention-Indexed Models
- Paper Emergent One-Third Scaling Law as Attention Tries to Concentrate
- Post >10x More Efficient Pretraining