M2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling
Not on the map. Why?
Abstract (arXiv)
Transformers are highly parallel but are limited to computations in the TC0 complexity class, excluding tasks such as entity tracking and code execution that provably require greater expressive power. Motivated by this limitation, we revisit non-linear Recurrent Neural Networks (RNNs) for language modeling and introduce Matrix-to-Matrix RNN (M2RNN): an architecture with matrix-valued hidden states and expressive non-linear state transitions. We demonstrate that the language modeling performance of non-linear RNNs is limited by their state size, and show how the state size expansion mechanism enables efficient use of tensor cores. Empirically, M2RNN achieves perfect state tracking generalization at sequence lengths not seen during training. These benefits also translate to large-scale language modeling. In hybrid settings that interleave recurrent layers with attention, Hybrid M2RNN outperforms equivalent Gated DeltaNet hybrids by 0.4-0.5 perplexity points on a 7B MoE model, while using 3× smaller state sizes for the recurrent layers. Notably, replacing even a single recurrent layer with M2RNN in an existing hybrid architecture yields accuracy gains comparable to Hybrid M2RNN with minimal impact on training throughput. Further, the Hybrid Gated DeltaNet models with a single M2RNN layer also achieve superior long-context generalization, outperforming state-of-the-art hybrid linear attention architectures by up to 8 points on LongBench. Together, these results establish non-linear RNN layers as a compelling building block for efficient and scalable language models.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 68 of its 86 references that are in the map. First posted on arXiv 15 Mar 2026.
Builds on
68 of 86 references.
References · 68
- 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
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2025Qwen3 Technical Reportcited by 8,195
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
38 more
- 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
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020GLU Variants Improve Transformercited by 1,724
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2017Mixed Precision Trainingcited by 1,135
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2017Crowdsourcing Multiple Choice Science Questionscited by 742
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 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
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 390
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2021Random Feature Attentioncited by 350
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 227
50 most cited of 68 All 68 (JSON)
Built on by
Citing papers per year: 2026: 7.
7 papers.
- 2026Pretraining Recurrent Networks without Recurrencecited by 5
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projectionscited by 1
- 2026The Rank the Task Demands: A Causal Rank Law for Matrix Memories Trained on Group Compositioncited by 1
- 2026Learning Length-Extrapolatable Recurrent Modelscited by 0
- 2026When the Gradient Sees Rank: Provable Necessity, Causal Recruitment, and Composition in Trained Matrix Memoriescited by 0
- 2026The Automaton Underneath: The Additive Input Pathway Is a Parasitic Attractor for State Tracking in Householder Linear RNNcited by 0
- 2026Switching Linear Attentioncited by 0
- 2026Switching Linear Attention30 Sep 2026
- 2026When the Gradient Sees Rank: Provable Necessity, Causal Recruitment, and Composition in Trained Matrix Memories12 Sep 2026
- 2026The Rank the Task Demands: A Causal Rank Law for Matrix Memories Trained on Group Composition10 Sep 2026
- 2026Learning Length-Extrapolatable Recurrent Models8 Sep 2026
- 2026The Automaton Underneath: The Additive Input Pathway Is a Parasitic Attractor for State Tracking in Householder Linear RNN16 Jul 2026
- 2026SHiPPO: Recurrent Memory with Transported Polynomial Projections3 Jul 2026
- 2026Pretraining Recurrent Networks without Recurrence4 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2025Implicit Language Models are RNNs: Balancing Parallelization and Expressivity
- 2023State space models can express n-gram languages
- 2026A Single-Layer Model Can Do Language Modeling
- 2025Language Modeling With Factorization Memory
- 2024Linearizing Large Language Models
- 2024BabyHGRN: Exploring RNNs for Sample-Efficient Training of Language Models
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models
- 2026DREAMSTATE: Diffusing States and Parameters for Recurrent Large Language Models