State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memory

Shida Wang, Beichen Xue
2/12/2026

Official code: radarFudan/Curse-of-memory (19 stars, last commit 2025-05-08).

Abstract

State-space models have gained popularity in sequence modelling due to their simple and efficient network structures. However, the absence of nonlinear activation along the temporal direction limits the model's capacity. In this paper, we prove that stacking state-space models with layer-wise nonlinear activation is sufficient to approximate any continuous sequence-to-sequence relationship. Our findings demonstrate that the addition of layer-wise nonlinear activation enhances the model's capacity to learn complex sequence patterns. Meanwhile, it can be seen both theoretically and empirically that the state-space models do not fundamentally resolve the issue of exponential decaying memory. Theoretical results are justified by numerical verifications.

View on arXivView PDF

Code Implementations(1)

Curse-of-memory phenomenon of RNNs in sequence modelling

191Shell, PythonJul 14, 20231 years ago
long-term-memoryrnnssm

Similar Papers

Cite this paper

@article{wang2026statespace,
  title  = {State-space Models with Layer-wise Nonlinearity are Universal Approximators with Exponential Decaying Memory},
  author = {Shida Wang and Beichen Xue},
  year   = {2026},
  eprint = {2309.13414},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.13414},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.13414.svg)](https://codeofpaper.com/paper/2309.13414)

Discussion