M
2RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling
Motivated by the $\mathsf{TC}^0$ limits of Transformers, the authors introduce Matrix-to-Matrix RNN (M$^2$RNN), a non-linear RNN with matrix-valued hidden states and non-linear state transitions. They show that language-modeling performance of non-linear RNNs is bounded by state size, and that outer-product state expansion enables efficient tensor-core use. M$^2$RNN generalizes perfectly on state tracking beyond training lengths, and at 7B MoE, Hybrid M$^2$RNN beats Hybrid Gated DeltaNet by $0.4$–$0.5$ perplexity points with $3\times$ smaller recurrent states, while adding a single M$^2$RNN layer gives comparable gains at minimal throughput cost and up to $8$ LongBench points over hybrid linear-attention baselines.