Skip to content

Menu

WorksComputer Science

SpikeQ: Spike-Guided Post-Training Quantization for Spiking Neural Networks

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_9tat33ns. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

On neuromorphic chips, spiking neural networks (SNNs) consume far less energy than artificial neural networks (ANNs), but the limited memory of these chips requires low-bit synaptic weights and membrane potentials. Existing post-training quantization (PTQ) methods provide them without retraining and, like those for ANNs, minimize numerical errors such as the mean squared error (MSE). In an SNN, however, a quantization error reaches later layers only through the spikes it flips. We find that errors of equal MSE can cause very different accuracy losses, whereas errors that flip the same fraction of spikes cause the same loss. We therefore propose SpikeQ, a spike-guided PTQ framework. For weights, we select the level of each weight by simulating the downstream neurons and minimizing their spike errors. For membrane potentials, most existing methods quantize the state after the reset, whereas neuromorphic chips compare the threshold with the membrane potential stored at a fixed bit width. We target this pre-fire quantization and build a reset-aware grid that places the threshold on a rounding boundary, so rounding never flips the spike at the current time step. We evaluate SpikeQ on seven benchmarks of image classification, semantic segmentation, and object detection. With 2-bit pre-fire membrane potentials, every existing grid collapses, whereas SpikeQ retains most of the full-precision accuracy. With both at 4 bits, the models stay within 2.59 points of full precision, shrink their memory footprint 7.8–7.9 times, and use 6.4–6.9 times less energy.

Introduction

Spiking neural networks (SNNs) have attracted growing interest as an energy-efficient alternative to artificial neural networks (ANNs). Instead of dense multiply-accumulate operations, SNNs compute with sparse spikes. On neuromorphic chips such as Loihi and Speck [3, 45], this event-driven computation consumes substantially less energy than ANN inference on conventional hardware [12, 30]. Recent work has further scaled SNNs to deep residual networks and spiking transformers [8, 43, 47], narrowing their

accuracy gap to ANNs. As these models grow, however, their floating-point synaptic weights and membrane potentials become a major deployment cost. Neuromorphic chips store both quantities in limited on-chip memory and repeatedly read and update the membrane potential of each neuron. Quantizing both weights and membrane potentials is therefore necessary to run large SNNs on such chips without losing their energy advantage [31].

SNN quantization methods fall into two paradigms, namely quantization-aware training (QAT) and post-training quantization (PTQ). QAT simulates quantization during training and learns low-precision weights and membrane potentials with surrogate gradients [10, 36, 46], but it repeats the full training through time for every bit width and requires the original training data. PTQ instead calibrates a pretrained SNN on a small unlabeled set without retraining, which makes it more practical for large SNNs. Current PTQ methods for SNNs largely follow those developed for ANNs. Weight quantization either learns the rounding by reconstructing the output of a layer or block [18, 25, 40] or compensates the rounding error with second-order information [9, 23, 32]. Membrane quantization treats the membrane potential as an activation and uses a uniform grid whose scale is fitted to its distribution or tied to the weight scale [1, 40]. In both cases, quantization is calibrated by minimizing numerical errors.

Unlike ANNs, SNNs transmit information between neurons only through spikes, and each neuron fires only when its membrane potential, accumulated over time steps, crosses the threshold. A quantization error in the input current or membrane potential therefore reaches later layers through the spikes it changes, now or at later time steps, yet existing PTQ objectives measure only its magnitude, such as the mean squared error (MSE). Errors of the same MSE can change spikes very differently. For example, a constant input-current error of +0.2θ+0.2\theta at every time step keeps raising the membrane potential and can push it across the threshold, whereas a zero-sum one alternating between ±0.2θ\pm0.2\theta has the same MSE but largely cancels out over time. To test whether MSE or spikes determine accuracy, we inject errors of the same MSE into every neuron of a full-precision SNN (Figure 1). For the input current, which weight quantization perturbs, constant errors lower accuracy far more than zero-sum ones (Figure 1(a)). For the membrane potential, we reverse the sign of an error whenever it would push the membrane potential across the threshold. This keeps the MSE unchanged but reduces the sharp accuracy drop of the original errors to almost none (Figure 1(b)). Plotted against the fraction of flipped spikes, i.e., spikes added or removed by the error, the four curves of Figure 1(a) and (b) merge into one (Figure 1(c)), so the same fraction of flipped spikes causes the same accuracy loss. The Spearman correlation between the two is −0.99-0.99, far stronger than that of MSE, so more flipped spikes almost always means lower accuracy. Spikes are therefore a better guide than MSE for SNN quantization.

Figure 1. Accuracy of a full-precision SNN (PreAct-ResNet18, CIFAR-100) under injected errors of the same MSE. (a) Constant versus zero-sum errors in the input current. (b) Membrane potential errors that cross θ\theta versus never cross θ\theta. (c) Accuracy versus the fraction of flipped spikes for all errors in (a) and (b).

In this paper, we propose SpikeQ, a spike-guided PTQ framework that uses spikes rather than numerical errors to guide the quantization of both weights and membrane potentials without gradient-based fine-tuning. Our contributions are summarized below.

  • We show that the accuracy loss caused by quantization errors follows the fraction of spikes they flip rather than their MSE, which existing PTQ methods minimize.

  • We propose SpikeQ, which quantizes both weights and membrane potentials by minimizing spike errors relative to full precision and makes the threshold a rounding boundary, so rounding never flips the current spike.

  • Extensive experiments on image classification, semantic segmentation, and object detection show that SpikeQ outperforms existing PTQ methods, and its 4-bit models lose at most 2.59 points while shrinking the memory footprint 7.87.8–7.9×7.9\times and using 6.46.4–6.9×6.9\times less energy.

Related Work

SNN Quantization. SNN quantization follows two paradigms, QAT and PTQ. QAT simulates quantization in the forward pass, as in ANNs [6, 13], and trains the SNN by backpropagation through time with surrogate gradients [27, 39]. It has produced low-bit, binary, and even sub-bit weights [2, 5, 14, 20, 33, 37, 38], as well as low-precision membrane potentials [10, 22, 35, 36, 46], with the LIF neuron and distillation adapted to quantized SNNs [16, 29]. However, this training has to be repeated on the original data for every bit width, and each run backpropagates through all time steps, which is costly for large SNNs. PTQ instead quantizes a pretrained SNN using a small unlabeled calibration set without retraining. Existing PTQ methods allocate bit widths across layers or neurons [17, 28] or calibrate the quantization of weights alone [23, 32] or with membrane potentials [1, 40]. In this paper, we focus on PTQ.

Weight Quantization. Weight PTQ for SNNs selects the rounding by aligning one of two quantities between the full-precision and quantized networks, the input current or the membrane potential (Figure 2(a)). Current alignment minimizes the error of each layer output, which is the input current of its neurons. AdaRound and GPTQ have been applied directly to SNNs for this purpose [9, 25, 40], and S-OPTQ adapts GPTQ to spiking vision transformers [23]. Membrane alignment minimizes the error of the membrane potential before firing. SBC defines its objective on output spike trains, but with a constant surrogate gradient its Hessian equals that of this error for a neuron that never fires or resets [32]. However, their rounding ignores how the errors change spikes, which pass to the next time step and layer. A large error far from the threshold changes no spike, whereas a small error near the threshold flips one.

Spike errors caused by quantization

Figure 2. Spike errors caused by quantization. (a) Mismatch of the input current, membrane potential, and spikes after weight quantization. (b) Spurious and missed spikes caused by rounding the membrane potential. (c) Reset errors under hard and soft reset.

Membrane Quantization. Most SNN quantization methods quantize the membrane potential after the reset, that is, the state carried to the next time step. Their membrane grids follow activation quantization and differ mainly in how the scale, the spacing between quantization levels, is chosen. Some fit the scale to the range of the membrane potential [10, 36], and others derive it from the scale of the weights [1, 22, 40, 46]. However, neuromorphic chips store the membrane potential at a fixed bit width and compare this stored value with the threshold [3, 24, 45], so on chip the membrane potential is quantized before firing. Applied there, these grids leave the threshold inside a rounding interval, even when they concentrate levels near it [35], so rounding can push a near-threshold membrane potential across the threshold and flip the spike.

Preliminaries

LIF Neuron Model. For a leaky integrate-and-fire (LIF) neuron with input current ItI_t, let VtV_t be the membrane potential before firing, St∈{0,1}S_t \in\{0,1\} the spike, and UtU_t the state after reset. With time constant τ\tau, threshold θ>0\theta> 0, and

U0=0U_0 = 0, the dynamics are

Vt=(1−1τ)Ut−1+Itτ,St=1[Vt≥θ],Ut={Vt(1−St),hard reset,Vt−θSt,soft reset.(1)\begin{aligned} V_t &= \left(1-\frac{1}{\tau}\right)U_{t-1}+\frac{I_t}{\tau},\\ S_t &= 1[V_t \ge\theta],\\ U_t &= \begin{cases} V_t(1-S_t), & \text{hard reset},\\ V_t-\theta S_t, & \text{soft reset}. \end{cases} \tag*{(1)} \end{aligned}

Over TT steps, a neuron fires N=∑tStN=\sum_t S_t spikes.

Weight Quantization. With bb bits, each weight ww is replaced by one of 2b2^b evenly spaced levels, which form the weight grid GWG_W. Each level is a multiple of the step Δw>0\Delta_w>0, the distance between neighboring levels. A weight at level qq becomes w^=qΔw\hat{w}=q\Delta_w, where the integer qq takes 2b2^b consecutive values, such as {−2,−1,0,1}\{-2,-1,0,1\} for b=2b=2. Each output channel has its own Δw\Delta_w and range of qq, so quantizing a weight means selecting its level qq.

Membrane Quantization. With bb bits, the membrane potential is rounded by QvQ_v to one of K=2bK=2^b evenly spaced levels with step Δv\Delta_v, which form the membrane grid GVG_V. Post-reset quantization rounds the state after reset, U^t=Qv(Ut)\hat{U}_t=Q_v(U_t), so firing is still decided by the full-precision VtV_t. Pre-fire quantization instead rounds the membrane potential before firing, V^t=Qv(Vt)\hat{V}_t=Q_v(V_t), and uses V^t\hat{V}_t for both firing and reset.

Method

SpikeQ uses spikes to guide quantization in two stages. The weight stage selects the level of each weight by simulating the downstream neurons, and the membrane stage builds the membrane grid around the threshold and the reset rule.

Weight Quantization

Quantizing the weights changes the input current, the membrane potential, and the spikes of the downstream neuron (Figure 2(a)). Existing methods select the weight levels that minimize the error of the input current or the membrane potential, yet the resulting spikes can still differ from the full-precision ones (Figure 3). SpikeQ instead takes the spikes as the optimization target and selects the weight levels that minimize the spike error.

Weight rounding for the neuron of Fig. 2(a)

Figure 3. Weight rounding for the neuron of Figure 2(a). Each row selects the weight levels with the smallest error of the input current (top), membrane potential (middle), or spikes (bottom). Only the spike error recovers the full-precision spike.

Spike-count objective. In layer ℓ\ell, the input spikes S^tℓ−1\hat{S}_t^{\ell-1} from layer ℓ−1\ell-1 pass through the quantized weights W^ℓ\hat{W}^{\ell} and the LIF neurons of Eq. (1), and N^i\hat{N}_i counts the spikes of neuron ii over the TT steps. SpikeQ compares N^i\hat{N}_i with two reference counts. The full-precision count NiFPN_i^{\mathrm{FP}} comes from the original network, in which no layer is quantized. Matching it directly ignores that the earlier layers have already been quantized and have changed the input spikes S^ℓ−1\hat{S}^{\ell-1} of layer ℓ\ell. We therefore also match the local count NilocN_i^{\mathrm{loc}}, produced by the full-precision weights WℓW^\ell on this changed input S^ℓ−1\hat{S}^{\ell-1}. The spike-count loss is a weighted sum of the errors to the two counts, with ρ∈[0,1]\rho\in[0,1],

Lcount=ρ∑i∣N^i−NiFP∣+(1−ρ)∑i∣N^i−Niloc∣.(2)\mathcal{L}_{\mathrm{count}}=\rho\sum_i\left|\hat{N}_i-N_i^{\mathrm{FP}}\right|+(1-\rho)\sum_i\left|\hat{N}_i-N_i^{\mathrm{loc}}\right|. \tag*{(2)}

Margin term. Changing a weight by one level shifts the membrane potential but may not move it across θ\theta. The spike count then does not change, and neither does Lcount\mathcal{L}_{\mathrm{count}}. In this case, we choose the level that brings the wrong spikes closest to being corrected. Since each wrong spike occurs at a specific step tt, we compare spikes step by step with the same two references as the counts, the full-precision spikes Si,tFPS_{i,t}^{\mathrm{FP}} and the local spikes Si,tlocS_{i,t}^{\mathrm{loc}} of neuron ii. A neuron fires when V^i,t≥θ\hat{V}_{i,t}\geq\theta, so ∣V^i,t−θ∣\left|\hat{V}_{i,t}-\theta\right| is how much its membrane potential must change to correct a wrong spike. The margin sums this distance over all wrong spikes,

MFP=∑i,t1[S^i,t≠Si,tFP]∣V^i,t−θ∣,(3)M^{\mathrm{FP}}=\sum_{i,t}\mathbf{1}\left[\hat{S}_{i,t}\ne S_{i,t}^{\mathrm{FP}}\right]\left|\hat{V}_{i,t}-\theta\right|, \tag*{(3)}

and MlocM^{\mathrm{loc}} is defined in the same way with Si,tlocS_{i,t}^{\mathrm{loc}}. The two margins are weighted by ρ\rho as in Eq. (2), Lmargin=ρMFP+(1−ρ)Mloc\mathcal{L}_{\mathrm{margin}}=\rho M^{\mathrm{FP}}+(1-\rho)M^{\mathrm{loc}}.

Population term. Because Lcount\mathcal{L}_{\mathrm{count}} takes the absolute value of each error, an extra spike and a missed spike give the same error. It thus cannot tell whether the layer fires too many or too few spikes in total. In either case, the next layer receives a wrong number of input spikes. We therefore add a population term, Lpop=∑i(N^i−Nˉi)\mathcal{L}_{\mathrm{pop}}=\sum_i(\hat{N}_i-\bar{N}_i), which keeps the total spike count of the layer equal to that of the references. Here Nˉi=ρNiFP+(1−ρ)Niloc\bar{N}_i=\rho N_i^{\mathrm{FP}}+(1-\rho)N_i^{\mathrm{loc}} weights the two references by ρ\rho as in Eq. (2).

The complete objective sums the three terms,

L=Lcount+λLmargin+μLpop,(4)\mathcal{L}=\mathcal{L}_{\mathrm{count}}+\lambda\mathcal{L}_{\mathrm{margin}}+\mu\mathcal{L}_{\mathrm{pop}}, \tag*{(4)}

where λ\lambda is a fixed weight and μ\mu is adjusted during the search. Since Lpop\mathcal{L}_{\mathrm{pop}} grows with the number of spikes, a larger μ\mu favors levels with fewer spikes.

Discrete search. Since L\mathcal{L} has no useful gradient through the spikes, we search the levels directly (Algorithm 1). The best rounding of one weight depends on how the other weights of the neuron are rounded, and trying all combinations is infeasible.

Algorithm 1 Weight quantization of SpikeQ
Require: WW, calibration set, bb
1: for each layer ℓ\ell do
2: Capture S^ℓ−1\hat{S}^{\ell-1}; fix GWG_W per channel
3: L←\mathcal{L}\leftarrow Eq. (4)
4: Initialize from WℓW^\ell; μ←0\mu\leftarrow0
5: for each input jj, largest current first do
6: qj←arg⁡min⁡q∈AjEϵ[L(qj=q)]q_j\leftarrow\arg\min_{q\in A_j}\mathbb{E}_\epsilon[\mathcal{L}(q_j=q)]
7: for each sweep do
8: Keep ±1\pm1 level changes that reduce L\mathcal{L}
9: Restore and freeze channels whose held-out loss rises
10: Update μ\mu
11: Set w^←q Δw\hat{w}\leftarrow q\,\Delta_w for every weight of WℓW^\ell
12: return W^\hat{W}

Table 1.

The first phase therefore decides the weights one input at a time, for all neurons at once, starting with the inputs that contribute the most current and thus influence the spikes most. Since the best level for the spikes can lie beyond the two nearest levels, each weight wjw_j chooses from its four nearest levels Aj={⌊qˉ⌋−1,⌊qˉ⌋,⌈qˉ⌉,⌈qˉ⌉+1}A_j=\{\lfloor\bar{q}\rfloor-1,\lfloor\bar{q}\rfloor,\lceil\bar{q}\rceil,\lceil\bar{q}\rceil+1\}, where qˉ=wj/Δw\bar{q}=w_j/\Delta_w is its unrounded level. The choice takes the weights already decided into account, for example by rounding down when earlier weights have made the input current too large. The weights not yet decided are modeled by random rounding errors ϵ\epsilon drawn uniformly from [−Δw/2,Δw/2][-\Delta_w/2,\Delta_w/2], and each candidate is scored by its average loss over several draws.

The first phase only guesses the rounding of later weights, so some early choices may no longer be the best once all weights are fixed. The second phase therefore revisits each weight over several sweeps and keeps a change of one level up or down if it lowers L\mathcal{L}. To avoid overfitting the small calibration set, part of it is held out, and a channel whose held-out loss rises after a sweep is restored to its previous levels and frozen. After each sweep, μ\mu rises when the layer fires too many spikes and falls when it fires too few (Sec. A). We keep ∣μ∣<1|\mu|<1, below the change of Lcount\mathcal{L}_{\mathrm{count}} when one spike of a neuron is corrected, so that balancing the layer total never outweighs correcting a neuron’s spikes.

Membrane Quantization

Most existing methods use post-reset quantization, whereas neuromorphic chips store the membrane potential at a fixed bit width and compare the stored value with the threshold, so it is rounded before firing. SpikeQ targets pre-fire quantization, where the rounded membrane potential decides both the spike and the post-reset state. Existing grids leave θ\theta inside a rounding interval, so rounding can push a membrane potential near θ\theta across it and cause a spurious or missed spike (Figure 2(b)). The post-reset state is stored for the next step, and if it is not a level, storing it rounds it again and introduces another error (Figure 2(c)). We therefore build the membrane grid around the threshold and the reset rule (Figure 4).

Membrane grid of SpikeQ with threshold anchoring, hard reset, and soft reset

Figure 4. Membrane grid of SpikeQ, with threshold anchoring (top), one level above θ\theta under hard reset (middle), and multiple levels above θ\theta under soft reset (bottom). The value after reset stays on the grid.

Threshold anchoring. We place θ\theta midway between two adjacent levels, which makes it the rounding boundary between them (Figure 4, top). With nn of the KK levels below θ\theta, the levels of GV\mathcal{G}_V are

gj=θ+(j−n+12)Δv,j=0,…,K−1,(5)g_j = \theta+ \left(j-n+\frac{1}{2}\right)\Delta_v,\quad j=0,\ldots,K-1, \tag*{(5)}

with step Δv>0\Delta_v > 0 and n∈{1,…,K−1}n \in\{1,\ldots,K-1\}. The quantizer QvQ_v rounds to the nearest level, so it never moves a membrane potential across the rounding boundary θ\theta. A membrane potential exactly at θ\theta is rounded up and still fires, and values outside the grid are clipped to its endpoints, which lie on either side of θ\theta. Hence 1[Qv(V)≥θ]=1[V≥θ]\mathbb{1}[Q_v(V) \ge\theta] = \mathbb{1}[V \ge\theta] for any Δv\Delta_v and nn, so rounding the membrane potential never changes the spike at the current step.

Reset-aware level allocation. Under hard reset, the post-reset state is 00 after every spike, so we make 00 a level and keep only one level above θ\theta, that is, n=K−1n=K-1 (Figure 4, middle). Under soft reset, it is V^t−θ\hat{V}_t-\theta, which carries the part above θ\theta to the next step, so several levels above θ\theta are needed and nn is calibrated. We make θ\theta a whole number mm of steps, so that subtracting θ\theta moves each level gjg_j above θ\theta down to the level gj−mg_{j-m} (Figure 4, bottom). The two rules give

Δv={θ/(m+12)(hard reset),θ/m(soft reset),(6)\Delta_v = \begin{cases} \theta/(m+\frac{1}{2}) & \text{(hard reset)},\\ \theta/m & \text{(soft reset)}, \end{cases} \tag*{(6)}

where mm is the number of levels between 00 and θ\theta, with m∈{0,…,K−2}m \in\{0,\ldots,K-2\} under hard reset and m∈{1,…,n}m \in\{1,\ldots,n\} under soft reset, which keeps gj−mg_{j-m} on the grid. In both cases, the post-reset state is a level (Sec. B).

Experiments

Experimental Setup

Benchmarks. We evaluate SNNs with T=4T=4 time steps on seven benchmarks. For image classification, we use PreAct-ResNet-18 [11] with soft reset on CIFAR-10 and CIFAR-100 [15], and SEW-ResNet-18 [8] and the Spike-driven Transformer 8-384 (SDT) [43] on ImageNet [4]. For semantic segmentation, we use the 55M SDT-V2 [44] with a spiking FPN decoder on PASCAL VOC 2012 [7] and ADE20K [48]. For object detection, we use EMS-YOLO [34] with a ResNet-34 backbone on COCO [21]. All other models use hard reset.

Baselines. For weights, we compare with round-to-nearest (RTN), FlowQ [1], the second-order methods GPTQ [9], SBC [32], and GPTAQ [19], and the reconstruction methods BRECQ [18] and PTQ4SNN [40]. For membrane potentials, we compare with MinMax [13] and MSE [26] range calibration, the membrane quantization of FlowQ (FlowQ-M), the threshold-centered grid of SQUAT [35], and the membrane quantization of PTQ4SNN (PTQ4SNN-M). +MPBA adds the mixed-precision bit allocation of PTQ4SNN.

Protocol. Most existing methods use post-reset quantization, so we also evaluate all membrane quantization methods under it. WbWb and VbVb quantize only the weights or only the membrane potentials to bb bits, and WbVbWbVb quantizes both. Weights are calibrated on 1,024 unlabeled training images and membrane grids on 256. Further details and 3-bit results are in Secs. A and C.

Weight Quantization

Tables 1 to 3 compare SpikeQ with existing weight quantization methods. At W4, it stays within 0.28 points of the best method on every benchmark, whereas at W2 it is the right? Need likely "best..." ends mid. Since page ends visible "the" yes exact. No references due bibliography instruction. best on six of the seven benchmarks and more than doubles the accuracy of the strongest baseline on SDT (45.76% vs. 22.21%). The difference comes from the step size. With a fine 4-bit step, the rounding error is small and flips only neurons whose membrane potential is close to the threshold, so minimizing the error of the current or membrane potential also keeps flipped spikes few. With a coarse 2-bit

MethodCIFAR-10 W4CIFAR-10 W2CIFAR-100 W4CIFAR-100 W2ImageNet SEW-ResNet-18 W4ImageNet SEW-ResNet-18 W2ImageNet SDT-8-384 W4ImageNet SDT-8-384 W2
FP92.6073.7862.8972.04
RTN92.2517.5970.971.0036.210.1040.790.12
FlowQ [1]91.9610.0058.591.0728.120.1024.190.17
GPTQ [9]92.0989.5371.4850.4961.5913.9068.654.42
SBC [32]92.3989.2671.9651.1761.6326.9368.575.36
GPTAQ [19]92.1290.1773.1059.0262.0226.4669.892.51
BRECQ [18]92.0490.3272.0163.7660.9539.5654.1421.83
PTQ4SNN [40]91.8990.3672.1464.1960.8640.4954.9722.21
SpikeQ (Ours)92.3890.2873.2765.7262.0543.7070.3345.76

Table 1. Weight quantization (WbW_b) on image classification with full-precision membrane potentials. CIFAR models are PreAct-ResNet-18. Top-1 accuracy (%). Best in bold and second best underlined.

MethodVOC 2012 W4VOC 2012 W2ADE20K W4ADE20K W2
FP70.8634.91
RTN68.233.4932.070.12
FlowQ [1]60.923.4924.400.05
GPTQ [9]70.6452.8334.4616.42
SBC [32]70.2556.1434.2219.53
GPTAQ [19]69.9647.6133.5415.14
BRECQ [18]67.4962.9829.8519.28
PTQ4SNN [40]67.5362.0529.8418.58
SpikeQ (Ours)70.3665.7434.5029.32

Table 2. Weight quantization (WbW_b) of SDT-V2 on semantic segmentation with full-precision membrane potentials. mIoU (%). Notation as in Tab. 1.

step, the error cannot be made small, and what matters is where it falls. An error flips no spike in a neuron far from the threshold but flips one near it, so the rounding with the smallest error of the current or membrane potential can still flip spikes. SpikeQ shares its clipping with BRECQ and PTQ4SNN but selects levels by the spikes they change, so it can place the error where it flips none. SpikeQ thus flips the fewest spikes at W2 on every benchmark, and accuracy generally falls as flipped spikes grow (Figure 5(a) and Figure S1 and Figure S2).

Figure 5. Accuracy versus flipped spikes of SDT-8-384 on ImageNet. (a) Weight quantization (W4) with full-precision membrane potentials. (b) Membrane quantization (V4) with full-precision weights. Flipped spikes are counted against the full-precision network over all neurons and time steps.

Figure S1. Accuracy versus flipped spikes at 2 bits. (a) Weight quantization (W2) with full-precision membrane potentials. (b) Pre-fire membrane quantization (V2) with full-precision weights. Flipped spikes are counted against the full-precision network over all neurons and time steps.

Figure S2. Accuracy versus flipped spikes at 4 bits, with panels as in Figure S1. The first row repeats Figure 5, and the y-axes of (a) do not start at zero.

The gain also grows with the complexity of the task, from CIFAR-10 to CIFAR-100 to ImageNet for ResNet-18 and from VOC to ADE20K for SDT-V2. A complex task separates many classes by fine differences in the features, which leaves the network less redundancy to absorb flipped spikes. At W2, the strongest baseline thus loses about twice as much accuracy on ADE20K as on VOC, so reducing flipped spikes helps most on such tasks. On CIFAR-10, whose ten classes differ coarsely, the network has enough redundancy to tolerate the flipped spikes of every strong method, so at W2 the four strongest lie within 0.19 points.

Membrane Quantization

Pre-fire quantization. PTQ4SNN-M selects one scale per channel, so besides the layer-wise SpikeQ, we report SpikeQ†, which selects one grid per channel. Under prefire quantization, every existing grid collapses at V2 on all seven benchmarks, whereas SpikeQ retains most of the full-precision accuracy (Table 4 to Table 6). In existing grids, θ\theta is not a rounding boundary, so membrane potentials between θ\theta and the nearest one are rounded across θ\theta. This band spans up to half a step, so at 2 bits it flips many spikes in every layer and time step. The smaller step at V4 narrows the band, and existing grids partly recover, but their accuracy still falls as they flip more spikes (Figure 5(b)). Threshold anchoring makes θ\theta itself a rounding boundary and removes the band

MethodCIFAR-10 V4CIFAR-10 V2CIFAR-100 V4CIFAR-100 V2
FP92.6073.78
MinMax [13]68.99/91.9210.00/20.7843.32/72.760.78/16.00
MSE [26]81.61/92.4710.00/91.1069.62/73.531.00/56.27
FlowQ-M [1]91.50/92.5110.00/92.2666.69/73.911.00/71.56
SQUAT [35]92.06/92.3710.01/90.2771.00/73.881.00/66.52
PTQ4SNN-M† [40]90.90/92.5310.00/91.8963.55/73.711.00/70.23
+MPBA† [40]63.32/92.5410.00/92.03‡68.09/73.741.00/70.62‡
SpikeQ (Ours)92.68/92.5591.36/92.4873.27/74.0468.60/72.96
SpikeQ† (Ours)92.80/92.6691.31/92.7673.27/73.3768.65/73.44
MethodImageNet SEW-ResNet-18 V4ImageNet SEW-ResNet-18 V2ImageNet SDT-8-384 V4ImageNet SDT-8-384 V2
FP62.8972.04
MinMax [13]0.15/1.730.11/0.117.87/66.390.10/19.58
MSE [26]0.10/9.290.10/0.100.47/64.330.10/5.90
FlowQ-M [1]1.15/28.650.11/3.7351.50/71.050.84/62.46
SQUAT [35]4.46/60.640.08/4.060.38/71.710.10/55.89
PTQ4SNN-M† [40]13.98/47.950.12/14.3045.25/70.800.14/62.26
+MPBA† [40]15.83/48.110.16/14.50‡35.61/70.210.25/62.50‡
SpikeQ (Ours)61.39/61.4048.32/48.2971.97/71.9767.87/67.88
SpikeQ† (Ours)62.71/62.8235.94/35.9171.99/72.0368.36/68.47

Table 4. Membrane quantization (VbV_b) on image classification with full-precision weights. CIFAR models are PreAct-ResNet-18. Top-1 accuracy (%). Each cell gives the pre-fire/post-reset result, ranked separately with the best in bold and second best underlined. †Channel-wise. ‡2.3 bits on average, not ranked.

MethodV4V2
FP31.38
MinMax [13]0.79/30.970.00/26.35
MSE [26]0.27/31.030.00/27.84
FlowQ-M [1]28.41/31.200.13/30.84
SQUAT [35]20.30/31.360.00/30.60
PTQ4SNN-M† [40]28.54/31.270.32/31.28
+MPBA† [40]27.49/31.390.49/31.13‡
SpikeQ (Ours)31.32/31.5331.14/31.24
SpikeQ† (Ours)31.39/31.3831.29/31.13

Table 6. Membrane quantization (VbV_b) of EMS-YOLO on COCO with full-precision weights. AP (%). Notation as in Table 4.

MethodVOC 2012ADE20K
V4V2V4V2
FP70.8634.91
MinMax [13]0.05/62.403.49/50.100.17/24.870.12/15.84
MSE [26]3.49/69.103.49/41.220.27/33.620.12/24.01
FlowQ-M [1]16.88/70.293.49/68.5211.07/34.020.12/33.41
SQUAT [35]2.91/70.610.20/61.471.59/34.720.13/31.69
PTQ4SNN-M† [40]61.14/70.763.49/70.1227.32/34.610.16/34.29
+MPBA† [40]57.16/70.703.49/69.42‡24.33/34.690.12/34.27‡
SpikeQ (Ours)70.65/70.7369.71/69.7934.56/34.5633.44/33.67
SpikeQ† (Ours)70.46/70.8570.61/70.3234.46/34.5434.27/33.94

Table 5. Membrane quantization (VbV_b) of SDT-V2 on semantic segmentation with full-precision weights. mIoU (%). Notation as in Table 4.

for any Δv\Delta v, so SpikeQ flips the fewest spikes. SpikeQ† improves on SpikeQ by up to 0.90 mIoU on segmentation at V2. On SEW-ResNet-18 at V2, however, it falls far behind SpikeQ, as some first-layer channels lose 73% of their spikes. Their grid has no level between zero and θ\theta, so membrane potentials below θ\theta are rounded to zero and cannot accumulate, whereas a layer-wise grid must suit all channels and keeps such levels.

Post-reset quantization. We also test whether minimizing flipped spikes helps under post-reset quantization, where firing still uses the full-precision VtV_t. Our grids are again more accurate than existing ones on most benchmarks (Table 4 to Table 6). Existing grids set the step without regard to flipped spikes. Under hard reset, for example, the MSE is dominated by negative membrane potentials far from θ\theta, whose rounding errors flip no spike. It thus selects a coarse step that rounds membrane potentials just below θ\theta to zero, so their neurons miss the spikes they would fire at the next time step. SpikeQ selects the step by the number of flipped spikes and thus ignores these far membrane potentials.

Hard vs. soft reset. Under hard reset, a calibration free to select the number of levels above θ\theta still keeps only one, so fixing this number in our grid loses nothing and reduces the search. On the soft-reset CIFAR models, our pre-fire grids trail our post-reset grids at V2. Pre-fire quantization rounds the membrane potential before θ\theta is subtracted and therefore also needs levels above θ\theta, whereas post-reset quantization rounds the difference, which lies below θ\theta. With the same number of levels, the pre-fire grid thus spans a wider range and is coarser, and the gap largely closes with the 16 levels of V4.

Joint Quantization

Quantizing only the weights leaves the membrane potentials at 32 bits, so W2 shrinks the memory footprint by only 1.4–9.2×, whereas W2V2 shrinks it by 15.1–15.7× (Table 7). W4V4 shrinks it by 7.8–7.9× and stays within 2.59 points of full precision. W2V2 trades accuracy for this further 2× compression, and the price grows with the complexity of the task. At 2 bits, both stages still flip spikes, and accuracy drops steeply once flipped spikes accumulate. A complex task has less redundancy to absorb them (§ 5.2) and reaches this drop sooner. Complex tasks thus need 4 bits, whereas 2 bits pay off only on simple tasks under tight memory budgets.

SettingCIFAR 10CIFAR 100ImageNet SEWImageNet SDTVOCADE 20KCOCO
FP92.6073.7862.8972.0470.8634.9131.38
W492.3873.2761.9170.3370.3634.4029.92
W4V492.4173.1160.3070.4970.3234.1229.80
W290.2865.7243.7045.7665.7429.3221.30
W2V288.5057.4915.8536.8363.0027.1821.26
Footprint (MB)
FP44.844.954.1101586723269
W47.52 6.0×7.54 6.0×15.1 3.6×45.4 2.2×391 1.5×528 1.4×156 1.7×
W4V45.66 7.9×5.68 7.9×6.81 7.9×13.0 7.8×74.2 7.9×91.4 7.9×33.8 7.9×
W24.86 9.2×4.87 9.2×12.3 4.4×41.4 2.4×377 1.6×514 1.4×148 1.8×
W2V22.86 15.6×2.87 15.6×3.44 15.7×6.72 15.1×37.6 15.6×46.2 15.6×17.1 15.7×
EC (mJ)
FP1.560.8895.9618.4421556154
W4V40.228 6.8×0.129 6.9×0.875 6.8×2.71 6.8×62.1 6.8×81.6 6.8×24.1 6.4×
W2V20.147 10.6×0.083 10.8×0.576 10.3×1.76 10.5×41.0 10.2×56.1 9.9×17.7 8.7×

Table 7. Joint quantization with SpikeQ, memory footprint, and energy consumption (EC). The Wb accuracies repeat Tabs. 1 to Table 3. Top-1 accuracy, mIoU, and AP (%). Footprint adds the model size and the memory of membrane potentials for one image (Sec. E). Gray subscripts give the reduction from FP.

MethodAP W4AP W2AP50 W4AP50 W2
FP31.3850.86
RTN22.590.0044.570.00
FlowQ [1]12.980.0030.400.00
GPTQ [9]29.977.3250.2515.67
SBC [32]30.0310.0250.1620.12
GPTAQ [19]29.121.4649.583.62
BRECQ [18]25.4014.8245.8031.72
PTQ4SNN [40]25.3114.6245.8932.01
SpikeQ (Ours)30.2321.3050.1039.91

Table 3. Weight quantization (WbW_b) of EMS-YOLO on COCO with full-precision membrane potentials. AP and AP50 (%). Notation as in Tab. 1.

Energy Consumption

Following prior work [41, 42], the energy consumption (EC) of one inference sample is written as

EC=Ecompute+Ememory+Eneuron.(7)\mathrm{EC} = E_{\mathrm{compute}} + E_{\mathrm{memory}} + E_{\mathrm{neuron}}. \tag*{(7)}

The compute term covers adding active weights to membrane potentials, the memory term covers reading these weights and transmitting spikes, and the neuron term covers membrane potential updates, threshold comparisons, and resets. Each term multiplies an operation count, which grows with the firing rate, by a per-operation energy, which grows with the bit width (Sec. E).

EC falls by 6.4–6.9× at W4V4 and 8.7–10.8× at W2V2 (Table 7). Unlike the footprint, which shrinks fully only when the membrane potentials are also quantized, EC falls almost entirely through weight quantization. Weight reads, whose cost is proportional to the bit width, dominate the full-precision EC, whereas the bit width of the membrane potentials enters only the neuron term, a small share of EC.

Ablation Study

Table 8 removes or changes one component of SpikeQ at a time, at W2 for weights and at V2 for membrane potentials.

Weight terms. The margin and population terms matter on different tasks. Removing the margin term costs up to 5.29 points on classification and detection, and the cost grows with task complexity, like the gain of SpikeQ in § 5.2, since this term helps correct wrong spikes that a complex task has less redundancy to absorb. The population term matters more on segmentation, where removing it costs about 3.2 mIoU.

Pre-fire grid rules. Without threshold anchoring, the grid has a level at θ\theta, so membrane potentials within half a step

below θ\theta are rounded up to θ\theta and fire. Although Lv\mathcal{L}_v still selects the step by flipped spikes, SpikeQ collapses on every hard-reset benchmark, so anchoring is what prevents the collapse. Without the reset-aware step, each reset type uses the other, which slightly lowers accuracy on most benchmarks.

Post-reset calibration. Under post-reset quantization, replacing Lv\mathcal{L}_v with the MSE among the same candidates lowers the accuracy of SpikeQ on every hard-reset benchmark by up to 40.22 points. The MSE often selects a grid that rounds the membrane potentials just below θ\theta to zero, so their neurons miss their spikes at the next time step. On the soft-reset CIFAR models, both criteria are equally accurate, as no candidate grid there rounds these membrane potentials to zero.

Conclusion

This paper shows that quantization errors reduce the accuracy of SNNs through the spikes they flip rather than through their magnitude. SpikeQ therefore selects the weight levels that cause the fewest spike errors. Its membrane grid makes the threshold a rounding boundary, so rounding the membrane potential before firing never moves it across the threshold, and matches its levels to the reset rule, so the post-reset state needs no further rounding. Across image classification, semantic segmentation, and object detection, SpikeQ outperforms existing methods in most settings.

Implementation Details

Models and calibration. All experiments run on NVIDIA A100 GPUs with 80 GB of memory. The CIFAR models and both SDT models use LIF neurons, and SEW-ResNet-18 uses IF neurons. Weight calibration uses a single seed, and on CIFAR-10 at W2, SpikeQ averages 90.52 ±\pm 0.19 over three calibration seeds. All COCO results, including full precision, are evaluated in FP32 with TF32 disabled.

Weight quantization. Weights are quantized per output channel. GPTQ and SBC use their default min-max grids, and GPTAQ uses α=0.25\alpha= 0.25, the default of its official implementation. BRECQ, PTQ4SNN, and SpikeQ share the same clipping search for the weight grid, which minimizes the L2.4L_{2.4} weight error, so they differ only in the selected levels. BRECQ and PTQ4SNN use 20k reconstruction iterations (5k on COCO). On COCO, all methods keep the first layer and the detection head at 8 bits with round-to-nearest.

SpikeQ weight search. After each sweep, SpikeQ updates

μ←clip⁡(μ+0.5LpopLcount+λLmargin,−0.9,0.9),\mu\leftarrow\operatorname{clip}\left(\mu+ \frac{0.5\mathcal{L}_{\mathrm{pop}}}{\mathcal{L}_{\mathrm{count}}+\lambda\mathcal{L}_{\mathrm{margin}}},-0.9,0.9\right),

where dividing by the total error makes the step independent of the layer size. The held-out part is 25% of the calibration images. SpikeQ uses ρ=0.5\rho= 0.5 at W2, ρ=0.25\rho= 0.25 at W3 and W4, λ=1\lambda= 1, four draws of ε\varepsilon, and at most six sweeps in the second phase.

Simulated layers. The simulated input current includes batch normalization, channel-wise pooling, and residual inputs between a layer and its neurons. On large feature maps, SpikeQ samples spatial positions but keeps all time steps. When a channel drives no spiking neurons of its own, as in the non-spiking classifier, SpikeQ keeps the search but replaces Eq. (4) with the output error Lout=∑t∥(Wcℓ−Wℓ)Stℓ−1∥22\mathcal{L}_{\mathrm{out}} = \sum_t \left\|(W_c^\ell-W^\ell)S_{t}^{\ell-1}\right\|_2^2.

Membrane quantization. Membrane grids are calibrated on 256 images, and for segmentation we sample 16,384 neurons per image and layer. MinMax, MSE, FlowQ-M, SQUAT, and SpikeQ are layer-wise. PTQ4SNN-M uses channel-wise scales, and SpikeQ† lets each channel select its own grid from the same threshold-anchored candidates. +MPBA mixes 2, 4, and 8 bits, and its V2 results use 2.3 bits on average. Under post-reset quantization, our grids keep the same candidates and selection rule, and MinMax

and MSE calibrate their ranges on post-reset membrane potentials. For WbVb, the membrane grids are calibrated on the weight-quantized network (§ 4.2).

Proof of Reset-Aware Level Allocation

Reset-aware level allocation (§ 4.2) sets Δv\Delta_v so that the post-reset state is a level of GV\mathcal{G}_V and needs no further rounding. We prove this below.

Proposition 1. Under pre-fire quantization with the grid of Eq. (5), Δv\Delta_v from Eq. (6), and the stated ranges of mm, the post-reset state is a level of GV\mathcal{G}_V under both hard and soft reset, and the mm levels gn−m,…,gn−1g_{n-m},\ldots,g_{n-1} are those between 00 and θ\theta.

Proof. Without a spike, the post-reset state is V^t=Qv(Vt)\hat{V}_t=Q_v(V_t), which is a level. With a spike, V^t=gj\hat{V}_t=g_j for some j≥nj\ge n, since gng_n is the lowest level above θ\theta.

Under hard reset, the post-reset state is 00. With Δv=θ/(m+12)\Delta_v=\theta/(m+\frac{1}{2}), Eq. (5) gives gn−m−1=θ−(m+12)Δv=0g_{n-m-1}=\theta-(m+\frac{1}{2})\Delta_v=0, and n=K−1n=K-1 with m≤K−2m\le K-2 ensures n−m−1≥0n-m-1\ge0.

Under soft reset, the post-reset state is gj−θg_j-\theta. With θ=mΔv\theta=m\Delta_v, Eq. (5) gives gj−θ=gj−mg_j-\theta=g_{j-m}, and m≤n≤jm\le n\le j ensures j−m≥0j-m\ge0. In both cases, the lowest level above 00 is gn−mg_{n-m}, which equals Δv\Delta_v under hard reset and 12Δv\frac{1}{2}\Delta_v under soft reset, so the mm levels gn−m,…,gn−1g_{n-m},\ldots,g_{n-1} are those between 00 and θ\theta.

Results at 3 Bits

Table S1 reports the 3-bit results omitted from the main text, which follow the trends at 2 and 4 bits. SpikeQ gives the most accurate weight quantization in six of the eight W3 columns. Under pre-fire quantization, every baseline stays at least 15 points below full precision at V3, whereas our layer-wise grids stay within 0.91 points of full precision except on SEW-ResNet-18, where SpikeQ† reaches 62.18%.

W3CIFARImageNetVOC 2012ADE20KCOCO
10100SEWSDTAPAP50_{50}
FP92.6073.7862.8972.0470.8634.9131.3850.86
RTN90.3742.910.940.4056.4023.755.7215.16
FlowQ [1]85.3930.230.201.559.242.280.481.31
GPTQ [9]91.8169.2857.2057.9669.6932.8826.2048.12
SBC [32]91.9469.3457.2058.3169.8532.9626.8348.22
GPTAQ [19]91.9771.5558.8261.7569.2432.5324.8946.01
BRECQ [18]91.5069.7657.2144.7465.9226.4122.7142.95
PTQ4SNN [40]91.6569.9157.1444.6266.2026.0122.6943.12
SpikeQ (Ours)92.1471.5459.1367.5569.6833.3727.9448.43
V3CIFARImageNetVOC 2012ADE20KCOCO AP
10100SEWSDT
FP92.6073.7862.8972.0470.8634.9131.38
MinMax [13]10.06/81.031.22/66.690.10/0.780.11/45.380.81/57.240.11/14.970.00/29.63
MSE [26]41.88/92.0848.45/72.500.10/0.110.10/51.223.30/68.220.02/31.840.00/30.44
FlowQ-M [1]57.51/92.5718.87/73.360.13/17.202.26/70.495.05/69.022.38/33.981.43/31.00
SQUAT [35]43.98/92.4324.31/72.460.16/43.240.12/71.171.44/69.490.04/34.080.07/31.31
PTQ4SNN-M† [40]77.40/92.7823.14/73.371.22/29.3318.11/65.9217.06/70.489.21/34.7214.98/31.12
+MPBA†10.00/91.962.15/72.651.67/24.570.77/69.283.58/70.270.36/34.413.59/31.09
SpikeQ (Ours)92.59/92.6072.87/73.8958.08/58.0871.43/71.4070.54/70.6134.45/34.4831.35/31.30
SpikeQ† (Ours)92.48/92.7272.85/73.7862.18/62.1171.53/71.7670.92/70.7434.45/34.5931.46/31.35

Table S1. Weight quantization (W3, top) with full-precision membrane potentials and membrane quantization (V3, bottom) with full-precision weights. Top-1 accuracy, mIoU, and AP (%). Notation as in Tabs. 1 and Table 4.

Flipped Spikes and Accuracy

Measurement. Figure S1 and Figure S2 extend Figure 5 to all seven benchmarks at 2 and 4 bits. Flipped spikes are counted against the full-precision network over all neurons and time steps, so they include flips passed on from earlier layers and time steps. Flipped spikes are measured on 2,000 evaluation images for CIFAR, 1,000 for SEW-ResNet-18, 500 for SDT, and 200 for VOC, ADE20K, and COCO, and accuracy on the full evaluation sets.

Weight quantization. At W2, SpikeQ flips the fewest spikes on every benchmark, and accuracy falls as flipped spikes grow (Figure S1, § 5.2). At W4, the fine step keeps rounding errors small, so most methods flip similar numbers of spikes and reach similar accuracy (Figure S2, § 5.2). Accuracy drops mainly for the methods that flip more spikes.

Membrane quantization. SpikeQ flips the fewest spikes on every benchmark at both V2 and V4, since threshold anchoring removes the band of membrane potentials rounded across θ\theta (§ 5.3). At V2, every existing grid collapses, so these panels show no graded trend, only that SpikeQ alone keeps most of the full-precision accuracy. At V4, the finer step narrows the band, existing grids partly recover, and accuracy falls as flipped spikes grow on ImageNet, segmentation, and detection. On CIFAR, the accuracy of the existing grids is not ordered by their flipped spikes.

Energy Consumption

Energy model. Following [41, 42], a weight layer ℓ\ell performs SOPℓ=Oℓ FRℓ T\mathrm{SOP}_{\ell} = O_{\ell}\,\mathrm{FR}_{\ell}\,T synaptic operations, where OℓO_{\ell} is its number of multiply-accumulate operations in one time step and FRℓ\mathrm{FR}_{\ell} is the firing rate of its input. A spiking layer ℓ\ell has PℓP_{\ell} neurons with firing rate FRℓout\mathrm{FR}_{\ell}^{\mathrm{out}}. With weight bit width bwb_w and membrane bit width bvb_v, the three terms of Eq. (7) are

Ecompute=∑ℓSOPℓ eadd(bw),Ememory=∑ℓSOPℓ[bwewread+espike],Eneuron=∑ℓPℓT[estate(bv)(1+FRℓout)+eleak].(8)\begin{aligned} E_{\mathrm{compute}} &= \sum_{\ell} \mathrm{SOP}_{\ell}\,e_{\mathrm{add}}(b_w), \\ E_{\mathrm{memory}} &= \sum_{\ell} \mathrm{SOP}_{\ell}\left[b_w e_{\mathrm{wread}} + e_{\mathrm{spike}}\right], \\ E_{\mathrm{neuron}} &= \sum_{\ell} P_{\ell}T\left[e_{\mathrm{state}}(b_v)(1+\mathrm{FR}_{\ell}^{\mathrm{out}}) + e_{\mathrm{leak}}\right]. \tag*{(8)} \end{aligned}

Each synaptic operation adds one weight to a membrane potential, reads this bwb_w-bit weight, and transmits one spike. Each neuron updates and compares its membrane potential at every time step, resets it when it fires, and leaks. Table S2 lists the energy of each operation. A 32-bit synaptic addition is costed as a floating-point addition [12], because a binary input spike turns the multiplication into a conditional addition. Under this model, two quantization methods with the same bit widths differ in EC only through their firing rates.

SymbolOperationEnergy (pJ)
eadd(32)e_{\mathrm{add}}(32)synaptic addition, 32 bits (floating point)0.900
eadd(4)e_{\mathrm{add}}(4)synaptic addition, 4 bits0.0502
eadd(2)e_{\mathrm{add}}(2)synaptic addition, 2 bits0.0477
ewreade_{\mathrm{wread}}weight read, per bit0.0985
espikee_{\mathrm{spike}}spike transmission0.180
estate(b)e_{\mathrm{state}}(b)membrane update, comparison, or reset, bb bitseadd(b)e_{\mathrm{add}}(b)
eleake_{\mathrm{leak}}leakage, per neuron and time step0.002

Table S2. Energy of one operation in Eq. (8).

Measurement. OℓO_{\ell} and PℓP_{\ell} are counted with the evaluation preprocessing, at 224×224224 \times224 for ImageNet, on whole images for segmentation, and on images letterboxed to 640

pixels for COCO, and are averaged over 16 evaluation images. Firing rates are measured on the full evaluation sets of CIFAR and VOC, on 5,000 ImageNet evaluation images, and on 500 evaluation images of ADE20K and COCO. Layers whose inputs are not spikes are costed with FRℓ=1\mathrm{FR}_{\ell}=1. They are the first layer of each network, the classifiers after pooling, the detection head of EMS-YOLO, and the SDTV2 convolutions that follow another convolution without spiking neurons in between. The bit widths are those of the quantized weights and of the layer-wise pre-fire membrane grids, and WbW_b and VbV_b keep the other quantity at 32 bits. The 8-bit first layer and detection head of EMS-YOLO are costed with eadd(4)e_{\mathrm{add}}(4), since Table S2 has no 8-bit value. Products of two activations in attention involve no weights and are not counted.

Energy savings. At full precision, memory takes 79% of EC (Table S3), mostly for weight reads, whose cost is proportional to bwb_w. Weight quantization therefore provides almost the entire saving, as W4 and W2 alone lower EC by 6.36.3–6.8×6.8\times and 8.58.5–10.2×10.2\times, close to W4V4 and W2V2. Membrane quantization alone changes EC by less than 5%, since its bit width enters only the neuron term, at most 0.25% of EC at full precision. Going from W4V4 to W2V2 lowers EC by only 1.41.4–1.6×1.6\times, because a spike transmission costs the same at every bit width and takes 42% of the energy of a 2-bit synaptic operation.

BenchmarkSettingFR (%)ComputeMemoryNeuronECReduction (×)MemoryNon-spikingWeightsMembraneFootprint
CIFAR-10PreAct-ResNet-18FP20.553311,2272.421,56078.61.942.62.1344.8
W420.5018.42112.422316.7591.01.95.392.137.52
V420.513301,2230.141,5541.0078.71.942.60.26642.9
W4V420.4618.42100.142286.8391.91.95.390.2665.66
W220.2717.31362.4215610.0087.41.92.732.134.86
V219.993201,1830.131,5021.0478.72.042.60.13342.8
W2V219.5016.51300.1314710.6188.62.02.730.1332.86
CIFAR-100PreAct-ResNet-18FP9.481896982.2088978.53.442.82.1344.9
W49.4310.41192.201326.7490.43.35.412.137.54
V49.461886950.138831.0178.73.442.80.26643.1
W4V49.4110.41190.131296.8891.93.45.410.2665.68
W29.289.676.22.2088.010.1086.63.42.742.134.87
V29.101806660.128461.0578.73.642.80.13342.9
W2V28.909.373.20.1282.610.7688.63.62.740.1332.87
ImageNetSEW-ResNet-18FP12.951,2644,68110.15,95578.68.444.69.4854.1
W412.9170.380410.18846.7490.98.45.639.4815.1
V412.961,2654,6810.585,9461.0078.78.444.61.1845.8
W4V412.9270.38040.588756.8191.98.55.631.186.81
W212.5364.751110.158610.1787.28.62.859.4812.3
V213.161,2484,6190.565,8671.0178.78.544.60.59245.2
W2V212.8464.65100.5557610.3588.78.72.850.5923.44
ImageNetSDT-8-384FP10.933,90814,46738.918,41378.66.064.237.1101
W410.912172,48538.92,7416.7290.75.98.3937.145.4
V410.973,91614,4972.2418,4151.0078.76.064.24.6368.8
W4V410.952182,4892.242,7096.8091.96.08.394.6313.0
W210.692031,60638.81,8489.9786.96.04.4037.141.4
V210.613,79514,0502.1317,8481.0378.76.264.22.3266.5
W2V210.341971,5592.121,75910.4788.76.34.402.326.72
VOC 2012SDT-V2FP16.6089,357330,819400420,57578.735.9224362586
W416.544,97656,89939962,2746.7591.435.828.9362391
V416.6989,660331,94123.0421,6241.0078.735.922445.3269
W4V416.604,99057,05723.062,0706.7891.935.928.945.374.2
W216.104,68837,05139842,1379.9887.936.015.0362377
V216.1587,817325,11821.8412,9571.0278.736.622422.6246
W2V215.644,60736,41221.741,04110.2588.737.015.022.637.6
ADE20KSDT-V2FP15.31118,221437,680544556,44578.737.0224499723
W415.266,58275,26054482,3866.7591.436.928.9499528
V415.26117,813436,17031.3554,0141.0078.737.222462.4286
W4V415.216,55874,99031.381,5806.8291.937.228.962.491.4
W215.236,28149,63854456,4639.8687.936.615.0499514
V215.52119,458442,26129.9561,7490.9978.736.722431.2255
W2V215.376,30349,81629.956,1499.9188.736.815.031.246.2
COCOEMS-YOLOFP25.6432,613120,740165153,51878.612.4129139269
W425.581,81222,48616524,4646.2891.918.616.4139156
V425.4632,275119,4919.49151,7751.0178.712.512917.4147
W4V425.401,79322,2719.4824,0746.3892.518.916.417.433.8
W225.351,71416,10916517,9898.5389.625.48.38139148
V225.3832,224119,3009.03151,5331.0178.712.51298.70138
W2V225.111,69515,9569.0117,6608.6990.425.88.388.7017.1

Table S3. Energy breakdown, model size, and memory of membrane potentials per image. WbVbW_bV_b are the settings of Table 7, and WbW_b and VbV_b quantize only the weights or only the membrane potentials. Compute, memory, and neuron are the three terms of Eq. (8). FR is the mean firing rate over all spiking neurons. Reduction is the EC of FP divided by the EC of the setting. Non-spiking is the share of layers with non-spiking inputs, which are costed with FRℓ=1\mathrm{FR}_{\ell}=1 and overlap the compute and memory terms. Weights is the model size, Membrane is the memory that stores the membrane potentials, one per neuron with all neurons held at once, and Footprint is their sum, as in Table 7.

Memory. The model size counts each weight at its bit width, one 32-bit scale per output channel, and the other parameters at 32 bits, with batch normalization folded and 1 MB being 2202^{20} bytes. Neuromorphic chips also keep the membrane potential of every neuron in on-chip SRAM across time steps [3, 24], which Eq. (8) does not count. The Membrane column of Table S3 gives this memory for one image, and the memory footprint of Table 7 adds it to the model size. On segmentation and detection, the large feature maps make this memory exceed the model at full precision, so after W2 the membrane potentials take most of the footprint, and W2V2 reduces it from 377 to 37.6 MB on VOC.

References

  1. [1]Faiz Asim, Sanhtet Aung, and Jongeun Lee. FlowQ: Fixed-point low-precision post-training quantization framework for efficient and accurate SNN inference. In 31st Asia and South Pacific Design Automation Conference (ASP-DAC), pages 119–125, 2026.DOI
  2. [2]Honglin Cao, Zijian Zhou, Wenjie Wei, Yu Liang, Ammar Belatreche, Dehao Zhang, Malu Zhang, Yang Yang, and Haizhou Li. Binary event-driven spiking transformer. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence (IJCAI), pages 4110–4118, 2025.arxiv.org/abs/2501.05904
  3. [3]Mike Davies, Narayan Srinivasa, Tsung-Han Lin, Gautham Chinya, Yongqiang Cao, Sri Harsha Choday, Georgios Dimou, Prasad Joshi, Nabil Imam, Shweta Jain, et al. Loihi: A neuromorphic manycore processor with on-chip learning. Ieee micro, 38(1):82–99, 2018.DOI
  4. [4]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009.
  5. [5]Jason K. Eshraghian, Corey Lammie, Mostafa Rahimi Azghadi, and Wei D. Lu. Navigating local minima in quantized spiking neural networks. In IEEE International Conference on Artificial Intelligence Circuits and Systems (AICAS), pages 352–355, 2022.
  6. [6]Steven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy, and Dharmendra S. Modha. Learned step size quantization. In International Conference on Learning Representations, 2020.
  7. [7]Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The PASCAL visual object classes (VOC) challenge. International Journal of Computer Vision, 88(2):303–338, 2010.DOI
  8. [8]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, 2021.arxiv.org/abs/2102.04159
  9. [9]Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. Gptq: Accurate post-training quantization for generative pre-trained transformers. In International Conference on Learning Representations, 2023.arxiv.org/abs/2210.17323
  10. [10]Ahmed Hasssan, Jian Meng, Anupreetham Anupreetham, and Jae-sun Seo. SpQuant-SNN: Ultra-low precision membrane potential with sparse activations unlock the potential of on-device spiking neural networks applications. Frontiers in Neuroscience, 18:1440000, 2024.
  11. [11]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, pages 630–645, 2016.arxiv.org/abs/1603.05027
  12. [12]Mark Horowitz. 1.1 computing’s energy problem (and what we can do about it. In IEEE International Solid-State Circuits Conference Digest of Technical Papers (ISSCC), pages 10–14, 2014.DOI
  13. [13]for efficient integer-arithmetic-only inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2704–2713, 2018.arxiv.org/abs/1712.05877
  14. [14]Saeed Reza Kheradpisheh, Maryam Mirsadeghi, and Timothée Masquelier. BS4NN: Binarized spiking neural networks with temporal coding and learning. Neural Processing Letters, 54(2):1255–1273, 2022.DOI
  15. [15]Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
  16. [16]Donghyun Lee, Abhishek Moitra, Youngueun Kim, Ruokai Yin, and Priyadarshini Panda. MD-SNN: Membrane potential-aware distillation on quantized spiking neural network. In Design, Automation & Test in Europe Conference (DATE), pages 1–7, 2026.arxiv.org/abs/2512.04443
  17. [17]Haomin Li, Fangxin Liu, Zewen Sun, Zongwu Wang, Shiyuan Huang, Ning Yang, and Li Jiang. NeuronQuant: Accurate and efficient post-training quantization for spiking neural networks. In Proceedings of the 30th Asia and South Pacific Design Automation Conference (ASP-DAC), pages 734–740, 2025.DOI
  18. [18]Yuhang Li, Ruihao Gong, Xu Tan, Yang Yang, Peng Hu, Qi Zhang, Fengwei Yu, Wei Wang, and Shi Gu. BRECQ: Pushing the limit of post-training quantization by block reconstruction. In International Conference on Learning Representations, 2021.arxiv.org/abs/2102.05426
  19. [19]Yuhang Li, Ruokai Yin, Donghyun Lee, Shiting Xiao, and Priyadarshini Panda. GPTAQ: Efficient finetuning-free quantization for asymmetric calibration. In International Conference on Machine Learning, pages 36690–36706, 2025.arxiv.org/abs/2504.02692
  20. [20]Yu Liang, Wenjie Wei, Ammar Belatreche, Honglin Cao, Zijian Zhou, Shuai Wang, Malu Zhang, and Yang Yang. Towards accurate binary spiking neural networks: Learning with adaptive gradient modulation mechanism. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1402–1410, 2025.arxiv.org/abs/2502.14344
  21. [21]Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In European Conference on Computer Vision, pages 740–755, 2014.arxiv.org/abs/1405.0312
  22. [22]Hanwen Liu, Kexin Shi, Jieyuan Zhang, Yimeng Shan, Jibin Wu, Wenyu Chen, and Malu Zhang. Hard-FSNN: Hardware-friendly quantization for spiking neural networks with efficient integer-arithmetic-only inference. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 1937–1945, 2026.
  23. [23]Zaidao Mei and Qinru Qiu. S-OPTQ: Rapid quantization for spiking vision transformers. In 27th International Symposium on Quality Electronic Design (ISQED), pages 1–7, 2026.DOI
  24. [24]Paul A Merolla, John V Arthur, Rodrigo Alvarez-Icaza, Andrew S Cassidy, Jun Sawada, Filipp Akopyan, Bryan L Jackson, Nabil Imam, Chen Guo, Yutaka Nakamura, et al. A million spiking-neuron integrated circuit with a scalable communication network and interface. Science, 345(6197):668–673, 2014.DOI
  25. [25]Markus Nagel, Rana Ali Amjad, Mart Van Baalen, Christos Louizos, and Tijmen Blankevoort. Up or down? adap- tive rounding for post-training quantization. In International conference on machine learning, pages 7197–7206. PMLR, 2020.
  26. [26]Markus Nagel, Marios Fournarakis, Rana Ali Amjad, Yelysei Bondarenko, Mart Van Baalen, and Tijmen Blankevoort. A white paper on neural network quantization. arXiv preprint arXiv:2106.08295, 2021.arxiv.org/abs/2106.08295
  27. [27]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.DOI
  28. [28]Rachmad Vidya Wicksana Putra, Saad Iftikhar, and Muhammad Shafique. QSViT: A methodology for quantizing spiking vision transformers. In International Joint Conference on Neural Networks (IJCNN), pages 1–8, 2025.
  29. [29]Xuerui Qiu, Malu Zhang, Jieyuan Zhang, Wenjie Wei, Honglin Cao, Junsheng Guo, Rui-Jie Zhu, Yimeng Shan, Yang Yang, and Haizhou Li. Quantized spike-driven transformer. In International Conference on Learning Representations, 2025.arxiv.org/abs/2501.13492
  30. [30]Kaushik Roy, Akhilesh Jaiswal, and Priyadarshini Panda. Towards spike-based machine intelligence with neuromorphic computing. Nature, 575(7784):607–617, 2019.DOI
  31. [31]Guobin Shen, Dongcheng Zhao, Tenglong Li, Jindong Li, and Yi Zeng. Are conventional SNNs really efficient? a perspective from network quantization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 27538–27547, 2024.arxiv.org/abs/2311.10802
  32. [32]Lianfeng Shi, Ao Li, and Benjamin Ward-Cherrier. Spiking brain compression: Post-training second-order compression for spiking neural networks. arXiv preprint arXiv:2506.03996, 2026. Version 3.arxiv.org/abs/2506.03996
  33. [33]Ayan Shymyrbay, Mohammed E. Fouda, and Ahmed Eltawil. Low precision quantization-aware training in spiking neural networks with differentiable quantization function. In International Joint Conference on Neural Networks (IJCNN), pages 1–8, 2023.arxiv.org/abs/2305.19295
  34. [34]Qiaoyi Su, Yuhong Chou, Yifan Hu, Jianing Li, Shijie Mei, Ziyang Zhang, and Guoqi Li. Deep directly-trained spiking neural networks for object detection. In IEEE/CVF International Conference on Computer Vision, pages 6555–6565, 2023.arxiv.org/abs/2307.11411
  35. [35]Sreyes Venkatesh, Razvan Marinescu, and Jason K. Eshraghian. SQUAT: Stateful quantization-aware training in recurrent spiking neural networks. In Neuro Inspired Computational Elements Conference (NICE), pages 1–10, 2024.arxiv.org/abs/2404.19668
  36. [36]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, pages 8441–8450, 2024.arxiv.org/abs/2406.13672
  37. [37]Wenjie Wei, Malu Zhang, Jieyuan Zhang, Ammar Belatreche, Shuai Wang, Yimeng Shan, Hanwen Liu, Honglin Cao, Guoqing Wang, Yang Yang, and Haizhou Li. S²NN: Sub-bit spiking neural networks. In Advances in Neural Information Processing Systems, 2025.
  38. [38]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 International Conference on Learning Representations, 2025.arxiv.org/abs/2502.05905
  39. [39]Yujie Wu, Lei Deng, Guoqi Li, Jun Zhu, and Luping Shi. Spatio-temporal backpropagation for training high-performance spiking neural networks. Frontiers in Neuroscience, 12:331, 2018.DOI
  40. [40]Hui Xie, Tong Shi, Haotong Qin, Aishan Liu, Xiaode Liu, and Jinyang Guo. PTQ4SNN: Membrane-aware post-training quantization for spiking neural networks. arXiv preprint arXiv:2608.07066, 2026.arxiv.org/abs/2608.07066
  41. [41]Zhanglu Yan, Zhenyu Bai, Kaiwen Tang, and Weng-Fai Wong. Reconsidering the energy efficiency of spiking neural networks inference from analytical perspectives. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2026.arxiv.org/abs/2409.08290
  42. [42]Zhanglu Yan, Jiayi Mao, Qianhui Liu, Fanfan Li, Tao Luo, Gang Pan, Bowen Zhu, and Weng-Fai Wong. Otters: An energy-efficient spiking transformer via optical time-to-first-spike encoding. In International Conference on Learning Representations, pages 90203–90225, 2026.arxiv.org/abs/2509.18968
  43. [43]Man Yao, Jiakui Hu, Zhaokun Zhou, Li Yuan, Yonghong Tian, Bo Xu, and Guoqi Li. Spike-driven transformer. In Advances in Neural Information Processing Systems, 2023.arxiv.org/abs/2307.01694
  44. [44]Man Yao, JiaKui Hu, Tianxiang Hu, Yifan Xu, Zhaokun Zhou, Yonghong Tian, Bo Xu, and Guoqi Li. Spike-driven transformer V2: Meta spiking neural network architecture inspiring the design of next-generation neuromorphic chips. In International Conference on Learning Representations, 2024.arxiv.org/abs/2404.03663
  45. [45]Man Yao, Ole Richter, Guangshe Zhao, Ning Qiao, Yannan Xing, Dingheng Wang, Tianxiang Hu, Wei Fang, Tugba Demirci, Michele De Marchi, Lei Deng, Tianyi Yan, Carsten Nielsen, Sadique Sheikh, Chenxi Wu, Yonghong Tian, Bo Xu, and Guoqi Li. Spike-based dynamic computing with asynchronous sensing-computing neuromorphic chip. Nature Communications, 15(1):4464, 2024.DOI
  46. [46]Ruokai Yin, Yuhang Li, Abhishek Moitra, and Priyadarshini Panda. MINT: Multiplier-less INTeger quantization for energy efficient spiking neural networks. In 29th Asia and South Pacific Design Automation Conference (ASP-DAC), pages 830–835. IEEE, 2024.arxiv.org/abs/2305.09850
  47. [47]Hanle Zheng, Yujie Wu, Lei Deng, Yifan Hu, and Guoqi Li. Going deeper with directly-trained larger spiking neural networks. In Proceedings of the AAAI conference on artificial intelligence, pages 11062–11070, 2021.
  48. [48]Bolei Zhou, Hang Zhao, Xavier Puig, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Scene parsing through ADE20K dataset. In IEEE Conference on Computer Vision and Pattern Recognition, pages 633–641, 2017.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type