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, Çaǧlar Gülçehre, Razvan Pascanu, Samuel Smith · DOI

Abstract

Deep neural networks based on linear RNNs interleaved with position-wise MLPs are gaining traction as competitive approaches for sequence modeling. Examples of such architectures include state-space models (SSMs) like S4, LRU, and Mamba: recently proposed models that achieve promising performance on text, genetics, and other data that require long-range reasoning. Despite experimental evidence highlighting these architectures' effectiveness and computational efficiency, their expressive power remains relatively unexplored, especially in connection to specific choices crucial in practice - e.g., carefully designed initialization distribution and potential use of complex numbers. In this paper, we show that combining MLPs with both real or complex linear diagonal recurrences leads to arbitrarily precise approximation of regular causal sequence-to-sequence maps. At the heart of our proof, we rely on a separation of concerns: the linear RNN provides a lossless encoding of the input sequence, and the MLP performs non-linear processing on this encoding. While we show that real diagonal linear recurrences are enough to achieve universality in this architecture, we prove that employing complex eigenvalues near unit disk - i.e., empirically the most successful strategy in S4 - greatly helps the RNN in storing information. We connect this finding with the vanishing gradient issue and provide experiments supporting our claims.

Introduction

Recent advancements in sequence modeling have seen a shift away from traditional Recurrent Neural Networks (RNNs) with internal non-linearities, such as LSTMs and GRUs. Modern State-Space Models (SSMs) like S4, LRU, and Mamba utilize purely linear recurrences interleaved with position-wise Multi-Layer Perceptrons (MLPs). While these models demonstrate exceptional speed and performance on long-range reasoning tasks, their theoretical expressive power—specifically why a linear recurrence can match the capabilities of Transformers—has remained largely unformalized. This work provides a mathematical foundation for these architectures, explaining the necessity of specific design choices like complex-valued states and unit-circle initialization.

The Framework: Separation of Concerns

The core of the proposed theory is the "Separation of Concerns" principle. The architecture's function is decomposed into two distinct stages:

  1. Linear RNN as a Lossless Encoder: Utilizing the properties of Vandermonde matrices, the authors prove that a linear diagonal recurrence can perfectly encode an entire input sequence into its hidden state. This allows the RNN to function as a high-fidelity memory bank, provided the hidden dimension is sufficiently wide.
  2. MLP as a Non-linear Processor: Once the sequence history is captured in the hidden state, a standard position-wise MLP—a known universal function approximator—can process this state to generate any desired output map.
The architecture separates memory (Linear RNN) from processing (MLP), enabling sequence reconstruction from the final hidden state.

By applying Barron’s Theory, the paper provides finite-width guarantees, specifying the number of neurons required for the MLP to achieve a target approximation accuracy for regular causal sequence-to-sequence maps.

Theoretical Insights: Stability and Complex Eigenvalues

A significant contribution of this research is the mathematical justification for using complex numbers. While real-valued diagonal linear recurrences are theoretically sufficient for universality, they often result in "ill-conditioned" memory. In such cases, retrieving historical information becomes highly sensitive to noise.

In contrast, employing complex eigenvalues (specifically roots of unity) ensures that the memory remains stable. Furthermore, initializing these eigenvalues near the unit circle ($|\lambda| \approx 1$) is shown to be a critical strategy for preventing vanishing gradients. This ensures that the RNN maintains access to the beginning of a sequence even as it reaches the end, providing the MLP with a complete context for processing.

Empirical Validation

The theoretical framework was validated through benchmarks requiring long-range reasoning and high-fidelity reconstruction, such as Sequential MNIST and PathFinder from the Long Range Arena (LRA).

Quantitative training loss and qualitative reconstructions for MNIST and PathFinder demonstrate that increasing hidden dimension $N$ improves performance.

Key experimental findings include:

  • Reconstruction Success: Trained linear RNNs were able to reconstruct flattened images almost perfectly from only the final hidden state, confirming the "lossless encoding" hypothesis.
  • Modeling Chaotic Systems: The model successfully simulated complex physical systems, including the chaotic Lorentz system. While purely linear models fail to capture such dynamics, the combination of a linear RNN and an MLP succeeds, demonstrating that the MLP effectively handles the required non-linear logic.

Conclusion

This paper establishes that the combination of linear recurrences and position-wise MLPs constitutes a universal approximator for sequence-to-sequence mappings. The findings highlight that non-linearity is not required within the recurrent update itself to achieve high expressive power; rather, it is sufficient to have a linear memory bank followed by a non-linear processor. Future work may extend these proofs to discrete token spaces and further explore the Turing completeness of these increasingly popular architectures.

Summary updated

BibTeX
@inproceedings{orvieto2024universality,
  author = {Antonio Orvieto and Soham De and Çaǧlar Gülçehre and Razvan Pascanu and Samuel 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