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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Dao, Tri, Gu, Albert
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910465796341760
author Dao, Tri
Gu, Albert
author_facet Dao, Tri
Gu, Albert
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_21060
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
Dao, Tri
Gu, Albert
Machine Learning
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.
title Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
topic Machine Learning
url https://arxiv.org/abs/2405.21060