TL;DR
This paper introduces the Spiking Recurrent Cell (SRC), a novel event-based neuron model derived from the Gated Recurrent Unit (GRU). By making the GRU differentiable and event-driven, SRCs can be trained using standard backpropagation, overcoming a major hurdle in spiking neural network (SNN) research and enabling the training of deeper, more complex SNNs with comparable performance to traditional ANNs.
What Problem Does This Paper Address?
Traditional Artificial Neural Networks (ANNs) are incredibly powerful but notoriously energy-hungry, especially during training. Spiking Neural Networks (SNNs), inspired by biological brains, offer a path to significantly reduced energy consumption due to their event-driven nature. However, a key challenge in SNNs has been training them effectively. The non-differentiable nature of spiking neurons prevents the direct application of standard backpropagation, the workhorse of ANN training. Existing methods for training SNNs often involve complex surrogate gradient techniques, indirect training-then-conversion approaches, or biologically inspired but less scalable unsupervised learning rules. This paper aims to bridge this gap by creating an SNN neuron that retains the benefits of spiking computation while being fully compatible with established ANN training methodologies.
Methods
The core innovation is the Spiking Recurrent Cell (SRC). Instead of starting with a biologically inspired spiking neuron model and trying to make it trainable, the authors begin with a well-established, trainable recurrent neural network cell: the Gated Recurrent Unit (GRU). They modify the GRU's equations to incorporate spike generation mechanisms, specifically drawing inspiration from the "Bistable Recurrent Cell" (BRC) for its cellular memory and bistability properties.
Key aspects of the SRC include:
- Differentiable Spike Generation: The SRC's equations are designed such that the spike generation process is differentiable. This is achieved by carefully crafting feedback loops and using a ReLU activation to isolate spikes from subthreshold fluctuations.
- Event-Based Communication: Like biological neurons, SRCs communicate via discrete events (spikes) rather than continuous values.
- GRU Foundation: By building upon the GRU, the SRC inherits a structure that is already known to be effective for sequence processing and is amenable to gradient-based learning.
- Modified GRU Equations: The paper presents the specific mathematical derivations that transform GRU equations into the SRC, incorporating new states and feedback mechanisms to generate spikes.
- Training with Backpropagation: Crucially, the differentiability of the SRC allows for direct training using standard backpropagation through time (BPTT), a significant advantage over many existing SNN training methods.
- ReLU Bypass for Gradients: During backpropagation, the ReLU activation used for spike isolation is bypassed. This empirical finding significantly improves learning stability and performance.
- Leaky Integrator Readout: A standard leaky integrator layer is used as a readout mechanism to interpret the SNN's output for classification tasks.
Datasets
The following datasets were used for training and evaluation:
- MNIST: A standard dataset of handwritten digits.
- Fashion-MNIST: A more challenging dataset of fashion product images.
- Neuromorphic MNIST (N-MNIST): A dataset of handwritten digits recorded by an event-based camera, providing a more natural fit for SNNs.
For MNIST and Fashion-MNIST, two encoding schemes were used:
- Rate-based coding: Pixels are converted into spike trains where the firing rate is proportional to the pixel intensity.
- Latency-based coding: Information is encoded in the timing of the first spike.
N-MNIST data was used directly as it is already event-based.
Key Insights and Ideas
- Bridging the Gap: The most significant insight is that by adapting a successful ANN architecture (GRU) to be event-based and differentiable, a powerful new class of SNNs can be created that are trainable with standard tools. This offers a more direct path to high-performance SNNs than many previous approaches.
- Differentiability is Key: The paper strongly emphasizes that differentiability is the critical factor enabling efficient training of complex SNNs.
- Deep SNNs are Achievable: Unlike traditional spiking neurons (like LIF) which struggle with training deeper networks, SRCs demonstrate the ability to train networks with 10-15 layers effectively, opening doors for more complex tasks.
- Overfitting in Shallow Networks: While SRCs perform well, they can exhibit overfitting in shallow configurations, a phenomenon also observed in deep ANNs, suggesting that depth and regularization techniques might be important for optimal performance.
- Noise Robustness: Introducing noise into the spike generation dynamics of SRCs had minimal impact on performance, suggesting that the exact shape of the spike is less critical than the event itself for information transmission in this model.
Key Results
- Comparable Performance: SRC-based SNNs achieved performance comparable to, and sometimes superior than, Leaky Integrate-and-Fire (LIF) SNNs on MNIST, Fashion-MNIST, and N-MNIST benchmarks across various network depths and coding schemes.
- Deep Network Training: SRCs enabled the training of deep SNNs (up to 15 layers) where LIF networks failed or showed highly unstable training. For instance, on the MNIST dataset with 10 and 15 layers, SRC networks showed much more stable learning.
- Training Stability: SRC networks demonstrated more stable learning, especially as network depth increased, compared to LIF networks.
- Energy Efficiency Potential: While not directly measured in this paper, the event-driven nature of SRCs implies significant potential for energy savings on neuromorphic hardware, similar to other SNNs.
- Activity Levels: SRC networks showed comparable spiking activity to LIF networks, with a tendency to spike less in deeper networks, which is generally desirable for energy efficiency.
Limitations and Future Work
- Overfitting: The paper notes that SRC networks can be prone to overfitting, particularly in shallow configurations on datasets like Fashion-MNIST with latency-based coding. Further research is suggested to mitigate this.
- Parameter Count: SRCs have more parameters than simple LIF neurons, although many are fixed. The authors suggest that while other parameters could be made learnable, they chose to focus on weights and the
bhbias for learning. - Neuromorphic Hardware Compatibility: The continuous nature of SRC spikes might pose challenges for current neuromorphic hardware designed for discrete LIF spikes. The authors suggest quantization and FPGA implementations as potential solutions.
- Convolutional and Recurrent Extensions: The paper suggests exploring convolutional versions of SRC for image tasks and investigating the addition of feedback connections to enhance computational power.
- Biological Plausibility: While derived from biological inspiration, further work could explore new biological behaviors like bursting and the application of neuromodulation.
- Spike Shape Information: The paper investigates the impact of noise on spike shape and finds it doesn't significantly affect performance, suggesting that the information might be primarily in the timing rather than the precise shape. However, exploring how to intentionally use spike shape for information encoding remains an open area.
Summary updated