acceptodds
Published as a conference paper at NeurIPS 2026

MRNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling

Mayank Mishra, Shawn Tan, Ion Stoica, Joseph Gonzalez, Tri Dao

Abstract

Transformers are limited to computations in the TC complexity class, excluding tasks such as entity tracking and code execution that provably require greater expressivity. Motivated by this, we revisit non-linear Recurrent Neural Networks (RNNs) and introduce Matrix-to-Matrix RNN (MRNN): an architecture with matrix-valued hidden states and non-linear state transitions. We show that (i) the language modeling gap of non-linear RNNs is primarily a state-size gap, not a non-linearity penalty, and (ii) outer-product state expansion enables efficient tensor-core utilization. Empirically, MRNN achieves perfect state-tracking generalization at sequence lengths beyond training. These gains transfer to large-scale language modeling: at 7B MoE, Hybrid MRNN outperforms Hybrid Gated DeltaNetby perplexity points using smaller recurrent states, and replacing even a single recurrent layer with MRNN matches Hybrid MRNN accuracy with minimal throughput cost. Hybrid Gated DeltaNetwith a single MRNN layer also outperforms state-of-the-art hybrid linear-attention architectures by up to points on LongBench. Together, these results establish non-linear RNN layers as a compelling building block for efficient and scalable language models.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 4 reviews, above 17% of the others.
Reviewer_A475OpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper proposes an RNN layer that can be used standalone (though expensive) or incorporated as interleaved blocks with other LM architectures. The core contribution the authors offer is increasing the blocks state-space from d (standard RNN) -> KxV, which is achieved via an outer-product operation on the keys and values. The argument for doing this, is that standard RNNs fall short in language modelling due to their smaller state space that forces stronger compression and information loss. The formulation also allows better gpu utilization which avoids the batch padding inefficiency.

Strengths and weaknesses

Strengths

  • The background section clearly walks the reader through preliminary concepts, motivates the why using non-linear RNNs is important and their current weaknesses. It makes the paper more self-contained.
  • Thought was put into the method as it brings non-linear RNNs to practical use by ensuring good GPU utilization and use of GEMM.
  • Experiments on common benchmark shows the approach does not degrade performance - unlike standard non-linear RNN performance

Weaknesses

  • The paper argues the approach with improves state-tracking. However, beyond the plot in Figure 2, this isn't highlighted in the later experiments.
  • The improvement over existing baselines with hybrid interleaved M^2RNN is there but not significant.
Questions
  • How would the performance of this method compare with other methods when trained on shorter sequences and inference on long context? given its structurely more suitable for longer context at inference
  • Can this approach be extended to context-parallel training if needed?
Limitations

yes

Paper formatting concerns

Line 183 broken Table and Appendix links

Final justification

The proposed approach, the results presented in the paper, and the additional results demonstrated during the rebuttal phase are sufficient and have merit worth sharing. It would be good to add a discussion of the limitations of scaling along the CP axis. I retain my original rating.

1 comment

We thank the reviewer for the positive assessment and for the specific questions on state tracking, effect size, and long-context/parallel training. We respond to each point below.

The paper argues the approach improves state-tracking. However, beyond the plot in Figure 2, this isn't highlighted in the later experiments.

Beyond Figure 2 (S3S_3 task), we provide results on the harder S5S_5 state-tracking task (results here). As expected, both Gated DeltaNet and Gated DeltaProduct (2) (a product of 2 Householder reflections) with negative eigenvalues fail to learn the task at all, even within the training context length. Allowing a product of 4 Householder reflections (Gated DeltaProduct (4)) lets the model learn the task, but its accuracy quickly degrades when evaluated beyond the context length seen during training — consistent with the trend reported in Figure 3 of the Gated DeltaProduct paper [1]. M$^2$RNN, in contrast, consistently achieves nearly 100% accuracy on S5S_5 both within and beyond the training context length, mirroring the length-generalization result already shown for S3S_3 in Figure 2.


The improvement over existing baselines with hybrid interleaved M^2RNN is there but not significant.

Hybrid GDN + M$^2$RNN-1 cuts Wikitext PPL by 0.44 over Hybrid GDN (comparable to the 0.5-point gap between Hybrid GDN and Hybrid Mamba-2 itself), plus gains on real-world retrieval and up to 8 points on LongBench — all from swapping in a single layer out of 40 and remains within 6% of baseline throughput. The LongBench gain is particularly significant: Hybrid M$^2$RNN alone (without GDN) improves only 1.5 points over Hybrid GDN, but interleaving just one M$^2$RNN layer into the GDN hybrid lifts this to +7.3 points, and five layers push it only slightly further, to +8.1. That's the core argument: not that M$^2$RNN dramatically outperforms existing hybrids on its own, but that a small amount of non-linear recurrence captures a disproportionate share of the benefit. We believe that using M$^2$RNN layers alone is not sufficient due to still smaller state sizes of M$^2$RNN compared to other linear attention models. Combining M$^2$RNN in the 3-way hybrid offloads the recall to other layers while M$^2$RNN contributes to the added expressivity.


How would the performance of this M$^2$RNN compare with other M$^2$RNNs when trained on shorter sequences and inference on long context? given its structurely more suitable for longer context at inference

This is exactly what our LongBench and RULER results already probe. All models here are trained at a 4k context length, while LongBench's task-specific context lengths extend well beyond that (8k to 2M words) — so evaluating on it directly tests generalization from short training to long-context inference. We trim all samples to 500k tokens for evaluation on LongBench (we will write this explicitly in the paper). We reproduce the relevant 7B LongBench results below, across all model families. RULER further isolates long-context recall specifically: trained at 4,096 and evaluated up to 16,384 (4x extrapolation). Additionally, we also report numbers on the BabiLong benchmark [2] below which we will add to the main paper on acceptance.

7B MoE Linear Models (LongBench)

ModelGovReportQMSumMultiNewsTRECTriviaQASAMSumLCCRepoBench-PAvg
Mamba5.116.013.442.059.722.013.48.722.5
GDN4.820.312.247.061.636.29.77.925.0
RNN9.316.710.54.027.513.017.115.814.2
GRU5.718.010.89.052.424.620.913.919.4
M$^2$RNN8.119.111.826.551.330.720.419.323.4

7B MoE 2-way Hybrid Models (LongBench)

ModelGovReportQMSumMultiNewsTRECTriviaQASAMSumLCCRepoBench-PAvg
Transformer++6.16.117.016.011.410.013.110.211.2
Hybrid Mamba9.17.720.362.523.312.15.69.818.8
Hybrid GDN10.415.816.757.535.123.69.716.323.1
Hybrid M$^2$RNN10.913.921.152.044.718.519.815.724.6

7B MoE 3-way Mamba-M$^2$RNN Hybrid Models (LongBench)

ModelGovReportQMSumMultiNewsTRECTriviaQASAMSumLCCRepoBench-PAvg
Hybrid Mamba9.17.720.362.523.312.15.69.818.8
Hybrid Mamba + M$^2$RNN-18.63.921.225.515.011.57.511.613.1
Hybrid Mamba + M$^2$RNN-518.610.37.160.545.721.49.78.022.7

7B MoE 3-way GDN-M$^2$RNN Hybrid Models (LongBench)

ModelGovReportQMSumMultiNewsTRECTriviaQASAMSumLCCRepoBench-PAvg
Hybrid GDN10.415.816.757.535.123.69.716.323.1
Hybrid GDN + M$^2$RNN-117.216.56.069.564.934.120.115.130.4
Hybrid GDN + M$^2$RNN-512.216.016.159.073.536.018.018.931.2

7B MoE Models (BabiLong)

TaskTransformer++Mamba2GDNM$^2$RNNHybridGDNHybridM$^2$RNN
Single supporting fact QA7.302.003.904.204.8014.00
Two supporting facts QA2.001.804.901.106.9114.31
Three supporting facts QA7.114.809.517.6119.2211.61
Two argument relations3.002.505.212.3015.6224.02
Three argument relations18.1211.6122.4222.4228.7332.43
Yes/No questions49.7055.8052.2047.0058.5046.30
Counting48.8049.5095.4048.8095.6095.20
Lists and sets51.2048.3054.2046.5041.6053.90
Simple negation96.9064.3063.8064.1047.7066.50
Indefinite knowledge46.6043.9043.9043.7046.1042.10
Track person through temporal references69.0751.5567.4751.0561.8668.67
Conjunction78.6844.1457.8659.5645.0571.87
Compound coreference71.6735.2460.4666.9756.8665.07
Time reasoning46.7534.8347.8534.8345.9537.74
Basic deduction57.6654.5547.6545.3557.1649.35
Basic induction41.0451.1540.0461.8637.3446.75
Positional reasoning51.9551.9551.8551.9551.9551.95
Size reasoning46.6546.9553.0546.0545.9549.65
Path finding8.419.218.219.219.219.41
Average42.2434.9541.5737.6140.8544.78

Can this approach be extended to context-parallel training if needed?

The scan-based form used for Mamba-2/GDN relies on their transition being associative, so it composes chunk-final states across GPUs via a distributed prefix computation. M$^2$RNN's non-linear transition has no such associative combination rule, so this scan-based approach cannot be used directly for context parallelism.

A pipeline-style scheme is feasible instead: each GPU processes its local chunk, and for M$^2$RNN layers only, chunk i+1i{+}1 waits on a single K×VK\times V state handoff from chunk ii (per chunk boundary, not per token) — a standard pipeline bubble, hideable via microbatching. Since M$^2$RNN is only 1–5 of 40 layers, the rest of the network still uses ordinary context parallelism, so the bubble touches a small fraction of the model. Separately, since M$^2$RNN uses a lot more heads (compared to linear RNNs) to reach its larger state size, aggressive tensor parallelism across those heads is also an option for reducing per-device memory. We implement tensor parallelism but don't use it in practice since our models are not large enough and the context length is not long enough to need it.


Line 183 broken Table and Appendix links

Thanks for flagging. The reference is to Table 7 (Appendix F.5, "Ablations: Effect of State Size and Forget Gate"), which supports the "state-size gap, not non-linearity penalty" claim from the abstract. We'll double check cross-reference resolution in the camera-ready build.

References:

[1] Siems, Julien, et al. "Deltaproduct: Improving state-tracking in linear rnns via householder products." Advances in Neural Information Processing Systems 38 (2026): 153738-153782.
[2] Kuratov, Yuri, et al. "Babilong: Testing the limits of llms with long context reasoning-in-a-haystack." Advances in Neural Information Processing Systems 37 (2024): 106519-106554.

Reviewer_3h4FOpenReview ↗
Rating
4
Clarity
2
Confidence
4
Originality
3
Quality
3
Significance
2
Read review
Summary

The paper introduces M^2 RNN, a non-linear RNN layer with matrix-valued hidden states, it combines an outer-product state expansion, a state-independent forget gate, and a residual connection. The central thesis is that the historically poor language modeling of non-linear RNNs is primarily a state-size deficit rather than a penalty intrinsic to the non-linearity. The authors further argue that the matrix-valued formulation makes the per-step GEMM shape independent of batch size, this increased the computational efficiency. The authors conducts experiment over 410M dense and 7B (1.1B-active) MoE models on 100B tokens and make comaprsion with differetn varients of deltanet and mamba2.

Strengths and weaknesses

Strengths

  1. The hardware insight is useful, and the co-design of algorithm and hardware is interesting. The analysis of padding overhead is a meaningful contribution to the community.
  2. The empirical findings is interesting, especially the ablation study in Table 7, it shows the effect about states size and the non linearity.
  3. Figure 2 is a good visualization, showing the length-generalization result clearly.

Weaknesses

  1. No statistical analysis. For example, Table 1 reports no standard deviations, and on several benchmarks the model is very close to the baselines. Since this evaluation is not particularly expensive, could the authors run at least three seeds and report the standard deviation, so the significance of these gains can be assessed?
  2. The LongBench results are fragile. The 8-point increase comes mainly from TriviaQA, while the same setting regresses on the Mamba-2 branch. No error bars are provided, which further undermines confidence in these results.
  3. Theorem 1 is trivial (Appendix A).
  4. Reference issue: Page 5, line 183: see Table ?? in Appendix ??
Questions

See weakness

Limitations

yes

Paper formatting concerns

No issue

Final justification

The authors' rebuttal resolved my concerns: the added multi-seed results at 400M and per-task standard errors at 7B confirm the hybrid gains are consistent, the LongBench improvement persists (≈+4 points) even after excluding TriviaQA, and the authors agreed to reframe Theorem 1 as a proposition and fix the broken cross-reference. I therefore maintain my positive score.

1 comment

We thank the reviewer for the detailed feedback and the possitive assessment. We respond to each point below.

Table 1 reports no standard deviations, and on several benchmarks the model is very close to the baselines. Since this evaluation is not particularly expensive, could the authors run at least three seeds and report the standard deviation, so the significance of these gains can be assessed?

Thanks for the suggestion. Since running 3 different full seeds at 7B (100B tokens, 64 H100s, 14–20 hrs is significantly expensive) is signifciantly expensive, we run 3 different seeds at 400M parameter scales for the 3-way hybrid models. Additionally, we report per-task stderr (sample stddev / n\sqrt{n}, lm-eval-harness convention) for the existing 7B checkpoints below. We find that even with the different seeds and the stderr, our method is consistently better in Hybrid settings which aligns with the claims made in the paper.

400M dense 3-way GDN-M$^2$RNN Hybrid Models with averaging across 3 different seeds:

ModelWiki PPLLMB PPLLAMBADAHellaSwagPIQAARC-EARC-CWinograndeBoolQOBQACOPASciQRACEAvg Acc
Hybrid GDN21.94±0.0529.0235.70±0.0842.49±0.7070.54±0.1461.74±0.1727.99±1.8051.74±0.4449.70±0.8827.60±1.4071.00±1.0085.55±0.7531.4852.41±0.29
Hybrid GDN + M$^2$RNN-121.41±0.0233.7835.31±0.4843.30±0.8170.27±0.4762.69±0.4528.59±1.3751.74±0.0450.72±0.3128.90±1.3072.00±0.0087.65±0.3531.9653.12±0.23
Hybrid GDN + M$^2$RNN-321.26±0.0128.9336.48±0.7043.57±0.2670.16±0.5263.72±0.1329.78±0.3453.79±0.4459.02±0.1227.70±1.1072.00±1.0087.65±1.5532.2554.39±0.24

7B MoE Linear models:

ModelWiki PPLLMB PPLLAMBADAHellaSwagPIQAARC-EARC-CWinoGrandeBoolQOBQACOPASciQAvg Acc
Mamba13.7311.03±0.3950.09±0.7067.43±0.4776.82±0.9874.33±0.9043.52±1.4561.64±1.3764.01±0.8441.00±2.2080.00±4.0093.40±0.7965.22±0.53
GDN13.8911.10±0.3948.92±0.7066.94±0.4777.26±0.9873.82±0.9040.53±1.4460.14±1.3865.41±0.8339.60±2.1878.00±4.0992.20±0.8564.28±0.54
RNN17.6543.68±1.5330.25±0.6464.49±0.4876.61±0.9972.64±0.9141.04±1.4455.64±1.4058.35±0.8640.20±2.1979.00±4.0787.60±1.0460.58±0.54
GRU14.8015.33±0.5443.94±0.6967.36±0.4776.82±0.9875.67±0.8843.52±1.4558.96±1.3863.79±0.8441.00±2.2082.00±3.8491.30±0.8964.44±0.52
M$^2$RNN13.8011.48±0.4049.18±0.7067.57±0.4776.71±0.9975.51±0.8844.97±1.4558.17±1.3864.16±0.8441.40±2.2182.00±4.0292.00±0.8665.17±0.54

7B MoE 2-way Hybrid Models:

ModelWiki PPLLMB PPLLAMBADAHellaSwagPIQAARC-EARC-CWinoGrandeBoolQOBQACOPASciQAvg Acc
Transformer++14.9417.26±0.6943.90±0.6962.99±0.4875.63±1.0071.97±0.9238.91±1.4257.54±1.3963.12±0.8537.20±2.1775.00±4.4191.40±0.9061.76±0.57
Hybrid Mamba13.1011.05±0.3950.18±0.7068.62±0.4676.55±0.9972.64±0.9143.09±1.4560.62±1.3763.61±0.8443.00±2.2179.00±4.0793.00±0.8165.03±0.54
Hybrid GDN13.5111.06±0.3950.20±0.7067.23±0.4777.09±0.9873.06±0.9141.64±1.4459.12±1.3862.39±0.8540.80±2.2082.00±3.9492.90±0.8164.64±0.53
Hybrid M$^2$RNN13.0010.58±0.3751.74±0.7068.44±0.4676.55±0.9976.81±0.8743.09±1.4561.09±1.3763.21±0.8440.40±2.2081.00±3.7893.30±0.8065.56±0.52

7B MoE 3-way Mamba-M$^2$RNN Hybrid Models:

ModelWiki PPLLMB PPLLAMBADAHellaSwagPIQAARC-EARC-CWinoGrandeBoolQOBQACOPASciQAvg Acc
Hybrid Mamba13.1011.05±0.3950.18±0.7068.62±0.4676.55±0.9972.64±0.9143.09±1.4560.62±1.3763.61±0.8443.00±2.2179.00±4.0793.00±0.8165.03±0.54
Hybrid Mamba + M$^2$RNN-113.0110.84±0.3850.92±0.7068.35±0.4677.86±0.9774.66±0.8942.24±1.4460.54±1.3762.57±0.8540.40±2.1983.00±3.7692.80±0.8265.33±0.52
Hybrid Mamba + M$^2$RNN-513.0211.59±0.4149.84±0.7068.19±0.4677.04±0.9875.17±0.8942.58±1.4459.04±1.3865.26±0.8342.40±2.2183.00±3.7693.90±0.7665.64±0.52

7B MoE 3-way GDN-M$^2$RNN Hybrid Models:

ModelWiki PPLLMB PPLLAMBADAHellaSwagPIQAARC-EARC-CWinoGrandeBoolQOBQACOPASciQAvg Acc
Hybrid GDN13.5111.06±0.3950.20±0.7067.23±0.4777.09±0.9873.06±0.9141.64±1.4459.12±1.3862.39±0.8540.80±2.2082.00±3.9492.90±0.8164.64±0.53
Hybrid GDN + M$^2$RNN-113.0710.33±0.3651.54±0.7068.69±0.4678.18±0.9674.45±0.8941.81±1.4460.30±1.3765.08±0.8442.00±2.2182.00±3.8693.90±0.7365.80±0.52
Hybrid GDN + M$^2$RNN-512.8510.29±0.3651.80±0.7068.99±0.4676.82±0.9876.73±0.8743.60±1.4560.69±1.3763.30±0.8440.20±2.1981.00±4.0293.50±0.7865.66±0.54

The LongBench results are fragile. The 8-point increase comes mainly from TriviaQA, while the same setting regresses on the Mamba-2 branch. No error bars are provided, which further undermines confidence in these results.

We report here the average accuracy (with the errors) without TriviaQA (last column below). We observe that for the 3-way GDN hybrid, the gain shrinks but does not disappear: Hybrid GDN + M²RNN-1 goes from +7.3 avg points over Hybrid GDN to +4.1 without TriviaQA; +M²RNN-5 goes from +8.1 to +3.8 which demonstrates the M$^2$RNN in the Hybrid settings still maintains a lead across the other 7 tasks, driven mainly by TREC, SAMSum, and LCC. This is still a consistent and significant improvement. We further report the errors here in the following table. Also note that the error values for TriviaQA is ~3 points which means M$^2$RNN still is meaningfully better.

ModelGovReportQMSumMultiNewsTRECTriviaQASAMSumLCCRepoBench-PAvgAvg (no TriviaQA)
Hybrid GDN10.4 ± 0.8415.8 ± 0.6416.7 ± 0.8257.5 ± 3.5035.1 ± 3.0423.6 ± 1.079.7 ± 0.5916.3 ± 0.7223.1 ± 0.6321.4 ± 0.57
Hybrid GDN + M$^2$RNN-117.2 ± 0.6216.5 ± 0.346.0 ± 0.4269.5 ± 3.3664.9 ± 2.8734.1 ± 1.0620.1 ± 0.8115.1 ± 0.4430.4 ± 0.5925.5 ± 0.53
Hybrid GDN + M$^2$RNN-512.2 ± 0.8416.0 ± 0.5916.1 ± 0.8859.0 ± 3.4773.5 ± 3.0036.0 ± 1.0718.0 ± 0.8618.9 ± 0.8031.2 ± 0.6325.2 ± 0.58

Theorem 1 is trivial (Appendix A).

We agree the result itself is simple; it only shows M$^2$RNN doesn't lose expressivity relative to vector-valued non-linear RNNs (a necessary sanity check, not a novelty claim). Its role is to pair with the empirical S3S_3 result (Figure 2): the theorem gives containment, the experiment gives evidence that the added state size doesn't hurt this in practice. We're happy to downgrade it from "Theorem" to "Proposition/Remark" to better reflect its weight.


Reference issue: Page 5, line 183: see Table ?? in Appendix ??

Thanks for catching this — it should point to Table 7 (Appendix F.5, "Ablations: Effect of State Size and Forget Gate"). Will fix the cross-reference.

Reviewer_2ToPOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The authors tackle the problem of using non-linear RNNs in modern transformer architectures - in hybrid LLMs, linear attention and SSMs dominate since they are parallelizable, but they sacrifice expressivity (e.g. state-tracking) that non-linear RNNs are capable of.
The authors find that the small state-size of non-linear RNNs (relative to both attention and linear RNNs) is a main performance bottleneck, and introduce a new non-linear recurrent module (M^2 RNN) with a larger matrix-valued state.

Though expensive, they show that introducing just one or a few M^2 RNN layers improves performance of standard hybrid networks (Hybrid Gated DeltaNet or Hybrid Mamba-2) on LM perplexity and long-context performance at 7B. They train models at up to 4k context length and evaluate up to 16k long context evals, showing improved long-context summarization, coding and few-shot learning benchmarks.

Strengths and weaknesses

The paper’s motivation makes sense - alternatives to full attention have been proposed over the past few years, but the various weaknesses of linear recurrence (e.g. retrieval) have limited the performance of linear and hybrid LLMs relative to vanilla attention baselines. The discussion of low-level implementation (tensor-core tiling, Triton kernels) is valuable given the general throughput bottleneck of non-linear recurrence.

There is also an interesting concept in the potential specialization of different types of layers in the hybrid architectures (“attention handles in-context retrieval”, the non-linear recurrence adds expressivity/state-tracking) that could be explored more. For example, a discussion of the job of linear attention in such hybrids (with vanilla attention, linear attention, and M^2 RNN all specializing to some extent).

The discussion of related work is somewhat weak -- the paper briefly touches on xLSTM, but the matrix-memory from mLSTM in the xLSTM paper shares structure with M^2 RNN and should be discussed in more detail. The gating in Griffin [2] seems similar and should be discussed, also Titans [1] is a related non-linear architecture.

In terms of limitations, though the long sequence length that the architecture was trained with was 4k, modern LLMs are often post-trained to operate at >64k context length, and the expensive nature of training M^2 RNN (requiring BPTT) may be a major bottleneck to extending the sequence length.

Overall, this seems like an overall novel and positive contribution to the hybrid LLM literature, but it would be good to have a clear understanding of the limitations in terms of sequence length, and positioning to related work.

[1] Behrouz, Ali, Peilin Zhong, and Vahab Mirrokni. "Titans: Learning to memorize at test time." arxiv2025

[2] De, Soham, et al. "Griffin: Mixing gated linear recurrences with local attention for efficient language models.” arxiv2024

Questions
  • What is the relationship between M^2 and mLSTM/sLSTM from xLSTM?
  • In line 246, it’s mentioned that "GRU significantly underperform all linear RNN" but on average accuracy (Table 1) it's quite close, how do you reconcile this with the PPL results?
  • What are the the practical limitations to sequence length of models that include M^2 RNN?
Limitations

What kind of limitation around context length does M^2 RNN introduce?

Paper formatting concerns

Line 183 (??) Line 303 “modalities like audio, code, math etc but we haven’t validated this emperically.”

Final justification

I appreciate that the authors clarified the positioning of this paper to related work, and clarified the limitations at longer sequence length. The unique contribution of this work relative to other non-linear RNNs still appears to be limited, so I will keep my score.

1 comment

We thank the reviewer for the positive assessment and for pointing out concrete places to sharpen the related-work discussion and clarify limitations. We respond to each point below, and will fold the related-work clarifications into a revised Section 2.

There is also an interesting concept in the potential specialization of different types of layers in the hybrid architectures ... that could be explored more.

This is a compelling framing and matches how we understand the hybrid's behavior, though we haven't isolated it directly in the paper. The Olmo Hybrid [1] also proposes something similar where the linear attention layers learn state tracking and global attention layers help in recall related objectives. M$^2$RNN further improves the state-tracking ability when added to these models allowing them to do more complex state-tracking in the NC$^1$ complexity class.


What is the relationship between M$^2$RNN and mLSTM/sLSTM from xLSTM?

mLSTM uses a matrix-valued state but drops the non-linear recurrence (its update is linear/associative, enabling parallelization) while sLSTM keeps the non-linearity but only has a vector-valued state. Neither achieves the combination that M$^2$RNN targets: a non-linear recurrence with a large matrix-valued state. M$^2$RNN can be read as filling exactly this gap in the xLSTM [2] design space. We expect that adding a matrix-valued state to a more expressive non-linear recurrence like sLSTM would yield similar uplift if applied directly which could be a potential future research direction to explore. We will add this framing to the Related Work section.


The gating in Griffin seems similar and should be discussed

Griffin's [7] gating function is close to the forget-gate formulation used by Mamba-1 [4], Mamba-2 [5] and Gated DeltaNet [3]. We tried a standard sigmoid gate as well but found this forget-gate consistently outperformed it. We state in the paper that we adopt the same gate as Mamba-1 [4], Mamba-2 [5] and Gated DeltaNet [3]. The better saturation dynamics of this gating function mitigates the vanishing gradient problems compared to the standard sigmoid gating and also allows different gating dynamics per head (demonstrated in Figure 4 in Appendix B). We will cite Griffin in the forget gate section as well.


Titans is a related non-linear architecture

Titans [6] is also a non-linear architecture, but its non-linearity comes from a generalized MLP memory module rather than the "simpler" matrix memory used by most linear-attention mechanisms (and by M$^2$RNN). An MLP-valued memory is possible in principle within M$^2$RNN, but it is significantly more expensive and, in practice, not trainable without the chunkwise update Titans [6] itself relies upon. We will add this contrast to Related Work. It should also be noted that the chunkwise update from Titans [6] can in principle be applied to M$^2$RNN as well, which could significantly uplift the training throughput at the cost of potentially reduced accuracy, however, we don't evaluate this in the paper.


What are the practical limitations to sequence length of models that include M$^2$RNN? / What kind of limitation around context length does M$^2$RNN introduce?

M$^2$RNN is only a constant factor more expensive than typical linear RNNs (both are linear-time). Our throughput measurements (Figure 10, Page 26) already extend to 16k context, and because M$^2$RNN is used sparingly (1–5 of 40 layers), Hybrid Gated DeltaNet + M$^2$RNN-1 stays within 6% of Hybrid Gated DeltaNet throughput across 4k–16k — the sequential cost of a few M$^2$RNN layers is amortized by the mostly linear RNN/attention backbone. The real bottleneck appears at extreme lengths (64k+): those regimes typically need context parallelism, which Mamba-2 [5] and Gated DeltaNet [3] support via scan algorithms, but M$^2$RNN's non-linear recurrence has no associative combination rule, so a scan-based approach cannot be used directly for context parallelism. Instead, with careful implementation of pipeline parallelism (pipelining along the sequence length) and careful microbatching to hide bubbles, we believe it is possible to extend training to long context lengths; this is substantially more complex to implement than a scan, and we will state it explicitly as a limitation in the paper. Separately, since M$^2$RNN expands state size via significantly more heads, aggressive tensor parallelism across those heads is also an option — e.g. up to 72x TP on NVL72-class machines with larger high-bandwidth domains — for reducing per-device memory without touching the sequence dimension.

We additionally demonstrate M$^2$RNN's inference-time throughput and memory advantage over Transformer++ as batch size scales (fixed 1,024-token prompt / 4,096-token decode):

BSPromptDecodeTransformer tok/sTransformer mem (GB)M$^2$RNN tok/sM$^2$RNN mem (GB)SpeedupMem ratio
11,0244,096371.585.19538.994.701.45x0.90x
41,0244,096910.2612.111416.9810.091.56x0.83x
161,0244,0961569.2639.503586.2131.042.28x0.79x
321,0244,0961815.0677.364847.3360.282.67x0.78x

In line 246, it's mentioned that 'GRU significantly underperform all linear RNN' but on average accuracy (Table 1) it's quite close, how do you reconcile this with the PPL results?"

At 7B MoE, GRU's Wikitext PPL (14.80) is 0.9–1.1 points worse than Mamba-2 (13.73), Gated DeltaNet (13.89), and M$^2$RNN (13.80) which is a consistent and significant gap. On LAMBADA, GRU scores 43.94 vs. 48.9–50.1 for the linear RNNs/M$^2$RNN, a 5–6 point gap consistent with the PPL story. The 9-task "Avg Acc" column, however, is dominated by multiple-choice commonsense benchmarks (PIQA, ARC, WinoGrande, BoolQ, OBQA, CoPA, SciQ) that are largely accuracy-saturated at this scale/token budget (100B tokens). Averaging one high-signal, low-variance metric (LAMBADA/PPL) with several low-signal, high-variance ones washes out the gap. We'll add a sentence to Section 4 flagging this and pointing readers to PPL/LAMBADA as the more reliable discriminators at this scale, consistent with prior work (Table 3 in Gated DeltaNet paper [3]) which also finds the PPL and accuracy difference between Mamba-2 [5] and Gated DeltaNet [3] is small.


Line 183 (??)

Thanks for catching this — the broken reference is to Table 7 in the Appendix. We use multi-value attention because it offers the highest state size for a fixed parameter count as can be seen from the following table:

Attention PatternWqW_qWkW_kWvW_vWgW_gWoW_oParameters (PP) (K=64,V=16K{=}64, V{=}16)State Size (K=64,V=16K{=}64, V{=}16)
Multi-HeadNKdmNK d_mNKdmNK d_mNVdmNV d_mNVdmNV d_mNVdmNV d_m≈176Ndm\approx 176N d_m5.82 P/dm5.82\, P/d_m
Multi-QueryNKdmNK d_mKdmK d_mVdmV d_mNVdmNV d_mNVdmNV d_m≈96Ndm\approx 96N d_m10.67 P/dm10.67\, P/d_m
Multi-KeyKdmK d_mNKdmNK d_mVdmV d_mNVdmNV d_mNVdmNV d_m≈96Ndm\approx 96N d_m10.67 P/dm10.67\, P/d_m
Multi-ValueKdmK d_mKdmK d_mNVdmNV d_mNVdmNV d_mNVdmNV d_m≈48Ndm\approx 48N d_m21.33 P/dm21.33\, P/d_m

"Line 303 'modalities like audio, code, math etc but we haven't validated this emperically.'"

Typo — "emperically" → "empirically." Will fix in the revision, along with the reference at line 183.

References:

[1] Merrill, William, et al. "Olmo hybrid: From theory to practice and back." arXiv preprint arXiv:2604.03444 (2026).
[2] Beck, Maximilian, et al. "xlstm: Extended long short-term memory." Advances in Neural Information Processing Systems 37 (2024): 107547-107603.
[3] Yang, Songlin, Jan Kautz, and Ali Hatamizadeh. "Gated delta networks: Improving mamba2 with delta rule." International Conference on Learning Representations. Vol. 2025. 2025.
[4] Gu, Albert, and Tri Dao. "Mamba: Linear-time sequence modeling with selective state spaces." First conference on language modeling. 2024.
[5] Dao, Tri, and Albert Gu. "Transformers are ssms: Generalized models and efficient algorithms through structured state space duality." arXiv preprint arXiv:2405.21060 (2024).
[6] Behrouz, Ali, Peilin Zhong, and Vahab Mirrokni. "Titans: Learning to memorize at test time." arXiv preprint arXiv:2501.00663 (2024).
[7] De, Soham, et al. "Griffin: Mixing gated linear recurrences with local attention for efficient language models." arXiv preprint arXiv:2402.19427 (2024).

Reviewer_r7pdOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
2
Quality
2
Significance
3
Read review
Summary

This paper proposes a matrix-valued, non-linear RNN sequence mixer in order to increase expressivity on state-tracking tasks and scale it on language modelling. Here, the key challenge lies in advancing on the expressivity-efficiency frontier. The main contribution is the insight that matrix-valued hidden state updates can be computed efficiently using tensor cores (i.e. 16x16 matrix multiplies) within a non-linear sequential forward pass. The matrix-shape interpretation of the state further enables scaling to larger state sizes due to the smaller memory footprint of the state transition weight matrix. As expected, the resulting model solves the state-tracking task. On language modelling at 7B MoE (1B active) scale, including long-context retrieval, it seems to mostly show its advantage over linear RNNs in hybrid models. Given that the M2-RNN layers remain expensive compared to linear RNNs and Attention, the authors conclude that M2-RNN is only practical when used sparingly.

Strengths and weaknesses

Clarity: Is the submission clearly written?

  1. (+) The paper is well organized and easy to follow. The concepts are carefully introduced and the notation is clean, meaningful, and consistent.
  2. (-) The experiment section and results are a bit difficult to parse.

Originality: Does the work provide new insights, deepen understanding, or highlight important properties of existing methods?

  1. (+) The idea that matrix-valued non-linear RNNs could enable efficient kernels, while improving state-tracking over diagonal linear RNNs and in-context retrieval over non-linear RNNs, is novel.
  2. (+) Making the forget gate independent from the recurrent state allows to reduce the memory footprint of the recurrent cell even further and thus fit states and weights onto SRAM.
  3. (-) The proposed method is conceptually very close to implementations of LSTMs, GRUs, xLSTMs [1], such as Flash-RNN [2], and the contribution with respect to this line of work is not clearly established.

Quality: Is the submission technically sound?

  1. (+) The language model evaluations, in-context retrieval, and long-context performance at 7B MoE (1B active) scale provide a good signal in favour of investigating non-linear RNNs as sequence mixers.
  2. (-) A few of the papers core claims are not very well substantiated:
    1. “Improved hardware utilization over Flash-RNN” (L56). The authors argue that padding to local batchsize B=16 is wasteful, but then continue to train their models on B=1024 total / 64 GPUs = 16. From my understanding, M2-RNN computes one recurrent step per WMMA operation as opposed to Flash-RNN which computes 16 batched recurrent steps per WMMA operation, so M2-RNN spends more flops per recurrent step and I expect it to be slower but more expressive. The fundamental question is whether the larger state sizes per SM and corresponding dense mixing across more channels is worth the additional cost.
    2. “Non-linear RNNs underperform linear RNNs on language modeling due to their smaller state-sizes rather than the non-linearity” (L36-47). While this is an interesting and plausible hypothesis, the corresponding experiment in Appendix F.5 only compares to a vanilla RNN and GRU and those have too many confounding components to make a final judgement. No ablation on the effect of state size or state transition in their M2-RNN setting is performed.
    3. ”Linear RNNs are provably less expressive than non-linear RNNs” (L29-L30), which is simply not true: [3] proves that non-diagonality is a sufficient condition which motivated a breadth of work on linear but non-diagonal RNNs [4-8]. The paper further suggests that M2-RNN achieves perfect state-tracking performance “via expressive non-linear state transitions” (L306), but the effect of the non-linearity is never ablated and state-tracking performance could also be explained by the dense state transition of M2-RNN.
    4. “The outer product write ktvt{⊤}k_t v_t^\{\top\} enables efficient storage of key-value associations and structured retrieval via the readout Ht{⊤}qtH_t^\{\top\} q_t; capacity absent in vector-valued non-linear RNNs” (L191-193). It is not clear how the associative memory write and readout mechanism should generalize to the case where the memory is updated non-linearly as Ht=ftH{t−1}+(1−ft)tanh(H{t−1}W+ktvt{⊤})H_t = f_t H_\{t-1\} + (1 - f_t) tanh(H_\{t-1\} W + k_t v_t^\{\top\}). No mechanistic explanation for this claim was provided. Furthermore, the capacity claim is not true: any matrix-valued RNN can be flattened into a vector-valued RNN where the transition matrix product is Kronecker structured. Therefore, any vector-valued RNN has the capacity to express a matrix-valued RNN. The explicit parametrization induces a bias and enables efficient computation due to lower parameter counts.
    5. ”To avoid prohibitive memory and HBM I/O, we do not cache intermediate HtH_t activations on the forward pass and instead recompute them in the backward (Appendix D)” (L211-L213). This suggests that the states HtH_t are recomputed in SRAM and never materialized in HBM. However, Appendix D.1 clarifies that “for the backward computation, we recompute the forward recurrence without the final query readout and cache HtH_t at every time step to HBM” (L716-L171), which indeed is prohibitive in memory and HBM I/O (as evidenced by training throughput in Figure 10). It is not clear whether this is caused by the non-diagonality or the non-linearity, but it does not seem to be an issue with diagonal linear RNNs such as Mamba-1.

Significance: Are the results impactful for the community?

  1. (+) The work highlights that non-linear RNNs can add practical expressivity to language models at 7B MoE (1B active) scale, which motivates further investigation into this largely overlooked branch of architecture design.
  2. (-) There is a risk that the paper has a negative impact if the community uncritically relies on the problematic claims made in this paper.

Minor Remarks

  1. The experiment section could be improved by starting a sentence with the metric/column before models are compared, more informative abbreviations (“Hybrid Gated DeltaNet + M2RNN-1” put emphasis on the wrong aspects, e.g. “3-Hybrid GDN + M2-RNN-1” is clearer), and arrows for higher/lower is better in the column headers.
  2. L57: Although it was probably not meant this way, the sentence “[...] padding-induced FLOP waste of FlashRNN” reads very aggressively, please adjust the tone to make it more appropriate for a NeurIPS paper.
  3. L73: Transformers can also solve S5 if they are employed in chain-of-thought [9], log-depth [10], looped settings.
  4. L123: Work on parallelizing non-linear RNNs should be attributed to DEER [12] and ELK [13], not only ParaRNN [14].
  5. L132: On Hopper GPUs, intermediates could also be communicated through distributed shared memory, which might be an interesting opportunity for M2-RNNs.
  6. L687: If the proof hinges on an external fact, this should at least be supported by a reference to the external literature.

Conclusion

In its current state, I am hesitant to recommend acceptance of this paper. While I do appreciate the results of training an RNN at large scale, the experiments are not very transparent as to where the M2-RNN layer lies on the expressivity-efficiency pareto frontier. If the authors clarify and correct the incomplete claims and analyses, I believe it could become an important contribution with impact on sequence modelling in deep learning and I would be happy to raise my score.


[1] Beck et al. (2024), “xLSTM: Extended Long Short-Term Memory”, https://arxiv.org/abs/2405.04517

[2] Pöppel et al. (2024), “FlashRNN: I/O-Aware Optimization of Traditional RNNs on modern hardware”, https://arxiv.org/abs/2412.07752

[3] Merrill et al. (2024), “The Illusion of State in State-Space Models”, https://arxiv.org/abs/2404.08819

[4] Terzić et al. (2024), ”On the Expressiveness and Length Generalization of Selective State-Space Models on Regular Languages”, https://arxiv.org/abs/2412.19350

[5] Schöne et al. (2025), "Implicit Language Models are RNNs: Balancing Parallelization and Expressivity", https://arxiv.org/abs/2502.07827

[6] Siems et al (2025), ”DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Products”, https://arxiv.org/abs/2502.10297

[7] Movahedi et al. (2025), ”Fixed-Point RNNs: From Diagonal to Dense in a Few Iterations”, https://arxiv.org/abs/2503.10799

[8] Terzić et al. (2025), ”Structured Sparse Transition Matrices to Enable State Tracking in State-Space Models”, https://arxiv.org/abs/2509.22284

[9] Merrill et al. (2025), ”The Expressive Power of Transformers with Chain of Thought “ , https://arxiv.org/abs/2310.07923

[10] Merrill et al. (2025), ”A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers“ , https://arxiv.org/abs/2503.03961

[10] Movahedi et al. (2025), ”Fixed-Point Reasoners: Stable and Adaptive Deep Looped Transformers“, https://arxiv.org/abs/2606.18206

[12] Lim et al. (2023), "Parallelizing non-linear sequential models over the sequence length", https://arxiv.org/abs/2309.12252

[13] Gonzalez et al. (2024), "Towards Scalable and Stable Parallelization of Nonlinear RNNs", https://arxiv.org/abs/2407.19115

[14] Danieli et al. (2024), "ParaRNN: Unlocking Parallel Training of Nonlinear RNNs for Large Language Models", https://arxiv.org/abs/2510.21450

Questions
  1. Could the authors explain how their M2-RNN parametrization (eq. 2-4) compares to existing non-linear RNN parametrization such as LSTM, GRU, sLSTM, etc and what motivated the proposed parametrization?
  2. Could the authors provide a fair latency and throughput comparison between the M2-RNN implementation and the Flash-RNN implementation of sLSTM?
  3. Could the authors provide experimental evidence on how the state size affects 400M-language-model performance, by varying the number of heads and kv-dimension of M2-RNN (while keeping parameter counts as comparable as possible)?
  4. Could the authors provide experimental evidence on how the non-linearity and non-diagonality in the M2-RNN state update affect state-tracking and 400M-language-model performance? Could they try to compare to existing linear RNNs, such as PD-SSM which solve the state tracking as well? Maybe the more challenging S5 task provides more signal than the S4 task.
  5. Could the authors explain how matrix-valued, non-diagonal, non-linear RNNs perform associative recall and this capacity is absent in vector-valued, non-diagonal, non-linear RNNs?
  6. Could the authors discuss why diagonal linear RNNs can perform state recomputation in SRAM during the backward pass, and what the challenge is when applying the same technique in M2-RNN? Is this theoretically even possible?
  7. Could the authors disclose the state sizes of the evaluated language models?
Limitations

Some of the claims were based on limited experiments, as discussed above.

Paper formatting concerns

None

Final justification

My assessment of the paper changes as follows:

Originality:

  1. (Resolved) The positioning as the simplest parametrization between sLSTM and xLSTM provides helpful intuition. The clarification how efficiency and training stability lead to this specific "simple" parametrization was helpful and should also be reflected in Section 3.1.

Quality and Claims (2.):

  1. (Partially Resolved) I'm honestly surprised that the authors were not aware of the link to the source code in the abstract of Flash-RNN, the main baseline over which they claimed conceptual superiority in their paper. I appreciate the confirmation that M2-RNN employs more FLOPS per step and nevertheless seems to show better throughput on longer sequences (but worse than GRU?). That being said, it is not clear how the experimental setup is controlled (what is the hardware? are kernels or models benchmarked? are the layers embedded in the same backbone? are they employed with comparable state size? what is the metric reported in the benchmark tables? what loss do these controlled experiments result in?) and my fundamental question "whether the extra computation of M2-RNN is worth the additional cost" is not transparently resolved.

  2. (Resolved): The ablation confirms the effect of state-size and forget gate on language modelling. Given that the authors seem to have an efficient custom implementation of GRU it would furthermore be interesting to see the effect of scaling state-size in a GRU on both performance and efficiency in comparison to M2-RNN. I also appreciate the effort to train without tanh, I still believe that this might be possible (their prove of non-stability would also apply with tanh) but we can leave this for future work.

  3. (Resolved) Thanks for clarifying this in the paper. I apologize for overlooking the distinction of time-invariant and time-varying linear RNNs with respect to state-tracking expressivity.

  4. (Not Resolved) The additional NIAH experiment does not provide an explanation why structured storage and read-out of key-value associations should work in a non-linearly modified HtH_t. If anything it shows that it doesn't work, given the bad scores (e.g. compared to the ones reported in the GatedDeltaNet paper).

  5. (Partially resolved) Thanks for fixing this statement in the paper and the explanations, this makes things clearer. Assuming SRAM could be programmed better with TileLang / CuTe-DSL, it is still not clear to me how HtH_t can be recomputed and accessed in reverse direction on SRAM. One option would be caching multiple states HtH_t in a chunk, but that would likely saturate available SRAM. So it remains unclear to me whether this is a fundamental barrier due to the non-linearity.

Conclusion: I'm still hesitant to recommend acceptance, but trusting the authors will de-tone the overly strong statements, I'm willing to increase my score to 4 (borderline accept). I still find the experiments not very transparent as to where the M2-RNN layer lies on the expressivity-efficiency pareto frontier (wrt to GRU and sLSTM) and generally recommend the authors to focus more on this aspect. It would benefit the paper greatly.

1 comment

We thank the reviewer for an unusually thorough and technically engaged review. We respond to each of the concerns below:

The experiment section and results are a bit difficult to parse.

We will fix this in the paper to improve readability.


The proposed method is conceptually very close ... clearly established.

mLSTM has a matrix-valued state but drops the non-linear recurrence in favor of a linear/associative update; sLSTM keeps the non-linear recurrence but restricts the state to a vector. Neither combines a non-linear recurrence with a matrix-valued state, which is exactly the gap M$^2$RNN fills. The distinction from FlashRNN is not just architectural but also at the kernel level: FlashRNN's kernel is built around a recurrence that only maps onto tensor cores by batching 16 sequences per WMMA call, whereas M$^2$RNN's read/write/gate ops are chosen to reduce directly to dense 16x16 or 64x16 matmuls, independent of batch size. We will add both comparisons explicitly to Section 2 (Related Work).


"Improved hardware utilization ... more expressive.

Our training runs use local batch 16, however this is achieved via gradient accumulation of 4 steps so the micro batch size is only 4 — the maximum we can fit without OOM — reproducing exactly the padding waste the paper describes. Yes, although M$^2$RNN incurs no FLOPs wastage, it requires more FLOPs per step. However, RNNs/GRUs have significantly worse language modeling performance (despite lower FLOPs) making them unusable in practice. Making the transition matrix diagonal might be a future direction to reduce the FLOPs for M$^2$RNN.


"Non-linear RNNs underperform linear RNNs ... setting is performed.

Here we vary K,VK, V (key and value) dimensions, scaling NN (the number of heads) accordingly to keep the number of parameters constant at ~410M. We find improvements on both Wikitext PPL and retrieval (up to 8 points):

K = 16K = 32K = 64
V = 1624.2423.5722.97
V = 3224.1123.3622.83
ModelFDASWDENQTriviaQASQuADDROPAvg
k16-v162.6314.2210.5546.9825.4719.1219.83
k16-v324.9916.4711.3447.5127.5518.4521.05
k32-v166.1719.8911.9151.3628.6519.5022.91
k32-v328.1722.9512.4250.7130.8322.1824.54
k64-v1611.7126.7313.2450.9533.2119.5525.90
k64-v3212.3429.7013.4050.8334.2221.9027.07

We further ablate the forget gate and the matrix-valued state independently: RNN, RNN with forget gate, M$^2$RNN without gate, and M$^2$RNN — to isolate each component's effect. Note that it is not possible to run a linear RNN with a dense transition matrix: it needs constraining the spectral norm of the transition matrix at every step for stable training, which is practically infeasible and more expensive than the non-linearity itself — an experiment without this constraint diverges quickly. The tanh⁡\tanh non-linearity bounds the transition ensuring stable training.

forget gatematrix valuedWikitext PPLLambada PPLState size
❌❌33.45302.341,360
✅❌26.9589.441,360
❌✅26.4148.0386,016
✅✅22.9733.7986,016

"Linear RNNs are provably less expressive ...

While iterated products of diagonal matrices can be computed efficiently, iterated products of general unstructured matrices cannot be computed in TC$^0$, which is exactly why non-diagonal linear RNNs can exceed the expressivity of diagonal ones like Mamba-2/GDN. However, training linear RNNs with unstructured matrices is expensive in practice: it requires constraining the spectral norm of the transition at every step to keep the recurrence stable, which the tanh⁡\tanh non-linearity achieves in non-linear RNNs. Our L29-30 claim meant practical, structured linear RNNs specifically; we will state this precisely in the paper.

Constraining spectral norm is equivalent to ∣γt∣<1|\gamma_t|< 1 for Mamba-2 and ∣1−βt∣<1|1 - \beta_t|< 1 for GDN due to structured matrices.


"...capacity absent in vector-valued non-linear RNNs" (L191-193)... any matrix-valued RNN can be flattened into a vector-valued RNN where the transition matrix product is Kronecker structured.

We agree with the math: flattening gives a vector-valued RNN with a Kronecker-structured transition. This is another way of viewing a matrix-valued RNN. Any existing linear RNN can also be viewed this way. The actual contribution is the one you state in the same sentence — the explicit matrix parametrization is an inductive bias plus a parameter/compute-count reduction (the Kronecker-structured transition is never materialized densely). Moreover, it will significantly increase the parameters for the state update projection (HNK + HNV increases to HNKV) making it infeasible in practice.


"...we do not cache intermediate activations on the forward pass and instead recompute them in the backward" (L211-213)... Appendix D.1 clarifies that [we] cache [states] at every time step to HBM, which indeed is prohibitive.

We will fix this statement: the forward pass avoids caching HtH_t to save memory and HBM I/O, but since no chunkwise-parallel form exists for a non-linear recurrence, the backward pass must reconstruct HtH_t by recomputation, and ideally would keep that recomputation entirely on-chip in SRAM. In practice we cache HtH_t to HBM instead, which is a limitation of the Triton DSL specifically: Triton does not expose SRAM programmability, so we have no way to keep the recomputed states on-chip across the backward recurrence. Writing the kernels in TileLang / CuTe-DSL should let us keep HtH_t in SRAM instead, but that is a significant re-implementation effort we haven't undertaken. This is caused by the combination of non-linearity (no associative recomputation) and the Triton DSL choice specifically — not by non-diagonality.


Q1 (parametrization vs. LSTM/GRU/sLSTM):

See our answer to the originality weakness above for the basic distinction (mLSTM: matrix-valued state, linear recurrence; sLSTM: non-linear recurrence, vector-valued state; M$^2$RNN: both). Eq. 2-4 is deliberately the simplest parametrization that achieves this combination: we take a vector-valued non-linear RNN, expand its state update into a matrix via an outer-product rule, and add a scalar forget gate that we keep independent of the recurrent state for efficiency — chosen specifically so the transition allows efficient use of tensorcores. Simplicity here was a design goal, not an oversight: the matrix-state idea is not specific to our recurrence and could equally be grafted onto sLSTM or a GRU, but their gating depends on the state from the previous recurrent step, which would make it much more expensive. We'll add this comparison, including the sLSTM/GRU extension point, to Related Work (consistent with our answer to reviewer 2ToP on the same question).


Q2 (fair FlashRNN/sLSTM throughput comparison):

We ran sLSTM against our model in the same setting. However, we found that sLSTM doesn't fuse computation across timesteps into a single kernel — it instead has a C++ for-loop launching a separate kernel per timestep, and we were not able to find a fused implementation in the xLSTM repo. We use the provided kernels and provide a speed comparison here and find that the speed of sLSTM is significantly worse and can only run half the batch size of M$^2$RNN and OOMs after sequence length of 8k with batch size 1.


Q3 (400M state-size ablation):

Covered above — see the K/V sweep and retrieval-task table under the state-size weakness response, which is exactly this experiment (parameter count fixed at ~410M, state size varied via K,VK,V).


Q4 (non-linearity vs. non-diagonality, PD-SSM, S5):

S3S_3 and S5S_5 results: S3, S5. We compare to Gated DeltaNet and Gated DeltaProduct (2/4 Householder products), the more widely-adopted baselines — PD-SSM's repo lacks an efficient implementation, and these permutation tasks are too hyperparameter-sensitive to feasibly train within the rebuttal window. M$^2$RNN reaches near-100% accuracy vs. Gated DeltaProduct on both, which we hope addresses the concern on harder state-tracking.


Q5 (associative recall, matrix vs. vector non-diagonal non-linear RNNs):

We measure NIAH accuracy from the RULER benchmark on RNN, GRU, M$^2$RNN and Hybrid M$^2$RNN in this figure. Vector-valued RNNs essentially achieve almost 0% accuracy.


Q6 (SRAM recomputation for the backward pass):

Covered above — it is theoretically possible, and the current inability to do it is a limitation of the Triton DSL specifically (no SRAM programmability), not a fundamental barrier from the non-linearity or non-diagonality of the recurrence.


Q7 (state sizes of evaluated models):

We provide the state sizes of the models at 7B scale:

Layer typeState size (elements)
Linear RNN (Mamba-2 / Gated DeltaNet)393,216
M$^2$RNN262,144
RNN / GRU2,048

Minor Remarks:

We will fix these in the paper.


There is a risk that the paper has a negative impact if the community uncritically relies on the problematic claims made in this paper.

We hope our extensive experiments address these concerns and change this assessment.

Comments on the paper

1 comment
Meta-review

Summary

This paper proposes M²RNN, a non-linear recurrent layer with a matrix-valued hidden state. The main hypothesis is that the poor language-modeling performance of traditional non-linear RNNs is mainly caused by their small vector-valued state, rather than by non-linearity itself. M²RNN expands the state through an outer-product write, applies a dense non-linear recurrent transition, and uses an input-dependent forget gate. The experiments show that M²RNN can solve the synthetic S3 state-tracking task and generalize beyond the training length. As a standalone recurrent architecture, it becomes competitive with Mamba-2 and Gated DeltaNet, but remains computationally expensive. Its strongest results are obtained when one or several M²RNN layers are inserted into hybrid attention–linear-RNN models. At 410M dense and 7B MoE scales, these hybrid models improve language-model perplexity and several retrieval and LongBench results, while a one-layer configuration has a relatively small throughput reduction.

Strengths

Reviewer r7pd finds the paper well organized and easy to follow with clean, meaningful, and consistent notation. Reviewer A475 similarly notes that the background section clearly motivates non-linear RNNs and makes the paper self-contained.

Reviewers r7pd, 2ToP, and A475 appreciate the algorithm–hardware co-design. Reviewer r7pd considers novel the idea that matrix-valued non-linear RNNs could enable efficient kernels, while Reviewer 2ToP finds the discussion of tensor-core tiling and Triton kernels valuable. Reviewer A475 also recognizes that substantial thought was given to making non-linear recurrence practically usable with GEMM operations.

Reviewers 2ToP, 3h4F, and r7pd consider the large-scale experiments meaningful. The models are trained on 100B tokens and evaluated at both 410M and 7B MoE scale. Reviewer 3h4F particularly highlights Figure 2 as a clear demonstration of length generalization. Reviewer r7pd also considers the 7B language modeling, retrieval, and long-context experiments a good signal in favour of investigating non-linear RNNs.

Reviewer 2ToP points out an interesting possible specialization inside the hybrid architecture: attention may handle exact retrieval, while M²RNN contributes non-linear state tracking or computation. This is a potentially important direction beyond the specific architecture proposed here.

Weaknesses

The most important issue, raised mainly by Reviewer r7pd, is that several central causal claims are not sufficiently isolated experimentally. The submission claims that state size, rather than non-linearity, explains the historical weakness of non-linear RNNs. However, Appendix F.5 compares M²RNN only against a vanilla RNN and GRU, with many simultaneous architectural differences. As r7pd states, No ablation on the effect of state size or state transition in their M2-RNN setting is performed. A controlled study varying (K), (V), non-linearity, and transition structure is missing.

Reviewer r7pd also questions the claimed hardware advantage over FlashRNN. The paper emphasizes padding waste when the local batch size is below 16, but its 7B setup appears to use a local batch size of exactly 16. A direct latency, throughput, FLOP, and memory comparison with FlashRNN/sLSTM is therefore needed. The current results establish that sparse use of M²RNN can be affordable, but not clearly that its recurrence is more hardware-efficient than competing non-linear RNN implementations.

Reviewers r7pd and 2ToP find the relationship to prior non-linear recurrent architectures insufficiently discussed. In particular, the paper should more clearly compare its state and gating equations with LSTM, GRU, sLSTM, mLSTM/xLSTM, FlashRNN, Griffin, and Titans. At present, the architectural novelty relative to matrix-memory variants of xLSTM is not fully established.

Reviewers 3h4F, A475, and 2ToP express concern about the robustness and practical context-length limits. The model is trained only at 4K context and evaluated up to 16K, while modern models often target much longer contexts. Reviewer 3h4F notes that the LongBench gains are uneven and partly concentrated in a few tasks; some Mamba-2 hybrids even regress after adding M²RNN. Reviewer A475 also observes that the hybrid improvements are present but generally small or inconsistent.

Reviewer A475 notes that the state-tracking claim is supported mainly by Figure 2 and is not connected to the later language-model experiments. Reviewer r7pd similarly asks for stronger tasks such as S5 and for ablations separating the effects of non-linearity from dense, non-diagonal transitions.

Several important implementation details are also missing or unclear. Reviewer r7pd requests disclosure of the exact recurrent state sizes and a clearer explanation of associative retrieval after the non-linear state update. The backward-pass memory behavior also needs clarification. Reviewers 2ToP and A475 additionally ask about context-parallel training and the practical feasibility of extending BPTT to much longer sequences.

Assessment

I lean toward Reject in the present form. The paper contains promising large-scale results and a potentially useful hybrid-layer design. However, the strongest scientific claims are presently broader than the supporting evidence. In particular, the submission does not cleanly separate the effects of state size, non-linearity, non-diagonality, outer-product memory, and implementation choices. The efficiency position relative to FlashRNN/xLSTM is also not established by a direct comparison. Since these claims form the main motivation and novelty of the work, this is more than a presentation issue. Clarification alone would improve the paper, but without at least some new controlled experiments, I do not think the present evidence is sufficient for acceptance. My assessment might change if the authors response provides:

  1. a fair FlashRNN/xLSTM throughput, latency, and memory comparison;
  2. exact state sizes and a clearer explanation of backward memory costs;
  3. substantially improved positioning against xLSTM, Griffin, and related non-linear recurrent models;
  4. more robust evidence for state tracking and long-context gains, preferably including multiple seeds at a feasible scale.

In addition, some reviewer comments themselves should be interpreted with care. Reviewer 3h4F says that Table 7 demonstrates both state-size and non-linearity effects, but the table does not isolate non-linearity. Reviewer A475’s statement that improvements are not significant is not statistically established without variance estimates, instead small and inconsistent would be more accurate.

Update

Corrected some mis-understanding during summarizing the metareview.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.