Abstract
Spiking Neural Networks (SNNs) are highly energy-efficient but difficult to train directly. ANN-to-SNN conversion is a popular alternative, yet it suffers from significant accuracy loss at low latencies due to "unevenness error." This paper introduces a novel optimization strategy called Residual Membrane Potential (SRP) to bridge this gap. By identifying and masking neurons that erroneously fire spikes—detected via negative residual membrane potential—the authors achieve state-of-the-art performance on complex datasets like ImageNet with as few as 10 time-steps.
Introduction
Spiking Neural Networks (SNNs) mimic biological neurons by using sparse, binary spikes instead of continuous values, making them a "holy grail" for energy-efficient AI. However, training deep SNNs from scratch is challenging due to the non-differentiable nature of spikes. A common workaround is ANN-SNN conversion, where a standard Artificial Neural Network (ANN) is trained and then its ReLU activations are replaced with Integrate-and-Fire (IF) neurons.
While effective, this conversion typically requires many time-steps to match the ANN's accuracy. At low latency (e.g., <16 steps), a phenomenon called unevenness error occurs. This happens because the temporal sequence of spikes in an SNN does not perfectly align with the continuous activation values of the source ANN, leading to significant performance degradation.
Methodology: The SRP Strategy
The authors provide a mathematical breakdown of unevenness error, categorizing it into four cases based on the discrepancy between ANN and SNN outputs. Their key finding is that the most damaging errors occur when the ANN output is zero, but the SNN incorrectly fires spikes (Case 1).
To combat this, they propose the SRP (Residual Membrane Potential) strategy, which leverages the "leftover" charge in a neuron after a simulation ends. Traditionally viewed as noise, the authors prove that a negative residual membrane potential ($v^l(T) < 0$) is a necessary and sufficient condition for identifying over-firing Case 1 errors.
The SRP strategy employs a two-stage inference process:
- Readout Stage: The SNN is run for a short duration ($\tau$) to calculate the residual membrane potential of every neuron.
- Masking Stage: Neurons with a negative residual potential are identified as "erroneous" and masked (set to zero) for the actual inference phase.
This method is integrated with the QCFS (Quantization Clip-Floor-Shift) activation function in the source ANN, which helps eliminate other common conversion errors like clipping and quantization noise (see Figure 2a in the illustration above).
Results and Discussion
The SRP method achieved state-of-the-art results across standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet. Notably, on ImageNet, it reached 64.32% top-1 accuracy in just 10 steps using ResNet-34, a major milestone for low-latency SNNs. On CIFAR-100, it achieved 75.42% accuracy in only 4 steps with VGG-16, significantly outperforming previous methods.
Visual analysis in Figure 6 confirms that Case 1 errors (shown in blue) dominate across almost every layer of the network. By effectively masking these errors, SRP significantly reduces the percentage of unevenness error, particularly in deeper layers where errors typically accumulate and degrade performance.
Conclusion
The SRP strategy offers a clever, inference-time adjustment that significantly cleans up the "temporal noise" inherent in low-latency SNNs. It requires no complex retraining and achieves high accuracy on large-scale datasets. While it introduces a minor computational overhead due to the readout phase and requires careful selection of the hyperparameter $\tau$, its performance gains at ultra-low latencies make it a compelling solution for energy-efficient AI deployment. Future work may explore its efficacy in complex temporal tasks like object detection or video processing where spike timing is even more critical.
Summary updated