paper-with-me

홈 › Papers

Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues

2024-11-19 · Riccardo Grazzi, Julien Siems, Arber Zela, Jörg K. H. Franke, Frank Hutter, Massimiliano Pontil

Linear Recurrent Neural Networks (LRNNs) such as Mamba, RWKV, GLA, mLSTM, and DeltaNet have emerged as efficient alternatives to Transformers for long sequences. However, both Transformers and LRNNs struggle to perform state-tracking, which may impair performance in tasks such as code evaluation. In one forward pass, current architectures are unable to solve even parity, the simplest state-tracking task, which non-linear RNNs can handle effectively. Recently, Sarrof et al. (2024) demonstrated that the failure of LRNNs like Mamba to solve parity stems from restricting the value range of their diagonal state-transition matrices to $[0, 1]$ and that incorporating negative values can resolve this issue. We extend this result to non-diagonal LRNNs such as DeltaNet. We prove that finite precision LRNNs with state-transition matrices having only positive eigenvalues cannot solve parity, while non-triangular matrices are needed to count modulo $3$. Notably, we also prove that LRNNs can learn any regular language when their state-transition matrices are products of identity minus vector outer product matrices, each with eigenvalues in the range $[-1, 1]$. Our experiments confirm that extending the eigenvalue range of Mamba and DeltaNet to include negative values not only enables them to solve parity but consistently improves their performance on state-tracking tasks. We also show that state-tracking enabled LRNNs can be pretrained stably and efficiently at scale (1.3B parameters), achieving competitive performance on language modeling and showing promise on code and math tasks.

📄 PDF Abstract BibTeX arXiv:2411.12537

Code (2)

automl/unlocking_state_tracking 공식 구현 pytorch
Jellyfish042/RWKV_Othello pytorch

Tasks

Language ModelingLanguage ModellingMambaMath

Methods 이 논문이 사용한 방법론

mLSTM A Multiplicative LSTM (mLSTM) is a recurrent neural network architecture for sequence modelling that combines the long short-term memory…
Mamba Foundation models, now powering most of the exciting applications in deep learning, are almost universally based on the Transformer architecture and its core attention module.…
Tanh Activation 설명 없음
Sigmoid Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…

Similar Papers 제목 키워드 기반

Learning State-Tracking from Code Using Linear RNNs

2026-02-16 · Julien Siems, Riccardo Grazzi, Korbinian Pöppel, Kirill Kalinin 외 arxiv

Over the last years, state-tracking tasks, particularly permutation composition, have become a testbed to understand the limits of sequence models architectures like Transformers and RNNs (linear and non-linear). However…

ParaRNN: Unlocking Parallel Training of Nonlinear RNNs for Large Language Models

2025-10-24 · Federico Danieli, Pau Rodriguez, Miguel Sarabia, Xavier Suau 외 arxiv

Recurrent Neural Networks (RNNs) laid the foundation for sequence modeling, but their intrinsic sequential nature restricts parallel computation, creating a fundamental barrier to scaling. This has led to the dominance o…

Fixed-Point RNNs: From Diagonal to Dense in a Few Iterations

2025-03-13 · Sajad Movahedi, Felix Sarnthein, Nicola Muca Cirone, Antonio Orvieto

Linear recurrent neural networks (RNNs) and state-space models (SSMs) such as Mamba have become promising alternatives to softmax-attention as sequence mixing layers in Transformer architectures. Current models, however,…

MambaState Space Models

Pretraining Recurrent Networks without Recurrence

2026-06-04 · Akarsh Kumar, Phillip Isola arxiv

Training recurrent neural networks (RNNs) requires assigning credit across long sequences of computations. Standard backpropagation through time (BPTT) addresses this problem poorly: it is sequential in time, limiting pa…

M$^2$RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Language Modeling

2026-03-15 · Mayank Mishra, Shawn Tan, Ion Stoica, Joseph Gonzalez 외 arxiv

Transformers are highly parallel but are limited to computations in the TC$^0$ complexity class, excluding tasks such as entity tracking and code execution that provably require greater expressive power. Motivated by thi…