arXiv:2610.23046cs.NEOct 2026

Manuscript Offprint

arXiv:2610.23046

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

Kai Sun, Peibo Duan, Zhanglu Yan, Guowei Zhang, Yongsheng Huang, Levin Kuhlmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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×, and use 6.4–6.9× less energy.

1. 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

Figure

(a) Input current

(b) Membrane potential

(c) All errors

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).

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 (Fig. 1). For the input current, which weight quantization perturbs, constant errors lower accuracy far more than zero-sum ones (Fig. 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 (Fig. 1(b)). Plotted against the fraction of flipped spikes, i.e., spikes added or removed by the error, the four curves of Fig. 1(a) and (b) merge into one (Fig. 1(c)), so the same fraction of flipped spikes causes the same accuracy loss. The Spearman correlation between the two is -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.

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.8–7.9× and using 6.4–6.9× less energy.

References (46)