MoE-Mamba: Efficient Selective State Space Models with Mixture of Experts

Maciej Pióro, Kamil Ciebiera, Krystian Król, Jan Ludziejewski, Michał Krutul +5 more
1/8/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: llm-random/llm-random (212 stars, Apache-2.0, last commit 2026-01-14). 1 more below.

Abstract

State Space Models (SSMs) have become serious contenders in the field of sequential modeling, challenging the dominance of Transformers. At the same time, Mixture of Experts (MoE) has significantly improved Transformer-based Large Language Models, including recent state-of-the-art open models. We propose that to unlock the potential of SSMs for scaling, they should be combined with MoE. We showcase this on Mamba, a recent SSM-based model that achieves remarkable performance. Our model, MoE-Mamba, outperforms both Mamba and baseline Transformer-MoE. In particular, MoE-Mamba reaches the same performance as Mamba in $2.35\times$ fewer training steps while preserving the inference performance gains of Mamba against Transformer.

View on arXivView PDF

Code Implementations(2)

Apache-2.0
21222Shell, PythonJan 17, 20229 months agoApache-2.0
kyegomez/MoE-MambaCommunity73%
MIT

Implementation of MoE Mamba from the paper: "MoE-Mamba: Efficient Selective State Space Models with Mixture of Experts" in Pytorch and Zeta

13210Shell, PythonJan 21, 20246 months agoMIT
aimlmoemulti-modal-fusionmulti-modality+1 more

Similar Papers

Cite this paper

@article{piro2024moemamba,
  title  = {MoE-Mamba: Efficient Selective State Space Models with Mixture of Experts},
  author = {Maciej Pióro and Kamil Ciebiera and Krystian Król and Jan Ludziejewski and Michał Krutul and Jakub Krajewski and Szymon Antoniak and Piotr Miłoś and Marek Cygan and Sebastian Jaszczur},
  year   = {2024},
  eprint = {2401.04081},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.04081v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.04081.svg)](https://codeofpaper.com/paper/2401.04081)

Discussion