betaFeedback

WorksComputer Science

Spike-Aware Gradient-Based Mixed-Precision Quantization of Spiking Neural Networks for Vision Applications

Abstract

In recent years, Spiking Neural Networks (SNNs) have gained massive attention as an energy-efficient neural computing paradigm due to their event-driven and sparse computing capability. However, maintaining accuracy under low-precision constraints, necessary for practical deployment, has been largely unexplored for SNN models. In addition, existing Hessian-based approaches for quantization, such as HAWQ-V2, incur significant memory and computational overhead due to temporal unrolling across multiple SNN timesteps. We propose a spike-aware gradient-based mixed-precision quantization framework for SNNs that adaptively assigns bit-widths using first-order gradient information, avoiding costly second-order Hessian computations. We evaluate our method across various SNN-based architectures, including VGG, ResNet, and Vision Transformer models obtained from both ANN-to-SNN conversion and direct training frameworks, on CIFAR10/100, ImageNet, and DVS-CIFAR-10 datasets. Notably, on ResNet-34 evaluated on ImageNet, our method achieves 73.30% accuracy at 4.78×\times compression, which is comparable to that provided by HAWQ-V2, while reducing memory consumption by 2.31×\times and bit-allocation runtime by 100×\times. We also present an energy analysis for mixed-precision SNNs showing that the proposed quantization strategy enables energy-efficient deployment without compromising performance.

Introduction

Spiking Neural Networks or SNNs [10], which are motivated by the computational efficiency of the human brain, have emerged as an energy-efficient alternative to state-of-the-art Artificial Neural Networks (ANNs). Unlike ANNs, which perform dense multiply-accumulate (or MAC) operations on continuous-valued activations, SNNs process information using discrete and binary spikes that a neuron emits only when its membrane potential crosses a firing threshold. Since computations are triggered by spikes, this event-driven behavior makes neural activity sparser in both space and time, allowing the MAC operations in ANNs to be replaced by much cheaper accumulate (AC) operations. Neuromorphic hardware architectures [1, 5, 14, 23] are designed to take advantage of this sparse, event-driven, and spike-based computation, enabling SNNs to realize their energy-efficiency benefits during deployment.

Recent advances in SNN training techniques [4, 22, 24, 25] have enabled them to achieve inference-time accuracy competitive with their ANN counterparts on a range of vision datasets, making them increasingly viable candidates for real-world deployment. However, realizing the practical benefits of SNNs still requires reducing their memory footprints and computational budgets. Methods such as quantization are therefore necessary to realize efficient deployment of SNNs on resource-constrained edge and neuromorphic hardware.

Quantization is an effective technique to reduce the model size and computational cost by using fewer bits to represent parameters and activations [12, 13]. Existing SNN quantization methods primarily use uniform bit-widths across layers [27, 28]. However, it is now well-established that the layers in a neural network differ substantially in their sensitivity to quantization noise [7]. This motivates mixed-precision quantization, where bit-widths are assigned according to individual layer sensitivity.

Among existing methods, HAWQ-V2 [8] estimates such sensitivity using second-order Hessian information with the Hutchinson trace estimator. However, applying this directly to SNNs is computationally expensive because BPTT [29] unrolls the network over time, requiring Hessian-vector products over the temporally expanded graph and increasing both computation and memory with the number of timesteps. Figure 1 compares this cost with our method for ResNet-18 on CIFAR-10, showing rapid increase in HAWQ-V2’s runtime and memory footprint as the number of timesteps grows.

Peak GPU memory consumption and quantization time of ResNet-18 on CIFAR-10 using HAWQ-V2 and the proposed method for ANN and SNN variants

Figure 1. Peak GPU memory consumption and quantization time of ResNet-18, on CIFAR-10, using HAWQ-V2 and the proposed method for both ANN and SNN variants across different timestep configurations, measured on an NVIDIA RTX 4090 GPU.

Contributions. In this work, we propose a spike-aware gradient-based mixed-precision quantization framework for SNNs using first-order gradient information together with spike-driven activity statistics. Our key contributions are as follows.

  1. A spike-aware gradient-based mixed-precision quantization framework. The proposed method adaptively allocates bit-widths using the first-order gradient information and spike activity statistics.

  1. An efficient first-order sensitivity estimation strategy. The proposed method eliminates the expensive second-order Hessian computations required by HAWQ-based methods [7, 8], substantially reducing the computational overhead of bit allocation while maintaining competitive quantization performance (see Figure 1).

  1. Comprehensive benchmarking. We validate the proposed technique on SNN architectures such as VGG-16, ResNet-18/20/34, and vision transformer, obtained using ANN-SNN conversion and direct backpropagation-based training, on static vision (CIFAR-10, CIFAR-100, ImageNet) and neuromorphic datasets.

Related Work and Background

Spiking Neural Networks. SNNs process information over discrete timesteps using spiking neurons that integrate weighted inputs and produce spikes when the membrane potential exceeds a threshold. They are primarily trained using either ANN-SNN conversion [4, 24] or direct training [22, 25]. ANN-SNN conversion first trains an ANN using standard backpropagation and then replaces activation functions with spiking neurons, where ANN activations are approximated using spike rates accumulated over multiple timesteps. Methods such as QCFS [4] and PASCAL [24] reduce conversion error by introducing quantization-aware activations during ANN training. On the other hand, direct training optimizes SNNs directly in the spiking domain using surrogate gradients [22] and Backpropagation Through Time (BPTT) [29], which unrolls the network over all simulation timesteps. Recent methods such as Temporal Efficient Training (TET) [25] further improve optimization by applying supervision at every timestep. Additional details of both training methods are provided in Sec. 1 of the supplementary material.

Quantization of SNNs. Recent works on SNN quantization have made notable progress in reducing both the memory and computational costs. Q-SNN [27] binarizes weights during training using a weight-spike dual regulation objective, while QP-SNN [28] combines uniform fixed-bit post-training quantization with structured pruning. A recent fixed heterogeneous-precision strategy [18] employs a W1/W2 configuration, assigning W1-bit weights to the first layer and W2-bit weights to the remaining layers. While this exploits the different data representations across layers, the precision assignment is fixed by layer position rather than quantization sensitivity.

Mixed-precision quantization instead allocates higher precision to sensitive layers and lower precision to robust ones. Prior works apply the HAWQ framework [7, 8, 19] to SNNs using Hessian-based sensitivity estimation. However, they require expensive second-order computations and manual bit allocation, while not explicitly accounting for spike-driven temporal dynamics. In contrast, our method uses a spike-aware first-order sensitivity metric to automatically determine the layer-wise precision, avoiding Hessian computation while incorporating spiking activity into the bit-allocation process. Hardware-oriented approaches such as QUANTISENC [21] support configurable layer-wise precision for efficient neuromorphic hardware, but primarily focus on hardware realization rather than automatic sensitivity-driven bit allocation.

Methodology

Quantization Formulation

Let W={W1,W2,…,WL}W = \{W_1, W_2, \ldots, W_L\} denote the pretrained SNN weights, where LL denotes the total number of SNN layers. Given a target bit-width blb_l for layer ll, uniform quantization maps floating-point weights to discrete integer levels. For a weight tensor WlW_l, the quantized weights are computed as

Wq,l=sl⋅clip⁡(⌊Wlsl⌉,−qmax⁡,qmax⁡),W_{q,l} = s_l \cdot\operatorname{clip}\left(\left\lfloor\frac{W_l}{s_l} \right\rceil, -q_{\max}, q_{\max}\right),

where sls_l denotes the quantization scale factor and qmax⁡=2bl−1−1q_{\max}=2^{b_l-1}-1. The quantization process introduces a perturbation ΔWl=Wq,l−Wl\Delta W_l=W_{q,l}-W_l, which injects quantization noise during inference.

Quantization Sensitivity Analysis

Let ΔW\Delta W be the weight perturbation introduced as a result of quantization. Based on a second-order approximation of the loss landscape around a convergent solution, the resulting increase in loss can be estimated as

ΔL≈12ΔWTHΔW,\Delta L \approx\frac{1}{2}\Delta W^T H\Delta W,

where H=∇2L(W)H=\nabla^2L(W) is the Hessian matrix. HAWQ-V2 [8] uses Hessian-based curvature to measure layer-wise quantization sensitivity, but incurs additional overhead in temporally unrolled SNNs due to iterative trace estimation.

We propose a first-order gradient metric derived from the Fisher information matrix [20] to obtain a computationally efficient approximation of layer-wise curvature sensitivity. For a model trained using negative log-likelihood,

L(w)=−log⁡p(y∣x;w),L(w)=-\log p(y|x;w),

the Fisher information matrix [2] is defined as

F=E[∇wlog⁡p(y∣x;w)∇wlog⁡p(y∣x;w)T].F=\mathbb{E}\left[\nabla_w\log p(y|x;w)\nabla_w\log p(y|x;w)^T\right].

Under standard regularity conditions for a correctly specified likelihood model, the expected Fisher information coincides with expected Hessian of negative log-likelihood [2, 20]. However, empirical Fisher need not coincide with exact Hessian in practical optimizations [16], particularly in surrogate-gradient-trained SNNs. We therefore use the empirical Fisher as a computationally efficient proxy for curvature sensitivity rather than assuming an exact Hessian reconstruction, which is specified as

Fii≈E[gi2],where gi=∂L∂wi.F_{ii}\approx\mathbb{E}\left[g_i^2\right],\quad\text{where }g_i=\frac{\partial L}{\partial w_i}.

The expectation is estimated over calibration samples. Using the diagonal approximation, the quantization-induced loss increase becomes

ΔL=12∑iHii(Δwi)2.\Delta L=\frac{1}{2}\sum_i H_{ii}(\Delta w_i)^2.

Fisher-Hessian relation in SNNs. Since Fisher and Hessian are not expected to coincide exactly under surrogate-gradient training, we empirically decompose their relationship within each layer as

Hii=αlFii+Ri,H_{ii}=\alpha_lF_{ii}+R_i,

where ll denotes the layer index, and ii denotes the parameter index within layer ll. Here, HiiH_{ii} and FiiF_{ii} are the diagonal Hessian and Fisher entries corresponding to parameter ii,

Ri denotes their discrepancy, and αl\alpha_l is a layer-wise scaling factor. This formulation does not assume H=FH=F, instead, it allows Fisher and Hessian to differ both in scale and in their residual curvature structure. Substituting this into the second-order loss gives

ΔL≈12∑i(αlFii+Ri)(Δwi)2.\Delta L\approx\frac{1}{2}\sum_i(\alpha_lF_{ii}+R_i)(\Delta w_i)^2.

Decomposing the above equation further gives

ΔL≈αl2∑iFii(Δwi)2+12∑iRi(Δwi)2.\Delta L\approx\frac{\alpha_l}{2}\sum_iF_{ii}(\Delta w_i)^2+\frac{1}{2}\sum_iR_i(\Delta w_i)^2.

The first-term is the Fisher-captured sensitivity metric and the second-term is the residual curvature. Importantly, this decomposition is used only to analyze the relation between Fisher and Hessian, and neither HH, αl\alpha_l, nor RR is required by the proposed quantization procedure. In the proposed method, the first term is used as a computationally efficient sensitivity proxy, which can be obtained entirely from first-order gradients. The residual term therefore characterizes the curvature component not captured by the Fisher approximation rather than introducing an additional computational requirement. Additional details are provided in Sec. 5 of the supplementary material.

Gradient-Based Mixed-Precision Metric

Based on the above formulation, we define the layer-wise quantization sensitivity metric as the Fisher-weighted quantization perturbation energy, which is given by

Ωl=∑igl,i2(Δwl,i)2.\Omega_l=\sum_i g_{l,i}^2(\Delta w_{l,i})^2.

where gl,ig_{l,i} denotes the gradient corresponding to the ii-thth parameter of layer ll, and Δwl,i=wq,l,i−wl,i\Delta w_{l,i}=w_{q,l,i}-w_{l,i} represents the quantization perturbation introduced by low-bit quantization. The proposed formulation jointly captures parameter sensitivity through squared gradients and quantization distortion through perturbation magnitude. To avoid bias towards layers with large gradient magnitudes, the sensitivity score is normalized as

Sl=∑igl,i2(Δwl,i)2∑igl,i2+ϵ.S_l=\frac{\sum_i g_{l,i}^2(\Delta w_{l,i})^2}{\sum_i g_{l,i}^2+\epsilon}.

The normalization term eliminates scale dependence across layers and enables a fair comparison of quantization sensitivity.

Threshold Margin-Aware Bit Allocation

Although our gradient-based sensitivity metric captures the effect of quantization on the optimization landscape, it does not explicitly account for the temporal dynamics unique to SNNs. To incorporate the spiking neuronal dynamics into the bit allocation procedure, we estimate a layerwise membrane threshold margin during the calibration forward pass. For every neuron, the membrane threshold margin is defined as the normalized distance between its membrane potential and the firing threshold, as specified by

dj,t=∣Vth−Vj,t∣Vth,d_{j,t} = \frac{|V_{th} - V_{j,t}|}{V_{th}},

where Vj,tV_{j,t} is the membrane potential and VthV_{th} is the neuronal firing threshold. The threshold margin is accumulated over all neurons and simulation timesteps to obtain a layer-wise estimate, formulated as

ml=1NT∑t=1T∑j=1Ndj,t.m_l = \frac{1}{NT}\sum_{t=1}^{T}\sum_{j=1}^{N}d_{j,t}.

The resulting layer-wise margins are normalized to the interval [0,1][0,1], enabling consistent comparison across layers. A smaller threshold margin indicates that the membrane potential is closer to the neuronal firing threshold; such neurons are more susceptible to quantization-induced perturbations since small weight changes could alter spike generation. These layers are treated more conservatively during bit allocation.

Mixed-Precision Bit Allocation

Given the layer-wise sensitivity scores computed as detailed in § 3.3, we formulate the mixed-precision allocation as a constrained optimization problem: minimize the total sensitivity cost across all layers subject to a global bit budget. Formally, let blb_l denote the bit-width assigned to layer ll, nln_l be the number of quantizable parameters in layer ll, BB the total bit budget, and C\mathcal{C} the set of candidate bit-widths. The optimization objective can be formally described by

min⁡{bl}∑l=1LSl(bl)subject to∑l=1Lnlbl≤B,bl∈C,\min_{\{b_l\}}\sum_{l=1}^{L}S_l(b_l)\quad\text{subject to}\quad\sum_{l=1}^{L}n_l b_l \le B,\quad b_l\in\mathcal{C},

where Sl(bl)S_l(b_l) is the sensitivity score of layer ll quantized to blb_l bits. Layers with high sensitivity scores are assigned larger bit-widths, while robust layers are quantized more aggressively to reduce memory. The budget BB is a single global constraint; the network as a whole must not exceed the prescribed bit-budget, but individual layers are free to use different precisions as long as the aggregate satisfies the constraint. Solving this combinatorial problem exactly is intractable for deep networks, so we adopt a greedy bit-width reduction algorithm that is summarized in Algorithm 1 and detailed below.

We begin by computing the layer-wise gradients glg_l and normalized threshold margin mlm_l using a calibration set. We define a protection factor

Pl=1+β(1−ml),P_l = 1 + \beta(1-m_l),

where β\beta controls the influence of the threshold margin. The protection factor increases the cost of reducing the precision of more vulnerable layers, i.e., layers operating closer to the spiking threshold that are more susceptible to quantization-induced perturbations, as explained in § 3.4. We initialize all layers at the maximum candidate precision. At each iteration, we consider reducing the bit-width of every layer to the subsequent lower candidate precision. For each layer, we compute the increase in sensitivity that would result from this reduction and adjust it using the threshold-margin protection factor (ΔSlPl)(\Delta S_lP_l). We then divide this value by the number of bits it saves, nlΔbn_l\Delta b; here, Δb\Delta b is the bit-width step size for the selected transition (e.g., Δb=4\Delta b=4 for 8→48\rightarrow4 bits) and nlΔbn_l\Delta b is the number of bits freed by that reduction. The resulting ratio ΔSlPlnlΔb\frac{\Delta S_lP_l}{n_l\Delta b} represents the effective sensitivity increase per bit saved, enabling a fair comparison across layers. The layer with the smallest value is selected, its bit-width is reduced, and the process is repeated until the target average bit-width is reached, as described by

l∗=arg⁡min⁡l ΔSlPlnlΔb,ΔSl=Sl(bl−Δb)−Sl(bl)l^*=\underset{l}{\arg\min}\ \frac{\Delta S_lP_l}{n_l\Delta b},\qquad\Delta S_l=S_l(b_l-\Delta b)-S_l(b_l)

The bit-width of the selected layer is reduced by Δb\Delta b, and this process is repeated until the target average bit-width BB is reached. Since all sensitivity scores are computed once using a single backward pass (see Algorithm 1), the greedy search requires only lightweight score-based comparisons, without any additional gradient evaluations.

Experiments and Results

We evaluate the proposed framework on VGG, ResNet, and ViT-based SNNs using ANN-to-SNN conversion (QCFS [4], PASCAL [24]) and direct training (TET [25]) across CIFAR-10/100 [15], ImageNet [6], and CIFAR10-DVS [17]. For ViT conversions, we use SpikeZip-TF [31] with a ViT-Small backbone. All results reported in this section, unless otherwise noted, use post-training quantization directly on SNNs. For all experiments we used a calibration size of 20, β=0.7\beta=0.7 and Seed as 42.

Compression Results on SNNs

Conversion-based SNNs. Table 1 compares our method with HAWQ-V2 across QCFS, PASCAL, and SpikeZip-TF. Our method achieves comparable or better accuracy while maintaining nearly identical bit-widths and compression ratios. On CIFAR-10, it improves SpikeZip-TF by 0.92% (94.52% vs 93.60%), while remaining competitive on CIFAR-100. On ImageNet, it slightly outperforms HAWQ-V2 for ResNet34 (73.30% vs 73.14%) at same 6.70 bit precision and 4.78× compression.

Directly trained SNNs. Table 2 presents experimental results for SNNs trained using TET. The proposed method consistently produces accuracy comparable to HAWQ-V2, Algorithm 1 Gradient-Based Mixed-Precision Bit Allocation

Require: Pretrained network WW, calibration set D\mathcal{D}, candidate bit-widths B\mathcal{B}, target bit-width BtargetB_{\mathrm{target}}

Ensure: Layer-wise bit allocations {bl}l=1L\{b_l\}_{l=1}^{L}

  1. Compute layer-wise gradients {gl}\{g_l\} using D\mathcal{D}

  2. Compute normalized threshold margins mlm_l using D\mathcal{D}

  3. Compute protection factors Pl=1+β(1−ml)P_l = 1 + \beta(1 - m_l)

  4. Initialize all layers with maximum candidate precision

  5. for each layer ll do

  6. for each candidate bit-width b∈Bb \in\mathcal{B} do

  7. Quantize weights: Wq,l(b)←Q(Wl,b)W_{q,l}^{(b)} \leftarrow Q(W_l, b)

  8. Compute perturbation: ΔWl(b)=Wq,l(b)−Wl\Delta W_l^{(b)} = W_{q,l}^{(b)} - W_l

  9. Compute perturbation energy: Ωl(b)=∑igl,i2(Δwl,i(b))2\Omega_l^{(b)} = \sum_i g_{l,i}^{2}(\Delta w_{l,i}^{(b)})^2

  10. Compute normalized sensitivity: Sl(b)=Ωl(b)/(∑igl,i2+ϵ)S_l^{(b)} = \Omega_l^{(b)} / (\sum_i g_{l,i}^{2} + \epsilon)

  11. end for

  12. end for

  13. while Average bit-width >Btarget> B_{\mathrm{target}} do

  14. for each layer ll do

  15. Compute protected sensitivity increase ΔSlnlΔbPl\frac{\Delta S_l}{n_l \Delta b}P_l

  16. end for

  17. Select the layer with minimum normalized sensitivity score

  18. Reduce the selected layer to the next lower candidate bit-width

  19. end while

  20. return {bl}l=1L\{b_l\}_{l=1}^{L}

across datasets, while achieving similar average weight precision. In particular, our method improves top-1 accuracy for ResNet-18 and ResNet-20 on CIFAR-100 by 0.22% and 1.23%, respectively, while achieving comparable compression ratios. The proposed method also maintains competitive accuracy on the large-scale ImageNet and neuromorphic CIFAR10-DVS datasets using only first-order gradient information for sensitivity estimation.

Comparison with related works. Table 3 compares our proposed mixed-precision method with the heterogeneous W1/W2 scheme [18] and HAWQ [19]. The prior W1/W2 method uses 2-bit precision for the first layer and 8-bit for the remaining layers, whereas our method selects 2/4/8-bit widths based on layer-wise quantization sensitivity. We report one configuration on N-MNIST against HAWQ [19] and, on CIFAR-10 with VGG-16, improve the compression ratio from 4× to 13.02×, while achieving higher accuracy.

DatasetArchitectureMethodW-bitsW-ratioAcc (%)
CIFAR-10VGG-16Two-level2/84×91.55
Ours2.4613.02×91.88
CIFAR-100ResNet-19Two-level2/84×72.23
Ours2.8911.07×72.00
N-MNIST3-layer CNNHessian5.335.97×93.6
Ours4.027.96×93.5

Table 3. Comparison of our quantization method extended to perform 2/4/8-bit mixed precision with the heterogeneous two-level precision scheme (W1/W2W1/W2) proposed in [18] and HAWQ [19].

Accuracy vs. Compression Trade-off. As illustrated in Figure 2, our method achieves accuracy-compression trade-off comparable to that provided by HAWQ-V2 [8] across all average bit-width configurations on ResNet-18 trained

Accuracy versus compression ratio

Figure 2. Post-training quantization compression ratio achieved by HAWQ-V2 [8] and the proposed method on ResNet-18 trained on CIFAR-10 using a 4/8-bit mixed-precision configuration.

DatasetArchitectureFrameworkMethodW-bitsTW-ratioAcc. (%)
CIFAR-10VGG-16QCFS-SNNFull Prec.32161.00×95.74
CIFAR-10VGG-16QCFS-SNNHAWQ-V24.25167.54×95.59
CIFAR-10VGG-16QCFS-SNNOurs4.21167.60×95.64
CIFAR-10VGG-16PASCALFull Prec.3281.00×95.58
CIFAR-10VGG-16PASCALHAWQ-V24.0187.99×95.19
CIFAR-10VGG-16PASCALOurs4.0187.99×95.01
CIFAR-10ResNet-18QCFS-SNNFull Prec.32161.00×94.34
CIFAR-10ResNet-18QCFS-SNNHAWQ-V24.19167.63×93.99
CIFAR-10ResNet-18QCFS-SNNOurs4.15167.71×94.01
CIFAR-10ResNet-18PASCALFull Prec.3281.00×96.50
CIFAR-10ResNet-18PASCALHAWQ-V24.0087.99×96.20
CIFAR-10ResNet-18PASCALOurs4.0187.97×96.27
CIFAR-10SpikeZip-TFANN-SNNFull Prec.32641.00×96.60
CIFAR-10SpikeZip-TFANN-SNNHAWQ-V24.47647.16×93.60
CIFAR-10SpikeZip-TFANN-SNNOurs4.49647.12×94.52
CIFAR-100VGG-16QCFS-SNNFull Prec.32161.00×71.67
CIFAR-100VGG-16QCFS-SNNHAWQ-V24.46167.17×71.39
CIFAR-100VGG-16QCFS-SNNOurs4.39167.29×71.43
CIFAR-100VGG-16PASCALFull Prec.3281.00×77.15
CIFAR-100VGG-16PASCALHAWQ-V24.2887.48×75.55
CIFAR-100VGG-16PASCALOurs4.3087.45×73.57
CIFAR-100ResNet-18QCFS-SNNFull Prec.32161.00×65.74
CIFAR-100ResNet-18QCFS-SNNHAWQ-V24.20167.63×65.51
CIFAR-100ResNet-18QCFS-SNNOurs4.22167.58×65.55
CIFAR-100ResNet-18PASCALFull Prec.3281.00×78.15
CIFAR-100ResNet-18PASCALHAWQ-V24.0287.96×77.01
CIFAR-100ResNet-18PASCALOurs4.0287.96×77.01
ImageNetResNet-34PASCALFull Prec.3281.00×74.29
ImageNetResNet-34PASCALHAWQ-V26.7084.78×73.14
ImageNetResNet-34PASCALOurs6.7084.78×73.30

Table 1. Comparison of mixed-precision quantization methods on converted SNNs using QCFS [4] and PASCAL [24]. Results are reported for 4/8-bit layer-wise mixed-precision quantization. W-bits and W-ratio represent the average bit-width and compression ratio, respectively.

on CIFAR-10. At aggressive compression ratios (7.6–7.7×, corresponding to ~4.1-bit average precision), both methods incur a modest accuracy drop to approximately 94.0%, recovering to 94.2% as the average bit-width increases beyond 5.5 bits. Overall, the two curves remain within 0.05% of each other for the entire bit-width range, confirming that first-order gradient sensitivity serves as effective and computationally cheaper alternative for Hessian-based quantization sensitivity in SNNs.

Computation and Efficiency

Figure 3 illustrates that the proposed method is significantly more memory- and time-efficient than HAWQ-V2 during bit allocation. The higher cost of HAWQ-V2 arises from repeated Hutchinson trace estimation for Hessian approximation, which is further amplified by temporal unrolling in SNNs. By relying on a single first-order backward pass to estimate layer sensitivities, the proposed method eliminates this overhead, resulting in substantially lower memory consumption and runtime. Specifically, on ResNet-34 trained on the ImageNet dataset, the proposed method reduces peak GPU memory from 26.1 GB to 11.3 GB (i.e. 56.9% reduction) and decreases bit-allocation time from 22 min 23.5 s to 13.38 s, achieving an approximately 100× speedup over HAWQ-V2.

Quantization time and peak GPU memory

Figure 3. GPU memory needed (MB) and total quantization time taken by HAWQ-V2 vs. our method to quantize ResNet-34 SNN on the ImageNet dataset, measured on ADA6000 GPU.

DatasetArchitectureMethodW-bitsW-ratioAcc (%)
CIFAR-10VGG-16Full Prec.321.00×92.00
HAWQ-V24.157.71×91.92
Ours4.077.87×91.89
ResNet-18Full Prec.321.00×93.83
HAWQ-V24.107.81×93.74
Ours4.097.82×93.81
ResNet-20Full Prec.321.00×93.20
HAWQ-V24.097.82×93.02
Ours4.097.82×93.14
CIFAR-100VGG-16Full Prec.321.00×67.90
HAWQ-V24.477.15×67.83
Ours4.357.36×67.69
ResNet-18Full Prec.321.00×72.19
HAWQ-V24.457.19×71.56
Ours4.417.26×71.78
ResNet-20Full Prec.321.00×73.12
HAWQ-V24.107.80×71.59
Ours4.167.68×72.82
ImageNetResNet-34Full Prec.321.00×66.70
HAWQ-V24.896.55×65.20
Ours4.866.59×65.09
CIFAR10-DVSVGGSNNFull Prec.321.00×78.27
HAWQ-V24.187.66×78.26
Ours4.187.66×78.26

Table 1 (PDF p. 6).

Table 2. Comparison of mixed precision quantization methods on SNNs directly trained using TET [25] for T=6T=6 timesteps. We use 4/8-bit layer-wise mixed-precision quantization. W-bits and W-ratio indicate the average bit-width and compression ratio, respectively.

Sensitivity and Bit Allocation Analysis

Figures 4 and 5 compare the layer ranking and the resulting 4/8-bit assignment of HAWQ-V2 and the our method for ResNet-18. Although the rankings differ for some intermediate layers due to the use of Hessian versus gradient-based sensitivity, the resulting bit allocations are highly consistent, with only two layers receiving different precisions. This demonstrates that our first-order sensitivity can achieve a comparable mixed-precision configuration without the computational overhead of Hessian estimation. Additional analysis is provided in the supplementary material.

Post-Quantization Fine-Tuning Analysis

Although the proposed framework is primarily designed for post-training quantization (PTQ), it can be extended to perform post-quantization fine-tuning similar to HAWQ-V2. As shown in Table 4, the proposed bit allocation remains effective under aggressive 2/4/8-bit mixed-precision quantization, achieving over 12× compression while maintaining accuracy close to full-precision models.

DatasetArchitectureMethodW-bitsW-ratioAcc (%)
CIFAR-10VGG-16Full Prec.321.00×92.00
Ours2.4613.02×91.88
ResNet-18Full Prec.321.00×93.83
Ours2.5212.68×93.39
CIFAR-100VGG-16Full Prec.321.00×67.90
Ours2.4712.98×66.41
ResNet-18Full Prec.321.00×72.19
Ours2.4313.19×71.03
ImageNetResNet-34Full Prec.321.00×66.70
Ours2.5812.37×64.12

Table 4. Comparison of our method extended to perform 2/4/8-bit mixed-precision quantization, on SNNs trained using TET [25] for T=6T=6 timesteps, versus full-precision baselines. W-bits and W-ratio indicate the average weight precision and compression ratio, respectively.

Ablation Study

We conduct ablation studies to evaluate three aspects of the proposed framework: (i) its applicability to conventional ANN models, (ii) the contribution of threshold-margin information to mixed-precision bit allocation, and (iii) its robustness across different surrogate gradient functions.

Generalization to ANN Models

Although the proposed framework is motivated by efficient SNN quantization, its gradient-based sensitivity metric is applicable to standard ANNs. Table 5 compares our method with HAWQ-V2 on CIFAR-10 and ImageNet. Since ANNs do not exhibit spike dynamics, only the first-order gradientbased sensitivity metric (without threshold-margin information) is used. Using candidate bit-widths of {1,2,4,8}\{1,2,4,8\}, the proposed method achieves higher compression ratios and better accuracy than HAWQ-V2. On CIFAR-10 and ImageNet, the proposed method improves the compression ratio by 7.6% and 13.0%, respectively, while increasing top-1 accuracy by 0.39% and 0.43%, respectively, over HAWQ-V2. These results indicate that the proposed first-order sensitivity metric remains effective beyond SNNs.

DatasetArchTypeMethodW-bitsW-ratioAcc (%)
CIFAR-10ResNet20ANNFull Prec.321.00×92.90
HAWQ-V22MP2_{MP}13.11×92.22
Ours2.2714.11×92.61
ImageNetInception-V3ANNFull Prec.321.00×77.45
HAWQ-V22MP2_{MP}12.04×75.68
Ours2.3513.61×76.11

Table 5. Comparison of our method on ANNs with HAWQ-V2 whose results are taken from [8]. Our method uses candidate bit-widths of 1, 2, 4, 8. For HAWQ-V2, the reported “W-bits” correspond to the minimum candidate bit-width, whereas for our method, “W-bits” indicate the average allocated weight precision.

Sensitivity-wise layer ranking of ResNet34 SNN trained on ImageNet

Figure 4. Sensitivity-wise layer ranking of ResNet34 SNN trained on ImageNet and quantized using HAWQ-V2 [8] vs. our method. Note that c1 denotes the initial conv layer, while labels of the form cX.x.B.rf/sc.K denote the K-th convolution in the residual (rf) or shortcut (sc) branch of the B-th residual block in the convX-x stage.

Layer-wise mixed precision bit allocation of HAWQ-V2 versus our method

Figure 5. Layer-wise mixed precision bit allocation of HAWQ-V2 [8] versus our method for ResNet-34 SNN on ImageNet. Note that c1 denotes the initial conv layer, while labels of the form cX.x.B.rf/sc.K denote the K-th convolution in the residual (rf) or shortcut (sc) branch of the B-th residual block in the convX-x stage.

Effect of Threshold Margin

Table 6 evaluates the contribution of threshold-margin information to the proposed sensitivity metric. Compared

DatasetArchitectureGrad W-bitsGrad W-ratioGrad Acc (%)Grad + Threshold Margin W-bitsGrad + Threshold Margin W-ratioGrad + Threshold Margin Acc (%)
CIFAR-10ResNet-182.7211.73×93.722.7611.56×94.24
VGG-162.7411.64×95.552.7411.64×95.61
2.4912.83×95.462.4613.01×95.49
CIFAR-100ResNet-183.638.81×64.243.728.60×64.71
3.568.98×64.243.598.89×64.6
VGG-162.9910.72×70.762.9610.78×70.85
2.6412.11×70.222.6512.09×70.54
2.4413.07×57.282.4812.89×69.94

Table 6. Ablation to study the impact of threshold-margin information in the proposed sensitivity metric. Results employ candidate bit-widths of {1,2,…,8}\{1, 2, \ldots, 8\} in the QCFS framework (T=16T = 16).

with gradients alone, integrating threshold-margin information consistently improves quantized accuracy, with a particularly large gain for CIFAR-100 (VGG-16) from 57.28% to 69.94% at approximately 2.5 bits. These experiments use β=0.7\beta=0.7 and candidate bit-widths of {1,2,…,8}\{1,2,\ldots,8\}, allowing the bit-allocation algorithm to exploit a wider range of precision levels. Further analysis of the effect of β\beta is provided in the supplementary material.

Robustness across Surrogate Gradients

Since gradients in SNNs depend on surrogate function, we evaluate the proposed framework using five commonly used surrogate gradients while keeping the trained model and quantization settings fixed. As shown in Figure 6, the proposed method achieves nearly identical quantized accuracy across all surrogate functions. Moreover, Figure 7 shows that the resulting layer sensitivity rankings are highly consistent, with pairwise Spearman coefficients [26] exceeding 0.99. Thus, although surrogate functions may change the absolute sensitivity values, they preserve the relative ordering of layers, leading to consistent bit-allocation decisions. Additional analysis are provided in supplementary materials.

Accuracy of ResNet-18 on CIFAR-10 dataset using different surrogate gradients

Figure 6. Accuracy of ResNet-18 on CIFAR-10 dataset using different surrogate gradients

Spearman ρ — Layer Ranking Correlation (ranks of sensitivity scores)

Figure 7. Pairwise Spearman rank correlation [26] between layer sensitivity rankings obtained using different surrogate gradient functions. High correlation indicates that the proposed sensitivity metric produces nearly identical layer orderings across surrogate gradient functions.

Hardware Efficiency: ANN vs. SNN

We simulate VGG-16 and ResNet-18 on SparTen [11], an ANN hardware accelerator, against LoAS [30], an SNN hardware accelerator. Both accelerators use the same dual-sparse processing element (PE) pipeline and operate at 560 MHz. Figure 8 illustrates per-inference energy at T∈{4,8,16}T \in\{4, 8, 16\}. The SNN baseline consumes 2.6–2.7× less energy than the ANN baseline at T=16T=16, rising to 4.3–4.5× at T=4T=4, driven by both lower per-PE power and higher combined sparsity at smaller timesteps. Both HAWQ-V2 and our method yield mixed-precision SNNs that provide comparable energy efficiency. Within the SNN baseline itself, we further compare mixed-precision (4/8-bit) weights against uniform 8-bit weights at T∈{4,8,16}T \in\{4, 8, 16\}, as shown in Figure 9. Mixed-precision weights consistently reduce SNN energy by 19–25% over uniform 8-bit execution across all TT, for both architectures, since the lower average bit-width directly reduces per-PE dynamic power.

ANN vs SNN Energy per Inference — Ours vs HAWQ-v2

Figure 8. Per-inference energy: SparTen-style ANN baseline vs. LoAS-style SNN baseline for ResNet-18 and VGG-16.

SNN Energy: Mixed-Precision vs. Uniform 8-bit

Figure 9. Energy incurred by ResNet-18 SNN and VGG-16 SNN per-inference for mixed-precision versus uniform 8-bit weights.

Conclusion

In this work, we proposed a gradient-based mixed-precision quantization framework for SNNs that avoids costly Hessian-based sensitivity estimation through an efficient first-order, spike-aware formulation. By incorporating membrane threshold information into bit allocation, our method captures SNN-specific temporal dynamics while requiring only a single backward pass, achieving competitive accuracy with reduced computational and memory costs for resource-constrained neuromorphic deployment.

Supplementary Material

SNN Training Paradigms

SNNs process information through discrete spiking events over multiple timesteps. At each timestep t=1,…,Tt = 1,\ldots,T, a spiking neuron integrates incoming weighted spikes into its membrane potential. When the membrane potential exceeds a predefined firing threshold VthV_{th}, the neuron emits a binary spike and updates its internal state. The event-driven computation leads to sparse neural activity and enables energy-efficient inference on neuromorphic hardware.

Since SNNs produce outputs over multiple timesteps, the final prediction is typically obtained by aggregating the output spike across the entire simulation window. A commonly used decoding strategy is rate encoding, where the predicted class is computed as

y^=arg⁡max⁡c(1T∑t=1TOc(t)),\hat{y} = \arg\max_{c} \left(\frac{1}{T}\sum_{t=1}^{T} O_c(t)\right),

where Oc(t)O_c(t) denotes the output spike activity corresponding to class cc at timestep tt. Broadly, SNNs can be trained using two different paradigms: direct training, which optimizes the network using surrogate gradients to overcome the non-differentiability of spike functions, and ANN-to-SNN conversion, which converts a pre-trained ANN into an equivalent SNN while preserving its predictive performance.

Direct Training of SNN using TET [25]. Temporal Efficient Training improves the optimization of directly trained SNNs by applying supervision across all timesteps rather than only at the final timestep. Instead of computing the loss solely from the final output, TET computes the average temporal loss over the entire spike sequence:

LTET=1T∑t=1TLCE(O(t),y),\mathcal{L}_{TET} = \frac{1}{T}\sum_{t=1}^{T}\mathcal{L}_{CE}(O(t),y),

which prevents gradient collapse in early timestep and significantly improves accuracy over standard rate-coded training. However, the aggregation of surrogate gradients across time introduces new sensitivity patterns that affect adversarial bit-level saliency, as shown in our experiments.

ANN-to-SNN Conversion using QCFS [4]. QCFS is an ANN-to-SNN conversion framework designed to achieve accurate and low-latency spiking inference. Instead of using the ReLU activation during ANN training, it uses the Quantization Clip Floor-Shift (QCFS) activation function. This activation constrains the network output to discrete levels that closely resemble the spike rates produced by SNNs, thereby reducing the mismatch between ANN activations and SNN firing behavior. During conversion, the trained ANN is transformed into an equivalent SNN by replacing the quantized activations with spiking neurons while preserving the learned thresholds and scaling factors. As a result, the converted SNN achieves high accuracy using fewer simulation timesteps, making QCFS an efficient ANN-to-SNN conversion framework.

Transformer-based SNN. To demonstrate the generality of the proposed mixed-precision quantization framework, we evaluate our method on spike-based Vision Transformer (ViT) models using the SpikeZIP-TF [31] ANN-to-SNN conversion framework. Unlike convolutional networks, Vision Transformers rely on self-attention, softmax, and layer normalization operations, which are not directly compatible with spike-based computation.

SpikeZIP-TF addresses this issue by first quantizing a pretrained Vision Transformer through quantization-aware training. During conversion, ANN activation is replaced by a spiking neuron called ST-BiF. SpikeZIP-TF proposes Spike-Equivalent Self-Attention (SESA), Spike-Softmax and Spike-LayerNorm, which preserve the functionality of the corresponding Transformer modules in the spiking domain. These operators enable the converted SNN to closely mimic the behavior of the quantized Vision Transformer models, while maintaining high classification accuracy with relatively fewer simulation timesteps.

Theoretical Justification of the First-Order Sensitivity Metric

Hessian-based methods estimate parameter sensitivity using the curvature of the loss landscape. For a model with parameters ww, the Hessian matrix is defined as

H=∇w2L(w),H = \nabla_w^2 L(w),

where L(w)L(w) denotes the training loss. The Hessian captures the local curvature. Computing Hessian is expensive, particularly for temporally unrolled spiking neural networks. We instead utilize first-order gradient statistics derived from the Fisher information matrix [2, 20], which measures the sensitivity of the model output distribution with respect to parameter perturbations.

Consider a probabilistic model that predicts a conditional distribution:

p(y∣x;w),p(y|x;w),

where ww are the parameters of this model, xx are the input data, and yy are the model predictions. Under the negative log-likelihood training, the loss is defined as:

L(w)=−log⁡p(y∣x;w).L(w) = -\log p(y|x;w).

To measure how sensitive the output distribution is to parameter changes, we compute the gradient of the log-likelihood with respect to the parameters:

s(w)=∇wlog⁡p(y∣x;w)s(w) = \nabla_w \log p(y|x;w)

Here, s(w)s(w) is known as the score function. While the score function measures the sensitivity of the model distribution for an individual sample, quantization sensitivity should capture the expected parameter sensitivity over the entire data distribution. Therefore, we consider the expected covariance of the score function, leading to the Fisher information matrix [2, 20]:

F=E[s(w)s(w)T].F = \mathbb{E}[s(w)s(w)^T].

The Fisher information matrix [2, 20] measures the expected sensitivity of the model distribution over the data distribution. Parameters associated with larger Fisher values produce greater changes in the network predictions under small perturbations, indicating higher importance and quantization sensitivity, thus Fisher captures parameter importance. Since the training objective is defined using negative log-likelihood, the gradient of the loss with respect to the parameters can be written as

g=∇wL(w)=−∇wlog⁡p(y∣x;w).g = \nabla_w L(w) = -\nabla_w \log p(y|x;w).

Using the definition of the score function,

s(w)=∇wlog⁡p(y∣x;w),s(w) = \nabla_w \log p(y|x;w),

we obtain

g=−s(w).g = -s(w).

Now, substituting this into the Fisher information matrix [20] gives

F=E[ggT].F = \mathbb{E}[gg^T].

The diagonal entries of the Fisher matrix satisfy

Fii=E[gi2],F_{ii} = \mathbb{E}[g_i^2],

where gig_i denotes the gradient corresponding to parameter wiw_i, formulated as

gi=∂L∂wi.g_i = \frac{\partial L}{\partial w_i}.

Parameters with larger squared gradients produce larger changes in the loss under perturbations and are therefore more sensitive to quantization. Since

L(w)=−log⁡p(y∣x;w),L(w) = -\log p(y|x;w),

the Hessian of the loss is

H=∇w2L(w)=−∇w2log⁡p(y∣x;w).H = \nabla_w^2 L(w) = -\nabla_w^2 \log p(y|x;w).

Under negative log-likelihood objectives, the curvatures of the loss can be related to the statistical properties of the underlying probability distribution. The relationship can be derived from the normalized property of probability distributions, described by

∫p(y∣x;w)dy=1.\int p(y|x;w)dy = 1.

Differentiating the normalization condition with respect to the model parameters gives

∇w∫p(y∣x;w)dy=0,\nabla_w \int p(y|x;w)dy = 0,
∫∇wp(y∣x;w)=0.\int\nabla_w p(y|x;w) = 0.

Using the identity [3]:

∇wp(y∣x;w)=p(y∣x;w)∇wlog⁡p(y∣x;w),\nabla_w p(y|x;w) = p(y|x;w)\nabla_w \log p(y|x;w),

the above expression becomes

∫p(y∣x;w)∇wlog⁡p(y∣x;w)dy=0.\int p(y|x;w)\nabla_w \log p(y|x;w)dy = 0.

Therefore,

E[s(w)]=0.\mathbb{E}[s(w)] = 0.

The above expression is known as the score-function identity, which states that the expected score over the data distribution is zero. Now, differentiating once again with respect to the model parameters and rearranging yields

−E[∇ws(w)]=E[s(w)s(w)T].-\mathbb{E}[\nabla_w s(w)] = \mathbb{E}[s(w)s(w)^T].

The right-hand side corresponds to the Fisher Information matrix, while the left-hand side represents the expected Hessian curvature of the negative log-likelihood objective [2, 20]. Therefore,

F=E[H].F = \mathbb{E}[H].

For models trained near local optima, the empirical Hessian closely approximates its expectation over the data distribution, yielding

F≈H;F \approx H;
gi2=Hii,g_i^2 = H_{ii},

allowing the second-order loss perturbation to be efficiently approximated using squared gradients, formulated as

ΔL≈12∑igi2(Δwi)2.\Delta L \approx\frac{1}{2}\sum_i g_i^2(\Delta w_i)^2.

Additional Experiments and Comparison with QP-SNN

Table S1 compares our mixed-precision framework with the uniform quantization and pruning strategy adopted by QP-SNN [28]. At comparable compression levels, our proposed method consistently achieves higher accuracy across all evaluated datasets. Notably on ImageNet, the proposed method achieves 65.09% compared to 61.36% and 58.05% for the 8-bit and 4-bit QP-SNN models, respectively. These gains highlight the effectiveness of mixed-precision over uniform-bit allocation.

DatasetArchitectureMethodW-bitsW-ratioAcc (%)
CIFAR-10VGG-16QP-SNN84×91.98
QP-SNN48×91.90
Ours4.077.87×91.89
CIFAR-100VGG-16QP-SNN84×66.69
QP-SNN48×66.21
Ours4.357.36×67.69
ImageNetResNet-34QP-SNN84×61.36
QP-SNN48×58.06
Ours4.866.59×65.09

Table S1. Comparison of our mixed-precision quantization method with QP-SNN that uses uniform 8-bit and 4-bit quantization.

Computational Overhead of Sensitivity Estimation

Let LL denote the number of quantizable layers, N=∑lnlN = \sum_l n_l the total number of parameters, KK the number of candidate bit-widths, CC the number of calibration batches, rr the number of Hutchinson probes, and QQ the number of greedy bit-reduction steps. For our method, each calibration batch requires one forward-backward pass, which provides gradients for all layers simultaneously. Hence, gradient collection costs O(CCFB)\mathcal{O}(C C_{\mathrm{FB}}), where CFBC_{\mathrm{FB}} is the cost of one forward-backward pass. The resulting gradients are reused across all KK candidate bit-widths, giving a cost of O(KN)\mathcal{O}(KN). The greedy allocation examines LL layers at each of QQ reduction steps, resulting in O(QL)\mathcal{O}(QL). Thus,

Cours=O(CCFB+KN+QL).\mathcal{C}_{\mathrm{ours}} = \mathcal{O}(C C_{\mathrm{FB}} + KN + QL).

In contrast, HAWQ-V2 estimates the Hessian trace separately for each layer using rr Hutchinson probes. If CHVPC_{\mathrm{HVP}} denotes the cost of one Hessian-vector product, this requires O(L(CFB+rCHVP))\mathcal{O}\left(L(C_{\mathrm{FB}} + r C_{\mathrm{HVP}})\right). The subsequent candidate-bit evaluation and greedy allocation remain O(KN)\mathcal{O}(KN) and O(QL)\mathcal{O}(QL), respectively. Hence,

CHAWQ=O[L(CFB+rCHVP)+KN+QL].\mathcal{C}_{\mathrm{HAWQ}} = \mathcal{O}\left[L(C_{\mathrm{FB}} + r C_{\mathrm{HVP}}) + KN + QL\right].

Thus, our method avoids the per-layer second-order HVP computations and instead uses a shared first-order gradient computation. This advantage is particularly relevant for SNNs, where the computational graph is unrolled over the simulation timesteps.

Investigation on Fisher-Hessian Relationship in SNNs

To understand the relationship between Fisher and Hessian based sensitivities, we perform a layerwise analysis using

Hii=αlFii+Ri,H_{ii} = \alpha_l F_{ii} + R_i,

Here, HiiH_{ii} and FiiF_{ii} are the diagonal Hessian and Fisher entries corresponding to parameter ii, αl\alpha_l is estimated independently for each layer and RiR_i captures the remaining curvature. This decomposition is used only for analysis and is not required by our quantization procedure. As depicted

in Figure S1, the raw layer-wise Hessian and Fisher sensitivities do not match; the Fisher values are generally much smaller than the corresponding Hessian values, and therefore the raw Fisher cannot be interpreted as a direct numerical approximation of the Hessian. Now, applying the layer-wise scaling αl\alpha_l reduces this discrepancy, but αl\alpha_l still does not fully match HH, indicating that a simple scaling relationship alone is insufficient to explain the Hessian curvature.

Bar chart of raw Hessian, Fisher, and scaled Fisher values for ResNet-18 on CIFAR-10

Figure S1. Raw values of Hessian, Fisher, and αlF\alpha_l F for ResNet-18 on the CIFAR-10 dataset.

To quantitatively assess the discrepancy between Fisher and Hessian sensitivities, we compute the layer-wise absolute error

Elabs=∣Hl−Fl∣E_l^{\mathrm{abs}} = \lvert H_l - F_l \rvert

and relative error

Elrel=∣Hl−Fl∣∣Hl∣+ϵ×100%.E_l^{\mathrm{rel}} = \frac{\lvert H_l - F_l\rvert}{\lvert H_l\rvert+ \epsilon} \times100\%.

As shown in Figure. Figure S2 and Figure. Figure S3, the raw Fisher exhibits a substantial magnitude discrepancy with respect to the Hessian across several layers. In particular, the relative error indicates that the Fisher should not be interpreted as a numerically exact approximation of the diagonal Hessian under surrogate-gradient training.

Bar chart of layer-wise absolute error between diagonal Hessian and raw Fisher sensitivities

Figure S2. Layer-wise absolute error between the diagonal Hessian and raw Fisher sensitivities for ResNet-18 on CIFAR-10.

Layer-wise relative error between the diagonal Hessian and raw Fisher sensitivities for ResNet-18 on CIFAR-10

Figure S3. Layer-wise relative error between the diagonal Hessian and raw Fisher sensitivities for ResNet-18 on CIFAR-10.

Importantly, despite this difference in magnitude, the two criteria exhibit a strong agreement in their relative layer-wise behavior. The Pearson correlation between the Hessian and Fisher is 0.90, while the Spearman rank correlation [32] is 0.89. In particular, the high Spearman correlation shows that layers identified as relatively more sensitive by the Hessian are also generally ranked highly by the Fisher, and vice versa. This is the property most relevant to our mixed-precision allocation, since the objective is to distinguish relatively sensitive layers rather than reproduce the exact numerical value of the Hessian.

Role of layer-wise scaling and residual curvature. The variation of αl\alpha_l over layers, shown in Figure. Figure S4, further demonstrates that the Hessian–Fisher relationship is not governed by a single universal scale factor. The layer-dependent scaling varies considerably, confirming that the mismatch between HH and FF cannot be removed by simply applying one global multiplicative constant. Nevertheless, the strong rank agreement observed above indicates that this magnitude mismatch does not disrupt the relative sensitivity structure across layers. The remaining discrepancy is captured by the residual

Values of $\alpha_l$ per layer for ResNet-18 on the CIFAR-10 dataset

Figure S4. Values of αl\alpha_l per layer for ResNet-18 on the CIFAR-10 dataset.

Ri=Hii−α⋅Fii.R_i = H_{ii} - \alpha\cdot F_{ii}.

As shown in Figure. Figure S5, the residual is substantial for some layers and very small for others. This is also evident in Figure. Figure S1, where αlF\alpha_l F remains separated from HH for several layers. However, after incorporating the residual, i.e., comparing HH with αlF+R\alpha_l F + R, the reconstructed values closely match the Hessian across layers. This confirms that the observed discrepancy can be viewed as a combination of a Fisher-aligned component and a layer-dependent residual curvature component.

Values of $R_i$ per layer for ResNet-18 on the CIFAR-10 dataset

Figure S5. Values of RiR_i per layer for ResNet-18 on the CIFAR-10 dataset.

The important observation is therefore not that FF numerically equals HH, but that the Fisher preserves much of the relative sensitivity structure of the Hessian even when their absolute magnitudes differ substantially. The high Pearson and Spearman correlations support this observation, while the αl\alpha_l and residual analyses explain why the numerical values do not directly coincide. This provides an empirical justification for using Fisher sensitivity as a practical surrogate for Hessian sensitivity in our bit-allocation procedure, without requiring Hessian computation itself.

Ablation Studies on Surrogate Gradients

We further investigate whether the choice of surrogate gradient affects the proposed mixed-precision bit allocation strategy. Since surrogate gradients determine the backward-pass approximation of the non-differentiable spiking function, different surrogate functions can potentially alter the estimated layer-wise sensitivity and, consequently, the resulting bit-width assignment. To assess the robustness of our approach to this choice, we evaluate five commonly used surrogate gradients—Atan, Sigmoid, FastSigmoid, Piecewise Linear, and Triangular—on a ResNet-18 [9] obtained through the QCFS conversion framework on the CIFAR-10 dataset. For each surrogate gradient, we independently compute the layer-wise sensitivity scores used by our bit allocation method and derive the corresponding mixed-precision configuration under the same overall bit-budget. This allows us to isolate the effect of the surrogate gradient while keeping the network architecture, conversion framework, dataset, and allocation procedure fixed. We then compare the resulting bit-width assignments and compression performance across the five surrogate-gradient choices to determine whether the proposed allocation strategy remains consistent under different backward-pass approximations.

Coarse Bit-width Search Space ({4,8}\{4,8\})

We first evaluate the influence of different surrogate gradients using a coarse candidate bit-width set of {4,8}\{4,8\}. Figure S6 shows that all five surrogate gradient produce identical quantized models, achieving the same accuracy of 94.01%. This suggests that the proposed algorithm is largely insensitive to the choice of the surrogate gradient when only two candidate bit-width are available. We analyze the layer-wise sensitivity values computed using different surrogate gradients. As shown in Figure S7, although the absolute sensitivity scores differ slightly across surrogate functions, the overall sensitivity pattern remains consistent. In particular, the same groups of layers are consistently identified as highly sensitive, while the remaining layers exhibit only minor numerical variations.

Quantized accuracy vs. surrogate gradient approximations

Figure S6. Quantized accuracy vs. surrogate gradient approximations. The model used here is ResNet-18 trained on CIFAR-10 [17] using the QCFS [4] framework.

Sensitivity of each layer of ResNet-18 SNN

Figure S7. Sensitivity of each layer of ResNet-18 SNN trained on CIFAR-10 [15] using the QCFS [4] framework.

Since the proposed algorithm depends primarily on the relative importance of layers rather than their absolute sensitivity values, we next compare the resulting layer rankings. Figure S8 shows that the ranking produced by different surrogate gradients are highly consistent, with most layers retaining identical ranks and only a few layers exchanging neighboring positions. Figure S9 presents the bit

Comparison of layer rankings obtained using different surrogate gradients

Figure S8. Comparison of layer rankings obtained using different surrogate gradients for ResNet-18 [9] on CIFAR-10 [15] using the QCFS [4] framework.

allocation obtained using different surrogate gradient functions. Although each surrogate produces slightly different gradient magnitudes and corresponding sensitivity scores, the resulting layer rankings remain consistent. Because bit allocation is performed over a small set of candidate precisions, these small score differences do not affect the selected bit-width for any layer. Therefore, all surrogate gradients generate an identical mixed-precision configuration, which in turn results in identical model accuracy, as shown in Figure S6.

Layer-wise bit allocation of ResNet-18 SNN using different surrogate functions

Figure 9 (PDF p. 16). Layer-wise bit allocation of ResNet-18 [9] SNN using different surrogate functions.

Fine-Grained Candidate Bit-width Setting (1,2,4,8)

Unlike the coarse candidate bit-width setting discussed in the previous subsection, the finer search space of {1,2,4,8}\{1, 2, 4, 8\} gives the algorithm more flexibility in assigning layer-wise precisions. Consequently, variations in the surrogate functions influence the sensitivity ordering of layers, resulting in different mixed-precision configurations. Figure S10 illustrates the layer sensitivity scores obtained using different surrogate gradients.

Although all surrogate functions identify the final residual block as the most quantization-sensitive region of the network, noticeable differences are observed in the sensitivity values across layers. These differences suggest that surrogate gradients produce slightly different estimates of layer importance when a richer candidate precision set is available. To better understand these variations, Figure S11 converts the sensitivity values into layer-wise rankings. Compared to {4,8}\{4, 8\} setting, the agreement among surrogate gradients

Layer-wise sensitivity of ResNet-18 SNN trained on CIFAR-10 using QCFS framework

Figure 10. Layer-wise sensitivity of ResNet-18 SNN trained on CIFAR-10 using QCFS [4] framework. Candidate bits used here are {1,2,4,8}\{1, 2, 4, 8\}.

Comparison of layer sensitivity rankings obtained using different surrogate gradients for ResNet-18 SNN on CIFAR-10 using the QCFS framework

Figure 11. Comparison of layer sensitivity rankings obtained using different surrogate gradients for ResNet-18 SNN on CIFAR-10 [15] using the QCFS [4] framework.

Quantized accuracy versus surrogate gradient functions for ResNet-18 SNN trained on CIFAR-10 dataset using the QCFS framework

caption: Quantized accuracy versus surrogate gradient functions for ResNet-18 SNN trained on CIFAR-10 [15] dataset using the QCFS [4] framework.

dients decreases considerably. Several layers undergo substantial change in rank, especially in the later stages of the network where sensitivity values are relatively close. Unlike the coarse {4,8}\{4, 8\} search space, the richer candidate bit-width set provides the optimization algorithm with greater flexibility to distinguish between layers with similar sensitivities, allowing these ranking differences to influence the final precision agreement. These ranking differences are reflected in the bit allocation, with layers whose sensitivity changes across surrogate gradients receiving different precisions. In contrast, consistently ranked layers retain the same bit-width. Since only a small subset of layers change precision, the overall mixed-precision configuration remains highly consistent, indicating that the proposed algorithm adapts to surrogate-specific sensitivity while maintaining stable allocations for consistently important layers.

The influence of surrogate-specific ranking differences on the final mixed-precision configuration is illustrated in fig:S13. Consistent with the observed ranking variations, the finer candidate bit-width set allows the algorithm to assign different precisions to a few layers across surrogate gradients, while the majority of layers retain identical bit-widths. This confirms that the proposed bit allocation strategy directly follows the surrogate-specific layer sensitivity estimates. The final quantized accuracy remains remarkably stable, as shown in fig:S12. The accuracy varies only from 94.05% to 94.19% across all surrogate gradients, demonstrating that the proposed mixed-precision framework is robust to the choice of surrogate gradient even when a richer candidate bit-width search space is employed.

Ablation studies on Protection Factor Parameter β\beta

The protection factor is defined as

Pl=1+β(1−ml),P_l = 1 + \beta(1-m_l),

where β\beta controls the contribution of threshold-margin information. We evaluate β∈[0,2]\beta\in[0, 2] on ResNet-18 and VGG-16

Layer-wise bit allocation of ResNet-18 SNN using different surrogate gradient functions

caption: Layer-wise bit allocation of ResNet-18 [9] SNN using different surrogate gradient functions.

using CIFAR-10 and CIFAR-100, while keeping all other settings fixed. As shown in fig:S14, introducing the

Beta analysis of the protection factor for different models trained on different datasets

caption: Beta analysis of the protection factor for different models trained on different datasets.

threshold-margin term (β>0\beta> 0) improves quantized accuracy by 57.5% − 71.78 on VGG-16 (CIFAR-100) over the gradient-only setting (β=0\beta= 0). The optimal β\beta varies across architectures and datasets but a broad high-accuracy region is observed in all cases. Based on these results, we use β=0.7\beta= 0.7 as a fixed default value in our main experiments rather than tuning it separately for each configuration.

Layer-wise Bit Allocation Comparison

To further analyze the proposed mixed-precision framework, we compare the layer-wise bit allocations generated by our gradient-based sensitivity metric with those obtained using HAWQ-V2. We report the assigned bit-width for every quantized layer across multiple SNN and ANN architectures. This comparison provides a qualitative assessment of whether the proposed first-order sensitivity metric captures similar layer importance as the second-order Hessian-based criterion.

Although the proposed method relies only on first-order gradient information, the resulting bit allocations closely resemble those produced by HAWQ-V2 for most layers. Differences primarily appear in layers whose sensitivities are relatively similar, where multiple bit assignments can satisfy the target compression budget. Table S2 and Table S3 compare the layer-wise bit allocation produced by the proposed method and HAWQ-V2 for VGG-16 SNN trained on CIFAR-10 and CIFAR-100 datasets, respectively. The overall allocation patterns are consistent, indicating that the first-order sensitivity metric captures layer importance comparable to the Hessian-based criterion of HAWQ-V2. Notably, the proposed method assigns lower bit-widths to several convolutional layers while maintaining higher precision for the most sensitive layers, resulting in a more aggressive compression strategy. Despite these differences, the overall

LayerOursHAWQ-V2
conv-188
conv-288
conv-388
conv-488
conv-584
conv-688
conv-784
conv-848
conv-944
conv-1044
conv-1144
conv-1244
conv-1344
FC-144
FC-444
FC-788

Table S2. Layer-wise bit allocation for VGG-16 SNN trained on CIFAR-10 [15] using the QCFS [4] framework.

LayerOursHAWQ-V2
conv-188
conv-288
conv-388
conv-488
conv-588
conv-648
conv-788
conv-848
conv-944
conv-1084
conv-1144
conv-1244
conv-1344
FC-144
FC-444
FC-788

Table S3. Layer-wise bit allocation for VGG-16 SNN trained on CIFAR-100 [15] using the QCFS [4] framework.

mixed-precision configurations remain similar.

LayerOursHAWQ-V2
conv-188
conv-288
conv-388
conv-444
conv-544
conv-644
conv-744
conv-844
FC-188

Table S4. Layer-wise bit allocation obtained for VGGSNN trained on CIFAR10-DVS [17] using the TET [25] framework.

StageLayer(s)Weight Bit
StemConv2d_1a_3x3.conv – Conv2d_3b_1x1.conv8
Conv2d_4a_3x3.conv4
Mixed_5bbranch1x1.conv – branch3x3dbl_2.conv6
branch3x3dbl_3.conv4
branch_pool.conv8
Mixed_5cbranch1x1.conv – branch3x3dbl_1.conv6
branch3x3dbl_2.conv – branch3x3dbl_3.conv4
branch_pool.conv6
Mixed_5dbranch1x1.conv – branch5x5_1.conv6
branch5x5_2.conv4
branch3x3dbl_1.conv – branch3x3dbl_2.conv6
branch3x3dbl_3.conv4
branch_pool.conv6
Mixed_6abranch3x3.conv1
branch3x3dbl_1.conv6
branch3x3dbl_2.conv – branch3x3dbl_3.conv4
Mixed_6b – Mixed_6eAll convolution layers4
Mixed_7abranch3x3_1.conv4
branch3x3_2.conv1
branch7x7x3_1.conv – branch7x7x3_3.conv4
branch7x7x3_4.conv1
Mixed_7bbranch1x1.conv4
branch3x3_1.conv – branch3x3dbl_2.conv1
branch3x3dbl_3a.conv4
branch3x3dbl_3b.conv1
branch_pool.conv4
Mixed_7cbranch1x1.conv1
branch3x3_1.conv2
branch3x3_2a.conv – branch3x3_2b.conv1
branch3x3dbl_1.conv2
branch3x3dbl_2.conv – branch_pool.conv1
Headfc1

Table S5. Layer-wise bit allocation produced by the proposed gradient-based mixed-precision quantization method for Inception-v3 ANN on ImageNet [6]. Consecutive layers that are assigned the same bit-width are grouped for concise reporting.

References

  1. [1]Filipp Akopyan, Jun Sawada, Andrew S. Cassidy, Alvarez-Icaza Rodrigo, John V. Arthur, Paul Merolla, Nabil Imam, Yutaka Nakamura, Pallab Datta, Gi Joon Nam, Brian Taba, Michael P. Beakes, Bernard Brezzo, Jente B. Kuang, Rajit Manohar, William P. Risk, Bryan L. Jackson, and Dharmendra S. Modha. Truenorth: Design and tool flow of a 65 mw 1 million neuron programmable neurosynaptic chip. In IEEE Transactions on Computer-Aided Design on Integrated Circuits and Systems (TCADIS), 2015. 1DOI
  2. [2]Shun-ichi Amari. Information Geometry and Its Applications. Springer Publishing Company, Incorporated, 1st edition, 2016. 3, 1, 2
  3. [3]Christopher M. Bishop. Pattern Recognition and Machine Learning. Springer, 2006. 2
  4. [4]Tong Bu, Wei Fang, Jianhao Ding, PENGLIN DAI, Zhaofei Yu, and Tiejun Huang. Optimal ANN-SNN conversion for high-accuracy and ultra-low-latency spiking neural networks. In International Conference on Learning Representations, 2022. 1, 2, 4, 5, 6, 7, 8arxiv.org/abs/2303.04347
  5. [5]Mike Davies, Narayan Srinivasa, Tsung-Han Lin, Gautham Chinya, Yongqiang Cao, and Sri Harsha Choday. Loihi: A neuromorphic manycore processor with on-chip learning. In IEEE MIC, Vol. 38, 2018. 1DOI
  6. [6]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009. 4, 9
  7. [7]Zhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. Hawq: Hessian aware quantization of neural networks with mixed-precision. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2019. 1, 2arxiv.org/abs/1905.03696
  8. [8]Zhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami, Michael Mahoney, and Kurt Keutzer. Hawq-v2: Hessian aware trace-weighted quantization of neural networks. In Advances in Neural Information Processing Systems, pages 18518–18529. Curran Associates, Inc., 2020. 1, 2, 3, 5, 6, 7arxiv.org/abs/1911.03852
  9. [9]Wei Fang, Zhaofei Yu, Yanqi Chen, Tiejun Huang, Timothée Masquelier, and Yonghong Tian. Deep residual learning in spiking neural networks. In Advances in Neural Information Processing Systems, pages 21056–21069. Curran Associates, Inc., 2021. 5, 6, 7arxiv.org/abs/2102.04159
  10. [10]Wulfram Gerstner and Werner M. Kistler. Spiking Neuron Models. Cambridge University Press, 2002. 1
  11. [11]Ashish Gondimalla, Noah Chesnut, Mithuna Thottethodi, and T. N. Vijaykumar. Sparten: A sparse tensor accelerator for convolutional neural networks. In Proceedings of the 52nd Annual IEEE/ACM International Symposium on Microarchitecture, page 151–165, New York, NY, USA, 2019. Association for Computing Machinery. 8DOI
  12. [12]Song Han, Huizi Mao, and William Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. International Conference on Learning Representations (ICLR), 2016. 1arxiv.org/abs/1510.00149
  13. [13]Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2704–2713, 2018. 1arxiv.org/abs/1712.05877
  14. [14]Chetan Kadway, Sounak Dey, Arijit Mukherjee, Arpan Pal, and Gilles Bézard. Low power & low latency cloud cover detection in small satellites using on-board neuromorphic processors. In 2023 International Joint Conference on Neural Networks (IJCNN), pages 1–8, 2023. 1DOI
  15. [15]Alex Krizhevsky, Vinod Nair, and Geoffrey E Hinton. Cifar-10 and 100 (canadian institute for advanced research). ”http://www.cs.toronto.edu/~kriz/cifar.html”, 2010. 4, 5, 6, 7, 8
  16. [16]Frederik Kunstner, Philipp Hennig, and Lukas Balles. Limitations of the empirical fisher approximation. In Neural Information Processing Systems, 2019. 3arxiv.org/abs/1905.12558
  17. [17]Hongmin Li, Hanchao Liu, Xiangyang Ji, Guoqi Li, and Luping Shi. Cifar10-dvs: an event-stream dataset for object classification. Frontiers in Neuroscience, 11:309, 2017. 4, 5, 8DOI
  18. [18]Jiahao Li, Ming Xu, Heng Dong, Bin Lan, Yuxin Liu, He Chen, Yin Zhuang, Yizhuang Xie, and Liang Chen. Balancing accuracy and efficiency: co-design of hybrid quantization and unified computing architecture for spiking neural networks. Frontiers in Neuroscience, Volume 19 - 2025, 2025. 2, 5, 6DOI
  19. [19]Hin Wai Lui and Emre Neftci. Hessian aware quantization of spiking neural networks. In International Conference on Neuromorphic Systems 2021, New York, NY, USA, 2021. Association for Computing Machinery. 2, 5, 6
  20. [20]James Martens. New insights and perspectives on the natural gradient method. Journal of Machine Learning Research, 21 (146):1–76, 2020. 3, 1, 2
  21. [21]Shadi Matinizadeh, Arghavan Mohammad Hassani, Noah Pacik-Nelson, Ioannis Polykratis, Abhishek Mishra, James Shackleford, Nagarajan Kandasamy, Eric Gallo, and Anup Das. A fully-configurable digital spiking neuromorphic hardware design with variable quantization and mixed precision. In 2024 IEEE 67th International Midwest Symposium on Circuits and Systems (MWSCAS), pages 937–941, 2024. 2DOI
  22. [22]Emre O. Neftci, Hesham Mostafa, and Friedemann Zenke. Surrogate gradient learning in spiking neural networks: Bringing the power of gradient-based optimization to spiking neural networks. IEEE Signal Processing Magazine, 36 (6):51–63, 2019. 1, 2DOI
  23. [23]Eustace Painkras, Luis A Plana, Jim Garside, Steve Temple, Francesco Galluppi, Cameron Patterson, David R Lester, Andrew D Brown, and Steve B Furber. Spinnaker: A 1-w 18-core system-on-chip for massively-parallel neural network simulation. IEEE Journal of Solid-State Circuits, 48 (8):1943–1953, 2013. 1DOI
  24. [24]Pranav Ramesh and Gopalakrishnan Srinivasan. PASCAL: Precise and efficient ANN- SNN conversion using spike accumulation and adaptive layerwise activation. Transactions on Machine Learning Research, 2025. 1, 2, 4, 5arxiv.org/abs/2505.01730
  25. [25]Deng Shikuang, Li Yunzhan , Shiwei Zhang, and Shi Gu. Temporal efficient training of spiking neural networks via gradient re-weighting. In International Conference on Learning Representations (ICLR), 2022. 1, 2, 4, 6, 7, 8arxiv.org/abs/2202.11946
  26. [26]Charles Spearman. The proof and measurement of association between two things. The American Journal of Psychology, 15(1):72–101, 1904. 7, 8
  27. [27]Wenjie Wei, Yu Liang, Ammar Belatreche, Yichen Xiao, Honglin Cao, Zhenbang Ren, Guoqing Wang, Malu Zhang, and Yang Yang. Q-snns: Quantized spiking neural networks. In Proceedings of the 32nd ACM International Conference on Multimedia, page 8441–8450, New York, NY, USA, 2024. Association for Computing Machinery. 1, 2arxiv.org/abs/2406.13672
  28. [28]Wenjie Wei, Malu Zhang, Zijian Zhou, Ammar Belatreche, Yimeng Shan, Yu Liang, Honglin Cao, Jieyuan Zhang, and Yang Yang. QP-SNN: Quantized and pruned spiking neural networks. In The Thirteenth International Conference on Learning Representations, 2025. 1, 2, 3arxiv.org/abs/2502.05905
  29. [29]Paul J. Werbos. Backpropagation through time: What it does and how to do it. Proc. IEEE, 78:1550–1560, 1990. 2DOI
  30. [30]Ruokai Yin, Youngeun Kim, Di Wu, and Priyadarshini Panda. Loas: Fully temporal-parallel dataflow for dual-sparse spiking neural networks. In 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO), pages 1107–1121, 2024. 8arxiv.org/abs/2407.14073
  31. [31]Kang You, Zekai Xu, Chen Nie, Zhijie Deng, Qinghai Guo, Xiang Wang, and Zhezhi He. SpikeZIP-TF: Conversion is all you need for transformer-based SNN. In Proceedings of the 41st International Conference on Machine Learning, pages 57367–57383. PMLR, 2024. 4, 1arxiv.org/abs/2406.03470
  32. [32]Jerrold Zar. Spearman Rank Correlation, chapter 1, pages 1–10. Wiley, 2005. 4DOI

Paper details

vlnc:W_cvpg3zdg
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents