State Space Models are Comparable to Transformers in Estimating Functions with Dynamic Smoothness
Naoki Nishikawa, Taiji Suzuki · 2024 · 2 citationsRead the paper
Deep neural networks based on state space models (SSMs) are attracting much attention in sequence modeling since their computational cost is significantly smaller than that of Transformers. While the capabilities of SSMs have been primarily investigated through experimental comparisons, theoretical understanding of SSMs is still limited. In particular, there is a lack of statistical and quantitative evaluation of whether SSM can replace Transformers. In this paper, we theoretically explore in which tasks SSMs can be alternatives of Transformers from the perspective of estimating sequence-to-sequence functions. We consider the setting where the target function has direction-dependent smoothness and prove that SSMs can estimate such functions with the same convergence rate as Transformers. Additionally, we prove that SSMs can estimate the target function, even if the smoothness changes depending on the input sequence, as well as Transformers. Our results show the possibility that SSMs can replace Transformers when estimating the functions in certain classes that appear in practice.
What the full text shows
Theory or simulation- SSMs combined with FNN layers achieve the same convergence rate as Transformers for estimating piecewise γ-smooth functions in non-parametric regression. — same convergence rate (non-parametric regression of piecewise γ-smooth functions)
- Two-layer SSMs combined with FNN layers achieve performance comparable to Transformers in the input copying task. — comparable performance (input copying synthetic task)
- SSMs combined with FNN layers outperform SSMs without FNNs in associative recall tasks. (associative recall synthetic task)
- Fine-tuned Hyena SSMs can maintain correct classification even when most input tokens are masked, provided the few essential tokens remain. (binary classification on Genomic Benchmark Dataset (DNA base sequences))
- Setup
- Synthetic tasks (input copying, associative recall), non-parametric regression for piecewise γ-smooth functions, and the Genomic Benchmark Dataset for DNA base sequences using a fine-tuned Hyena model.
- How
- The authors provide theoretical proofs that SSMs combined with FNNs can mimic the dynamic token selection of Transformers. They validate these claims using synthetic tasks (copying, associative recall), non-parametric regression analysis, and masking experiments on a pre-trained Hyena model.
- Limitations
- Does not discuss whether SSMs can be optimized efficiently. · Does not investigate data-dependent filters (e.g., Mamba) or linear attention. · Assumes A is a block diagonal matrix rather than the diagonal matrix used in many practical applications.
Summarized by Gemma 4 from the open-access full text · 10 Nov 2026. Read it