An Evolved Universal Transformer Memory
Not on the map. Why?
Abstract (arXiv)
Prior methods propose to offset the escalating costs of modern foundation models by dropping specific parts of their contexts with hand-designed rules, while attempting to preserve their original performance. We overcome this trade-off with Neural Attention Memory Models (NAMMs), introducing a learned network for memory management that improves both the performance and efficiency of transformers. We evolve NAMMs atop pre-trained transformers to provide different latent contexts focusing on the most relevant information for individual layers and attention heads. NAMMs are universally applicable to any model using self-attention as they condition exclusively on the values in the produced attention matrices. Learning NAMMs on a small set of problems, we achieve substantial performance improvements across multiple long-context benchmarks while cutting the model's input contexts up to a fraction of the original sizes. We show the generality of our conditioning enables zero-shot transfer of NAMMs trained only on language to entirely new transformer architectures even across input modalities, with their benefits carrying over to vision and reinforcement learning.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 48 of its 66 references that are in the map. First posted on arXiv 17 Oct 2024.
Builds on
48 of 66 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023GPT-4 Technical Reportcited by 18,132
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Controlcited by 2,993
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
36 more
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2020D4RL: Datasets for Deep Data-Driven Reinforcement Learningcited by 1,406
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2023A decoder-only foundation model for time-series forecastingcited by 650
- 2024LongVideoBench: A Benchmark for Long-context Interleaved Video-Language Understandingcited by 644
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
- 2014Memory Networkscited by 354
- 2021Random Feature Attentioncited by 350
- 2023A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesiscited by 350
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2024Evolutionary Optimization of Model Merging Recipescited by 204
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2019The Evolved Transformercited by 180
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 122
- 2019Large Memory Layers with Product Keyscited by 120
- 2024Transformers are Multi-State RNNscited by 120
- 2024LongAlign: A Recipe for Long Context Alignment of Large Language Modelscited by 102
- 2024Keep the Cost Down: A Review on Methods to Optimize LLM' s KV-Cache Consumptioncited by 96
- 2024A Simple and Effective L2 Norm-Based Strategy for KV Cache Compressioncited by 84
- 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inferencecited by 75
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 71
- 2024QAQ: Quality Adaptive Quantization for LLM KV Cachecited by 66
- 2021The Sensory Neuron as a Transformer: Permutation-Invariant Neural Networks for Reinforcement Learningcited by 50
- 2016Scaling Memory-Augmented Neural Networks with Sparse Reads and Writescited by 28
- 2024TransformerFAM: Feedback attention is working memorycited by 21
- 2024SirLLM: Streaming Infinite Retentive LLMcited by 16
Built on by
Citing papers per year: 2024: 1; 2025: 1; 2026: 2.
4 papers.
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2026Learning to Evict from Key-Value Cachecited by 12
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architecturescited by 9
- 2026Back from the Future: Key-Value Cache Management by Counter-Causal Surprisecited by 1
- 2026Back from the Future: Key-Value Cache Management by Counter-Causal Surprise30 Jul 2026
- 2026Learning to Evict from Key-Value Cache10 Feb 2026
- 2025Memory-Augmented Transformers: A Systematic Review from Neuroscience Principles to Enhanced Model Architectures14 Aug 2025
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024