Paper deep dive
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
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 93%
Last extracted: 8/25/2026, 7:46:51 AM
Summary
The paper introduces SSDi8, a post-training quantization framework designed for the Structured State Space Duality (SSD) architecture in Mamba-2 models. SSDi8 maintains a persistent INT8 execution path by decoupling element-wise multiplications from matrix multiplications and adaptively quantizing channel-varying activations. It leverages intrinsic dimensional decomposition and error correction to achieve accuracy comparable to FP16 while providing up to 1.4x speedup in W4A8 and W8A8 settings, validated on resource-constrained devices like the Orin NX.
Entities (10)
Relation Signals (7)
SSDi8 → deployedon → Orin NX
confidence 95% · deploying it on the Orin NX device
SSDi8 → maintainsprecisionpath → INT8
confidence 95% · maintain a persistent INT8 path
SSD → partof → Mamba-2
confidence 95% · Mamba-2 introduces the Structured State Space Duality (SSD)
SSDi8 → targets → SSD
confidence 95% · SSDi8, the first post-training quantization framework specifically designed for SSD
SSDi8 → achievesaccuracycomparableto → FP16
confidence 90% · achieves accuracy comparable to FP16
SSDi8 → achievesspeedup → 1.4x
confidence 90% · delivering up to 1.4x speedup in W4A8 and W8A8 settings
Mamba-2 → improvesupon → Mamba
confidence 90% · Building upon this, Mamba-2 introduces the Structured State Space Duality (SSD)
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract: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.
Tags
Links
- Source: https://arxiv.org/abs/2608.21952v1
- Canonical: https://arxiv.org/abs/2608.21952v1
Trouble viewing inline? Open PDF directly →
Full Text
77,223 characters extracted from source content.
Expand or collapse full text
SSDi8: Accurate and Efficient 8-bit Quantization for State Space Duality Hyunwoo Kim Byoungchan Ko11footnotemark: 1 Minseok Kang Minwoo Kim Thanks: Equal Contribution Affiliation: Department of Artificial Intelligence, Chung-Ang University Affiliation: School of Computer Science and Engineering, Soongsil University Affiliation: School of Computer Science and Engineering, Soongsil University Affiliation: School of Computer Science and Engineering, Soongsil University Dongjin Lee Jaehoon Lee Sungroh Yoon Dahuin Jung22footnotemark: 2 Thanks: Corresponding Authors Affiliation: Department of Artificial Intelligence, Chung-Ang University Affiliation: Department of Electrical and Computer Engineering, Seoul National University Affiliation: Department of Electrical and Computer Engineering, Seoul National University Affiliation: Interdisciplinary Program in Artificial Intelligence, Seoul National University Affiliation: Interdisciplinary Program in Artificial Intelligence, Seoul National University Affiliation: AIIS, ASRI, INMC, and ISRC, Seoul National University Abstract 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.4× speedup in W4A8 and W8A8 settings. We further validate its robustness in resource-constrained environments by deploying it on the Orin NX device. Code is available at https://github.com/cau-hai-lab/SSDi8. 1 Introduction Mamba (Gu & Dao 2024) is a recent state space sequence model that builds upon the Structured State Space Model (SSM) (Gu et al. 2020; Gu et al. 2022) to provide efficient long-range dependency modeling with constant computation and memory usage. While global attention in Transformers (Vaswani et al. 2017) can enhance performance as model size increases, it also incurs quadratic growth in computation and memory with respect to sequence length, which poses substantial challenges for large-scale training and deployment. In contrast, Mamba achieves performance comparable to or exceeding state-of-the-art architectures across billion-scale language models, positioning it as a strong candidate for next-generation sequence modeling. Despite its algorithmic efficiency, Mamba faces practical limitations: its specialized state space recurrence is difficult to parallelize on modern accelerators, making it less hardware-friendly than optimized Transformer kernels, and it shows relatively diminishing efficiency when scaled to larger parameter sizes. To overcome these issues, Mamba-2 (Dao & Gu 2024) introduces the Structured State Space Duality (SSD), a hybrid design that integrates recurrent mode with attention mode. Mamba-2 adds a head dimension analogous to multi-head attention to enhance scalability and employs a dual representation that improves general matrix multiplication (GEMM) utilization, yielding higher throughput on GPUs and TPUs. While the original Mamba exhibited limited efficiency beyond 2.7B parameters, Mamba-2 scales effectively to over 8B parameters and achieves competitive performance across language, audio (Lee et al. 2025), vision (Shi et al. 2024), and multimodal tasks (Huang et al. 2024). Yet this expansion also intensifies memory and latency overhead, highlighting the need for efficient compression and optimization. The recurrent mode of SSD is computationally efficient but system-inefficient, while the attention mode is relatively computationally demanding. During its operation, SSD repeatedly invokes activations across modules and performs sequential updates. In this process, activations reuse across modules necessitates frequent DRAM accesses, and the intrinsically higher latency of DRAM introduces considerable overhead. Table 1: Accuracy under major layer quantization of Mamba-2. Significant degradation arises when SSD is quantized per-tensor. Model Bitwidth Quantized Layer(s) ACC 2.7B FP16 – 63.8% W4A8 + In Proj 63.6% + SSD 58.4% + Out Proj 54.6% As shown in Tab. 1, directly applying quantization methods originally designed for Transformers—such as Hadamard rotation or GPTQ—to SSD layers leads to substantial accuracy degradation. This stems from the distinctive computational organization of SSD. First, the model dimension is partitioned into the number of heads and the per-head dimension, each following markedly different statistical distributions; failure to account for this property results in significant performance loss. Second, SSD contains dimension-varying activations whose shapes differ between memory storage and computation, and these activations are repeatedly invoked across multiple modules. Third, element-wise multiplications are extensively intertwined with matrix multiplications, further complicating quantization. In this work, we conduct the first comprehensive analysis of SSD to maintain a persistent INT8 path, providing observations that reveal the internal factors contributing to its quantization sensitivity. Accordingly, we propose SSDi8, an accurate and efficient post-training quantization framework that reduces both inference latency and performance degradation within SSD. For latency reduction, SSDi8 quantizes channel-variant and recurrent activations at optimal points and reuses them, ensuring an uninterrupted INT8 execution path from input to output. Furthermore, we address element-wise operations that disrupt this path by introducing a sparse-aware reformulation, with the guarantee formally established through mathematical analysis. This design keeps the execution in INT8 while substantially alleviating memory bottlenecks and computational overhead. For accuracy, SSDi8 leverages the intrinsic dimensional structure and properties of SSD. Specifically, external dimensions entering SSD are decomposed into two axes, each exhibiting distinct outlier distributions, which are explicitly exploited to reduce quantization error. Furthermore, we introduce an error correction term based on per-channel error means, yielding consistent gains in accuracy. Through these mechanisms, SSDi8 achieves a balanced optimization of both efficiency and performance. SSDi8 achieves accuracy comparable to FP16 while enabling up to 1.4× inference speedup under both W4A8 and W8A8 configurations, while excluding W4A4 due to hardware-induced slowdowns as discussed in Lin et al. Notably, in the context of SSD—where error sensitivity often causes severe degradation—our method incurs negligible accuracy loss while delivering substantial latency reductions, with single-inference speedups reaching 1.5×. To the best of our knowledge, this represents the first successful application of persistent INT8 path within the Mamba-2 SSD architecture. Furthermore, we demonstrate that SSDi8 maintains efficiency in resource-constrained environments through deployment on the Orin NX device. 2 Related Work Mamba Architecture. Mamba is a sequence modeling architecture built on SSMs, which has been explored as an alternative to Transformers in order to circumvent the quadratic complexity of self-attention (Gu & Dao 2024). Unlike conventional linear SSMs (Gu et al. 2022; Smith et al. 2023), Mamba incorporates a selective state space mechanism that adaptively gates input-dependent state transitions and output projections, enabling more expressive sequence modeling. Mamba-2 extends this framework by introducing structured SSDs (Dao & Gu 2024), which establishes a formal equivalence between SSMs and linear attention and enables optimized GEMM-based implementations. This design substantially improves hardware utilization on modern accelerators. Furthermore, Mamba-2 allows the state dimension—previously constrained to N=16N=16 in Mamba-1—to scale stably to N=64−128N=64-128 and beyond. In addition, Mamba-2 integrates a multi-head structure analogous to multi-head attention, further enhancing scalability. These advances make large-scale parameter expansion feasible, but they also intensify memory and latency overhead, motivating the need for compression and deployment strategies. Quantization for Mamba Models. Recently, several studies have begun to explore quantization for the Mamba models (Tang et al. 2024; Yu et al. 2025). MambaQuant (Xu et al. 2025) and Quamba1 (Chiang et al. 2025b) introduced Post-Training Quantization (PTQ) methods targeting the original Mamba-1 architecture, but their approaches are not directly applicable to SSD-based Mamba-2. Quamba2 (Chiang et al. 2025a) extended quantization to Mamba-2, applying W4A8 and W8A8 settings that include SSD blocks. However, its method is limited to the inputs of SSD layers and does not adequately address precision issues within internal SSD computations, leaving the INT8 execution path incomplete and constraining latency optimization. In this work, we bridge this gap by quantizing internal SSD computations and introducing an additional error-correction mechanism, thereby establishing a continuous INT8 execution path that enables accurate and efficient low-bit quantization for the Mamba-2 architecture. 3 Background 3.1 Quantization Quantization discretizes continuous values into a finite set of integer levels. In particular, uniform quantization divides the value range into equal intervals, mapping each element of a tensor X to its nearest quantized level as follows: X~=round(XαX),αX=max(|X|)2b−1−1, X=round\! ( X _X ), _X= (|X|)2^\,b-1-1, (1) where X~ X is the quantized tensor, αX _X is the scaling factor that defines the step size based on the maximum absolute value of X, and b is the bit-width. 3.2 Mamba-1 Mamba is an architecture built upon State Space Models (SSMs), composed solely of activation operations, where a hidden state variable is employed to efficiently compress and propagate memory (Gu & Dao 2024). The fundamental state update and output equations are defined as follows: h′(t)=Ah(t)+Bx(t),y(t)=Ch(t). h (t)=Ah(t)+Bx(t), y(t)=Ch(t). (2) Eq. 2 builds on the theoretical foundations of HiPPO (Gu et al. 2020) and S4 (Gu et al. 2022), which substantially improve both performance and efficiency. However, since SSMs are defined in continuous time, applying them to discrete inputs requires discretization. In practice, Zero-Order Hold is used to preserve previous values, and a time-step activation Δ is introduced to discretize matrices A and B. These operations are performed independently along the channel dimension of the input x, so that each channel independently follows its own SSM formulation: SB(x)=xWB,SC(x)=xWC,SΔ(x)=xWΔ. S_B(x)=xW_B, S_C(x)=xW_C, S_ (x)=xW_ . (3) Through input-dependent activations, Mamba highlights important information while suppressing noise, improving long-range dependency modeling. 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. 4 Methodology The overall workflow of SSDi8 is illustrated in Fig. 1. A substantial portion of SSD modules is executed along the persistent INT8 representation path, reusing quantized activations and applying a sparse-aware reformulation to element-wise operations that disrupt this path. The output tensor dAcsdA_cs from ChunkCumsum is negligible in size compared to other tensors, yet its recovery after quantization is challenging due to the element-wise multiplication; hence, it is retained in FP16. In the same vein, ChunkScan2 remains in FP16 for analogous reasons. These choices are further elaborated within this section. 4.1 Preliminary Study: Mamba-2’s Structured State Space Duality The Structured State Space Duality (SSD) in Mamba-2 consists solely of activation operations and unifies the recurrent and attention modes, thereby reducing computational cost and improving efficiency over the recurrence-dominated operations of conventional SSMs. Concretely, the SSM computation can be expressed as a lower-triangular structured matrix: the diagonal block, which directly influences the output, is computed via the attention formulation using matrix multiplications, while the off-diagonal blocks, which require recurrence, are computed by leveraging the semiseparable property, which admits low-rank factorizations. A key distinction from Mamba is that Mamba-2 introduces a number of heads H, analogous to the multi-head structure in Transformers. As shown in Fig. 2, the value of H is formally defined by D=H⊙P D= H P, where D denotes the model dimension and P the head dimension. Notably, H and P remain independent axes, with H chosen to be much larger than P. For efficiency, the input-dependent B and C are parameterized with an auxiliary dimension G, and broadcast to H when required. Formally, the input activations of SSD and its dimension before discretization are given as follows: A∈ℝ(H),Δ∈ℝ(B,L,H),X∈ℝ(B,L,H,P),B∈ℝ(B,L,G,N),C∈ℝ(B,L,G,N)CLOSE,Y∈ℝ(B,L,H,P), array[]rcl rcl rclA&∈&R^( H),& &∈&R^( B,L,H),&X&∈&R^( B,L,H,P),\\[6.0pt] B&∈&R^( B,L,G,N),&C&∈&R^( B,L,G,N),&Y&∈&R^( B,L,H,P), array where B denotes the batch size, L the sequence length, H the number of heads, G the number of groups, P the head dimension, N the state dimension, and Y the final output of SSD. To shorten the effective recurrent path and enable parallelism, the sequence is partitioned as L=c⊙l L= c l, where c is the number of chunks and l is the chunk size. The computation then proceeds through five modules—ChunkCumsum, ChunkState, StatePassing, ChunkBMM, and ChunkScan—which together yield the SSD output Y. Additional details are provided in Appendix B . ChunkCumsum (Input (Δ,A)↦( ,A) Output (Δ,dAcs)( ,dA_cs)). ChunkCumsum applies a softplus transformation to Δ , a time-step dependent scaling factor introduced for discretization, and discretizes the decay activation A that governs recurrent dynamics. It then prepares the cumulative decay term dAcsdA_cs, which is subsequently consumed by downstream modules for state updates. ChunkState (Input (dAcs,Δ,B,X)↦(dA_cs, ,\,B,\,X) Output (State)(State)). The ChunkState module discretizes the projection matrix B, applies the decay factor, and multiplies it with the input X to generate the hidden state. The cumulative decay is computed as Decaystate=exp(dAcsfinal−dAcs).Decay_state\;=\; \! (dA_cs^final-dA_cs ). For simplicity, we denote Δ⊙Decaystate _state by LUTstateLUT_state where ⊙ denotes element-wise multiplication, in the following modules. The resulting state update is formulated as State=X×(B⊙LUTstate)State\;=\;X× (B LUT_state ) (4) 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. StatePassing (Input (State,dAcs)↦(State,dA_cs) Output (State)(State)). This module integrates the states computed from independent chunks into the actual recurrent state through decay. The decay term is given by Decaypass=exp(dAcsfinal),Decay_pass= \! (dA^final_cs), (5) and the recurrent update is performed over the chunk as Statec∈Statei+1←Statei+1+Decayi+1⊙Statei,i=0,1,…,c−2. _c _i+1 _i+1\;+\;Decay_i+1 _i, i=0,1,…,c-2. (6) ChunkBMM (Input (B,C)↦(B,C) Output (CB)(CB)). ChunkBMM performs a batched matrix multiplication between C and B. This operation extracts the diagonal blocks of the product, yielding CBCB, which is used in the output computation within SSD. ChunkScan1 (Input (State,C,dAcs,Δ)↦(State,C,dA_cs, ) Output (outoff-diag)(out_off-diag)). ChunkScan1 computes the off-diagonal interaction term by performing a matrix multiplication between the recurrent state State and the projection matrix C. The decay contribution is modeled as Decayscan1=exp(dAcs)Decay_scan1= (dA_cs), and combined with Δ to form LUTscan1LUT_scan1 (=Δ⊙Decayscan1= _scan1). The final off-diagonal output is obtained as outoff-diag=(State×C)⊙LUTscan1.out_off-diag= (State× C ) LUT_scan1. ChunkScan2 (Input (X,CB,dAcs,Δ)↦(X,CB,dA_cs, ) Output (outdiag)(out_diag)). ChunkScan2 computes the diagonal contribution by projecting the input representation X with the combined activation CBCB, while modulating the result using the decay and discretization terms (dAcs,Δ)(dA_cs, ). This module complements the off-diagonal pathway from ChunkScan1, and together they form the complete output of SSD: Y=outoff-diag+outdiag.Y=out_off-diag+out_diag. 4.2 SSDi8 Quantization of B,C. Within SSDi8, the handling of the channel-dependent activations B and C constitutes one of the strategies, since they are repeatedly invoked across three SSD submodules. Rather than quantizing them separately within each module, SSDi8 quantizes once and reuses the resulting INT8 tensors, thereby reducing memory traffic and enabling a consistent low-precision execution path. A challenge arises because B and C are defined along the group dimension G but are broadcast to the head dimension H during computation, with H typically an order of magnitude larger than G. Naively applying quantization after broadcasting induces significant overhead (up to 4×4×), which SSDi8 addresses by optimizing the placement of quantization operations. To minimize redundant overhead, SSDi8 performs an early quantization of the channel-varying activations B and C once along the group axis G at the beginning of each SSD layer. The resulting INT8 tensors are then reused across all downstream modules, maintaining a consistent low-bitwidth representation without repeated quantization. Since |G|≪|H|| G|\! \!| H|, quantization along G is considerably more efficient, adding only about 3%3\% to the total SSD latency. Moreover, as shown in Figs. 2 and 7, the head dimension H exhibits highly heterogeneous value distributions across heads—up to 5×5× variation—making direct per-head quantization unstable. Similarly, the group dimension G shows distinct characteristics and must be considered in quantization. While the state dimension N exhibits relatively consistent statistics, it directly participates in subsequent matrix multiplications, where quantization errors cannot be restored. Thus, it is excluded from the quantization axes. Figure 3: (a) Distribution plots of head-wise X and LUTstateLUT_state in the 27th block of the ChunkState module, and their element-wise product after reformulation XscaledX_scaled. The channel-wise (P-dim) distribution of XscaledX_scaled is highly sparse. (b) Head-wise distribution plots of State. Sparse-aware Reformulation. As defined in Eq. 4, the ChunkState computation applies B⊙LUTstateB LUT_state prior to the matrix multiplication with X∈ℝ(B,H,c,l,P)X ^( B,H,c,l,P). Here, LUTstate∈ℝ(B,H,c,l)LUT_state ^( B,H,c,l) is multiplied element-wise with B∈ℝ(B,H,c,l,N)B ^( B,H,c,l,N) to impose a decay pattern across the steps within each B, H, and c. The resulting B⊙LUTstateB LUT_state is then multiplied with X along the l-axis to project the l sequence steps into N. The operations are executed independently and in parallel across B, H, and c. However, this ordering introduces three critical limitations: (i) although B is quantized to INT8, the presence of LUTstateLUT_state in FP16 enforces a floating-point execution path, undermining the efficiency of INT8 GEMM; (i) because LUTstateLUT_state exhibits exponential variation along the chunk axis l, any quantization scheme other than per-l quantization introduces substantial error, while even per-l quantization is infeasible due to quantization error accumulation after the l-axis matrix multiplication; (i) attempting Q(B⊙LUTstate)Q(B LUT_state) requires quantization after the G→HG→ H expansion, which incurs significant overhead. To enable a fully INT8 execution path, SSDi8 reformulates the computation as StateINT32=Q(Xscaled)×Q(B),Xscaled=LUTstate⊙X,StateINT32∈ℝ(B,H,c,P,N),State_INT32\;=\;Q(X_scaled)× Q(B),\;\;X_scaled=LUT_state X, _INT32 ^( B,H,c,P,N), (7) where Q(⋅)Q(·) denotes quantization. This reformulation is valid because LUTstateLUT_state applies its multiplication along the l-dimension shared by both X and B, while all other dimensions operate independently. This property ensures that moving the scaling operation from B to X preserves the computational result, and quantizing the resulting XscaledX_scaled mitigates the limitations. In this case, Q(Xscaled)Q(X_scaled) is quantized along the (P,H)( P, H) axes because LUTstateLUT_state is broadcast along the P axis while X preserves consistency across P and per-(H)( H) heterogeneity as shown in Fig. 3(a) and Fig. 2. Quantization simulations show that XscaledX_scaled exhibits pronounced outliers along the channel axis, which makes accurate quantization challenging. However, the actual quantization error of Q(Xscaled)Q(X_scaled) does not significantly increase despite the presence of such outliers. From a distributional perspective, this robustness can be attributed to the high sparsity of XscaledX_scaled as shown in Fig. 3 (a), which leads to reduced quantization errors overall. To formally validate this property, we prove in Appendix A that, under mild conditions, the quantization error of XscaledX_scaled is smaller than that of Q(X)⊙LUTstateQ(X) LUT_state. This sparsity-aware proof justifies the proposed reformulation, and empirical results further confirm that the resulting performance degradation remains negligible. Persistent INT8 Representation of Recurrent States. StateINT32State_INT32 obtained from the proposed reformulation is accumulated in INT32. Since INT32 consumes twice the memory of FP16, SSDi8 reduces memory traffic by directly converting INT32 to INT8 in registers with quantization scales: StateINT8=Round(StateINT32⊙sxsbqmaxss),qmax=2b−1−1,State_INT8\;=\;Round\! (State_INT32 s_xs_bq_ s_s ), q_ =2^b-1-1, (8) where sx,sb,s_x,\,s_b,\,s_s denote the quantization scales of X, B, and StateState, respectively. The resulting INT8 tensor is then stored in DRAM, avoiding intermediate FP16 representations and thereby reducing memory bandwidth usage. StateState also exhibits variation across heads H. As shown in Fig. 3 (b), consistency is observed along both the P and N, since N participates in subsequent multiplications within ChunkScan1, quantization along N is not adopted. StateINT8State_INT8 is thus quantized per-(H,P)( H,P). In the StatePassing module, independently computed chunkwise states are recurrently accumulated with decay to form the actual state, as shown in Eq. 6. Since StateState is already in INT8, maintaining the INT8 execution path requires quantizing the FP16 DecayDecay. The computation proceeds independently along B,H and recurrently along c, where each DecayDecay is a scalar. This enables element-wise fixed-point quantization of DecayDecay. Formally, Q(Statei+1)←Q(Statei+1)+Q(Decayi+1)S⊙Q(Statei),i=0,1,…,c−2,Q(State_i+1)\;←\;Q(State_i+1)\;+\; Q(Decay_i+1)S Q(State_i), i=0,1,…,c-2, (9) where S is a gating constant chosen as 2k2^k to enable bit-shift operations for minimal latency (with k=7k=7 in experiments). Per-H,P quantization ensures that all StateINT8State_INT8 across c share a common scale. This allows recurrent updates to be performed by simple bit-shift operations. As a result, StateINT8State_INT8 can be persisted through ChunkScan1, enabling INT8 Tensor Core multiplications with CINT8C_INT8. Here, Decay∈ℝ(B,H,c,l)Decay ^( B,H,c,l) aligns with the output outoff-diag∈ℝ(B,H,c,l,P)out_off-diag ^( B,H,c,l,P), so element-wise multiplication is applied directly after the matrix multiplication. Quantization of ChunkBMM and ChunkScan2. As shown in Fig. 1, the quantized activations BINT8B_INT8 and CINT8C_INT8 are reused in the ChunkBMM module. Because both are defined on the group dimension G, the multiplication proceeds without conversion to the head dimension H, producing CBINT32CB_INT32. The tensor CB∈ℝ(B,G,c,l,l)CB ^( B,G,c,l,l) is larger than X, so its quantization yields substantial memory savings. Similar to ChunkState, a single INT32→INT8INT32 8 step is applied to minimize memory traffic. In ChunkScan2, (LUTScan2⊙Q(CB))×X(LUT_Scan2 Q(CB))× X involves X in FP16, enforcing a floating-point path. Due to its shape, LUTScan2LUT_Scan2 is element-wise multiplied with CBCB, making post-quantization recovery difficult and rendering reformulation infeasible due to a shape mismatch with X. The dequantization scale of CBCB is fused into LUTScan2LUT_Scan2, reducing overhead while allowing partial FP16 execution. Experiments demonstrate that this process alone yields substantial latency gains. Leveraging the persistent INT8 representation of recurrent states together with the sparse-aware reformulation and reuse of activation, SSDi8 achieves up to 1.38×1.38× speedup overall, with gains reaching 1.6×1.6× in the ChunkScan module compared to FP16 execution. 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). 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% 2.7B - FP16 69.5% 66.6% 76.4% 69.5% 36.4% 64.2% 63.8% Quamba W8A8 52.4% 60.4% 71.6% 62.9% 33.7% 58.0% 56.5% Quamba2 W8A8 66.1% 65.5% 74.4% 68.4% 37.1% 63.7% 62.5% W4A8 65.6% 65.1% 74.7% 68.1% 36.1% 62.8% 62.1% SSDi8 (Ours) W8A8 68.3% 66.2% 75.6% 69.0% 36.8% 63.4% 63.2% W4A8 67.4% 65.3% 75.6% 68.9% 35.2% 63.5% 62.6% 8B - FP16 70.9% 77.7% 79.7% 76.0% 48.0% 72.0% 70.7% Quamba W8A8 54.0% 74.6% 77.1% 73.5% 44.2% 65.5% 64.8% Quamba2 W8A8 69.8% 77.8% 79.1% 75.9% 46.9% 69.0% 69.8% W4A8 68.8% 77.1% 79.1% 75.0% 46.0% 68.7% 69.1% SSDi8 (Ours) W8A8 70.4% 77.2% 79.6% 75.5% 47.2% 71.2% 70.2% W4A8 69.9% 76.5% 79.1% 75.4% 46.2% 70.6% 69.6% Mean Correction for SSD Quantization Error. To further mitigate the accumulation of quantization errors across SSD layers, we introduce a per-channel mean correction strategy. Given full-precision and dequantized results XW=Y∈ℝN,PXW=Y ^N,P and X′W′=Y′∈ℝN,PX W =Y ^N,P, minimizing the error between Y and Y′Y can be formulated as a least-squares problem, and the optimal correction vector c⋆c is given in closed form as the channel-wise mean of the quantization error: Ec=‖Y−(Y′+c)‖F2=∑p=1P∑i=1N((Y−Y′)i,p−cp)2,cp⋆=1N∑i=1N(Y−Y′)i,p.E_c=\|Y-(Y +c)\|_F^2= _p=1^P _i=1^N ((Y-Y )_i,p-c_p )^2, c_p = 1N _i=1^N(Y-Y )_i,p. (10) To ensure accurate estimation, we adopt a layer-wise sequential update strategy, enabling subsequent layers to reflect the applied corrections and, thereby, capture activation shifts induced by earlier updates. For a detailed description of the sequential update algorithm, please refer to Algorithm 1 in Appendix B. To minimize overhead, c is applied only to the output projection layer, whose dimensionality is half that of the input projection layer and where quantization error is most pronounced. This design achieves consistent accuracy gains while incurring only marginal latency overhead (≈1≈ 1–2%2\%). 5 Experiments Experimental Setup. We conduct PTQ experiments on Mamba-2 (Dao & Gu 2024) models with 1.3B, 2.7B, and 8B parameters. Experiments are primarily conducted on NVIDIA A5000 GPUs. We evaluate zero-shot performance on LAMBADA (Paperno et al. 2016), WinoGrande (Sakaguchi et al. 2020), PIQA (Bisk et al. 2020), HellaSwag (Zellers et al. 2019), ARC-Easy, and ARC-Challenge (Clark et al. 2018) benchmarks, and additionally assess language modeling capability via WikiText2 perplexity. Results are compared against the FP16 baseline, Quamba (Chiang et al. 2025b) and Quamba2 (Chiang et al. 2025a), and the HAD (HadMamba2) baseline, where HAD applies the Hadamard rotation to the Mamba-2 projection layers (Chiang et al. 2025a), GPTQ weight quantization and RTN quantization of SSD inputs. Quantization Setup. We use symmetric, static quantization on both W8A8 and W4A8 configurations. For 4-bit weight quantization, we employ GPTQ (Frantar et al. 2023), combined with Hadamard-transformed (Ashkboos et al. 2024) projection layers. To handle RMSNorm-induced outliers, we migrate the γ parameter (Wei et al. 2022), and apply mean correction with a factor of 0.15 to prevent estimation overfitting. Table 3: Wikitext2 perplexity with L=2048L=2048. 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 SSDi8 (Ours) W8A8 10.63 9.22 7.49 W4A8 10.92 9.43 7.62 5.1 Evaluation of Zero-shot and Generalization Performance Tab. 2 reports zero-shot task performance of Mamba-2 models (1.3B, 2.7B, 8B) under FP16, Quamba, Quamba2, and our SSDi8 quantization. Average accuracy is computed over six benchmarks. Across all bit-widths (W8A8, W4A8) and model scales, SSDi8 consistently outperforms Quamba2. For example, on the 2.7B model with W4A8, SSDi8 improves over Quamba2 (62.7%\% vs. 62.1%\%), and on the 8B model with W8A8, it achieves 70.2%\% compared to 69.8%\%. These results underscore the robustness of SSDi8 across diverse configurations. Full comparisons, including HadMamba-2 and Quamba2 with W4A16, are provided in Appendix E. Perplexity Results. To assess linguistic fluency and generalization, we report WikiText2 perplexity in Tab. 3. Across all model scales and bit-widths, SSDi8 consistently achieves lower perplexity than Quamba2 while narrowing the gap to FP16. In particular, for the 8B model, SSDi8 yields reductions of 3.9%\% (7.49 vs. 7.79) under W8A8 and 4.0%\% (7.62 vs. 7.94) under W4A8. These results demonstrate that SSDi8 preserves linguistic fluency and generalization under quantization. Figure 4: SSD latency of quantization methods on Mamba-2 2.7B: (a) varying batch (L=2048L=2048), (b) varying length (B=32B=32), and (c) module-wise latency (B=32B=32, L=2048L=2048). PIR denotes Persistent INT8 Representation. SSDi8 achieves up to 1.47×1.47× overall speedup and 1.77×1.77× in the State path. 5.2 Latency and Model Size Figure 5: Forward latency of W8A8 (L=2048L=2048) on 2.7B. In Fig. 4 (a) and (b), we compare SSDi8 with FP16 and Quamba2 on NVIDIA A5000 (24GB) across varying batch sizes (B≤32B≤ 32) and sequence lengths (L≤2048L≤ 2048). Latency is measured in milliseconds as the average of 100 runs after warm-up. On Mamba-2 2.7B with B=32,L=2048B=32,L=2048, SSDi8 achieves a 1.47×1.47× speedup over FP16 and a 1.38×1.38× improvement over Quamba2. The benefit increases with larger batch sizes and longer sequences, where greater chunk-level parallelism amplifies throughput, while short sequences (e.g., L=256L=256) may show higher FP16 efficiency due to lower computational intensity. Fig. 4 (c) reports module-level latency breakdown for 2.7B at B=32,L=2048B=32,L=2048. With persistent INT8 representation, ChunkScan achieves up to 1.77×1.77× speedup over FP16 and 1.50×1.50× over Quamba2, while StatePassing yields 2.25×2.25× and 2.17×2.17× improvements, respectively. As demonstrated in Fig. 5, similar gains are observed under W8A8, and results on Mamba-2 8B are provided in Appendix G. Table 4: SSD latency (ms) of SSDi8 vs. Quamba2 on Orin NX 16G. GPU Orin NX 16G Bitwidth W4A8 W8A8 Method Quamba2 SSDi8 Quamba2 SSDi8 L=256L=256 55.30 44.71 51.03 41.30 L=512L=512 76.10 68.00 70.95 60.49 L=1024L=1024 134.40 127.51 139.10 114.36 L=2048L=2048 262.90 240.54 249.29 217.69 To further assess deployability under resource-constrained conditions, we evaluate SSDi8 on the NVIDIA Orin NX 16G, as shown in Tab. 4. Using the Mamba-2 2.7B model, we measure SSD latency across varying sequence lengths with a batch size of 16, comparing W4A8 and W8A8 quantization against Quamba2. Across all configurations, SSDi8 consistently outperforms Quamba2, demonstrating its robustness beyond high-scale accelerators. Additional results evaluating longer sequence lengths and larger batch sizes are reported in Appendix H and Appendix K, respectively. 5.3 Ablation Studies Table 5: Ablation results for internal SSD quantization (Q(SSD)Q(SSD)). Bit- width ChunkState Q(X) Sparse Reform. Quant. of B,C Persistent INT8 Quant. of ChunkBMM Latency PPL W4A8 – – – – – 8.63 9.34 ✓ 8.58 9.35 ✓ ✓ 8.05 9.37 ✓ ✓ ✓ 7.60 9.39 ✓ 8.35 9.36 ✓ ✓ ✓ 8.00 9.42 ✓ ✓ ✓ ✓ 6.53 9.43 we present ablation results on Mamba-2 2.7B. The baseline retains FP16 only within SSD while applying W4A8 elsewhere. Comparing Q(X)Q(X) with the proposed reformulated Q(X⊙LUTstate)Q(X LUT_state) shows negligible quantization error, consistent with our theoretical proof. Avoiding element-wise multiplications after head expansion of B yields measurable latency gains. Without reformulation, quantizing X alone prevents the use of the persistent INT8 path, and the final latency improvement from quantizing B, C, and CBCB is limited to 1.07×1.07×. By contrast, our reformulation enables INT8 execution in ChunkScan1, improving latency by 1.08×1.08×, and further quantization of ChunkBMM achieves a 1.32×1.32× speedup. Perplexity degradation remains below 0.10.1, indicating that our channel-aware quantization preserves accuracy. Further results are provided in Appendix F. Table 6: Ablation results of SSDi8: Q(SSD)Q(SSD) and correction c. Bitwidth SSDi8 Acc. Q(SSD) Correct. FP16 – – 69.5% W4A8 51.2% ✓ 67.2% ✓ ✓ 67.4% We perform an ablation study on SSD quantization and mean correction using the Lambada dataset, which exhibits minimal performance variance, and report in Tab. 6. On Mamba-2 2.7B under the W4A8 setting, HadMamba quantization yields only 51.2% accuracy, whereas applying SSD quantization substantially boosts performance to 67.2%. Incorporating mean correction provides an additional improvement to 67.4%, achieving consistent accuracy gains with only a ∼ 1–2% overhead. These results demonstrate that SSDi8 achieves both accuracy and efficiency, while mean correction offers effective error correction with negligible additional latency. 5.4 Results on Hybrid Model: Nemotron-H-8B-Reasoning We report results for applying SSDi8 to the Nemotron-H-8B-Reasoning model in Tab. 7, which adopts a Mamba–Transformer hybrid architecture. In this setting, INT8 quantization is applied exclusively to the SSD path, while all other components are kept in FP16, allowing us to isolate the effect of SSD-path quantization within the hybrid architecture. Tab. 7 includes zero-shot benchmark accuracies and average accuracy, perplexity, as well as SSD-module latency and end-to-end forward latency, enabling a joint assessment of modeling performance and computational efficiency. 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. 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 Applying INT8 quantization only to the SSD path results in minimal changes in zero-shot performance across Wino, PIQA, ARC-C/E, Hella, and Lamb compared to FP16. The average accuracy decreases slightly from 73.1% (FP16) to 73.0% (INT8), and perplexity exhibits a limited increase from 8.42 to 8.65. In contrast, latency-related metrics show clearer differences. The average SSD-module latency is reduced from 19.834 ms to 9.156 ms, corresponding to approximately a 2× reduction, and the overall forward latency decreases from 109.873 ms to 98.904 ms. These results quantitatively illustrate the contribution of the SSD path to overall inference time and the efficiency gains obtained by INT8 quantization of this component. In this experiment, quantization is restricted to the SSD path, while MLP and attention modules remain in FP16; extending quantization beyond the SSD path is left for future investigation. 6 Conclusion In this work, we presented SSDi8, an INT8 quantization framework developed in the context of the SSD of Mamba-2. Unlike prior approaches limited to projections or partial SSD operations, SSDi8 establishes persistent INT8 representations through activation reuse and a sparse-aware reformulation. It further explores optimal quantization strategies by analyzing internal activations and incorporates mean correction to compensate for accumulated errors, enabling accurate and efficient inference for large-scale Mamba-2 models. SSDi8 achieves FP16-level accuracy while delivering up to 1.47× speedup over FP16 and 1.38× over Quamba2, and further demonstrates superior efficiency on edge devices such as NVIDIA Orin NX, as well as across diverse batch–sequence settings. SSDi8 provides mathematical intuition for sparse-tensor quantization and offers guidance for quantization in environments where element-wise and recurrent operations are prevalent. Acknowledgments This work was supported by the Institute of Information & Communications Technology Planning & Evaluation (IITP) grants funded by the Korea government (MSIT) [RS-2021-I211341, Artificial Intelligence Graduate School Program (Chung-Ang University); RS-2021-I211343, Artificial Intelligence Graduate School Program (Seoul National University)], the National Research Foundation of Korea (NRF) grants funded by the Korea government (MSIT) [RS-2025-00555943; 2022R1A3B1077720], the AI Computing Infrastructure Enhancement (GPU Rental Support) User Support Program funded by the Ministry of Science and ICT (MSIT), Republic of Korea (RQT-25-090040), and the BK21 FOUR program (Education and Research Program for Future ICT Pioneers) at Seoul National University in 2025. References Ashkboos et al. (2024) Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian L Croci, Bo Li, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. Quarot: Outlier-free 4-bit inference in rotated llms. Advances in Neural Information Processing Systems (NeurIPS), 2024. Bisk et al. (2020) Yonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao, and Yejin Choi. PIQA: reasoning about physical commonsense in natural language. In The Thirty-Fourth AAAI Conference on Artificial Intelligence (AAAI), 2020. Chiang et al. (2025a) Hung-Yueh Chiang, Chi-Chih Chang, Natalia Frumkin, Kai-Chiang Wu, Mohamed S Abdelfattah, and Diana Marculescu. Quamba2: A robust and scalable post-training quantization framework for selective state space models. In Forty-second International Conference on Machine Learning, 2025a. Chiang et al. (2025b) Hung-Yueh Chiang, Chi-Chih Chang, Natalia Frumkin, Kai-Chiang Wu, and Diana Marculescu. Quamba: A post-training quantization recipe for selective state space models. In International Conference on Learning Representations (ICLR), 2025b. Clark et al. (2018) Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the AI2 reasoning challenge. CoRR, 2018. Dao (2024a) Tri Dao. Causal depthwise conv1d in cuda with a pytorch interface, 2024a. URL https://github.com/Dao-AILab/causal-conv1d. Dao (2024b) Tri Dao. Fast hadamard transform in cuda, with a pytorch interface, 2024b. URL https://github.com/Dao-AILab/fast-hadamard-transform. Dao & Gu (2024) Tri Dao and Albert Gu. Transformers are ssms: Generalized models and efficient algorithms through structured state space duality. In International Conference on Machine Learning, p. 10041–10071. PMLR, 2024. Frantar et al. (2023) Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. Gptq: Accurate post-training quantization for generative pre-trained transformers. International Conference on Learning Representations (ICLR), 2023. Gholami et al. (2022) Amir Gholami, Sehoon Kim, Zhen Dong, Zhewei Yao, Michael W Mahoney, and Kurt Keutzer. A survey of quantization methods for efficient neural network inference. In Low-power computer vision, p. 291–326. Chapman and Hall/CRC, 2022. Gu & Dao (2024) Albert Gu and Tri Dao. Mamba: Linear-time sequence modeling with selective state spaces. In First Conference on Language Modeling, 2024. URL https://openreview.net/forum?id=tEYskw1VY2. Gu et al. (2020) Albert Gu, Tri Dao, Stefano Ermon, Atri Rudra, and Christopher Ré. Hippo: Recurrent memory with optimal polynomial projections. Advances in neural information processing systems, 33:1474–1487, 2020. Gu et al. (2022) Albert Gu, Karan Goel, and Christopher Re. Efficiently modeling long sequences with structured state spaces. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=uYLFoz1vlAC. Huang et al. (2024) Wenjun Huang, Jiakai Pan, Jiahao Tang, Yanyu Ding, Yifei Xing, Yuhe Wang, Zhengzhuo Wang, and Jianguo Hu. Ml-mamba: Efficient multi-modal large language model utilizing mamba-2. arXiv preprint arXiv:2407.19832, 2024. Lee et al. (2025) Taehan Lee, Jaehan Jung, and Hyukjun Lee. Mamba-2 audio captioning: design space exploration and analysis, 2025. URL https://arxiv.org/abs/2509.15680. Lin et al. (2024) Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. Awq: Activation-aware weight quantization for on-device llm compression and acceleration. Proceedings of Machine Learning and Systems (MLSYS), 2024. (17) Yujun Lin, Haotian Tang, Shang Yang, Zhekai Zhang, Guangxuan Xiao, Chuang Gan, and Song Han. Qserve: W4a8kv4 quantization and system co-design for efficient llm serving. In Eighth Conference on Machine Learning and Systems. (18) Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Dhruv Choudhary, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian, and Tijmen Blankevoort. Spinquant: Llm quantization with learned rotations. In The Thirteenth International Conference on Learning Representations. LY (2024a) Bruce Lee LY. Cuda hgemm, 2024a. URL https://github.com/Bruce-Lee-LY/cuda_hgemm. LY (2024b) Bruce Lee LY. Cuda hgemv, 2024b. URL https://github.com/Bruce-Lee-LY/cuda_hgemv. Paperno et al. (2016) Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham, Raffaella Bernardi, Sandro Pezzelle, Marco Baroni, Gemma Boleda, and Raquel Fernández. The LAMBADA dataset: Word prediction requiring a broad discourse context. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, (ACL). The Association for Computer Linguistics, 2016. Sakaguchi et al. (2020) Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An adversarial winograd schema challenge at scale. In The Thirty-Fourth AAAI Conference on Artificial Intelligence (AAAI), 2020. Shi et al. (2024) Yuheng Shi, Minjing Dong, Mingjia Li, and Chang Xu. Vssd: Vision mamba with non-casual state space duality. CoRR, 2024. Smith et al. (2023) Jimmy T.H. Smith, Andrew Warrington, and Scott Linderman. Simplified state space layers for sequence modeling. In International Conference on Learning Representations (ICLR), 2023. Tang et al. (2024) Shengkun Tang, Liqun Ma, Haonan Li, Mingjie Sun, and Zhiqiang Shen. Bi-mamba: Towards accurate 1-bit state space models. arXiv preprint arXiv:2411.11843, 2024. Touvron et al. (2023) Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. Vaswani et al. (2017) Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017. Wei et al. (2022) Xiuying Wei, Yunchen Zhang, Xiangguo Zhang, Ruihao Gong, Shanghang Zhang, Qi Zhang, Fengwei Yu, and Xianglong Liu. Outlier suppression: Pushing the limit of low-bit transformer language models. Advances in Neural Information Processing Systems, 35:17402–17414, 2022. Xiao et al. (2023) Guangxuan Xiao, Ji Lin, Mickael Seznec, Hao Wu, Julien Demouth, and Song Han. Smoothquant: Accurate and efficient post-training quantization for large language models. In International Conference on Machine Learning (ICML), 2023. Xu et al. (2025) Zukang Xu, Yuxuan Yue, Xing Hu, Zhihang Yuan, Zixu Jiang, Zhixuan Chen, Jiangyong Yu, Chen Xu, Sifan Zhou, and Dawei Yang. Mambaquant: Quantizing the mamba family with variance aligned rotation methods. In International Conference on Learning Representations (ICLR), 2025. Yu et al. (2025) Zhenxuan Yu, Takeshi Kojima, Yutaka Matsuo, and Yusuke Iwasawa. Slender-mamba: Fully quantized mamba in 1.58 bits from head to toe. In Proceedings of the 31st International Conference on Computational Linguistics (COLING), 2025. Zellers et al. (2019) Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine really finish your sentence? In Anna Korhonen, David R. Traum, and Lluís Màrquez (eds.), Proceedings of the 57th Conference of the Association for Computational Linguistics (ACL), 2019. Appendix Contents Appendix A Proof of Proposed Quantization Error Reduction via Reformulation Proposition 1. Suppose that ∑p=1PΔx,p212(Δy,pΔx,p)2⋅P(yp≠0)≤‖lut‖22∑p=1PΔx,p212. _p=1^P _x,p^212 ( _y,p _x,p )^2· P(y_p≠ 0)\;\;≤\;\;\|lut\|_2^2 _p=1^P _x,p^212. Then it holds that MSExscaled≤MSEx.MSE_x_scaled\;≤\;MSE_x. Notation. (1) We denote the Hadamard product by ⊙ . The quantization step size is Δ=Range2b−1 = Range2^b-1. (2) The dequantized input is x′=deq(q(x))x =deq(q(x)). The output is yl,p=xl,p⊙lutly_l,p=x_l,p lut_l. (3) Let ρp=P(yp≠0) _p=P(y_p≠ 0) and yl,p∗=yp:yp≠0y_l,p^*=\y_p:y_p≠ 0\. (4) Vectors are denoted by xp=(x0,p,…,xL,p)x_p=(x_0,p,…,x_L,p) and yp=(y0,p,…,yL,p)y_p=(y_0,p,…,y_L,p), with error vector ex,p=(e0,x,p,…,eL,x,p)e_x,p=(e_0,x,p,…,e_L,x,p). (5) The L-vector lut=(lut0,…,lutL)lut=(lut_0,…,lut_L) is fixed and deterministic. Assumptions. (1) min(yp)<0 (y_p)<0 and max(yp)>0 (y_p)>0. (2) Quantization errors satisfy ex,l,p∼U(−Δx,p2,Δx,p2)e_x,l,p U(- _x,p2, _x,p2), ey,l,p∼U(−Δy,p2,Δy,p2)e_y,l,p U(- _y,p2, _y,p2). (3) Outliers are not considered in ypy_p. (4) 0<ρp<10< _p<1. (5) lutlut is not a random variable. Proof. Step 1. Step size relation. In symmetric quantization, the step size Δ is determined by the min/max values. By Assumption (1), we have Δy,p∗=Δy,p _y,p^*= _y,p. Let sp=Δy,p/Δx,ps_p= _y,p/ _x,p, so that Δy,p=spΔx,p _y,p=s_p _x,p and hence Δy,p∗=sΔx,p _y,p^*=s _x,p. Step 2. Case y′=(x⊙lut)′y =(x lut) . The reconstructed output is yl,p′=yl,p∗+ey,l,p∗,with prob. ρp,0,with prob. 1−ρp.y_l,p = casesy_l,p^*+e_y,l,p^*,&with prob. _p,\\ 0,&with prob. 1- _p. cases Thus MSExscaled,p=ρp[(yl,p′−yl,p)2].MSE_x_scaled,p= _p\,E[(y_l,p -y_l,p)^2]. Since the error ey,l,p⋆=yl,p′−yl,p⋆e_y,l,p =y_l,p -y_l,p has zero mean, we have [(ey,l,p⋆)2]=Var(ey,l,p⋆).E[(e_y,l,p )^2]=Var(e_y,l,p ). Therefore, MSExscaled,p=ρp⋅[(ey,l,p⋆)2]=ρp⋅Var(ey,l,p⋆).MSE_x_scaled,p= _p·E[(e_y,l,p )^2]= _p·Var(e_y,l,p ). Under the standard quantization noise model, Var(ey,l,p⋆)=(Δy,p∗)212,Var(e_y,l,p )= ( _y,p^*)^212, so that MSExscaled,p=ρp⋅(Δy,p∗)212.MSE_x_scaled,p= _p· ( _y,p^*)^212. Averaging over p gives MSExscaled=1P∑p=1Pρp(Δy,p∗)212.MSE_x_scaled= 1P _p=1^P _p ( _y,p^*)^212. Step 3. Case y′=x′⊙luty =x lut. We expand MSEx,p=[‖yp′−yp‖22]=[‖(xp′−xp)⊙lut‖22].MSE_x,p=E [\|y_p -y_p\|_2^2 ]=E [\|(x_p -x_p) lut\|_2^2 ]. By component, ‖(xp′−xp)⊙lut‖22=∑l=1L(ex,l,p⋅lutl)2.\|(x_p -x_p) lut\|_2^2= _l=1^L(e_x,l,p· lut_l)^2. Taking expectation, [‖ex,p⊙lut‖22]=∑l=1Llutl2⋅[ex,l,p2].E[\|e_x,p lut\|_2^2]= _l=1^Llut_l^2·E[e_x,l,p^2]. Since ex,l,pe_x,l,p is uniform, [ex,l,p2]=Δx,p2/12E[e_x,l,p^2]= _x,p^2/12. Therefore, MSEx,p=‖lut‖22⋅Δx,p212.MSE_x,p=\|lut\|_2^2· _x,p^212. Averaging gives MSEx=1P∑p=1P‖lut‖22Δx,p212.MSE_x= 1P _p=1^P\|lut\|_2^2 _x,p^212. Step 4. Comparison. Substituting Δy,p∗=spΔx,p _y,p^*=s_p _x,p, MSExscaled=1P∑p=1Pρpsp2Δx,p212.MSE_x_scaled= 1P _p=1^P _p\,s_p^2 _x,p^212. Thus, if ∑p=1Pρpsp2Δx,p212≤∑p=1P‖lut‖22Δx,p212, _p=1^P _ps_p^2 _x,p^212\;\;≤\;\; _p=1^P\|lut\|_2^2 _x,p^212, then MSExscaled≤MSEx.MSE_x_scaled _x. ∎ Mildness of the sufficient condition. This condition is mild. First, scaling typically reduces the dynamic range so that Δy,p≤Δx,p _y,p≤ _x,p, i.e., sp≤1s_p≤ 1. Second, due to the sparsity of XscaledX_scaled, the activation probability is small (ρp≪1 _p 1), which diminishes the left-hand side. Third, the lutlut vector carries non-negligible energy across dimensions, so ‖lut‖22\|lut\|_2^2 is not small. Consequently, in these typical regimes, ∑p=1Pρpsp2Δx,p212≤∑p=1P‖lut‖22Δx,p212, _p=1^P _ps_p^2 _x,p^212\;≤\; _p=1^P\|lut\|_2^2 _x,p^212, and thus MSExscaled≤MSExMSE_x_scaled _x follows naturally. For a detailed discussion of the empirical characteristics of the distributions of x, xscaledx_scaled, and lutlut, please refer to Fig. 3 and Appendix L. Appendix B Algorithm Algorithm 1 Sequential Mean Correction Update 1: Quantized Blocks B1:LB_1:L, fp16 means μfp[1:L] _fp[1:L], number of samples S, sequence length T decaying factor η, target-layer set LtgtL_tgt 2: Fix initial inputs 3: for s←1s← 1 to S do 4: X[s]←Embedding(D[s],T)X[s] (D[s],\,T) 5: end for 6: for l←1l← 1 to L do 7: if l∉Ltgtl∉ L_tgt then 8: for s←1s← 1 to S do 9: Y←Bl(X[s])Y← B_l(X[s]) 10: X[s]←YX[s]← Y 11: end for 12: continue 13: end if 14: μq←0 _q← 0; N←0N← 0 15: for s←1s← 1 to S do 16: Y←Bl(X[s])Y← B_l(X[s]) 17: ms←Y.mean(0,1)m_s .mean(0,1) 18: ns←Y.shape[0]⋅Y.shape[1]n_s .shape[0]·Y.shape[1] 19: N←N+nsN← N+n_s; ws←nsNw_s← n_sN 20: μq←μq+ws⋅(ms−μq) _q← _q+w_s·(m_s- _q) 21: end for 22: δ←μfp[l]−μqδ← _fp[l]- _q 23: c[l]←η⋅δc[l]←η·δ 24: for s←1s← 1 to S do 25: Ycomp←Bl(X[s],apply c[l])Y_comp← B_l\! (X[s];\,apply c[l] ) 26: X[s]←YcompX[s]← Y_comp 27: end for 28: end for 29: return model with corrections applied Algorithm 1 implements a layer-wise sequential mean correction strategy. Mean correction estimates a channel-wise correction term from the quantized output mean μq _q, and the accuracy of this estimate depends on the input distribution under which it is measured. If correction terms are estimated independently using a fixed initial input distribution, later layers will observe statistics that differ from those encountered during actual inference, leading to biased correction terms. Instead, we update layers sequentially and propagate corrected activations forward, so that each layer estimates μq _q under the distribution produced by upstream corrections. This procedure aligns correction estimation with the inference-time signal flow and stabilizes cumulative quantization error across layers. Algorithm 2 SSD Layer 1: X∈ℝ(B,L,H,P)X (B,L,H,P), Δ∈ℝ(B,L,H) (B,L,H), decay activation A∈ℝ(H)A (H), 2: B∈ℝ(B,L,G,N)B (B,L,G,N), C∈ℝ(B,L,G,N)C (B,L,G,N), 3: L=c⋅lL=c· l 4: 5: Module 1: ChunkCumsum (Input (Δ,A)( ,A) → Output (Δ,dAcs)( ,dA_cs)) 6: Δ←softplus(Δ) ( ) 7: A+←discretize(A)A^+ (A) 8: dAcs←CumSumDecay(A+)dA_cs (A^+) ⊳ ∈ℝ(B,H,c,l) (B,H,c,l) 9: 10: Module 2: ChunkState (Input (dAcs,Δ,B,X)(dA_cs, ,B,X) → Output State) 11: Decaystate←exp(dAcs[:,:,:,l−1]−dAcs)Decay_state← (dA_cs[:,:,:,l-1]-dA_cs) 12: LUTstate←Δ⊙DecaystateLUT_state← _state ⊳ ∈ℝ(B,H,c,l) (B,H,c,l) 13: State←X×(B⊙LUTstate)State← X×(B\, LUT_state) ⊳ ∈ℝ(B,H,c,P,N) (B,H,c,P,N) 14: 15: Module 3: StatePassing (Input (State, dAcsdA_cs) → Output State) 16: Decaypass←exp(dAcs[:,:,:,l−1])Decay_pass← (dA_cs[:,:,:,l-1]) ⊳ ∈ℝ(B,H,c) (B,H,c) 17: for i=0i=0 to c−2c-2 do 18: State[i+1]←State[i+1]+Decaypass[i+1]⊙State[i]State[i+1] [i+1]+Decay_pass[i+1] [i] 19: end for 20: 21: Module 4: ChunkBMM (Input (B,C)(B,C) → Output CBCB) 22: CB←C×BCB← C× B ⊳ ∈ℝ(B,H,c,l,l) (B,H,c,l,l) 23: 24: Module 5: ChunkScan1 (Input (State,C,dAcs,Δ)(State,C,dA_cs, ) → outoff) 25: Decayscan1←exp(dAcs)Decay_scan1← (dA_cs) 26: LUTscan1←Δ⊙Decayscan1LUT_scan1← _scan1 27: outoff←(State×C⊤)⊙LUTscan1out_off←(State× C ) LUT_scan1 ⊳ ∈ℝ(B,H,c,P,l) (B,H,c,P,l) 28: 29: Module 6: ChunkScan2 (Input (X,CB,dAcs,Δ)(X,CB,dA_cs, ) → outdiag) 30: Let dAcs(m)∈ℝ(B,H,c,l,1),dAcs(n)∈ℝ(B,H,c,1,l) be the broadcasted forms of dAcs.Let dA_cs^(m) ^(B,H,c,l,1),\;dA_cs^(n) ^(B,H,c,1,l) be the broadcasted forms of dA_cs. 31: LUTscan2←Δ⊙exp(dAcs(m)−dAcs(n))LUT_scan2← \; \; \! (dA_cs^(m)-dA_cs^(n) ) ⊳ ∈ℝ(B,H,c,l,l) (B,H,c,l,l) 32: outdiag←X×(CB⊙LUTscan2)out_diag← X×(CB LUT_scan2) ⊳ ∈ℝ(B,H,c,P,l) (B,H,c,P,l) 33: 34: Final Output 35: Y←outoff+outdiagY _off+out_diag 36: return Y ⊳ ∈ℝ(B,H,c,P,l) (B,H,c,P,l) SSD layer computes the state-space dynamics of Mamba-2 using a parallel chunked formulation. Given input activations X, the layer first discretizes the step size Δ and decay activation A, and constructs per-chunk cumulative decay factors through ChunkCumsum. ChunkState performs the input-to-state projection within each chunk in parallel, while StatePassing propagates recurrent information across chunks to restore the global sequence dependency. ChunkBMM computes the block-diagonal interaction matrix CB, which is exclusively used in the diagonal path. ChunkScan1 generates the off-diagonal contribution from the recurrent state, and ChunkScan2 produces the diagonal contribution from the input representation with CB. The final SSD output is obtained by summing these two terms. Appendix C Additional Related Works Post-Training Quantization and LLM Quantization. Quantization approaches are generally divided into Quantization-Aware Training (QAT) (Gholami et al. 2022), which integrates quantization into the training process, and Post-Training Quantization (PTQ) (Frantar et al. 2023; Xiao et al. 2023; Lin et al. 2024), which applies quantization to models after pretraining. QAT is often considered strong in preserving accuracy, but for large-scale models the associated retraining cost can become prohibitively high. As a result, many recent studies have shifted attention toward PTQ, particularly in the context of large language models (LLMs) (Touvron et al. 2023). Among representative PTQ approaches, GPTQ (Frantar et al. 2023) proposes a weight-compensation PTQ method by leveraging approximate second-order information via the Hessian. SmoothQuant (Xiao et al. 2023) shifts the difficulty of activation quantization into weights, enabling stable W8A8 and W4A8 performance. QuaRot (Ashkboos et al. 2024) and SpinQuant (Liu et al.) achieve precise 4-bit quantization by applying random or learned rotation matrices to mitigate outliers. QServe (Lin et al.) highlights the practicality of W4A8 quantization in real environments, demonstrating its effectiveness in reducing inference latency for LLMs. However, these methods are inherently optimized for the structural properties of Transformers—such as self-attention and KV caching—and thus are not directly applicable to architectures like selective state space models, where continuous state updates and activation reuse play a central role. Appendix D Additional Experimental Setting Implementation. For quantization, we use a calibration set of 512 samples drawn from the Pile dataset. We apply 4-bit weight quantization to the in projection and out projection layers using GPTQ. To improve efficiency, the scaling parameter γ of RMSNorm is fused into the in projection layer (Wei et al. 2022). Except for the SSD module, activations are quantized to 8-bit with per-tensor quantization, while the fast Hadamard transform (Ashkboos et al. 2024) is fused into the corresponding layers. Inside the SSD, we adopt the same Triton (Dao 2024b; Dao 2024a) as used in Mamba-2, but modified to fit the SSDi8 method. CUDA (LY 2024a; LY 2024b) based causal Conv1d operator is used without modification. Appendix E Additional Accuracy Results Tab. 8 presents an extended version of the accuracy results in Tab. 2. Evaluations are conducted on the same datasets, where HAD denotes applying Hadamard and 4-bit GPTQ quantization to Mamba-2. SSDi8 achieves performance comparable to Quamba2 under W4A16 quantization, even with W4A8 quantization. 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 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% 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% 2.7B - FP16 69.5% 66.6% 76.4% 69.5% 36.4% 64.2% 63.8% HAD W8A8 53.8% 60.8% 73.8% 64.8% 35.8% 62.2% 58.5% W4A8 51.2% 59.7% 73.0% 64.9% 34.6% 60.2% 57.3% Quamba W8A8 52.4% 60.4% 71.6% 62.9% 33.7% 58.0% 56.5% Quamba2 W4A16 68.8% 65.6% 75.5% 68.6% 36.6% 64.9% 63.3% W8A8 66.1% 65.5% 74.4% 68.4% 37.1% 63.7% 62.5% W4A8 65.6% 65.1% 74.7% 68.1% 36.1% 62.8% 62.1% SSDi8 (Ours) W8A8 68.3% 66.2% 75.6% 69.0% 36.8% 63.4% 63.2% W4A8 67.6% 65.3% 75.6% 68.9% 35.2% 63.5% 62.7% 8B - FP16 70.9% 77.7% 79.7% 76.0% 48.0% 72.0% 70.7% HAD W8A8 56.7% 75.3% 78.1% 74.1% 45.0% 65.6% 65.8% W4A8 56.1% 74.6% 77.3% 73.8% 44.5% 66.0% 65.4% Quamba W8A8 54.0% 74.6% 77.1% 73.5% 44.2% 65.5% 64.8% Quamba2 W4A16 71.2% 76.8% 79.1% 75.2% 45.9% 70.8% 69.8% W8A8 69.8% 77.8% 79.1% 75.9% 46.9% 69.0% 69.8% W4A8 68.8% 77.1% 79.1% 75.0% 46.0% 68.7% 69.1% SSDi8 (Ours) W8A8 70.4% 77.2% 79.6% 75.5% 47.2% 71.2% 70.2% W4A8 69.9% 76.5% 79.1% 75.4% 46.2% 70.6% 69.6% We evaluate perplexity on the Pile benchmark for the 1.3B and 2.7B models. Across both model scales, SSDi8 surpasses Quamba2 and approaches FP16-level performance under W8A8 quantization, as shown in Tab. 9. Table 9: Pile perplexity with L = 2048 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 SSDi8 (Ours) W8A8 7.08 6.34 W4A8 7.41 6.57 Appendix F Additional Ablation Studies Tab. 10 shows ablation results on the quantization axis of activations within SSD, evaluated on Wikitext2 perplexity. For activations B,CB,C, per-G,N yields the best performance, though the difference from per-G is negligible (≈0.02). In contrast, X and State are highly sensitive to the choice of quantization axis, showing substantial degradation when either the P or H axis is not considered. Table 10: Ablation study for quantization axis. 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 v 8.59 v 8.15 v v 7.42 We also analyze latency and accuracy variations with respect to the placement of mean correction. The highest accuracy gain is observed when mean correction is applied immediately after SSD layers, indicating error accumulation within SSD. In Mamba-2, the model dimension is halved after the out-projection layer, yielding the lowest latency when mean correction is applied. Considering the trade-off between latency and accuracy, we therefore apply mean correction only at the out-projection layer, as summarized in Tab. 11. Table 11: Accuracy and speedup for W4A8. Experiments are conducted on the LAMBADA dataset, using SSDi8 without mean correction as the baseline. Bitwidth Project Speedup Acc. W4A8 None ×1.00× 1.00 67.2% In ×0.945× 0.945 67.4% SSD ×0.975× 0.975 67.5% Out ×0.987× 0.987 67.4% Appendix G Additional Latency and Model Size Results We further analyze the memory footprint and SSD latency of SSDi8, using FP16 and Quamba2 as reference baselines. Table 12: Memory usage comparison 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 As shown in Table 12, the memory usage of SSDi8 is nearly identical to Quamba2. For the 2.7B model under W8A8, SSDi8 requires 2.953GB compared to 2.948GB for Quamba2, resulting in only a +0.17% increase due to additional static quantization scales. A similar trend is observed for the 8B model (9.867GB vs. 9.860GB, +0.07%). Figure 6: Comparison with Quamba2 under W4A8 quantization on the 8B model is also reported. OOM denotes Out-Of-Memory. Figure 6 reports SSD-module latency across batch sizes. Compared to FP16, SSDi8 consistently reduces latency at moderate batch sizes. At batch 16, SSDi8 reduces latency from 14.745ms (FP16) to 10.646ms, corresponding to a 27.8% reduction. At batch 32, FP16 encounters OOM, while Quamba2 requires 25.797ms. Under the same setting, SSDi8 achieves 19.000ms, yielding a 26.3% latency reduction compared to Quamba2. Appendix H Longer Context Results We report additional results on long-context evaluation beyond 2k tokens(Tab. 13), comparing FP16, Quamba2, and SSDi8 under identical experimental settings. All experiments are conducted on an A5000 GPU using the 2.7B Mamba-2 model with a batch size of 8 and sequence lengths ranging from 2k to 14k. For each context length, we measure SSD-module latency, end-to-end throughput (tokens/s), and perplexity (PPL) to assess both computational efficiency and modeling behavior in the long-sequence regime. Table 13: Long-context results (B=8): SSD latency, end-to-end throughput (tokens/s), and perplexity (PPL). Length Batch FP16 Quamba2 SSDi8 SSD Lat. (ms) Throughput (T/s) PPL SSD Lat. (ms) Throughput (T/s) PPL SSD Lat. (ms) Throughput (T/s) PPL 2k B=8 4.990 10480 9.062 5.313 11850 9.549 4.507 11981 9.470 4k B=8 9.299 10716 13.845 8.998 12333 11.502 7.231 12818 9.021 6k B=8 13.564 10922 113.407 13.363 12648 100.438 10.367 13038 8.943 8k B=8 17.867 11173 444.467 15.932 13079 309.182 12.635 13418 9.040 10k B=8 22.061 11167 1577.003 19.806 13121 1253.093 15.827 13804 9.122 12k B=8 27.058 10887 2650.420 23.531 13079 — 18.168 13743 9.239 14k B=8 30.870 11362 3881.000 27.368 13291 — 21.138 14200 9.360 Across all evaluated sequence lengths, SSDi8 consistently achieves higher throughput and lower SSD latency than both FP16 and Quamba2, with the performance gap widening as the context length increases. At 14k tokens, SSDi8 improves throughput from 11,362 tokens/s (FP16) to 14,200 tokens/s, corresponding to a gain of +2,838 tokens/s (+25.0%). Over the same setting, SSD latency is reduced from 30.870 ms to 21.138 ms, yielding a 9.73 ms reduction (-31.5%). In terms of perplexity, FP16 Mamba-2 exhibits rapid degradation beyond a context length of 4k, with PPL increasing from 13.845 (4k) to 113.407 (6k) and further escalating at longer contexts. Quamba2 shows a similar instability trend. In contrast, SSDi8 maintains stable perplexity across the entire evaluated range (2k–14k), with PPL remaining within a narrow band of 8.94–9.36. These results indicate that SSDi8 preserves numerical stability in the long-context regime while simultaneously improving computational efficiency. The stability of SSDi8 at extended sequence lengths suggests that careful quantization of the SSD path mitigates the long-sequence numerical issues observed in full-precision and prior quantized baselines. Appendix I Calibration Sensitivity Analysis We analyze the sensitivity of SSDi8 to calibration settings. Specifically, we consider both the number of calibration samples and the choice of calibration dataset. First, we report zero-shot performance while varying the calibration sample size from 128 to 2048 under an identical evaluation protocol, in order to examine how the performance changes as the amount of calibration data varies(see Tab. 14). We then compare performance across different calibration datasets, including commonly used corpora such as C4, PTD, and Pile, to study the effect of the calibration data source (Tab. 15). Table 14: Sensitivity to the number of calibration samples. Accuracy (%) on six zero-shot tasks. Calib Size Wino PiQA ARC-C ARC-E Hella Lamb Avg. 128 64.4 75.5 35.1 68.2 65.0 68.0 62.7 256 64.5 75.3 36.4 67.8 64.8 67.0 62.6 512 64.2 75.5 35.8 67.9 65.1 67.7 62.7 1024 64.3 75.7 36.4 67.6 64.8 66.3 62.5 2048 64.8 75.1 36.2 68.1 65.2 67.1 62.7 SSDi8 shows only small variations with respect to both the number of calibration samples and the choice of calibration dataset. When increasing the calibration sample size from 128 to 2048, the average accuracy across six zero-shot tasks remains largely stable, with only minor differences across individual benchmarks. Similarly, changing the calibration dataset leads to comparable performance, and no single calibration corpus consistently results in lower accuracy. Overall, these results suggest that the performance of SSDi8 remains stable across a range of calibration configurations. Table 15: Sensitivity to the choice of calibration dataset. Accuracy (%) on six zero-shot tasks. Calib Data Wino PiQA ARC-C ARC-E Hella Lamb Avg. C4 65.4 75.2 36.1 68.5 65.3 67.7 63.0 PTD 65.1 75.1 36.5 68.6 65.5 67.6 63.0 Pile 64.5 75.3 36.4 67.8 64.8 67.0 62.6 Appendix J Latency breakdown of the entire Mamba-2 block Tab. 16 presents a module-wise latency breakdown of a single Mamba-2 block, decomposing the block into its major computational components: input projection (in-proj), convolution (conv), SSD, normalization (norm), output projection (out-proj), and the correction term. The results are reported for the 55th block of the 2.7B Mamba-2 model under batch sizes 8, 16, and 32, and compare FP16 and SSDi8 under identical experimental settings. This breakdown is intended to quantify where latency reductions are achieved by SSDi8 and to clarify the contribution of each submodule to the overall block latency. Table 16: Latency breakdown (ms) of the Mamba-2 block (2.7B, L=2048L=2048) under different batch sizes. Method Batch In-Proj Conv SSD Norm Out-Proj Correction FP16 B=8 9.829 0.781 4.795 1.196 4.919 – FP16 B=16 20.759 1.357 9.426 1.640 10.272 – FP16 B=32 41.297 2.526 17.640 3.086 20.474 – SSDi8 B=8 8.124 0.587 4.481 1.089 3.266 0.426 SSDi8 B=16 16.758 1.011 7.293 1.442 6.677 0.698 SSDi8 B=32 33.893 1.799 13.199 2.291 12.914 1.252 under FP16 execution, the projection layers constitute the dominant latency bottleneck, followed by the SSD computation, while normalization and other components contribute relatively little. In SSDi8, Hadamard-based activation quantization and GPTQ weight quantization are applied to the projection layers, while the primary optimization focus is placed on the SSD module, which represents the second-largest bottleneck in FP16. Across batch sizes, SSD latency increases approximately linearly, exhibiting a scaling trend similar to that of the projection layers, whereas the remaining submodules remain negligible. We further observe that the output projection reduces the dimensionality of the hidden representation, allowing the mean-correction term introduced by SSDi8 to be applied at minimal cost. As a result, the correction latency remains lower than that of the convolution layer, which is the least expensive FP16 component. Overall, this breakdown illustrates how SSDi8 reduces latency primarily by optimizing the most time-consuming components within a Mamba-2 block, while preserving favorable scaling behavior across batch sizes. Appendix K Batch-Size Sensitivity Analysis To further examine the computational behavior of SSDi8, we evaluate SSD-module latency and throughput across varying batch sizes, ranging from edge-oriented small batches to large-batch cloud-serving scenarios. This analysis allows us to assess how INT8 quantization of the SSD path scales under different levels of computational intensity (see Tab. 17). Table 17: SSD latency and throughput comparison (L = 2048) Batch Size Method Value Latency (ms) Throughput (T/s) 16 FP16 2.757 9918 SSDi8 2.671 10299 32 FP16 4.898 10653 SSDi8 4.510 11976 64 FP16 9.271 10405 SSDi8 7.173 12114 128 FP16 18.003 11222 SSDi8 13.406 13407 256 FP16 35.194 11333 SSDi8 23.730 13798 SSDi8 consistently reduces SSD-module latency and improves throughput across all batch sizes. At batch size 16, SSD latency decreases from 2.757 ms to 2.671 ms (3.1% reduction), while throughput improves by 3.8%. As batch size increases, the performance gap widens. At batch size 128, SSD latency is reduced by 25.5% and throughput increases by 19.5%. In the large-batch regime (256), SSDi8 achieves a 32.6% reduction in SSD latency (35.194 ms → 23.730 ms) and a 21.8% improvement in throughput. These results indicate that the benefits of quantizing ChunkState and ChunkBMM become increasingly pronounced under higher computational intensity. While small-batch settings already show consistent gains, larger batch sizes amplify the arithmetic and memory-efficiency advantages of INT8 execution. Overall, SSDi8 demonstrates favorable scaling behavior across both edge and cloud-serving deployment regimes. Appendix L Distributions of SSD Tensors Visualization of Activations. Figure 7 represents that visualization of B, C, and CBCB by group in the first, middle, and last blocks of the Mamba-2 8B model. As argued in Sec. 4, the distributions differ across groups. CBCB is masked as it is used for computing outdiagout_diag. Figure 7: Visualization of the distributions of activations B, C, and CBCB in in the first, middle, and last block of Mamba-2 8B. Figure 8 shows the visualization of X, LUTstateLUT_state, and XscaledX_scaled in the last block of Mamba-2 8B. The first row illustrates the full sequence length, while the second row depicts its partition into nchunks with the corresponding chunk size. Both LUTstateLUT_state and XscaledX_scaled exhibit exponential growth as the chunksize index increases. Figure 8: Visualization of the distributions of activations X, LUTstateLUT_state, and XscaledX_scaled in the last block of Mamba-2 8B. Appendix M LLM Usage During the manuscript preparation, we used OpenAI’s GPT5 (https://chatgpt.com/), a Large Language Model, to proofread our work. Our interaction with the LLM was iterative and focused exclusively on improving the quality of the writing. We affirm that the LLM served as an assistive tool and did not contribute to core research ideas, experimental design, analysis, and results presented in this paper. The final scientific content and all claims made in this paper are the sole responsibility of the authors.