SSDi8: Accurate and Efficient 8-bit Quantization for State Space Duality
Authors: Hyunwoo Kim, Byoungchan Ko, Minseok Kang, Minwoo Kim, Dongjin Lee, Jaehoon Lee, Sungroh Yoon, Dahuin Jung
Organizations: Department of Artificial Intelligence, Chung-Ang University · School of Computer Science and Engineering, Soongsil University · Department of Electrical and Computer Engineering, Seoul National University · Interdisciplinary Program in Artificial Intelligence, Seoul National University · AIIS, ASRI, INMC, and ISRC, Seoul National University
Recent advances in sequence modeling have highlighted Mamba as a state space architecture offering efficient long-range dependency modeling and providing a viable alternative to Transformers. Building upon this, Mamba-2 introduces the Structured State Space Duality (SSD), which integrates recurrent and attention modes to achieve efficiency and scalability. However, this architectural expansion substantially increases memory and latency overhead, underscoring the need for efficient compression strategies tailored to SSD. In this work, we present SSDi8, the first post-training quantization framework specifically designed for SSD to maintain a persistent INT8 path. SSDi8 introduces a reformulation that decouples element-wise multiplications from matrix multiplications, enabling reuse of quantized activations across modules. Moreover, SSDi8 adaptively quantizes channel-varying activations at cost-effective points, further reducing latency. On the accuracy side, SSDi8 explicitly leverages the intrinsic dimensional decomposition of SSD, exploiting distinct outlier distributions across axes, and incorporates an error correction term based on per-channel error statistics. Comprehensive experiments demonstrate that SSDi8 achieves accuracy comparable to FP16 while delivering up to 1.4x speedup in W4A8 and W8A8 settings. We further validate its robustness in resource-constrained environments by deploying it on the Orin NX device.
Figures & tables
Model
Bitwidth
Quantized Layer(s)
ACC
2.7B
FP16
–
63.8%
W4A8
+ In Proj
63.6%
+ SSD
58.4%
+ Out Proj
54.6%
Table 1: Accuracy under major layer quantization of Mamba-2. Significant degradation arises when SSD is quantized per-tensor.
Figure 1: (a) Mamba-2 block architecture. (b) SSD pipeline in SSDi8. SSDi8 enables the persistent INT8 representation path through reformulation and quantized activation reuse, while mitigating performance degradation via channel-aware quantization and mean correction.
Figure 2: Visualization of activation X in the 16th block of Mamba-2 8B before and after the SSD input transformation. The pre-SSD dimension ( B,L,D ) exhibits no clear token-wise pattern, whereas the transformed dimension ( B,L,H,P ) within SSD reveals distinct patterns along the H-dim.
Figure 3: (a) Distribution plots of head-wise X and LUTstate in the 27th block of the ChunkState module, and their element-wise product after reformulation Xscaled . The channel-wise ( P -dim) distribution of Xscaled is highly sparse. (b) Head-wise distribution plots of State .
Model
Size
Methods
Bitwidth
LA
HS
PIQA
Arc-E
Arc-C
WG
Avg.
Mamba-2
1.3B
-
FP16
65.6%
59.9%
73.3%
64.1%
33.3%
60.8%
59.5%
Quamba
W8A8
49.8%
58.5%
71.2%
61.9%
32.1%
58.1%
55.2%
Quamba2
W8A8
62.0%
59.2%
72.5%
63.4%
32.7%
60.0%
58.3%
W4A8
61.0%
58.8%
72.4%
62.7%
32.6%
59.1%
57.7%
SSDi8 (Ours)
W8A8
64.7%
59.7%
72.7%
64.0%
32.8%
60.9%
59.1%
W4A8
63.6%
59.2%
72.7%
63.5%
33.5%
60.4%
58.8%
Table 2: Evaluation of Mamba-2 (1.3B, 2.7B, 8B) with three quantization methods (Quamba, Quamba2, and SSDi8) on six zero-shot tasks (LA, HS, PIQA, Arc-E, Arc-C, WG).
Methods
Bitwidth
Wikitext2 Perplexity (↓)
1.3B
2.7B
8B
-
FP16
10.42
9.06
7.25
HAD
W8A8
11.31
11.42
8.57
W4A8
11.63
11.85
8.79
Quamba2
W8A8
10.80
9.32
7.79
W4A8
11.08
9.54
7.94
Table 3: Wikitext2 perplexity with L=2048 .
Figure 4: SSD latency of quantization methods on Mamba-2 2.7B: (a) varying batch ( L=2048 ), (b) varying length ( B=32 ), and (c) module-wise latency ( B=32 , L=2048 ). PIR denotes Persistent INT8 Representation. SSDi8 achieves up to 1.47× overall speedup and 1.77× in the State path.
Figure 5: Forward latency of W8A8 ( L=2048 ) on 2.7B.
GPU
Orin NX 16G
Bitwidth
W4A8
W8A8
Method
Quamba2
SSDi8
Quamba2
SSDi8
L=256
55.30
44.71
51.03
41.30
L=512
76.10
68.00
70.95
60.49
L=1024
134.40
127.51
139.10
114.36
L=2048
262.90
240.54
249.29
217.69
Table 4: SSD latency (ms) of SSDi8 vs. Quamba2 on Orin NX 16G.
Table 6: Ablation results of SSDi8: Q(SSD) and correction c .
Method
Wino
PiQA
ARC-C
ARC-E
Hella
Lamb
Avg.
PPL
SSD Latency (ms)
Fwd. Latency (ms)
FP16
73.8
80.9
55.8
81.4
80.6
66.2
73.1
8.42
19.834
109.873
INT8
73.5
80.7
55.9
81.5
80.6
66.3
73.0
8.65
9.156
98.904
Table 7: Hybrid Mamba–Transformer results on Nemotron-H-8B-Reasoning. SSDi8 is applied only to the SSD path, while other modules remain in FP16.
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
Model
Size
Methods
Bitwidth
LA
HS
PIQA
Arc-E
Arc-C
WG
Avg.
Mamba-2
1.3B
-
FP16
65.6%
59.9%
73.3%
64.1%
33.3%
60.8%
59.5%
HAD
W8A8
55.3%
59.4%
73.2%
64.0%
33.5%
58.2%
57.3%
W4A8
53.9%
58.9%
72.3%
63.6%
33.9%
59.1%
57.0%
Quamba
W8A8
49.8%
58.5%
71.2%
61.9%
32.1%
58.1%
55.2%
Quamba2
W4A16
64.3%
59.2%
72.6%
63.8%
33.1%
60.3%
58.9%
W8A8
62.0%
59.2%
72.5%
63.4%
32.7%
60.0%
58.3%
Appendix
Table 8: Evaluation of Mamba-2 models at 1.3B, 2.7B, and 8B scales using four quantization methods—HAD, Quamba, Quamba2, and SSDi8—across six zero-shot tasks: LA, HS, PIQA, Arc-E, Arc-C, and WG.
Model
Methods
Bitwidth
Pile Perplexity (↓)
1.3B
2.7B
Mamba-2
-
FP16
6.99
6.27
HAD
W8A8
7.46
7.77
W4A8
7.87
8.17
Quamba2
W8A8
7.20
6.44
W4A8
7.55
6.68
Appendix
Table 9: Pile perplexity with L = 2048
Model
Bitwidth
Activation
per-T
per-P( N )
per-H( G )
Wikitext2 Perplexity
8B
W4A8 SSD-FP16
–
–
–
–
7.42
B,C
v
7.59
v
7.43
v
7.44
v
v
7.42
X,State
v
11.97
Appendix
Table 10: Ablation study for quantization axis.
Bitwidth
Project
Speedup
Acc.
W4A8
None
×1.00
67.2%
In
×0.945
67.4%
SSD
×0.975
67.5%
Out
×0.987
67.4%
Appendix
Table 11: Accuracy and speedup for W4A8. Experiments are conducted on the LAMBADA dataset, using SSDi8 without mean correction as the baseline.
Model
Size
Method
W8A8
W4A8
Mamba2
2.7B
FP16
5.154 GB
Quamba2
2.948GB
1.766GB
SSDi8 (Ours)
2.953GB
1.774GB
8B
FP16
15.710 GB
Quamba2
9.860GB
7.028GB
SSDi8 (Ours)
9.867GB
7.038GB
Appendix
Table 12: Memory usage comparison
Figure 6: Comparison with Quamba2 under W4A8 quantization on the 8B model is also reported. OOM denotes Out-Of-Memory.
State Space Models (SSMs) such as Mamba-2 offer linear-time inference but their memory footprint limits edge deployment. Prior ternary SSM work (Slender-Mamba) trains from scratch on 150B tokens; we show a pretrained checkpoint suffices, reducing the marginal token budget by 1,000x. Using grouped quantization-aware training (QAT) with knowledge distillation from a frozen FP16 teacher, we compress Mamba-2 1.3B to 3.61x (2,687 to 744 MB) and achieve 48.1% zero-shot accuracy (7-task average) in just 102M tokens (4 GPU-hours, single H100) -- approaching Bi-Mamba's 48.4% (within +/-0.9pp CI). This QAT-from-pretrained setting reveals zero-ratio collapse, a novel instability caused by learnable quantization scales that does not arise in from-scratch training. We further show that post-hoc correction strategies effective for Transformers fail for SSMs due to error accumulation through the recurrence. These results demonstrate that ternary SSMs do not require expensive from-scratch training: QAT from pretrained checkpoints with KD is a data-efficient alternative.
Ramprasath Ganesaraja, Sahil Dilip Panse, Swathika N
Quantization is essential for efficient large language model (LLM) inference, yet the dequantization step-converting low-bit weights back to high-precision for matrix multiplication has become a critical bottleneck on modern AI accelerators. On architectures with decoupled compute units (e.g., Ascend NPUs), dequantization operations can consume more cycles than the matrix multiplication itself, leaving the high-throughput tensor cores underutilized. This paper presents Multi-Scale Dequant (MSD), a quantization framework that removes weight/KV dequantization from the GEMM critical path. Instead of lifting low-bit weights to BF16 precision, MSD decomposes high-precision BF16 activations into multiple low-precision components, each of which can be multiplied directly with quantized weights via native hardware-accelerated GEMM. This approach shifts the computational paradigm from precision conversion to multi-scale approximation, avoiding INT8-to-BF16 weight conversion before GEMM. We instantiate MSD for two weight formats and derive tight error bounds for each. For INT8 weights (W4A16), two-pass INT8 decomposition achieves near 16 effective bits. For MXFP4 weights (W4A16), two-pass MXFP4 decomposition yields near 6.6 effective bits with error bound 1/64 per block surpassing single-pass MXFP8(5.24 bits) while maintaining the same effective GEMM compute time. We further derive closed-form latency and HBM traffic models showing that MSD avoids the Vector-Cube pipeline stall caused by dequantization and reduces KV cache HBM traffic by up to 2.5 times in attention. Numerical simulations on matrix multiplication and Flash Attention kernels confirm that MSD does not degrade accuracy compared to dequantization baselines, and in many settings achieves lower L2 error.
State space models (SSMs), particularly Mamba, have emerged as efficient alternatives to attention-based architectures and have been extended to vision through ViM, VMamba, and Visual State Space Duality (VSSD). Yet the low-bit post-training quantization (PTQ) behavior of VSSD remains insufficiently understood. A weight-activation split on VSSD-Tiny identifies activation quantization as the dominant low-bit bottleneck, while representative inputs to selected VSSD-backbone linear layers exhibit strong channel-wise magnitude variation and token-localized extremes. We propose the Channel-wise Token-balanced Output-Aware Clipping (CTOAC) method, which learns per-input-channel clipping bounds by minimizing a token-balanced reconstruction loss on the corresponding linear outputs. Only the selected linear layers and their input activations are quantized; other backbone operations retain their original precision. Across VSSD-Tiny, VSSD-Small, and VSSD-Base, the proposed CTOAC method retains ImageNet-1K accuracy and remains substantially more robust than the evaluated baselines at more aggressive precision settings. Applying the same quantization scope to VSSD backbones on COCO and ADE20K preserves strong object detection, instance segmentation, and semantic segmentation performance. An optimized RTX 4090 deployment configuration achieves up to 1.42x end-to-end speedup over FP32.
Jonghyeon Lim, Changhoon Yim
Intelligent Image Processing Laboratory · Department of Computer Science and Engineering, Konkuk University · Seoul, Republic of Korea