NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Universality of Linear Recurrences Followed by Non-linear Projections: Finite-Width Guarantees and Benefits of Complex Eigenvalues

Antonio Orvieto, Soham De, Caglar Gulcehre, Razvan Pascanu, Samuel L Smith

State-Space Models (SSMs) like S4, LRU, and Mamba are rapidly emerging as powerful, computationally efficient alternatives to Transformers for sequence modeling. They interleave linear Recurrent Neural Networks (RNNs) with position-wise Multi-Layer Perceptrons (MLPs). Because the recurrence is linear, it can be parallelized efficiently during training, avoiding the quadratic scaling bottleneck of Transformers.

However, this architecture raises a major theoretical question: historically, it was believed that RNNs required non-linearities inside the recurrence (like in LSTMs or GRUs) to be expressive enough for complex tasks. Why do linear RNNs work so well? Furthermore, empirical evidence shows that these models require specific, carefully designed initializations—specifically, using complex numbers for the hidden state.

This paper mathematically explains why this specific architecture is so expressive and why complex numbers are the secret ingredient to its success, proving that a linear RNN followed by a standard MLP is actually a universal approximator for sequence-to-sequence maps.

The Secret: Separation of Concerns

The authors tackle the architecture's expressivity using a mix of linear algebra and neural network approximation theory. They break the model's capabilities into a two-step "separation of concerns":

  1. Lossless Memory (The Linear RNN): You don't need non-linearities in the time-mixing step. The linear RNN's only job is to route and store information across time. By modeling the linear RNN's hidden state using Vandermonde matrices, the authors prove that if the hidden state is wide enough, the linear RNN acts as a perfect compression algorithm. The entire history of the input sequence can be perfectly reconstructed from the current hidden state.
  2. Non-linear Processing (The MLP): Once the hidden state contains all the necessary information, the MLP takes over. Adapting Barron’s Theorem to a time-dependent setting, the authors prove that a single MLP applied to this hidden state can approximate any regular, non-linear causal sequence-to-sequence mapping.
Architecture diagram showing linear RNN sequence encoding followed by MLP processing, alongside image reconstructions from the final hidden state.

Why Complex Numbers Matter

To reconstruct past inputs from a linear hidden state, the model implicitly has to invert a matrix (the Vandermonde matrix). If you use real-valued eigenvalues, this matrix becomes exponentially ill-conditioned as the sequence gets longer. This means the model "forgets" the past due to numerical instability, manifesting as vanishing gradients.

By using complex eigenvalues initialized near the unit circle, the condition number stabilizes. This allows the model to perfectly recall long sequences without succumbing to numerical decay. Additionally, the authors note that if the input data is "sparse" (representable by fewer underlying frequencies), the required hidden state size for perfect memory shrinks significantly.

Key Results and Empirical Validation

The authors mathematically prove that an RNN of width $N \ge \text{dim}(\text{inputs})$ combined with an MLP of width $D \ge O(L/\epsilon^2)$ can approximate any regular causal sequence map to an arbitrary accuracy of $\epsilon$. They validate these claims across several domains:

  • Perfect Recall on Long Range Arena (LRA): Empirically, a linear RNN with a hidden dimension of $N=1024$ can perfectly reconstruct an entire 784-pixel Sequential MNIST image solely from the final hidden state, provided the eigenvalues are complex and initialized near the unit circle.
  • Mastering Chaos: To prove the model can learn highly non-linear mappings, they trained it on simulated trajectories from dynamical systems. A simple architecture of one linear RNN layer ($N=256$) followed by a 1-hidden-layer MLP successfully learned to simulate the highly non-linear, chaotic dynamics of the Lorentz system.
Training loss curves and image reconstructions for Sequential MNIST and PathFinder, demonstrating that higher hidden dimensions lead to near-perfect recall.

Limitations and Future Directions

While this work provides a robust theoretical foundation for standard linear RNNs (like S4 and LRU), it assumes continuous inputs, which does not perfectly map to finite-alphabet or discrete settings like the text tokens used in Large Language Models. Furthermore, it does not cover the expressivity of selective SSMs like Mamba, which feature input-dependent transitions. Future work will need to explore how finite-precision arithmetic affects these memory bounds and whether these linear-recurrent architectures can achieve full Turing completeness.

Summary updated

BibTeX
@inproceedings{orvieto2024universality,
  author = {Antonio Orvieto and Soham De and Caglar Gulcehre and Razvan Pascanu and Samuel L Smith},
  title = {{Universality of Linear Recurrences Followed by Non-linear Projections: Finite-Width Guarantees and Benefits of Complex Eigenvalues}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=47ahBl70xb},
}
Figure