Transformers 是 SSM:通过结构化状态空间对偶的通用模型与高效算法

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

特里·道 Tri Dao · · 2024-05-31 · arXiv:2405.21060 ↗

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

虽然 Transformer 一直是深度学习在语言建模上取得成功的主要架构,但最近状态空间模型(如 Mamba)在小到中等规模上已被证明可以匹敌或超越 Transformer。我们表明这两类模型实际上密切相关,并通过一系列结构化的半可分矩阵的分解,发展了一个丰富的理论框架来连接 SSM 和多种注意力变体。我们的状态空间对偶(SSD)框架使我们能够设计一种新架构(Mamba-2),其核心层是对 Mamba 选择性 SSM 的改进,速度提高 2-8 倍,同时在语言建模上继续与 Transformer 竞争。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 36)

阅读逐段中英对照全文 →