Memory Caching: RNNs with Growing Memory
Not on the map. Why?
Abstract (arXiv)
Transformers have been established as the de-facto backbones for most recent advances in sequence modeling, mainly due to their growing memory capacity that scales with the context length. While plausible for retrieval tasks, it causes quadratic complexity and so has motivated recent studies to explore viable subquadratic recurrent alternatives. Despite showing promising preliminary results in diverse domains, such recurrent architectures underperform Transformers in recall-intensive tasks, often attributed to their fixed-size memory. In this paper, we introduce Memory Caching (MC), a simple yet effective technique that enhances recurrent models by caching checkpoints of their memory states (a.k.a. hidden states). Memory Caching allows the effective memory capacity of RNNs to grow with sequence length, offering a flexible trade-off that interpolates between the fixed memory (i.e., O(L) complexity) of RNNs and the growing memory (i.e., O(L2) complexity) of Transformers. We propose four variants of MC, including gated aggregation and sparse selective mechanisms, and discuss their implications on both linear and deep memory modules. Our experimental results on language modeling, and long-context understanding tasks show that MC enhances the performance of recurrent models, supporting its effectiveness. The results of in-context recall tasks indicate that while Transformers achieve the best accuracy, our MC variants show competitive performance, close the gap with Transformers, and performs better than state-of-the-art recurrent models.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 72 of its 93 references that are in the map. First posted on arXiv 27 Feb 2026.
Builds on
72 of 93 references.
References · 72
- 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
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
38 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 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
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2022Simplified State Space Layers for Sequence Modelingcited by 776
- 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 606
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2020Hopfield Networks is All You Needcited by 461
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2016Dense Associative Memory for Pattern Recognitioncited by 230
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 211
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2024The Illusion of State in State-Space Modelscited by 181
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 157
- 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 155
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2025Test-Time Training Done Rightcited by 121
- 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 101
- 2022Monarch: Expressive Structured Matrices for Efficient and Accurate Trainingcited by 100
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2021Going Beyond Linear Transformers with Recurrent Fast Weight Programmerscited by 84
50 most cited of 72 All 72 (JSON)
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026Memory for Large Language Modelscited by 2
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memorycited by 1
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchorscited by 1
- 2026Proteus: Incremental Memory Activation for Long-Context Sequence Modelingcited by 1
- 2026Safin-1: Safety from Within through Memory-Native State Evolutioncited by 1
- 2026SMat-Attention: Structured Long-Context Sequence Modelingcited by 1
- 2026SinkRec: Mitigating Semantic State Sink in Long Sequence Recommendation with Memory-Conditioned Gated Delta Networkscited by 0
- 2026All Routes Lead to Collapsecited by 0
- 2026Online Neural Space Time Memory for Dynamic Novel View Synthesiscited by 0
- 2026Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Driftcited by 0
- 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injectioncited by 0
- 2026Dynamic Compression in Recurrent Networkscited by 0
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026Dynamic Compression in Recurrent Networks18 Aug 2026
- 2026Proteus: Incremental Memory Activation for Long-Context Sequence Modeling17 Aug 2026
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors12 Aug 2026
- 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injection3 Aug 2026
- 2026Memory for Large Language Models28 Jul 2026
- 2026Black-Mamba: Biologically-Inspired Leaky Accumulation for Conceptual Knowledge under Distribution Drift21 Jul 2026
- 2026Online Neural Space Time Memory for Dynamic Novel View Synthesis16 Jul 2026
- 2026All Routes Lead to Collapse21 Jun 2026
- 2026SinkRec: Mitigating Semantic State Sink in Long Sequence Recommendation with Memory-Conditioned Gated Delta Networks3 Jun 2026
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory11 May 2026