Skip to main content
QUICK REVIEW

[Paper Review] MoE-Mamba: Efficient Selective State Space Models with Mixture of Experts

Maciej Pióro, Kamil Ciebiera|arXiv (Cornell University)|Jan 8, 2024
Topic ModelingComputer Science23 citations
TL;DR

MoE-Mamba combines Mamba with a Switch-based Mixture of Experts layer to achieve Transformer-like performance with fewer training steps, outperforming both Mamba and Transformer-MoE in initial experiments.

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 imes$ fewer training steps while preserving the inference performance gains of Mamba against Transformer.

Motivation & Objective

  • Evaluate whether integrating Mixture of Experts with Mamba improves training efficiency and performance.
  • Assess how MoE-Mamba scales with different numbers of experts.
  • Compare MoE-Mamba against Transformer, Mamba, and Transformer-MoE on next-token prediction tasks.

Proposed method

  • Replace every other Mamba layer with a Switch-based MoE feed-forward layer to create MoE-Mamba.
  • Maintain approximately 26M active parameters per token to keep comparison fair.
  • Train on 6.5B tokens with 100k steps on English C4 using GPT-2 tokenizer for next-token prediction.
  • Tune learning rate for vanilla Mamba and reuse for all variants.
  • Conduct ablations varying the number of MoE experts (1 to 32) to study scaling effects.

Experimental results

Research questions

  • RQ1Can Mixture of Experts be effectively integrated with Mamba to improve training efficiency without harming inference performance?
  • RQ2How does the number of MoE experts affect MoE-Mamba’s performance and training efficiency?
  • RQ3Does MoE-Mamba outperform Transformer, Mamba, and Transformer-MoE under the same resource constraints?

Key findings

  • MoE-Mamba reaches the same performance as vanilla Mamba in 46% of the training steps.
  • MoE-Mamba with 32 experts achieves the best reported performance among the tested configurations in the study.
  • Across ablations, 8 or more experts improve over vanilla Mamba, with 32 experts giving the best 100k-step result (3.41 loss).
  • MoE-Mamba shows 2.2x reduction in training steps to match Mamba performance, indicating efficiency gains from combining SSMs with MoE.
  • Interleaving MoE with Mamba preserves inference gains relative to Transformer while offering training efficiency benefits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.