Abstract
Training Spiking Neural Networks (SNNs) typically requires Backpropagation Through Time (BPTT), which suffers from high memory costs that scale linearly with sequence length. We present S-TLLR (STDP-inspired Temporal Local Learning Rule), a biologically-inspired learning rule that achieves competitive accuracy with BPTT while reducing memory usage by up to 50x. By incorporating both causal and non-causal spike timings through instantaneous eligibility traces, S-TLLR enables efficient, online training for deep SNNs on resource-constrained edge devices.
The Challenge of Training Spiking Neural Networks
Spiking Neural Networks (SNNs) are energy-efficient alternatives to traditional artificial neural networks, processing information via discrete temporal events. However, the industry-standard training method, BPTT, requires storing the entire history of network states to calculate gradients. This creates a "memory wall" where requirements scale linearly with the number of time steps ($T$), making on-device learning nearly impossible for edge hardware with limited RAM.
Furthermore, most existing "local" learning rules only consider causal relationships (pre-synaptic spike before post-synaptic), ignoring the non-causal relationships (post before pre) that are fundamental to biological Spike-Timing Dependent Plasticity (STDP).
Methods: S-TLLR
S-TLLR is a "three-factor" learning rule where synaptic updates are determined by the interaction of pre-synaptic activity, post-synaptic activity, and a top-down learning signal propagated from the output. Unlike previous local rules, S-TLLR explicitly integrates non-causal terms to mimic biological synchrony.
Key Innovations
- Constant Memory Complexity: By utilizing instantaneous eligibility traces instead of recurrent ones, S-TLLR achieves $O(n)$ memory complexity (linear with the number of neurons), making it independent of the number of time steps $T$.
- Secondary Activation ($\Psi$): Traces are computed using a specialized function that acts as a surrogate gradient, overcoming the non-differentiability of spikes.
- Temporal Locality: The rule allows for updates based on local temporal information, significantly reducing the need for global state storage while maintaining high performance.
Key Results and Insights
The researchers evaluated S-TLLR across diverse event-based benchmarks, including DVS Gesture, DVS CIFAR10, and Spiking Heidelberg Digits (SHD).
- Accuracy and Efficiency: S-TLLR consistently matched BPTT accuracy within $\pm 2\%$, achieving 97.72% on DVS Gesture (surpassing the BPTT baseline of 95.58%). It reduced memory usage by 5x to 50x and multiply-accumulate (MAC) operations by up to 6.6x.
- Non-Causality as Regularization: Including non-causal spike relationships improved generalization. In tasks like DVS Gesture, S-TLLR outperformed BPTT, likely because its biologically-constrained formulation prevented overfitting to temporal noise.
- Scalability: S-TLLR is the first local rule demonstrated to work effectively for high-dimensional tasks such as optical flow estimation with Fully-Spiking FlowNet.
- Sparse Learning Signals: Performance remained robust even when learning signals were provided only during the final time steps of a sequence, further reducing computational overhead.
Conclusion
S-TLLR bridges the gap between biological plausibility and the high performance required for modern machine learning. By slashing memory requirements and maintaining high accuracy, it paves the way for efficient, on-device learning in neuromorphic systems. Future research will focus on automating hyperparameter tuning (such as the non-causal factor $\alpha_{post}$) and achieving full spatial locality to eliminate the need for spatial backpropagation.
Summary updated