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

On Pruning State-Space LLMs

Tamer Ghattas, Michael Hassid, Roy Schwartz

TL;DR

This paper investigates pruning techniques for State-Space Models (SSMs), a promising alternative to Transformers for Large Language Models (LLMs). They adapt existing pruning methods and find that while SSMs are robust to unstructured pruning (like WANDA), structured pruning, particularly head pruning, can lead to significant performance degradation.

What Problem Does This Paper Address?

Large Language Models (LLMs) are computationally expensive, making them difficult to deploy and use efficiently. Pruning is a common technique to reduce model size and computation by removing redundant parameters. While extensive research has focused on pruning Transformer-based LLMs, the effectiveness of these methods on newer architectures like State-Space Models (SSMs) remains largely unexplored. SSMs, such as Mamba, offer competitive performance with potentially lower computational complexity, but their unique structure raises questions about how well they can be compressed. This paper aims to bridge this gap by systematically evaluating various pruning techniques on SSM-based LLMs.

Methods

The authors adapt several pruning methods, both structured and unstructured, for SSM-based LLMs.

  • Unstructured Pruning: They employ WANDA (Weight Agnostic Neural Network Distillation Approach), a state-of-the-art unstructured pruning method that considers both weights and activations. WANDA requires minimal adaptation for SSMs as it operates on linear layers.
  • Structured Pruning: They adapt and propose four structured pruning methods:
  • State Pruning: Pruning components within the SSM's state representation.
  • Head Dimension Pruning: Pruning dimensions within the SSM's heads.
  • Merging Heads: Analogous to group-query attention in Transformers, this involves merging SSM heads.
  • SSM-FLAP: Adapting the FLAP (Feature-wise Linear Activation Pruning) method, which prunes based on feature map fluctuations, to the SSM architecture.

Datasets

The paper uses the wikitext2 dataset for fine-tuning pruned models. The evaluation benchmarks include:

  • LAMBADA
  • Hellaswag
  • PIQA
  • ARC-Easy
  • ARC-Challenge
  • Winogrande

Key Insights and Ideas

  • SSMs are surprisingly robust to unstructured pruning: WANDA, an unstructured method, can remove up to 50% of SSM parameters with minimal performance degradation, suggesting that much of the redundancy in SSMs lies in individual weights.
  • Structured pruning is a double-edged sword for SSMs: While some structured methods (like state pruning) show resilience, others, particularly head pruning, lead to drastic performance drops. This highlights the critical role of specific SSM components.
  • Output projection is more sensitive than input projection: For Mamba-2, pruning the output projection layer leads to a sharp increase in perplexity, even at moderate pruning levels, whereas pruning the input projection is much more forgiving. This suggests that the way information is aggregated and projected out of the SSM block is crucial for its performance.
  • The choice of pruning method matters significantly: The paper demonstrates that different pruning strategies yield vastly different outcomes, emphasizing the need for careful selection based on the SSM architecture and desired trade-offs.

Key Results

  • WANDA (unstructured pruning): All four SSM-based LLMs tested were robust to WANDA pruning, maintaining performance even at 50% sparsity. Mamba-2-2.7B showed a slightly faster degradation compared to models with FFN layers.
  • State Pruning: Generally showed small to negligible performance drops across most models, indicating it's a promising structured pruning approach.
  • Head Pruning: Led to sharp performance degradation in all tested models, even at moderate pruning rates (25%).
  • SSM-FLAP and Head Merging: Showed mixed results, working for some models but not others.
  • Throughput Improvement: FLAP pruning on Smol-Mamba-1.9B demonstrated measurable end-to-end acceleration (5-17% speedup for 50% sparsity), particularly for longer sequences and larger batch sizes.

Limitations and Future Work

  • Model Diversity: The study used four SSM-based LLMs with varying sizes, head patterns, and architectures (pure SSM vs. interleaved SSM/FFN). While this provides a broad view, controlling for specific variables (e.g., comparing identical architectures with and without FFNs) would offer more granular insights.
  • Computational Costs: Training and distilling multiple models for experiments incurred significant computational costs, limiting the scope of hyperparameter tuning and model selection.
  • Pruning Scope: The experiments focused on pruning SSM components, excluding feed-forward networks. Future work could explore pruning all model components to understand inter-component interactions and achieve greater computational savings.
  • Fine-tuning Strategy: While KD loss generally outperformed CE loss for fine-tuning, further exploration of optimal fine-tuning strategies for pruned SSMs could be beneficial.

Summary updated

BibTeX
@inproceedings{ghattas2025pruning,
  author = {Tamer Ghattas and Michael Hassid and Roy Schwartz},
  title = {{On Pruning State-Space LLMs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure