Reproduce “Mamba: Linear-Time Sequence Modeling with Selective State Spaces” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Albert Gu, Tri Dao
Mamba makes state-space model updates depend on current input, enabling selective retention or forgetting. A hardware-aware parallel scan supports these updates with linear training computation and memory. In a roughly 350M-parameter fixed-architecture ablation, selective S6 lowers perplexity from 10.56 to 8.69 versus real S4. Mamba-2.8B scores 63.3 versus Pythia-2.8B’s 59.1 on six zero-shot tasks; evaluation remains limited to models up to 2.8B.
Key insights
- Input-dependent selectivity in state space models is crucial for efficient long-context, content-aware reasoning in discrete modalities like language and DNA.
- Hardware-aware kernel fusion and recomputation strategies are essential for making time-varying recurrent models computationally feasible and memory efficient on modern GPUs.
- A simplified, homogenous architecture based solely on selective State Space Models can achieve Transformer-level quality across diverse modalities without requiring attention or traditional MLP blocks.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.