TL;DR
Researchers have developed Fixed-Point RNNs (FP-RNNs), a novel framework that combines the massive parallelism of modern State-Space Models (like Mamba) with the deep "state-tracking" power of traditional dense RNNs. By treating a dense recurrence as the fixed-point of a diagonal one, these models can adaptively trade off computation time for expressivity, solving complex logic tasks that stump current industry-standard architectures.
The Parallelism-Expressivity Tradeoff
In the world of sequence modeling, researchers constantly battle a fundamental "parallelism-expressivity tradeoff."
On one side, we have Linear Recurrent Neural Networks and State-Space Models (SSMs) like Mamba. These are incredibly fast and efficient because they use "diagonal" transitions—each channel in the hidden state evolves independently. This allows them to be trained using parallel scans, achieving logarithmic time complexity relative to sequence length. However, because they lack "cross-talk" between channels during the recurrence, they struggle with state-tracking: tasks that require maintaining and updating a complex internal "map" of the world, such as tracking permutations in a puzzle or executing complex logic.
On the other side, we have Dense RNNs (like LSTMs). These feature dense transition matrices that allow every channel to interact with every other channel at every timestep. They excel at state-tracking but are notoriously slow to train because they are inherently sequential—you cannot calculate step 100 until you have finished step 99.
The authors pose a critical question: Can we achieve the expressivity of a dense RNN while maintaining the training efficiency of a diagonal SSM?
Methods: The Fixed-Point Approach
The authors introduce Fixed-Point RNNs (FP-RNNs). Instead of defining the hidden state $h$ through a single dense transition, they define it implicitly as the solution to a fixed-point equation: $h = f_\theta(x, h)$.
Here is how the mechanism works:
- The Inner Loop: They use a diagonal (parallelizable) RNN as the base function $f_\theta$.
- Fixed-Point Iteration: They run this diagonal RNN multiple times (iterations $\ell$). In each iteration, information is mixed across channels (channel mixing) and then across time (sequence mixing).
- Convergence: As the number of iterations increases, the hidden state converges to a fixed point. Mathematically, this fixed point represents the behavior of a dense linear RNN.
- Stability: To ensure the loop doesn't explode, they leverage Banach’s fixed-point theorem, enforcing "contractive" properties on the transition matrices so the system always settles into a stable state.
Because each individual iteration is diagonal, the entire training process remains parallelizable across the sequence length.
Key Insights and Ideas
- Adaptive Computation: One of the most compelling features of FP-RNNs is their elasticity. For simple tasks, the model converges in 2–4 iterations. For complex state-tracking tasks, it might take 16 or more. The model effectively "thinks longer" when the problem is harder.
- Interpolation: The framework allows a smooth interpolation from a simple diagonal model to a fully dense one. Practitioners are not locked into one architecture; they can choose their ideal spot on the efficiency-expressivity curve.
- Hidden State Dependence: The authors found that making the parameters of the current iteration depend on the hidden state of the previous iteration (a "shifted" dependence) was key to unlocking performance on memory-heavy tasks.
- Efficient Backprop: By using implicit differentiation, the model can be trained without storing the intermediate states of every iteration. This means FP-RNNs maintain the same memory footprint during training as a standard diagonal SSM.
Key Results
The authors evaluated FP-RNNs on a variety of challenging benchmarks, including the $A_5$ and $S_5$ state-tracking tasks (known "SSM-killers"), the Copying task, FineWeb language modeling, and modular arithmetic.
- Solving the Unsolvable: FP-Mamba successfully solved the $A_5$ and $S_5$ state-tracking tasks, achieving near-perfect accuracy and generalizing to sequences much longer than those seen during training. Standard Mamba and Transformers failed these tasks entirely.
- Superior Memory: On the copying task, a single-layer FP-Mamba matched or outperformed multi-layer Gated DeltaNet and Mamba-2 baselines, particularly in length generalization, while using a fraction of the parameters.
- Language Modeling Parity: On the FineWeb dataset, FP-Mamba matched the perplexity of standard Mamba while using the same number of parameters, proving that the added expressivity doesn't degrade general language performance.
- Manageable Complexity: While a standard Mamba forward pass is $O(T)$, FP-Mamba is $O(T \cdot \ell^*)$, where $\ell^*$ is the number of iterations. Because $\ell^*$ is usually small (often $<10$), the overhead remains highly manageable.
Limitations and Future Work
- Forward Pass Overhead: While training is parallel, the forward pass (inference) requires multiple iterations, adding sequential overhead. The authors suggest this could be mitigated by "fusing" the iterations into a single optimized GPU kernel.
- Convergence Rates: The speed of convergence depends heavily on the "contractiveness" of the matrices. Finding ways to reach the fixed point in fewer steps is a clear path for future optimization.
- Non-Convexity: The fixed-point equation isn't necessarily convex, meaning there could be multiple solutions. While not an issue in practice during these experiments, it remains an open theoretical question for autoregressive applications.
Summary updated