arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00563cs.LGcs.SYeess.SY
收藏

稀疏Mamba:为结构状态空间模型引入可控性、可观性与稳定性

Sparse Mamba: Introducing Controllability, Observability, And Stability To Structural State Space Models

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Northwestern University(西北大学)

Emadeldeen Hamdan, Hongyi Pan, Ahmet Enis Cetin

AI总结:

本研究提出Sparse-Mamba,通过向Mamba架构引入可控性和可观性,并增强Mamba2中A矩阵的稳定性,实现参数减少、困惑度提升5%和训练时间缩短3%。

摘要:

近年来,结构状态空间模型(SSMs)的发展,如Mamba和Mamba2,在小到中等规模上超越了Transformer和大语言模型,并解决了其计算效率低下的问题。在本工作中,我们将可控性和可观性的概念引入原始Mamba SSM架构,提出我们的Sparse-Mamba(S-Mamba),用于自然语言处理(NLP)应用。此外,我们在Mamba2上增强了$n\ imes n$矩阵$A$的稳定性。Mamba SSM架构摒弃了Transformer中注意力层或多层感知机块的需求。然而,当前的Mamba模型在计算每个时间步的$A$、$B$、$C$和$D$矩阵时,缺乏对状态空间方程中可控性的强化,导致复杂性和计算成本增加。此外,Mamba2中的矩阵$A$并不总是稳定的。我们展示了与首次发布的Mamba和Mamba2相比参数数量的减少。我们展示了在原始Mamba架构上强化可控性和可观性后,所提出的S-Mamba的困惑度提高了5%,训练时间减少了3%。我们进一步在Mamba2上强制矩阵$A$的稳定性,以改善模型的损失和困惑度。可控且稳定的$n \ imes n$状态矩阵$A$是稀疏的,且只有$n$个自由参数。我们的新颖方法将确保可控/可观且稳定的SSM,这将是Mamba3的关键。

英文摘要:

Structured state space models' (SSMs) development in recent studies, such as Mamba and Mamba2, outperformed and solved the computational inefficiency of transformers and large language models at small to medium scale. In this work, we introduce the concept of controllability and observability to the original Mamba SSM's architecture in our Sparse-Mamba (S-Mamba) for natural language processing (NLP) applications. Moreover, we reinforce stability on the $nxn$ $A$ matrix on Mmaba2. The Mamba SSMs architecture drops the need for attention layers or multilayer perception blocks in transformers. However, current Mamba models lack reinforcement of controllability in state-space equations for computing the $A$, $B$, $C$, and $D$ matrices at each time step, leading to increased complexity and computational costs. Furthermore, the $A$ matrix in Mamba2 is not always stable. We demonstrate a reduction of parameters compared to the first published Mamba and Mamba2. We showcase an improvement in perplexity by 5\% and a decrease in training time by 3\% after reinforcing controllability and observability on the original Mamba architecture in our proposed S-Mamba. We further enforce stability on the $A$ matrix in Mamba2 to improve the loss and perplexity of the model. The controllable and stable $n \times n$ state matrix $A$ is sparse, and it has only $n$ free parameters. Our novel approach will ensure controllable/observable and stable SSMs, which will be the gate key for Mamba3.

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

↑