NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SparseSSM: Efficient Selective Structured State Space Models Can Be Pruned in One-Shot

Kaiwen Tuo, Huan Wang

Introduction

State-space language models (SSMs) like Mamba have emerged as highly competitive alternatives to Transformers. By matching Transformer-level quality while permitting linear-complexity inference, Mamba models solve many of the bottleneck issues associated with long-context generation. However, these models still comprise billions of parameters, making deployment expensive and memory-intensive.

While "one-shot" pruning—removing redundant weights without the need for expensive retraining—is a classic solution for compressing Large Language Models (LLMs), existing methods like SparseGPT are tailored for generic linear and attention blocks. SparseSSM introduces the first training-free, one-shot pruning framework specifically designed for Mamba and other SSM architectures. By accounting for the unique mechanics of state-space models, SparseSSM can prune up to 50% of a model's weights with negligible performance loss, entirely without fine-tuning.

The Challenge of Pruning Mamba

Standard pruning methods treat Mamba like a generic collection of linear layers, which leads to massive accuracy drops when sparsity exceeds 30%. This failure stems from two critical architectural differences in Selective SSMs:

  1. Time-Sharing: In an SSM, the core transition matrix ($A$) is applied recurrently at every single time step of a sequence. A pruning decision made at step 1 compounds and affects the hidden state at step 100.
  2. Discretization: Model weights are mathematically transformed (discretized) during execution via a step size parameter ($\Delta$). Standard pruning algorithms fail to account for this "math-in-the-middle" during the scan operation.

The SparseSSM Methodology

To overcome these hurdles, SparseSSM adapts the classic Optimal Brain Surgeon (OBS) framework—a second-order optimization method—to the specific recurrence of SSMs.

  • SSM Hessian Estimation: The authors derive a novel mathematical theorem to estimate the "saliency" (importance) of weights in the SSM transition matrix. This score leverages hidden state activations to determine which weights contribute most heavily to the model's memory.
  • Power-Law Temporal Aggregation: Because the $A$ matrix is used repeatedly, the researchers discovered that early tokens (the "prefix") are disproportionately important for establishing the latent state. SparseSSM uses a power-law weighting scheme to prioritize these early time steps when evaluating weight retention.
  • Sensitivity-Aware FFN Pruning: Mamba architectures also rely heavily on Feed-Forward Networks (FFNs). Recognizing that different modules exhibit varying degrees of "prunability," SparseSSM uses the trace of the Hessian matrix to automatically allocate higher sparsity to redundant layers while keeping sensitive layers (such as in_proj and out_proj) denser.

Key Insights and Empirical Results

SparseSSM was rigorously evaluated across a wide variety of benchmarks, including language modeling (WikiText-2, PTB, C4), zero-shot reasoning (PIQA, OpenBookQA, Winogrande, ARC), and computer vision (ImageNet-1K via MambaVision). The framework was tested on Mamba-1, Mamba-2, and hybrid models like Jamba, ranging from 130M to 8B parameters.

State-of-the-Art Accuracy: On Mamba-370M, SparseSSM achieved 50% sparsity with almost zero degradation in zero-shot task accuracy (maintaining ~47.5%, identical to the dense model). In stark contrast, standard Magnitude Pruning and SparseGPT suffered significant accuracy collapses at the same sparsity level.

Hardware and Memory Efficiency: The authors found that pruned weights in the $A$ matrix naturally cluster in specific columns, indicating structural redundancy in Mamba's memory channels. By applying structured pruning (removing entire columns of the state matrix), SparseSSM achieved 1.5x to 2.2x wall-clock speedups on a single NVIDIA RTX 4090 GPU. Furthermore, structured pruning reduced peak device memory by 30% to 45% in recurrent inference mode, enabling significantly larger batch sizes.

Limitations and Future Directions

While SparseSSM successfully tackles the SSM core, FFNs still constitute the majority of Mamba's parameters. Although the current sensitivity-aware heuristic is effective, developing specialized second-order methods for the FFN-SSM interaction could unlock even higher sparsity levels.

Additionally, while the structured pruning speedups are impressive, maximizing the benefits of unstructured sparsity (where individual weights are deleted randomly) will require specialized sparse CUDA kernels tailored for the Mamba selective scan operation. Moving forward, the authors plan to extend this framework to fully structured pruning of the entire Mamba block, paving the way for massive models to run efficiently on edge devices with highly constrained VRAM.

Summary updated

BibTeX
@inproceedings{tuo2026sparsessm,
  author = {Kaiwen Tuo and Huan Wang},
  title = {{SparseSSM: Efficient Selective Structured State Space Models Can Be Pruned in One-Shot}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=NX0uokLuv7},
}
Figure