Introduction
Training deep Spiking Neural Networks (SNNs) is notoriously difficult due to the non-differentiable nature of spikes. While SNNs offer energy-efficient, event-driven computation suitable for edge devices, the "all-or-nothing" nature of spikes prevents standard backpropagation. Researchers typically employ Surrogate Gradients (SG) to approximate derivatives, but this often results in signal degradation through deep layers, specifically via degeneration, saturation, and gradient mismatch.
Methodology: The MPD-Loss
The authors introduce RecDis-SNN, a framework that incorporates a novel Membrane Potential Distribution Loss (MPD-Loss) ($L_{MPD}$) into the training objective. Unlike architectural modifications like Batch Normalization, MPD-Loss acts as a regularizer during training to "sculpt" internal neuron states without adding inference overhead.
The MPD-Loss is composed of three primary terms designed to address specific training failures:
- Degeneration Loss ($L_d$): Prevents neurons from becoming permanently inactive or hyperactive by penalizing distributions where potentials never cross or always stay above the firing threshold.
- Saturation Loss ($L_s$): Constrains membrane potentials within the $[0, 1]$ interval, ensuring they remain in the "active" region of the surrogate gradient.
- Mismatch Loss ($L_m$): Encourages a bimodal distribution, pushing potentials toward 0 or 1. This minimizes the time neurons spend in the "uncertain" middle ground where surrogate gradient approximation error is highest.
Key Insights and Distribution Rectification
A central innovation of RecDis-SNN is the shift toward a bimodal distribution of membrane potentials. By pushing potentials toward the binary states of 0 and 1, the model reduces quantization error during the spiking step. This ensures that the internal continuous representation is already close to the final discrete output, preserving more information.
Furthermore, MPD-Loss is a "train-time only" constraint. Once trained, the resulting SNN is a pure, event-driven model that requires no extra statistics or normalization math during deployment, maximizing inference efficiency. The authors also demonstrate that MPD-Loss can effectively "restart" dead networks that fail to fire after initialization by pulling potentials back into a healthy firing range.
Experimental Results
RecDis-SNN achieves state-of-the-art (SOTA) performance across several benchmarks:
- CIFAR-10: 95.55% accuracy with ResNet-19 in just 6 timesteps.
- ImageNet: 67.33% top-1 accuracy on ResNet-34, significantly outperforming previous direct training methods like STBP-tdBN (63.72%).
- DVS-CIFAR10: 72.42% accuracy on native neuromorphic data.
While the extra loss calculation adds approximately 17% to the training time per epoch, the resulting models converge faster and maintain high accuracy with fewer timesteps compared to standard normalization techniques.
Conclusion and Future Work
RecDis-SNN provides a robust solution for training deep SNNs by focusing on the distribution of the underlying data rather than just the gradient approximation. While the current implementation assumes a Gaussian distribution for membrane potentials, it enables the creation of high-performance, inference-efficient spiking models. Future research may extend this approach to temporal tasks such as speech recognition and robotic control.
Summary updated