Introduction
Spiking Neural Networks (SNNs), often referred to as the "third generation" of neural networks, are designed to closely mimic the brain's energy efficiency. By communicating via discrete, event-driven binary spikes rather than continuous analog values, SNNs are highly optimized for low-power neuromorphic hardware. However, unlocking their full potential requires overcoming significant training hurdles.
Researchers have recently developed a more efficient way to train SNNs by enabling "online" learning that bypasses the need to store massive amounts of historical data. By introducing Online Spiking Renormalization (OSR) and an Online Threshold Stabilizer (OTS), this work successfully integrates batch normalization into the online training pipeline, achieving state-of-the-art performance with constant memory costs regardless of sequence length.
The Challenge: Memory Constraints vs. Online Learning
The gold standard for training SNNs is Backpropagation Through Time (BPTT) with surrogate gradients. While BPTT achieves competitive performance, it is a massive memory hog. It requires storing intermediate states for every single time step to calculate gradients during the backward pass. This makes scaling to long sequences computationally prohibitive and fundamentally fails to capture the "online" nature of biological brains, which learn continuously as information arrives.
Existing online training methods attempt to solve this memory problem by updating weights at every time step. However, they struggle to incorporate Batch Normalization (BN). Standard BN relies on statistics (mean and variance) calculated from the entire sequence to stabilize training. Because online SNNs lack access to "future" time steps, they suffer from temporal covariate shift—where the data distribution changes wildly over time—leading to poor performance compared to their BPTT counterparts.
Proposed Methodology: OSR and OTS
To stabilize online SNN training and bridge the performance gap, the authors propose a two-pronged strategy:
- Online Spiking Renormalization (OSR): To bypass the need for future information, OSR employs a "double transformation" technique. During training, it first normalizes the input using the current time step's statistics. It then applies a second linear transformation to align these values with the "all-time" running mean and variance. This ensures that the parameters used during training remain strictly consistent with those used during inference.
- Online Threshold Stabilizer (OTS): Firing rates in SNNs are notoriously unstable across time. Instead of normalizing weights or input currents directly—which can disrupt neuronal dynamics—OTS dynamically adjusts the firing threshold ($\theta$) of neurons at each time step. Assuming membrane potentials follow a Gaussian distribution, OTS calculates a threshold that maintains a constant firing probability across the entire simulation.
To support these modules, the authors also derived a novel incremental approach to compute the sample mean and variance over time, allowing the model to update global statistics step-by-step without storing the full history of inputs.
Key Insights
- Constant Memory Scaling: The most significant breakthrough is memory efficiency. While BPTT's memory usage grows linearly with the number of time steps ($T$), this proposed method's memory usage remains flat. Even at low $T$, it proves more memory-efficient than BPTT.
- Thresholding as a Control Knob: Adjusting the threshold is a judicious choice. It leaves the underlying biological dynamics untouched while effectively regulating gradient flow, preventing "silent neurons" and "exploding spikes" early in training.
- Bridging the Online-Offline Gap: By ensuring normalization statistics used during training match the running statistics used in testing, OSR eliminates the performance degradation typically seen when deploying online SNNs.
Results and Performance
The method was rigorously evaluated on a diverse mix of static image datasets (CIFAR-10, CIFAR-100, ImageNet) and neuromorphic event-based datasets (DVS-Gesture, CIFAR10-DVS).
The proposed method consistently outperformed previous online SNN algorithms (such as OTTT) across all tested datasets. Notably, on the massive ImageNet dataset, their model (NF-ResNet-34) achieved 67.54% accuracy with only 4 time steps, significantly higher than OTTT’s 65.15%. Furthermore, the authors demonstrated that their combined OSR+OTS approach outperforms "Vanilla BN" (applying BN to each time step independently) by approximately 4% on ImageNet.
Limitations and Future Work
Despite these substantial gains, a slight performance gap still exists between this online method and full BPTT. The authors attribute this to the lack of inter-layer and inner-layer reverse-in-time dependencies during backpropagation; essentially, the online model still "forgets" some complex temporal relationships that BPTT can capture by looking backward across the entire sequence.
Future work will focus on incorporating eligibility traces to better manage long-term temporal dependencies, moving the field closer to biologically plausible learning rules that are both strictly local and fully event-driven.
Summary updated