Bi-Mamba: Towards Accurate 1-Bit State Space Models
Summary
Binarizes Mamba-2 in/out projections (~90%+ of params) with FBI-Linear (sign weights plus per-column α/β) and autoregressive distillation from LLaMA2-7B on Amber. Beats GPTQ-2/3bit and BiLLM post-training binarization on Mamba-2 780M/1.3B/2.7B zero-shot and Wiki2/PTB/C4 PPL; 2.7B avg 50.6 vs Mamba-2 FP 59.6, Wiki2 10.0 vs 9.1. Claims ~5× memory / ~3× throughput vs FP16 2.7B on M4 Pro. Accepted in TMLR 2025. Code https://github.com/Tangshengku/Bi-Mamba.
- Venue
- arXiv / MBZUAI / Carnegie Mellon University
- License
- CC BY 4.0
- License family
- Permissive
- Purpose
- Train 1-bit Mamba-2 from scratch so linear-complexity SSMs stay accurate at binary weights
- Scale
- Mamba-2 780M/1.3B/2.7B; Amber ~105B tokens (30 chunks in v2 writeup); LLaMA2-7B teacher; eval BoolQ/PIQA/HellaSwag/WinoGrande/ARC/OBQA plus Wiki2/PTB/C4; HumanEval/GSM8K
- Time period
- 2024-11-18 (arXiv 2411.11843 v1); last revised 2025-10-23 (v2). Accepted in TMLR 2025. HF paper publishedAt 2024-11-18.
- Added
- Oct 1, 2026
- Research status
- done
From the source
- Published
- Nov 18, 2024
- Last revised
- Oct 23, 2025
- arXiv categories
- cs.CL, cs.AI
- Author comment
- Accepted in TMLR 2025
- Citations
- 13 (3 influential)
- References
- 56
Abstract (from arXiv)
The typical Selective State-Space Model (SSM) used in Mamba addresses several limitations of Transformers, such as the quadratic computational complexity with respect to sequence length and the significant memory requirements during inference due to the key-value (KV) cache. However, the increasing size of Mamba models continues to pose challenges for training and deployment, particularly due to their substantial computational demands during both training and inference. In this work, we introduce $\texttt{Bi-Mamba}$, a scalable and powerful 1-bit Mamba architecture designed to enable more efficient large language models (LLMs), with model sizes of 780M, 1.3B, and 2.7B parameters. $\texttt{Bi-Mamba}$ models are trained from scratch on a standard LLM-scale dataset using an autoregressive distillation loss. Extensive experiments on language modeling benchmarks demonstrate that $\texttt{Bi-Mamba}$ achieves performance comparable to its full-precision (FP16 or BF16) counterparts, while outperforming post-training binarization (PTB) Mamba and binarization-aware training (BAT) Transformer baselines. Moreover, $\texttt{Bi-Mamba}$ drastically reduces memory usage and computational cost compared to the original Mamba. Our work pioneers a new line of linear-complexity LLMs under low-bit representation and provides the way for the design of specialized hardware optimized for efficient 1-bit Mamba-based models. Code and the pre-trained weights are available at https://github.com/Tangshengku/Bi-Mamba.
Tags
Topics
quantization, 1-bit SSMs, Mamba
Research notes
- Primary: arxiv abs (cs.CL; also cs.AI). License CC BY 4.0 on HTML at check. Comment: Accepted in TMLR 2025. Equal contrib Tang/Ma; corresponding Zhiqiang Shen (zhiqiang.shen@mbzuai.ac.ae). MBZUAI / CMU (Sun). Code https://github.com/Tangshengku/Bi-Mamba (HF githubRepo; 17 stars at check). HF paper page 0 upvotes; no linked models/datasets. Discord posted abs. Trains on public Amber (RefinedWeb/StarCoder/RedPajama), not a new hosted corpus, so no datasets_local row.
Cites, within this collection
Similar entries
- Paper BitNet a4.8: 4-bit Activations for 1-bit LLMs
- Model Bonsai 27B: Full 27B-Class Reasoning in Binary and Ternary Transformer Weights — On Laptops and Phones
- Paper Falcon-H1: A Family of Hybrid-Head Language Models Redefining Efficiency and Performance
- Paper Disaggregated Quantization: Specializing LLM Prefill and Decode
- Other Towards Looped Models Done Right — Part I: Topology, Input Injection, Recurrent-State Design
- Paper SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration