Memory Transformer
Not on the map. Why?
Abstract (arXiv)
Transformer-based models have achieved state-of-the-art results in many natural language processing tasks. The self-attention architecture allows transformer to combine information from all elements of a sequence into context-aware representations. However, information about the context is stored mostly in the same element-wise representations. This might limit the processing of properties related to the sequence as a whole more difficult. Adding trainable memory to selectively store local as well as global representations of a sequence is a promising direction to improve the Transformer model. Memory-augmented neural networks (MANNs) extend traditional neural architectures with general-purpose memory for representations. MANNs have demonstrated the capability to learn simple algorithms like Copy or Reverse and can be successfully trained via backpropagation on diverse tasks from question answering to language modeling outperforming RNNs and LSTMs of comparable complexity. In this work, we propose and study few extensions of the Transformer baseline (1) by adding memory tokens to store non-local representations, (2) creating memory bottleneck for the global information, (3) controlling memory update with dedicated layer. We evaluate these memory augmented Transformers and demonstrate that presence of memory positively correlates with the model performance for machine translation and language modelling tasks. Augmentation of pre-trained masked language model with memory tokens shows mixed results for tasks from GLUE benchmark. Visualization of attention patterns over the memory suggest that it improves the model's ability to process a global context.
Key facts. Cited by 74 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 8; 2023: 10; 2024: 19; 2025: 20; 2026: 13.
74 papers.
Sort:
By area:
- 2023Vision Transformers Need Registerscited by 844
- 2023Think before you speak: Training Language Models With Pause Tokenscited by 254
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2022Recurrent Memory Transformercited by 197
- 2022Scalable Adaptive Computation for Iterative Generationcited by 190
- 2025MIRIX: Multi-Agent Memory System for LLM-Based Agentscited by 160
- 2024The pitfalls of next-token predictioncited by 156
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
- 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 89
- 2021Coordination Among Neural Modules Through a Shared Global Workspacecited by 83
- 2024TabPedia: Towards Comprehensive Visual Table Understanding with Concept Synergycited by 70
38 more
- 2025Mem-α: Learning Memory Construction via Reinforcement Learningcited by 49
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 40
- 2024MemLLM: Finetuning LLMs to Use An Explicit Read-Write Memorycited by 35
- 2024Needle in the Haystack for Memory Based Large Language Modelscited by 32
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacitycited by 27
- 2022Token Turing Machinescited by 25
- 2021MedGPT: Medical Concept Prediction from Clinical Narrativescited by 24
- 2024InfiniMotion: Mamba Boosts Memory in Transformer for Arbitrary Long Motion Generationcited by 23
- 2022Cluster and Aggregate: Face Recognition with Large Probe Setcited by 22
- 2023Adaptive Computation with Elastic Input Sequencecited by 22
- 2024Efficient Vision-Language Models by Summarizing Visual Tokens into Compact Registerscited by 19
- 2023Adapt Your Teacher: Improving Knowledge Distillation for Exemplar-free Continual Learningcited by 16
- 2025Multi-Token Prediction Needs Registerscited by 16
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2024Unveiling the Hidden: Online Vectorized HD Map Construction with Clip-Level Token Interaction and Propagationcited by 12
- 2025Padding Tone: A Mechanistic Analysis of Padding Tokens in T2I Modelscited by 12
- 2025Vision Transformers with Self-Distilled Registerscited by 12
- 2022Explain My Surprise: Learning Efficient Long-Term Memory by Predicting Uncertain Outcomescited by 11
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunitiescited by 11
- 2024Semformer: Transformer Language Models with Semantic Planningcited by 9
- 2025Extending Foundational Monocular Depth Estimators to Fisheye Cameras with Calibration Tokenscited by 9
- 2024Efficient Length-Generalizable Attention via Causal Retrieval for Long-Context Language Modelingcited by 8
- 2025SRMT: Shared Memory for Multi-agent Lifelong Pathfindingcited by 8
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformerscited by 8
- 2025Learning to Insert [PAUSE] Tokens for Better Reasoningcited by 8
- 2024Multi-Atlas Brain Network Classification through Consistency Distillation and Complementary Information Fusioncited by 6
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Modelscited by 6
- 2025Towards Implicit Aggregation: Robust Image Representation for Place Recognition in the Transformer Eracited by 6
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networkscited by 6
- 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoningcited by 6
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descentcited by 6
- 2021StoryDB: Broad Multi-language Narrative Datasetcited by 5
- 2022Stateful Memory-Augmented Transformers for Efficient Dialogue Modelingcited by 5
- 2026Universal Transformers Need Memory: Depth-State Trade-offs in Adaptive Recursive Reasoningcited by 5
- 2026Stable Audio 3cited by 5
- 2022Linearizing Transformer with Key-Value Memorycited by 4
- 2023Context-Aware Classification of Legal Document Pagescited by 3
- 2024Transformer Mechanisms Mimic Frontostriatal Gating Operations When Trained on Human Working Memory Taskscited by 3
50 most cited of 74 All 74 (JSON)
- 2026MapLightning: Online Vectorized HD Map Construction with 1D Map Tokens1 Oct 2026
- 2026Towards Understanding Pause Token Fine-Tuning Dynamics: A Mode Retention Perspective3 Sep 2026
- 2026RATS! Patches Talk Through Registers: Emergent Parts in Register Attention Transformers12 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026Stable Audio 318 May 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Mela: Test-Time Memory Consolidation based on Transformation Hypothesis11 May 2026
- 2026Universal Transformers Need Memory: Depth-State Trade-offs in Adaptive Recursive Reasoning23 Apr 2026
- 2026MANAR: Memory-augmented Attention with Navigational Abstract Conceptual Representation19 Mar 2026
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descent14 Mar 2026
- 2026Thinking into the Future: Latent Lookahead Training for Transformers3 Mar 2026
- 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning13 Feb 2026
38 more
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Towards Implicit Aggregation: Robust Image Representation for Place Recognition in the Transformer Era8 Nov 2025
- 2025Catch Your Breath: Adaptive Computation for Self-Paced Sequence Production13 Oct 2025
- 2025Mem-α: Learning Memory Construction via Reinforcement Learning30 Sep 2025
- 2025Enhancing Transformer-Based Vision Models: Addressing Feature Map Anomalies Through Novel Optimization Strategies24 Sep 2025
- 2025Extending Foundational Monocular Depth Estimators to Fisheye Cameras with Calibration Tokens6 Aug 2025
- 2025MIRIX: Multi-Agent Memory System for LLM-Based Agents10 Jul 2025
- 2025A standard transformer and attention with linear biases for molecular conformer generation24 Jun 2025
- 2025Learning to Insert [PAUSE] Tokens for Better Reasoning4 Jun 2025
- 2025Vision Transformers with Self-Distilled Registers27 May 2025
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers27 May 2025
- 2025Multi-Token Prediction Needs Registers15 May 2025
- 2025Compact Recurrent Transformer with Persistent Memory2 May 2025
- 2025EDIT: Enhancing Vision Transformers by Mitigating Attention Sink through an Encoder-Decoder Architecture9 Apr 2025
- 2025Can Memory-Augmented Language Models Generalize on Reasoning-in-a-Haystack Tasks?10 Mar 2025
- 2025SAGE-Amine: Generative Amine Design with Multi-Property Optimization for Efficient CO2 Capture4 Mar 2025
- 2025A Generative Approach to LLM Harmfulness Mitigation with Red Flag Tokens22 Feb 2025
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacity18 Feb 2025
- 2025SRMT: Shared Memory for Multi-agent Lifelong Pathfinding22 Jan 2025
- 2025Padding Tone: A Mechanistic Analysis of Padding Tokens in T2I Models12 Jan 2025
- 2024CMT: A Memory Compression Method for Continual Knowledge Learning of Large Language Models10 Dec 2024
- 2024Hymba: A Hybrid-head Architecture for Small Language Models20 Nov 2024
- 2024Unveiling the Hidden: Online Vectorized HD Map Construction with Clip-Level Token Interaction and Propagation17 Nov 2024
- 2024Efficient Vision-Language Models by Summarizing Visual Tokens into Compact Registers17 Oct 2024
- 2024Efficient Length-Generalizable Attention via Causal Retrieval for Long-Context Language Modeling2 Oct 2024
- 2024Multi-Atlas Brain Network Classification through Consistency Distillation and Complementary Information Fusion28 Sep 2024
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024Semformer: Transformer Language Models with Semantic Planning17 Sep 2024
- 2024Retrieval-Enhanced Machine Learning: Synthesis and Opportunities17 Jul 2024
- 2024InfiniMotion: Mamba Boosts Memory in Transformer for Arbitrary Long Motion Generation14 Jul 2024
- 2024Needle in the Haystack for Memory Based Large Language Models1 Jul 2024
- 2024Improving Real-Time Music Accompaniment Separation with MMDenseNet30 Jun 2024
- 2024Complexity of Symbolic Representation in Working Memory of Transformer Correlates with the Complexity of a Task20 Jun 2024
- 2024TabPedia: Towards Comprehensive Visual Table Understanding with Concept Synergy3 Jun 2024
- 2024The CAP Principle for LLM Serving: A Survey of Long-Context Large Language Model Serving18 May 2024
- 2024MemLLM: Finetuning LLMs to Use An Explicit Read-Write Memory17 Apr 2024
- 2024The pitfalls of next-token prediction11 Mar 2024
50 newest of 74 All 74 (JSON)
- 2023Think before you speak: Training Language Models With Pause Tokenscited by 254
- 2025Learning to Insert [PAUSE] Tokens for Better Reasoningcited by 8
- 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoningcited by 6
- 2025Can Memory-Augmented Language Models Generalize on Reasoning-in-a-Haystack Tasks?cited by 2
- 2025Catch Your Breath: Adaptive Computation for Self-Paced Sequence Productioncited by 2
- 2026Thinking into the Future: Latent Lookahead Training for Transformerscited by 1
- 2026Towards Understanding Pause Token Fine-Tuning Dynamics: A Mode Retention Perspectivecited by 0
- 2026Towards Understanding Pause Token Fine-Tuning Dynamics: A Mode Retention Perspective3 Sep 2026
- 2026Thinking into the Future: Latent Lookahead Training for Transformers3 Mar 2026
- 2026Learning to Remember: End-to-End Training of Memory Agents for Long-Context Reasoning13 Feb 2026
- 2025Catch Your Breath: Adaptive Computation for Self-Paced Sequence Production13 Oct 2025
- 2025Learning to Insert [PAUSE] Tokens for Better Reasoning4 Jun 2025
- 2025Can Memory-Augmented Language Models Generalize on Reasoning-in-a-Haystack Tasks?10 Mar 2025
- 2023Think before you speak: Training Language Models With Pause Tokens3 Oct 2023
- 2022Scalable Adaptive Computation for Iterative Generationcited by 190
- 2025Padding Tone: A Mechanistic Analysis of Padding Tokens in T2I Modelscited by 12
- 2026Stable Audio 3cited by 5
- 2026Stable Audio 318 May 2026
- 2025Padding Tone: A Mechanistic Analysis of Padding Tokens in T2I Models12 Jan 2025
- 2022Scalable Adaptive Computation for Iterative Generation22 Dec 2022
- 2023Vision Transformers Need Registerscited by 844
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2022Recurrent Memory Transformercited by 197
- 2024The pitfalls of next-token predictioncited by 156
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 95
- 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 89
- 2021Coordination Among Neural Modules Through a Shared Global Workspacecited by 83
- 2024TabPedia: Towards Comprehensive Visual Table Understanding with Concept Synergycited by 70
- 2025Mem-α: Learning Memory Construction via Reinforcement Learningcited by 49
- 2024MemLLM: Finetuning LLMs to Use An Explicit Read-Write Memorycited by 35
- 2024Needle in the Haystack for Memory Based Large Language Modelscited by 32
12 most cited of 58 All 58 (JSON)
- 2026MapLightning: Online Vectorized HD Map Construction with 1D Map Tokens1 Oct 2026
- 2026RATS! Patches Talk Through Registers: Emergent Parts in Register Attention Transformers12 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026Do Vision Transformers Need All-to-All Attention? Global Communication Through Elastic Learned Cores12 May 2026
- 2026Mela: Test-Time Memory Consolidation based on Transformation Hypothesis11 May 2026
- 2026Universal Transformers Need Memory: Depth-State Trade-offs in Adaptive Recursive Reasoning23 Apr 2026
- 2026MANAR: Memory-augmented Attention with Navigational Abstract Conceptual Representation19 Mar 2026
- 2026GradMem: Learning to Write Context into Memory with Test-Time Gradient Descent14 Mar 2026
- 2025Unboxing the Black Box: Mechanistic Interpretability for Algorithmic Understanding of Neural Networks24 Nov 2025
- 2025Towards Implicit Aggregation: Robust Image Representation for Place Recognition in the Transformer Era8 Nov 2025
- 2025Mem-α: Learning Memory Construction via Reinforcement Learning30 Sep 2025
- 2025Enhancing Transformer-Based Vision Models: Addressing Feature Map Anomalies Through Novel Optimization Strategies24 Sep 2025
12 newest of 58 All 58 (JSON)