SSDi8: Accurate and Efficient 8-bit Quantization for State Space Duality

Hyunwoo Kim, Byoungchan Ko, Minseok Kang, Minwoo Kim, Dongjin Lee, Jaehoon Lee, Sungroh Yoon, Dahuin Jung

While Transformers have long dominated the AI landscape, State Space Models (SSMs) like Mamba have recently emerged as highly efficient alternatives for long-range dependency modeling. Building on this momentum, Mamba-2 introduced "Structured State Space Duality" (SSD) to improve scalability and hardware utilization. However, as these models scale to billions of parameters, they continue to face significant memory and latency bottlenecks.

Standard post-training quantization (PTQ) techniques—which reduce numerical precision to 8-bit to save space and accelerate inference—work well for Transformers but struggle when applied to SSD. The SSD architecture relies on a complex mix of element-wise multiplications and matrix operations across varying dimensions (heads, groups, and states). Naive quantization breaks the "INT8 path," forcing the hardware to constantly switch back to floating-point math. This frequent casting kills performance and introduces massive accuracy degradation.

To bridge this gap, researchers have introduced SSDi8, the first PTQ framework specifically designed for Mamba-2’s SSD architecture. By introducing a "sparse-aware" mathematical reformulation and a persistent INT8 execution path, SSDi8 achieves near-lossless accuracy compared to FP16 while delivering up to a 1.4× speedup on modern GPUs and edge devices.

The SSDi8 Approach

The core philosophy behind SSDi8 is to keep the model running in INT8 precision for as much of the forward pass as possible, minimizing costly data movement and precision casting.

Persistent INT8 Architecture
  • Persistent INT8 Path: Instead of re-quantizing data for every sub-module, SSDi8 quantizes key activations (like the projection matrices $B$ and $C$) once at the start of the SSD layer. These quantized representations are reused across multiple modules, significantly reducing DRAM traffic—often the true bottleneck in complex architectures like Mamba-2.
  • Channel-Aware Quantization: The researchers observed that different dimensions in SSD (e.g., the "Head" vs. "Per-head" dimensions) exhibit vastly different outlier distributions. A one-size-fits-all quantization approach leads to unstable results. SSDi8 adaptively chooses quantization axes to minimize the impact of these dimensional outliers.
  • Sequential Mean Correction: To prevent quantization errors from snowballing through successive layers, the framework uses a calibration step that calculates per-channel error statistics. It then applies a small correction term to the output of each layer, keeping the model's representations aligned with the FP16 baseline.

Exploiting Sparsity: A Feature, Not a Bug

Perhaps the most counter-intuitive insight from the paper is how SSDi8 handles the exponential decay inherent in SSMs.

Sparse-Aware Reformulation

In standard SSD, a decay factor ($LUT_{state}$) is typically multiplied by a projection matrix ($B$) before a matrix multiplication. SSDi8 mathematically reshuffles this operation so the decay is applied to the input ($X$) instead. The authors prove that because the resulting "scaled X" is highly sparse, the quantization error is actually lower than the standard approach. By reformulating the math to exploit this sparsity during quantization, the authors turned a potential source of error into a mechanism for higher precision.

Key Results and Performance

The researchers evaluated SSDi8 across several standard LLM benchmarks, including zero-shot tasks (LAMBADA, WinoGrande, PIQA, HellaSwag), language modeling (WikiText2, The Pile), and hybrid models (Nemotron-H-8B-Reasoning).

  • Speed: SSDi8 achieves up to a 1.47× overall speedup on NVIDIA A5000 GPUs and demonstrates significant gains on edge hardware like the NVIDIA Orin NX.
  • Accuracy: On the Mamba-2 2.7B model, SSDi8 (W4A8) achieved 62.6% average accuracy, nearly matching the FP16 baseline of 63.8% and vastly outperforming previous methods like Quamba2 (62.1%).
  • Long-Context Stability: While FP16 Mamba-2 models sometimes show numerical instability at very long sequences (e.g., 14k tokens), SSDi8 remained stable, maintaining consistent perplexity scores where other models degraded.

Limitations and Future Work

While SSDi8 marks a significant step forward for SSM compression, the authors note a few limitations. First, they focused on 8-bit activations (W8A8 and W4A8) because current hardware often sees a performance drop when moving to 4-bit activations (W4A4) due to a lack of optimized kernels. Second, in their tests on hybrid Mamba-Transformer models, they only quantized the SSD (Mamba) portion; future work could involve a unified quantization strategy for both Attention and SSD components. Finally, a few specific internal tensors are still kept in FP16 because they are extremely sensitive to precision loss. Finding a way to quantize these remaining remnants without accuracy degradation remains an open challenge.

Summary updated

BibTeX
@inproceedings{kim2026ssdi,
  author = {Hyunwoo Kim and Byoungchan Ko and Minseok Kang and Minwoo Kim and Dongjin Lee and Jaehoon Lee and Sungroh Yoon and Dahuin Jung},
  title = {{SSDi8: Accurate and Efficient 8-bit Quantization for State Space Duality}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=pjMDZJd4rT},
}
Figure