SpikeQ: Spike-Guided Post-Training Quantization for Spiking Neural Networks
Kai Sun, Peibo Duan, Zhanglu Yan, Guowei Zhang, Yongsheng Huang, Levin Kuhlmann
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.
Create a lesson
Related papers
Controllable Stochastic Quantization Encoding for Adversarially Robust Spiking Neural Networks
Shared title terminology · Yujia Liu, Peiyu Liu, Yajing Zheng et al.
Large Language Model-Guided Evolutionary Discovery of Native Neural Architectures for Spiking Sequence Modeling
Shared title terminology · Ruoyu Zhao, Jiaqi Wu, Chenyu Zhu et al.
Multi-Depth Temporal Fusion for Feedforward, Locally Trained Spiking Neural Networks
Shared title terminology · Aidin Attar, Eleonora Cicciarella, Michele Rossi
Spiking Neural Networks Incrementally Track Firing-Rate Networks
Shared title terminology · Hyunseok Oh, Youngki Lee
Neural Activity Synchronization-Based Fast Local Learnable Spiking Neural Network Architecture
Shared title terminology · Pranith Dutta, Sk Wasim Rajjak, Siddhanta Ray et al.
Bridging Spiking and Continuous Dynamics in Spiking Neural Networks: A Muscle-Inspired Model
Shared title terminology · Maryam Soltani, Philip N. Garner