Mamba-Shedder: Post-Transformer Compression for Efficient Selective Structured State Space Models

J. Pablo Muñoz, Jinjie Yuan, Nilesh Jain
1/28/2025
cs.LGcs.AIcs.CL

Official code: IntelLabs/Hardware-Aware-Automated-Machine-Learning (76 stars, MIT, last commit 2026-04-13).

Abstract

Large pre-trained models have achieved outstanding results in sequence modeling. The Transformer block and its attention mechanism have been the main drivers of the success of these models. Recently, alternative architectures, such as Selective Structured State Space Models (SSMs), have been proposed to address the inefficiencies of Transformers. This paper explores the compression of SSM-based models, particularly Mamba and its hybrids. We study the sensitivity of these models to the removal of selected components at different granularities to reduce the model size and computational overhead, thus improving their efficiency while maintaining accuracy. The proposed solutions, collectively referred to as Mamba-Shedder, achieve a speedup of up to 1.4x during inference, demonstrating that model efficiency can be improved by eliminating several redundancies with minimal impact on the overall model performance. The code is available at https://github.com/IntelLabs/Hardware-Aware-Automated-Machine-Learning.

View on arXivView PDF

Code Implementations(1)

MIT
7616C++, ShellOct 10, 20226 months agoMIT

Similar Papers

Cite this paper

@article{muoz2025mambashedder,
  title  = {Mamba-Shedder: Post-Transformer Compression for Efficient Selective Structured State Space Models},
  author = {J. Pablo Muñoz and Jinjie Yuan and Nilesh Jain},
  year   = {2025},
  eprint = {2501.17088},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.17088v1}
}

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/2501.17088.svg)](https://codeofpaper.com/paper/2501.17088)

Discussion