Scaling Transformer to 1M tokens and beyond with RMT
Not on the map. Why?
Abstract (arXiv)
A major limitation for the broader scope of problems solvable by transformers is the quadratic scaling of computational complexity with input size. In this study, we investigate the recurrent memory augmentation of pre-trained transformer models to extend input context length while linearly scaling compute. Our approach demonstrates the capability to store information in memory for sequences of up to an unprecedented two million tokens while maintaining high retrieval accuracy. Experiments with language modeling tasks show perplexity improvement as the number of processed input segments increases. These results underscore the effectiveness of our method, which has significant potential to enhance long-term dependency handling in natural language understanding and generation tasks, as well as enable large-scale context processing for memory-intensive applications.
Key facts. Cited by 98 papers in the map (data through 14 Oct 2026). Builds on 33 of its 53 references that are in the map. First posted on arXiv 19 Apr 2023.
Builds on
33 of 53 references.
References · 33
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,304
- 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 872
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
21 more
- 2014Neural Turing Machinescited by 644
- 2014Memory Networkscited by 363
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2022Memorizing Transformerscited by 226
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 208
- 2022Recurrent Memory Transformercited by 203
- 2019The Lean mathematical librarycited by 134
- 2019Star-Transformercited by 94
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84
- 2020MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioningcited by 79
- 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
- 2020Memory Transformercited by 76
- 2020Memformer: A Memory-Augmented Transformer for Sequence Modelingcited by 63
- 2015Learning to Transduce with Unbounded Memorycited by 54
- 2020GMAT: Global Memory Augmentation for Transformerscited by 36
- 2020ETC: Encoding Long and Structured Inputs in Transformerscited by 34
- 2020ERNIE-Doc: A Retrospective Long-Document Modeling Transformercited by 31
- 2016Scaling Memory-Augmented Neural Networks with Sparse Reads and Writescited by 28
- 2017Memory Augmented Neural Networks with Wormhole Connectionscited by 15
- 2016Dynamic Neural Turing Machine with Soft and Hard Addressing Schemescited by 8
Built on by
Citing papers per year: 2023: 32; 2024: 42; 2025: 15; 2026: 9.
98 papers.
Sort:
By area:
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
- 2023Language Modeling Is Compressioncited by 225
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 202
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 199
- 2023Do All Languages Cost the Same? Tokenization in the Era of Commercial Language Modelscited by 192
38 more
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 140
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 133
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 123
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 109
- 2024Long Context Compression with Activation Beaconcited by 104
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agentscited by 102
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 86
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 79
- 2023Unleashing the potential of prompt engineering for large language modelscited by 72
- 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 72
- 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 69
- 2023Tool Documentation Enables Zero-Shot Tool-Usage with Large Language Modelscited by 68
- 2025M+: Extending MemoryLLM with Scalable Long-Term Memorycited by 54
- 2026EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoningcited by 54
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
- 2026RoboMME: Benchmarking and Understanding Memory for Robotic Generalist Policiescited by 49
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 48
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
- 2024Foundation Models for Music: A Surveycited by 37
- 2024In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Misscited by 36
- 2024Mixture of In-Context Prompters for Tabular PFNscited by 33
- 2024Block Transformer: Global-to-Local Language Modeling for Fast Inferencecited by 32
- 2023Interactive Natural Language Processingcited by 31
- 2024NetSafe: Exploring the Topological Safety of Multi-agent Networkscited by 29
- 2024LongGenBench: Long-context Generation Benchmarkcited by 28
- 2024V2PE: Improving Multimodal Long-Context Capability of Vision-Language Models with Variable Visual Position Encodingcited by 28
- 2024GRAM: Global Reasoning for Multi-Page VQAcited by 23
- 2024InfiniMotion: Mamba Boosts Memory in Transformer for Arbitrary Long Motion Generationcited by 23
- 2024Extending LLMs' Context Window with 100 Samplescited by 21
- 2024Self-Updatable Large Language Models by Integrating Context into Model Parameterscited by 21
- 2024VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridgescited by 20
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystackcited by 20
- 2024COSMO: COntrastive Streamlined MultimOdal Model with Interleaved Pre-Trainingcited by 18
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documentscited by 17
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2024Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Modelscited by 13
- 2023Focus Your Attention (with Adaptive IIR Filters)cited by 12
50 most cited of 98 All 98 (JSON)
- 2026EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memory19 Jun 2026
- 2026Fractional Decay KV-Cache: Ownership-Aware Memory Management for Improved Inference Relevancy in Dialog Systems9 Jun 2026
- 2026Connecting the Dots: Benchmarking Reflective Memory in Long-Horizon Dialogue31 May 2026
- 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantization20 Apr 2026
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptation15 Apr 2026
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformers22 Mar 2026
- 2026Trained Persistent Memory for Frozen Decoder-Only LLMs20 Mar 2026
- 2026RoboMME: Benchmarking and Understanding Memory for Robotic Generalist Policies4 Mar 2026
- 2026EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoning5 Jan 2026
- 2025Memory as Resonance: A Biomimetic Architecture for Infinite Context Memory on Ergodic Phonetic Manifolds23 Dec 2025
- 2025LongWeave: A Long-Form Generation Benchmark Bridging Real-World Relevance and Verifiability28 Oct 2025
- 2025Memo: Training Memory-Efficient Embodied Agents with Reinforcement Learning22 Oct 2025
38 more
- 2025ResFormer: All-Time Reservoir Memory for Long Sequence Classification28 Sep 2025
- 2025DeCAL Tokenwise Compression11 Aug 2025
- 2025Modality Agnostic Efficient Long Range Encoder25 Jul 2025
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent3 Jul 2025
- 2025Sequential-NIAH: A Needle-In-A-Haystack Benchmark for Extracting Sequential Needles from Long Contexts7 Apr 2025
- 2025Reasoning on Multiple Needles In A Haystack5 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystack1 Mar 2025
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference28 Feb 2025
- 2025Zero-shot Meta-learning for Tabular Prediction Tasks with Adversarially Pre-trained Transformer6 Feb 2025
- 2025M+: Extending MemoryLLM with Scalable Long-Term Memory1 Feb 2025
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansion25 Jan 2025
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024
- 2024V2PE: Improving Multimodal Long-Context Capability of Vision-Language Models with Variable Visual Position Encoding12 Dec 2024
- 2024IntentGPT: Few-shot Intent Discovery with Large Language Models16 Nov 2024
- 2024What is Wrong with Perplexity for Long-context Language Modeling?31 Oct 2024
- 2024Long Sequence Modeling with Attention Tensorization: From Sequence to Tensor Learning28 Oct 2024
- 2024Taipan: Efficient and Expressive State Space Language Models with Selective Attention24 Oct 2024
- 2024NetSafe: Exploring the Topological Safety of Multi-agent Networks21 Oct 2024
- 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMs17 Oct 2024
- 2024Forgetting Curve: A Reliable Method for Evaluating Memorization Capability for Long-context Models7 Oct 2024
- 2024LongGenBench: Long-context Generation Benchmark5 Oct 2024
- 2024System 2 Reasoning Capabilities Are Nigh4 Oct 2024
- 2024Self-Updatable Large Language Models by Integrating Context into Model Parameters1 Oct 2024
- 2024PecSched: Preemptive and Efficient Cluster Scheduling for LLM Inference23 Sep 2024
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024VideoLLaMB: Long Streaming Video Understanding with Recurrent Memory Bridges2 Sep 2024
- 2024Squid: Long Context as a New Modality for Energy-Efficient On-Device Language Models28 Aug 2024
- 2024Foundation Models for Music: A Survey26 Aug 2024
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning14 Jul 2024
- 2024InfiniMotion: Mamba Boosts Memory in Transformer for Arbitrary Long Motion Generation14 Jul 2024
- 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agents5 Jul 2024
- 2024Hidden Holes: topological aspects of language models9 Jun 2024
- 2024Block Transformer: Global-to-Local Language Modeling for Fast Inference4 Jun 2024
- 2024MVAD: A Multiple Visual Artifact Detector for Video Streaming31 May 2024
- 2024Toward Conversational Agents with Context and Time Sensitive Long-term Memory29 May 2024
- 2024On the Role of Attention Masks and LayerNorm in Transformers29 May 2024
- 2024UniICL: An Efficient Unified Framework Unifying Compression, Selection, and Generation27 May 2024
50 newest of 98 All 98 (JSON)
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
- 2026EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoningcited by 54
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
- 2024GRAM: Global Reasoning for Multi-Page VQAcited by 23
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documentscited by 17
- 2023Think Before You Speak: Cultivating Communication Skills of Large Language Models via Inner Monologuecited by 11
- 2023Marathon: A Race Through the Realm of Long Context with Large Language Modelscited by 9
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoningcited by 7
- 2023Neuro Symbolic Reasoning for Planning: Counterexample Guided Inductive Synthesis using Large Language Models and Satisfiability Solvingcited by 6
- 2024UniICL: An Efficient Unified Framework Unifying Compression, Selection, and Generationcited by 6
- 2024System 2 Reasoning Capabilities Are Nighcited by 2
12 most cited of 13 All 13 (JSON)
- 2026EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoning5 Jan 2026
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agent3 Jul 2025
- 2025Reasoning on Multiple Needles In A Haystack5 Apr 2025
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansion25 Jan 2025
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024
- 2024System 2 Reasoning Capabilities Are Nigh4 Oct 2024
- 2024ChatLogic: Integrating Logic Programming with Large Language Models for Multi-Step Reasoning14 Jul 2024
- 2024UniICL: An Efficient Unified Framework Unifying Compression, Selection, and Generation27 May 2024
- 2024GRAM: Global Reasoning for Multi-Page VQA7 Jan 2024
- 2023Marathon: A Race Through the Realm of Long Context with Large Language Models15 Dec 2023
- 2023TextGenSHAP: Scalable Post-hoc Explanations in Text Generation with Long Documents3 Dec 2023
- 2023Think Before You Speak: Cultivating Communication Skills of Large Language Models via Inner Monologue13 Nov 2023
12 newest of 13 All 13 (JSON)
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 199
- 2024Long Context Compression with Activation Beaconcited by 104
- 2024Block Transformer: Global-to-Local Language Modeling for Fast Inferencecited by 32
- 2024Bifurcated Attention: Accelerating Massively Parallel Decoding with Shared Prefixes in LLMscited by 7
- 2025Modality Agnostic Efficient Long Range Encodercited by 0
- 2026Fractional Decay KV-Cache: Ownership-Aware Memory Management for Improved Inference Relevancy in Dialog Systemscited by 0
- 2026Fractional Decay KV-Cache: Ownership-Aware Memory Management for Improved Inference Relevancy in Dialog Systems9 Jun 2026
- 2025Modality Agnostic Efficient Long Range Encoder25 Jul 2025
- 2024Block Transformer: Global-to-Local Language Modeling for Fast Inference4 Jun 2024
- 2024Bifurcated Attention: Accelerating Massively Parallel Decoding with Shared Prefixes in LLMs13 Mar 2024
- 2024Long Context Compression with Activation Beacon7 Jan 2024
- 2023In-context Autoencoder for Context Compression in a Large Language Model13 Jul 2023
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystackcited by 20
- 2024Toward Conversational Agents with Context and Time Sensitive Long-term Memorycited by 8
- 2024Flexibly Scaling Large Language Models Contexts Through Extensible Tokenizationcited by 7
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptationcited by 1
- 2026Shuffle the Context: RoPE-Perturbed Self-Distillation for Long-Context Adaptation15 Apr 2026
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystack1 Mar 2025
- 2024Toward Conversational Agents with Context and Time Sensitive Long-term Memory29 May 2024
- 2024Flexibly Scaling Large Language Models Contexts Through Extensible Tokenization15 Jan 2024
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 126
- 2024NetSafe: Exploring the Topological Safety of Multi-agent Networkscited by 29
- 2026EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memorycited by 2
- 2026EvoEmbedding: Evolvable Representations for Long-Context Retrieval and Agentic Memory19 Jun 2026
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2024NetSafe: Exploring the Topological Safety of Multi-agent Networks21 Oct 2024
- 2024Foundation Models for Music: A Surveycited by 37
- 2024Foundation Models for Music: A Survey26 Aug 2024
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
- 2023Language Modeling Is Compressioncited by 225
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 202
- 2023Do All Languages Cost the Same? Tokenization in the Era of Commercial Language Modelscited by 192
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 140
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 133
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 123
- 2023LEGO-Prover: Neural Theorem Proving with Growing Librariescited by 109
12 most cited of 63 All 63 (JSON)
- 2026Connecting the Dots: Benchmarking Reflective Memory in Long-Horizon Dialogue31 May 2026
- 2026AQPIM: Breaking the PIM Capacity Wall for LLMs with In-Memory Activation Quantization20 Apr 2026
- 2026Mixture of Chapters: Scaling Learnt Memory in Transformers22 Mar 2026
- 2026Trained Persistent Memory for Frozen Decoder-Only LLMs20 Mar 2026
- 2025Memory as Resonance: A Biomimetic Architecture for Infinite Context Memory on Ergodic Phonetic Manifolds23 Dec 2025
- 2025LongWeave: A Long-Form Generation Benchmark Bridging Real-World Relevance and Verifiability28 Oct 2025
- 2025ResFormer: All-Time Reservoir Memory for Long Sequence Classification28 Sep 2025
- 2025DeCAL Tokenwise Compression11 Aug 2025
- 2025Sequential-NIAH: A Needle-In-A-Haystack Benchmark for Extracting Sequential Needles from Long Contexts7 Apr 2025
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference28 Feb 2025
- 2025Zero-shot Meta-learning for Tabular Prediction Tasks with Adversarially Pre-trained Transformer6 Feb 2025
- 2025M+: Extending MemoryLLM with Scalable Long-Term Memory1 Feb 2025
12 newest of 63 All 63 (JSON)