Efficient Hybrid Language Model Compression through Group-Aware SSM Pruning

Ali Taghibakhshi, Sharath Turuvekere Sreenivas, Saurav Muralidharan, Marcin Chochowski, Yashaswi Karnati, Raviraj Bhuminand Joshi, Ameya Sunil Mahabaleshwarkar, Zijia Chen, Yoshi Suhara, Oluwatobi Olabiyi, Daniel Korzekwa, Mostofa Patwary, Mohammad Shoeybi, Jan Kautz, Bryan Catanzaro, Ashwath Aithal, Nima Tajbakhsh, Pavlo Molchanov

Introduction

Hybrid language models, which integrate Transformers with State Space Models (SSMs) like Mamba, have emerged as a powerful architecture. They leverage the global context capabilities of self-attention alongside the linear-time inference efficiency of SSMs. However, the massive scale of these models—often reaching billions of parameters—presents significant deployment challenges on resource-constrained hardware. While compression techniques like structural pruning and knowledge distillation (KD) are well-understood for pure Transformer architectures, their application to hybrid models remains complex due to the unique structural dependencies of SSM layers.

NVIDIA researchers address this gap with Minitron-SSM, a novel compression framework specifically designed for hybrid models. By introducing a "group-aware" pruning strategy, they successfully compressed the Nemotron-H 8B model into a 4B parameter variant that retains over 96% of its original accuracy while offering substantial gains in inference speed.

Methodology

The Minitron-SSM approach combines structural pruning with knowledge distillation, specifically adapted for the mathematical constraints of SSMs.

Group-Aware Mamba Pruning

The primary challenge in pruning Mamba layers lies in their use of group-specific broadcasting. Naive pruning of heads or channels can disrupt the model's sequence modeling integrity. To solve this, the authors implement Group-Aware Mamba Pruning. This technique scores the importance of Mamba heads and channels using activation-based metrics but enforces strict permutation constraints. Sorting and pruning are restricted to occur within designated groups, preserving the underlying SSM semantics.

Hybrid Pruning and Distillation Recipe

The compression pipeline is holistic, evaluating the importance of Feed-Forward Network (FFN) neurons, embedding channels, and layer depth. After generating 125 candidate 4B-parameter architectures, a two-stage distillation process is employed:

  1. Architecture Search: A lightweight KD phase using 3.8B tokens to rank candidates.
  2. Final Distillation: The top-ranked architecture undergoes an extended KD phase (~380B tokens) using the original 8B model as a teacher to recover performance.

Results and Evaluation

The resulting Nemotron-H 4B model demonstrates exceptional efficiency and performance across standard benchmarks (MMLU, GSM8K, HumanEval).

Accuracy vs Training Cost: Nemotron-H 4B achieves high accuracy with significantly lower training token requirements compared to models trained from scratch.

Efficiency and Training Cost

As shown in Figure 4, the compression path from 8B to 4B is remarkably efficient. The compressed model requires approximately 40x fewer training tokens than training a comparable 4B model from scratch. This makes high-performance small models accessible with a fraction of the traditional compute budget.

Inference Performance

Nemotron-H 4B sets a new state-of-the-art (SOTA) for its weight class. It achieves ~2.2x higher throughput and ~1.8x lower latency than the second-best model in its category (Phi-4-Mini-4B), as illustrated in the inference speed frontier (Figure 5).

Accuracy vs Inference Speed Frontier: Nemotron-H 4B demonstrates superior throughput and accuracy compared to leading 3B-4B class models.

Discussion and Insights

The study revealed several critical insights into hybrid model architecture:

  • Width vs. Depth: Unlike pure Transformers, where depth pruning is often effective, hybrid models suffer significant accuracy drops (particularly in math and coding) when layers are removed. The optimal 4B candidate maintained the original 52-layer depth but reduced width (FFN size, embedding dimensions, and Mamba heads).
  • Mamba Head Redundancy: Hybrid models tolerate aggressive pruning of Mamba heads better than channels. This is likely due to the high initial head count (128) in Mamba layers compared to self-attention layers (32).
  • Generalizability: The recipe proved effective beyond Nemotron-H; applying it to a Mamba2 1.3B model resulted in a 780M model that outperformed scratch-trained baselines.

Conclusion

Minitron-SSM provides a robust and efficient pathway for deploying high-performance hybrid LLMs. By respecting the structural constraints of SSMs through group-aware pruning, researchers can produce compact models that rival or exceed the performance of much larger counterparts. Future work will explore specialized knowledge distillation for context window extension (up to 128k-512k tokens) and methods to reduce the dependency on massive teacher models.

Summary updated

BibTeX
@inproceedings{taghibakhshi2025efficient,
  author = {Ali Taghibakhshi and Sharath Turuvekere Sreenivas and Saurav Muralidharan and Marcin Chochowski and Yashaswi Karnati and Raviraj Bhuminand Joshi and Ameya Sunil Mahabaleshwarkar and ZIJIA CHEN and Yoshi Suhara and Oluwatobi Olabiyi and Daniel Korzekwa and Mostofa Patwary and Mohammad Shoeybi and Jan Kautz and Bryan Catanzaro and Ashwath Aithal and Nima Tajbakhsh and Pavlo Molchanov},
  title = {{Efficient Hybrid Language Model Compression through Group-Aware SSM Pruning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=m3huAdsaGI},
}
Figure