Abstract
Spiking neural networks (SNNs) well support spatiotemporal learning and energy-efficient event-driven hardware neuromorphic processors. As an important class of SNNs, recurrent spiking neural networks (RSNNs) possess great computational power. However, the practical application of RSNNs is severely limited by challenges in training. Biologically-inspired unsupervised learning has limited capability in boosting the performance of RSNNs. On the other hand, existing backpropagation (BP) methods suffer from high complexity of unrolling in time, vanishing and exploding gradients, and approximate differentiation of discontinuous spiking activities when applied to RSNNs. To enable supervised training of RSNNs under a well-defined loss function, we present a novel Spike-Train level RSNNs Backpropagation (ST-RSBP) algorithm for training deep RSNNs. The proposed ST-RSBP directly computes the gradient of a rated-coded loss function defined at the output layer of the network w.r.t tunable parameters. The scalability of ST-RSBP is achieved by the proposed spike-train level computation during which temporal effects of the SNN is captured in both the forward and backward pass of BP. Our ST-RSBP algorithm can be broadly applied to RSNNs with a single recurrent layer or deep RSNNs with multiple feed-forward and recurrent layers. Based upon challenging speech and image datasets including TI46, N-TIDIGITS, Fashion-MNIST and MNIST, ST-RSBP is able to train RSNNs with an accuracy surpassing that of the current state-of-art SNN BP algorithms and conventional non-spiking deep learning models.
Introduction
Training Spiking Neural Networks (SNNs) has long been a central challenge in neuromorphic engineering. While they offer the promise of brain-like energy efficiency, their discrete, non-differentiable spikes make standard backpropagation difficult. This challenge is particularly acute in Recurrent Spiking Neural Networks (RSNNs). Traditionally, temporal dependencies in RSNNs are handled via Backpropagation Through Time (BPTT), which requires "unfolding" the network across every time step. This process is computationally expensive, memory-intensive, and highly susceptible to vanishing or exploding gradients.
In this work, we introduce ST-RSBP (Spike-Train level RSNNs Backpropagation), a novel algorithm that bypasses the need for temporal unfolding, offering a scalable and efficient framework for training deep recurrent spiking architectures.
Methodology
The core innovation of ST-RSBP is shifting the mathematical focus from individual time points to the macroscopic level of the entire spike train.
Spike-train level Post-synaptic Potential (S-PSP)
Instead of tracking membrane potential at every millisecond, we define the S-PSP to characterize the aggregated effect of a pre-synaptic spike train on a post-synaptic neuron over a specific time window. This allows the gradient of a rate-coded loss function to be computed directly, treating the relationship between the total post-synaptic potential and the firing count as a differentiable activation function.
Handling Recurrence Without Unfolding
In recurrent layers, where neurons exhibit mutual dependencies, ST-RSBP models these interactions as a coupled linear system. Rather than unfolding this system in time, we solve it analytically. To maintain scalability in deep networks, we utilize a first-order Taylor expansion to approximate the solution, significantly accelerating the backward pass and avoiding the high computational cost of matrix inversion.
Experimental Results
ST-RSBP was evaluated across several static and temporal benchmarks, including TI46-Alpha, N-TIDIGITS, and Fashion-MNIST. The algorithm consistently outperformed existing SNN training methods and even surpassed some non-spiking deep learning models.
Key performance highlights include:
- MNIST: A Spiking CNN trained with ST-RSBP achieved 99.62% accuracy, a state-of-the-art result for SNN backpropagation at the time of publication.
- N-TIDIGITS: The model reached 93.90% accuracy, outperforming Phased-LSTM (91.25%) and prior RSNN methods.
- TI46-Alpha: A deep RSNN architecture achieved 93.35% accuracy, significantly outperforming feedforward SNNs despite having fewer parameters.
Conclusion
ST-RSBP provides a robust and scalable alternative to BPTT for training deep RSNNs. by capturing temporal dynamics through spike-train level modeling rather than time-step unfolding, the algorithm achieves high stability and state-of-the-art accuracy. This framework paves the way for more efficient training of complex spiking architectures suitable for next-generation neuromorphic hardware.
Summary updated