Abstract
Linear Recurrent Neural Networks (linear RNNs) have emerged as competitive alternatives to Transformers for sequence modeling, offering efficient training and linear-time inference. However, existing architectures face a fundamental trade-off between expressivity and efficiency, dictated by the structure of their state-transition matrices. Diagonal matrices, used in models such as Mamba, GLA, or mLSTM, yield fast runtime but have limited expressivity. To address this, recent architectures such as DeltaNet and RWKV-7 adopted a diagonal plus rank-1 structure, which allows simultaneous token and channel mixing, improving associative recall and, as recently shown, state-tracking when allowing state-transition matrices to have negative eigenvalues. Building on the interpretation of DeltaNet's recurrence as performing one step of online gradient descent per token on an associative recall loss, we introduce DeltaProduct, which instead takes multiple ($n_h$) steps per token. This naturally leads to diagonal plus rank-$n_h$ state-transition matrices, formed as products of $n_h$ generalized Householder transformations, providing a tunable mechanism to balance expressivity and efficiency. We provide a detailed theoretical characterization of the state-tracking capability of DeltaProduct in finite precision, showing how it improves by increasing $n_h$. Our extensive experiments demonstrate that DeltaProduct outperforms DeltaNet in both state-tracking and language modeling, while also showing significantly improved length extrapolation capabilities.
Introduction
While Transformers dominate modern AI, their quadratic scaling with sequence length remains a significant bottleneck for long-context processing. Linear RNNs (e.g., Mamba, LRU, GLA) address this by processing sequences in linear time. However, these models face a fundamental trade-off between expressivity and efficiency, dictated by their state-transition matrices.
Diagonal matrices are efficient but mathematically limited, unable to solve complex state-tracking problems. Conversely, dense matrices are expressive but computationally prohibitive and training-unstable. Recent models like DeltaNet utilize rank-1 updates to offer a middle ground, but they often require many stacked layers to handle complex tasks. DeltaProduct addresses this by introducing a tunable, mathematically stable architecture that bridges the gap between diagonal and dense matrices.
Methods: From Rank-1 to Householder Products
DeltaProduct builds on the DeltaNet architecture by generalizing the state update process. While DeltaNet performs a single step of online gradient descent per token to memorize information, DeltaProduct takes multiple ($n_h$) gradient steps per token.
This generalization results in a state-transition matrix formed by the product of $n_h$ generalized Householder transformations. This approach provides two primary advantages:
- Tunable Expressivity: By increasing $n_h$, the model increases the rank of the update, smoothly interpolating between a simple diagonal matrix and a dense matrix.
- Guaranteed Stability: As a product of Householder transformations, the matrix's spectral norm is strictly bounded to $\le 1$, ensuring stable training even on extremely long sequences.
Empirical Evaluation
State-Tracking and Complex Symmetries
DeltaProduct demonstrates a remarkable ability to handle complex symmetries. For instance, with $n_h=2$, the model learns to combine two Householder reflections to create a rotation in the hidden state space. This allows a single layer to solve the $S_4$ permutation problem. At $n_h=4$, DeltaProduct successfully solves the highly complex $S_5$ permutation task in a single layer—a task where the baseline DeltaNet fails even with 10 stacked layers.
Length Extrapolation and Language Modeling
One of the most significant findings is DeltaProduct's superior length extrapolation. When trained on a context window of 4,096 tokens, DeltaProduct ($n_h=3$) maintains stable loss on sequences up to 32,000+ tokens. This is attributed to the model's improved ability to "forget" or flush out old, irrelevant information, preventing the hidden state from becoming cluttered over time.
In standard language modeling benchmarks (FineWeb, CodeParrot, TriviaQA), DeltaProduct consistently achieves lower perplexity and higher average accuracy than parameter-matched DeltaNet baselines across scales up to 805M parameters.
Conclusion
DeltaProduct provides a robust framework for improving the expressivity of Linear RNNs without sacrificing the efficiency of linear-time inference. By utilizing products of Householder transformations, it offers a stable and tunable mechanism for state-tracking and long-context modeling. Future work includes developing adaptive versions of the architecture to dynamically adjust $n_h$ based on token complexity and optimizing GPU kernels for further speedups.
Summary updated