arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.21060cs.LG
收藏

Transformers是SSM:通过结构化状态空间对偶性实现广义模型与高效算法

Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality

Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学)

Tri Dao, Albert Gu

AI总结:

本文揭示了状态空间模型与注意力变体间的理论联系,提出状态空间对偶性框架,并据此设计了比Mamba快2-8倍且在语言建模上保持竞争力的新架构Mamba-2。

摘要:

虽然Transformers一直是深度学习在语言建模中取得成功的主要架构,但状态空间模型(SSM)如Mamba最近被证明在中小规模上能匹配或超越Transformers。我们表明这些模型家族实际上密切相关,并开发了一个丰富的理论框架来连接SSM和注意力变体,这些连接通过一类经过充分研究的结构化半可分离矩阵的各种分解来实现。我们的状态空间对偶性(SSD)框架允许我们设计一种新架构(Mamba-2),其核心层是对Mamba选择性SSM的改进,速度快2-8倍,同时在语言建模上继续与Transformers竞争。

英文摘要:

While Transformers have been the main architecture behind deep learning's success in language modeling, state-space models (SSMs) such as Mamba have recently been shown to match or outperform Transformers at small to medium scale. We show that these families of models are actually quite closely related, and develop a rich framework of theoretical connections between SSMs and variants of attention, connected through various decompositions of a well-studied class of structured semiseparable matrices. Our state space duality (SSD) framework allows us to design a new architecture (Mamba-2) whose core layer is an a refinement of Mamba's selective SSM that is 2-8X faster, while continuing to be competitive with Transformers on language modeling.

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

↑