arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.06148cs.CCcs.AIcs.CLcs.LG
收藏

从电路复杂性视角看状态空间模型与 Mamba 的计算极限

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

The University of Chicago(芝加哥大学);University of New South Wales(新南威尔士大学);The University of Hong Kong(香港大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);The Simons Institute for the Theory of Computing at UC Berkeley(加州大学伯克利分校西蒙斯理论计算研究所)

Yifang Chen, Xiaoyu Li, Yingyu Liang, Zhenmei Shi, Zhao Song

AI总结:

该研究借助电路复杂性证明,poly(n) 精度、常数深度的 Selective SSM 与 Mamba 均可被 DLOGTIME-一致 TC^0 电路模拟,因而理论表达能力不超过 Transformer。

摘要:

本文利用电路复杂性框架分析 Mamba 与状态空间模型(SSMs)的计算局限。尽管 Mamba 具有有状态设计,且近期被视为有望超越 Transformers 的有力候选者,但我们证明,具有 poly(n) 精度和常数深度层的 Mamba 与 SSMs 都位于 DLOGTIME-一致 TC^0 复杂性类中。该结果表明,Mamba 在理论上具有与 Transformer 相同的计算能力;若 TC^0 ≠ NC^1,它便无法求解算术公式问题、布尔公式求值问题和置换复合问题等。因此,这挑战了 Mamba 在计算表达能力上强于 Transformers 的假设。我们的贡献包括严格证明 Selective SSM 与 Mamba 架构可由 DLOGTIME-一致 TC^0 电路模拟,并且它们无法求解 TC^0 之外的问题。

英文摘要:

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$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑