Introduction
Binary Spiking Neural Networks (BSNNs) represent a pinnacle of efficiency for edge computing, combining the event-driven nature of spiking neurons with the extreme compression of binary weights (+1 or -1). However, a significant bottleneck exists: while inference is efficient, training these networks typically requires massive memory overhead. This paper introduces Binary Spiking Online (BSO) and its variant T-BSO, which eliminate the need for full-precision latent weights and Backpropagation Through Time (BPTT), enabling constant-memory training across time steps.
The Training Memory Contradiction
Standard BSNN training relies on two memory-intensive components:
- Backpropagation Through Time (BPTT): This requires storing the entire computational graph across all time steps to calculate gradients.
- Latent Weights: Since binary weights are non-differentiable, frameworks maintain full-precision "latent" versions that accumulate small updates. These are only binarized during the forward pass.
These requirements negate the efficiency benefits of BSNNs during the learning phase, making on-device training nearly impossible on resource-constrained hardware.
Proposed Methodology: BSO and T-BSO
The authors propose bypassing latent weights entirely by generating "flip signals" directly from gradient momentum.
Binary Spiking Online (BSO)
BSO replaces latent weights with a gradient momentum buffer. Instead of updating a continuous value, the algorithm calculates the element-wise product of the current binary weight and its momentum. When this product exceeds a fixed threshold, a flip signal is triggered, reversing the sign of the binary weight (e.g., from +1 to -1).
Temporal-aware BSO (T-BSO)
Because SNNs process information over time, gradient magnitudes can fluctuate significantly. T-BSO improves upon BSO by tracking the second-order moment (variance) of the gradient to create an adaptive threshold ($\gamma_t$). In periods of low gradient activity, the threshold lowers to allow necessary updates; in high-variance periods, it increases to prevent oscillatory, unstable weight flipping.
Experimental Results
The proposed algorithms were evaluated on static vision (CIFAR, ImageNet), neuromorphic vision (DVS-CIFAR10), and audio (Google Speech Command) datasets.
Memory Efficiency
The most striking result is the memory reduction. For a training setup with 35 time steps, standard BPTT requires approximately 58.18 GB of memory. T-BSO reduces this to just 3.1 GB—a 19x reduction. Crucially, because T-BSO is an online method, this memory footprint remains constant regardless of the number of time steps used.
Accuracy and Model Size
Despite the drastic reduction in training complexity, T-BSO maintains state-of-the-art performance:
- CIFAR-10: Achieved 94.86% accuracy with a model size of only 1.20 MB (30.8x smaller than full-precision equivalents).
- ImageNet: Reached 57.76% accuracy, outperforming existing BPTT-based binary methods like CBP by 3.42% while using significantly less memory.
- Audio (GSC): Achieved 96.12% accuracy, demonstrating the algorithm's versatility beyond computer vision.
Conclusion
BSO and T-BSO resolve the contradiction between the efficiency of BSNN inference and the high cost of their training. By eliminating latent weights and BPTT, these algorithms provide a path toward continuous, on-device learning for edge devices. Future research may focus on closing the remaining accuracy gap between binary online methods and full-precision counterparts in large-scale tasks like ImageNet.
Summary updated