The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Chen, Yifang, Li, Xiaoyu, Liang, Yingyu, Shi, Zhenmei, Song, Zhao
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909502765268992
author Chen, Yifang
Li, Xiaoyu
Liang, Yingyu
Shi, Zhenmei
Song, Zhao
author_facet Chen, Yifang
Li, Xiaoyu
Liang, Yingyu
Shi, Zhenmei
Song, Zhao
contents In this paper, we analyze the computational limitations of Mamba and State-space Models (SSMs) by using the circuit complexity framework. Despite Mamba's stateful design and recent attention as a strong candidate to outperform Transformers, we have demonstrated that both Mamba and SSMs with $\mathrm{poly}(n)$-precision and constant-depth layers reside within the $\mathsf{DLOGTIME}$-uniform $\mathsf{TC}^0$ complexity class. This result indicates Mamba has the same computational capabilities as Transformer theoretically, and it cannot solve problems like arithmetic formula problems, boolean formula value problems, and permutation composition problems if $\mathsf{TC}^0 \neq \mathsf{NC}^1$. Therefore, it challenges the assumption Mamba is more computationally expressive than Transformers. Our contributions include rigorous proofs showing that Selective SSM and Mamba architectures can be simulated by $\mathsf{DLOGTIME}$-uniform $\mathsf{TC}^0$ circuits, and they cannot solve problems outside $\mathsf{TC}^0$.
format Preprint
id arxiv_https___arxiv_org_abs_2412_06148
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity
Chen, Yifang
Li, Xiaoyu
Liang, Yingyu
Shi, Zhenmei
Song, Zhao
Computational Complexity
Artificial Intelligence
Computation and Language
Machine Learning
In this paper, we analyze the computational limitations of Mamba and State-space Models (SSMs) by using the circuit complexity framework. Despite Mamba's stateful design and recent attention as a strong candidate to outperform Transformers, we have demonstrated that both Mamba and SSMs with $\mathrm{poly}(n)$-precision and constant-depth layers reside within the $\mathsf{DLOGTIME}$-uniform $\mathsf{TC}^0$ complexity class. This result indicates Mamba has the same computational capabilities as Transformer theoretically, and it cannot solve problems like arithmetic formula problems, boolean formula value problems, and permutation composition problems if $\mathsf{TC}^0 \neq \mathsf{NC}^1$. Therefore, it challenges the assumption Mamba is more computationally expressive than Transformers. Our contributions include rigorous proofs showing that Selective SSM and Mamba architectures can be simulated by $\mathsf{DLOGTIME}$-uniform $\mathsf{TC}^0$ circuits, and they cannot solve problems outside $\mathsf{TC}^0$.
title The Computational Limits of State-Space Models and Mamba via the Lens of Circuit Complexity
topic Computational Complexity
Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2412.06148