RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrieval
Not on the map. Why?
Abstract (arXiv)
This paper investigates the gap in representation powers of Recurrent Neural Networks (RNNs) and Transformers in the context of solving algorithmic problems. We focus on understanding whether RNNs, known for their memory efficiency in handling long sequences, can match the performance of Transformers, particularly when enhanced with Chain-of-Thought (CoT) prompting. Our theoretical analysis reveals that CoT improves RNNs but is insufficient to close the gap with Transformers. A key bottleneck lies in the inability of RNNs to perfectly retrieve information from the context, even with CoT: for several tasks that explicitly or implicitly require this capability, such as associative recall and determining if a graph is a tree, we prove that RNNs are not expressive enough to solve the tasks while Transformers can solve them with ease. Conversely, we prove that adopting techniques to enhance the in-context retrieval capability of RNNs, including Retrieval-Augmented Generation (RAG) and adding a single Transformer layer, can elevate RNNs to be capable of solving all polynomial-time solvable problems with CoT, hence closing the representation gap with Transformers.
Key facts. Cited by 62 papers in the map (data through 7 Oct 2026). Builds on 28 of its 53 references that are in the map. First posted on arXiv 28 Feb 2024.
Builds on
28 of 53 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2014Neural Turing Machinescited by 630
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
16 more
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2016Using Fast Weights to Attend to the Recent Pastcited by 161
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 137
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 92
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 50
- 2022Retrieval as Attention: End-to-end Learning of Retrieval and Reading within a Single Transformercited by 45
- 2024In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Misscited by 36
- 2019Modeling Recurrence for Transformercited by 26
- 2020On the Curse of Memory in Recurrent Neural Networks: Approximation and Optimization Analysiscited by 26
- 2024Do Efficient Transformers Really Save Computation?cited by 20
Built on by
Citing papers per year: 2024: 18; 2025: 24; 2026: 20.
62 papers.
Sort:
By area:
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2024Falcon Mamba: The First Competitive Attention-free 7B Language Modelcited by 43
- 2024Theoretical limitations of multi-layer Transformercited by 43
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processingcited by 35
- 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiencycited by 28
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attentioncited by 24
38 more
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selectioncited by 17
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysiscited by 14
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modelingcited by 12
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generationcited by 10
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contextscited by 9
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modelingcited by 9
- 2025Mechanistic evaluation of Transformers and state space modelscited by 8
- 2024Stuffed Mamba: Oversized States Lead to the Inability to Forgetcited by 7
- 2024Shaking Up VLMs: Comparing Transformers and Structured State Space Models for Vision & Language Modelingcited by 6
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoningcited by 6
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modelingcited by 6
- 2025Strong Memory, Weak Control: An Empirical Study of Executive Functioning in LLMscited by 6
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybridscited by 5
- 2024Taipan: Efficient and Expressive State Space Language Models with Selective Attentioncited by 4
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theorycited by 4
- 2026What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agentscited by 4
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluationcited by 3
- 2025VideoMAP: Toward Scalable Mamba-based Video Autoregressive Pretrainingcited by 3
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architecturescited by 3
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attentioncited by 3
- 2024Approximation Bounds for Recurrent Neural Networks with Application to Regressioncited by 2
- 2025When Do Transformers Outperform Feedforward and Recurrent Networks? A Statistical Perspectivecited by 2
- 2025SportMamba: Adaptive Non-Linear Multi-Object Tracking with State Space Models for Team Sportscited by 2
- 2025Fast attention mechanisms: a tale of parallelismcited by 2
- 2025Controllably Efficient Language Modelscited by 2
- 2026On the "Induction Bias" in Sequence Modelscited by 2
- 2026Morphing into Hybrid Attention Modelscited by 2
- 2024Birdie: Advancing State Space Models with Reward-Driven Objectives and Curriculacited by 1
- 2025HAD: Hybrid Architecture Distillation Outperforms Teacher in Genomic Sequence Modelingcited by 1
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Onescited by 1
- 2025FlashEVA: Accelerating LLM inference via Efficient Attentioncited by 1
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attentioncited by 1
- 2026Bayesian Optimality of In-Context Learning with Selective State Spacescited by 1
- 2026Retrievit: In-context Retrieval Capabilities of Transformers, State Space Models, and Hybrid Architecturescited by 1
- 2026On the Expressive Power and Limitations of Multi-Layer SSMscited by 1
50 most cited of 62 All 62 (JSON)
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors12 Aug 2026
- 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modeling3 Aug 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026What to Keep, What to Forget: A Rate--Distortion View of Memory Compaction in LLMs and Agents9 Jul 2026
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillation15 Jun 2026
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernels12 Jun 2026
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention21 May 2026
- 2026From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation15 May 2026
- 2026OSDN: Improving Delta Rule with Provable Online Preconditioning in Linear Attention13 May 2026
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attention7 May 2026
38 more
- 2026On the Expressive Power and Limitations of Multi-Layer SSMs16 Apr 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Retrievit: In-context Retrieval Capabilities of Transformers, State Space Models, and Hybrid Architectures3 Mar 2026
- 2026On the "Induction Bias" in Sequence Models20 Feb 2026
- 2026Bayesian Optimality of In-Context Learning with Selective State Spaces19 Feb 2026
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybrids11 Feb 2026
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention2 Feb 2026
- 2026Gecko: An Efficient Neural Architecture Inherently Processing Sequences with Arbitrary Lengths10 Jan 2026
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selection23 Dec 2025
- 2025Controllably Efficient Language Models7 Nov 2025
- 2025FlashEVA: Accelerating LLM inference via Efficient Attention1 Nov 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction23 Oct 2025
- 2025Structure Over Signal: A Globalized Approach to Multi-relational GNNs for Stock Prediction12 Oct 2025
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modeling8 Oct 2025
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures6 Oct 2025
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generation9 Jul 2025
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Ones13 Jun 2025
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theory5 Jun 2025
- 2025SportMamba: Adaptive Non-Linear Multi-Object Tracking with State Space Models for Team Sports3 Jun 2025
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Time29 May 2025
- 2025HAD: Hybrid Architecture Distillation Outperforms Teacher in Genomic Sequence Modeling27 May 2025
- 2025How Does Sequence Modeling Architecture Influence Base Capabilities of Pre-trained Language Models? Exploring Key Architecture Design Principles to Avoid Base Capabilities Degradation24 May 2025
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanism22 Apr 2025
- 2025Strong Memory, Weak Control: An Empirical Study of Executive Functioning in LLMs3 Apr 2025
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modeling17 Mar 2025
- 2025VideoMAP: Toward Scalable Mamba-based Video Autoregressive Pretraining16 Mar 2025
- 2025When Do Transformers Outperform Feedforward and Recurrent Networks? A Statistical Perspective14 Mar 2025
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processing20 Feb 2025
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understanding3 Feb 2025
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rule9 Dec 2024
- 2024Theoretical limitations of multi-layer Transformer4 Dec 2024
- 2024Birdie: Advancing State Space Models with Reward-Driven Objectives and Curricula1 Nov 2024
- 2024Taipan: Efficient and Expressive State Space Language Models with Selective Attention24 Oct 2024
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs17 Oct 2024
- 2024Stuffed Mamba: Oversized States Lead to the Inability to Forget9 Oct 2024
50 newest of 62 All 62 (JSON)
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 167
- 2024Falcon Mamba: The First Competitive Attention-free 7B Language Modelcited by 43
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processingcited by 35
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attentioncited by 24
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modelingcited by 12
- 2025Mechanistic evaluation of Transformers and state space modelscited by 8
- 2024Stuffed Mamba: Oversized States Lead to the Inability to Forgetcited by 7
- 2024Taipan: Efficient and Expressive State Space Language Models with Selective Attentioncited by 4
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluationcited by 3
- 2025VideoMAP: Toward Scalable Mamba-based Video Autoregressive Pretrainingcited by 3
- 2026Bayesian Optimality of In-Context Learning with Selective State Spacescited by 1
- 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modelingcited by 0
- 2026Mamba with Hierarchical Memory: Solving Representation Bottleneck in Long Sequence Modeling3 Aug 2026
- 2026Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention21 May 2026
- 2026Bayesian Optimality of In-Context Learning with Selective State Spaces19 Feb 2026
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2025VideoMAP: Toward Scalable Mamba-based Video Autoregressive Pretraining16 Mar 2025
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processing20 Feb 2025
- 2024Taipan: Efficient and Expressive State Space Language Models with Selective Attention24 Oct 2024
- 2024Stuffed Mamba: Oversized States Lead to the Inability to Forget9 Oct 2024
- 2024Falcon Mamba: The First Competitive Attention-free 7B Language Model7 Oct 2024
- 2024ReMamba: Equip Mamba with Effective Long-Sequence Modeling28 Aug 2024
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling11 Jun 2024
- 2024CLIP-Mamba: CLIP Pretrained Mamba Models with OOD and Hessian Evaluation30 Apr 2024
- 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiencycited by 28
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysiscited by 14
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generationcited by 10
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoningcited by 6
- 2026On the Expressive Power and Limitations of Multi-Layer SSMscited by 1
- 2026On the Expressive Power and Limitations of Multi-Layer SSMs16 Apr 2026
- 2025Decoder-Hybrid-Decoder Architecture for Efficient Reasoning with Long Generation9 Jul 2025
- 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs17 Oct 2024
- 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiency7 Oct 2024
- 2024Exploring the Limitations of Mamba in COPY and CoT Reasoning4 Oct 2024
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis3 Oct 2024
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contextscited by 9
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillationcited by 1
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernelscited by 0
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillation15 Jun 2026
- 2026Semidirect Fourier Delta Attention: Phase-Controlled Delta Memory with Constructive Chunk-WY Kernels12 Jun 2026
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction23 Oct 2025
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts2 Oct 2024
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2024Theoretical limitations of multi-layer Transformercited by 43
- 2025Distilling to Hybrid Attention Models via KL-Guided Layer Selectioncited by 17
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2025Artificial Hippocampus Networks for Efficient Long-Context Modelingcited by 9
- 2025Strong Memory, Weak Control: An Empirical Study of Executive Functioning in LLMscited by 6
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybridscited by 5
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theorycited by 4
12 most cited of 37 All 37 (JSON)
- 2026Safin-1: Safety from Within through Memory-Native State Evolution31 Aug 2026
- 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors12 Aug 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation15 May 2026
- 2026OSDN: Improving Delta Rule with Provable Online Preconditioning in Linear Attention13 May 2026
- 2026MDN: Parallelizing Stepwise Momentum for Delta Linear Attention7 May 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Retrievit: In-context Retrieval Capabilities of Transformers, State Space Models, and Hybrid Architectures3 Mar 2026
- 2026On the "Induction Bias" in Sequence Models20 Feb 2026
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybrids11 Feb 2026
- 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention2 Feb 2026
12 newest of 37 All 37 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization
- 2025StateX: Enhancing RNN Recall via Post-training State Expansion
- 2026Adaptive Loops and Memory in Transformers: Think Harder or Know More?
- 2025Rethinking Reasoning in LLMs: Neuro-Symbolic Local RetoMaton Beyond ICL and CoT
- 2026DreamingGoose: Staged Distillation from Autoregressive Transformers to Bidirectional Recurrent Diffusion Language Models
- 2022Re2G: Retrieve, Rerank, Generate
- 2025Beyond Semantics: How Temporal Biases Shape Retrieval in Transformer and State-Space Models
- 2025Overcoming Long-Context Limitations of State-Space Models via Context-Dependent Sparse Attention