TL;DR
This paper tackles the "dead neuron" problem in Spiking Neural Networks (SNNs) by making neuron thresholds trainable parameters, not fixed hyperparameters. This "adaptive threshold learning" leads to faster training, improved accuracy, and more robust SNNs, especially for event-based data.
What Problem Does This Paper Address?
Neuromorphic computing, inspired by the brain's efficiency, aims to build energy-efficient hardware using Spiking Neural Networks (SNNs). SNNs mimic biological neurons by communicating through discrete "spikes" – events that occur when a neuron's membrane potential crosses a certain threshold. While this event-driven nature promises significant energy savings, training SNNs effectively remains a challenge. A major hurdle is the "dead neuron" problem: if a neuron's threshold is set too high, it may never spike during training, rendering it unable to learn or contribute. Traditionally, this threshold is a fixed hyperparameter, often found through tedious grid searches. This paper addresses the need for a more dynamic and robust approach to SNN training by making the spiking threshold a learnable parameter.
Methods
The core of this work is the introduction of an "adaptive threshold learning" mechanism within the standard error backpropagation framework for SNNs. This is achieved by treating the spiking threshold ($Th$) as a trainable parameter, alongside the synaptic weights ($w_{ji}$).
- Spiking Neuron Model: The paper uses the Leaky Integrate-and-Fire (LIF) neuron model, a common choice in SNNs. This model integrates incoming synaptic currents over time, accumulating a membrane potential ($V$). When $V$ exceeds the threshold ($Th$), the neuron fires a spike ($S=1$) and resets.
- Surrogate Gradients: Since the spiking function is non-differentiable (a step function), the paper employs surrogate gradients. These are continuous approximations of the spike activation derivative, allowing gradient-based optimization methods like backpropagation to be applied.
- Threshold Learning: The key innovation is the inclusion of a gradient update rule for the threshold: $Th = Th - lr_{th} \cdot \frac{\partial L}{\partial Th}$. This means the threshold is adjusted during training based on its contribution to the overall loss, aiming to "rouse" neurons that might otherwise remain inactive.
- Spatiotemporal Backpropagation: The training process utilizes spatiotemporal error backpropagation, where errors are propagated backward through time and layers, considering the temporal dynamics of spike generation.
Datasets
The paper evaluates its method on three event-based and spatiotemporal datasets:
- NMNIST: A spiking version of the MNIST dataset, generated from neuromorphic vision camera data.
- DVS128: An event-based dataset captured by a Dynamic Vision Sensor, containing recordings of hand gestures.
- Spiking Heidelberg Digits (SHD): An audio-based dataset where spoken digits are converted into spike trains using an artificial model of the inner ear.
Key Insights and Ideas
- Thresholds are Crucial: The paper strongly emphasizes that the spiking threshold is not just a minor hyperparameter but a critical factor influencing SNN training dynamics and performance.
- "Dead Neurons" are a Real Problem: The research provides clear evidence of the "dead neuron" issue, showing a significant percentage of inactive neurons in baseline SNNs, especially in later epochs.
- Adaptive Thresholds "Rouse" Neurons: By making thresholds trainable, the proposed method effectively reduces the number of dead neurons, allowing more neurons to participate in learning and contribute to the network's representation.
- Faster Convergence: The adaptive threshold learning leads to a more robust and efficient training process, requiring fewer epochs to reach a satisfactory accuracy.
- Dataset-Specific Thresholds: The optimal fixed threshold values can vary significantly between different datasets, highlighting the need for adaptive methods.
Key Results
- Accuracy Improvement: The proposed "Rouser" method achieved up to a 2% higher accuracy on the NMNIST and DVS128 datasets compared to the baseline.
- Training Speed-up: Rouser demonstrated up to a 30% speed-up in training (measured by the number of epochs to convergence).
- Reduced Dead Neurons: Figure 4 clearly shows a substantial reduction in the percentage of dead neurons in both layers of the NMNIST network when using Rouser compared to the baseline.
- Robustness: The method showed improved robustness, particularly during training on the challenging SHD dataset.
- Ablation Studies: Experiments where the threshold learning rate was set to zero confirmed that the performance gains were indeed due to the adaptive threshold learning mechanism.
Limitations and Future Work
- Hyperparameter Sensitivity: While the threshold is now trainable, other hyperparameters (like learning rates for weights and thresholds, scaling factor, steepness parameter) still need careful tuning, as indicated by the ablation studies.
- Computational Overhead: Although training is faster in terms of epochs, the additional gradient calculation and update for the threshold parameter might introduce a slight computational overhead per epoch.
- Future Work: The paper suggests further investigation into the dynamics of threshold learning and its impact on SNN training. Exploring more complex network architectures and a wider range of datasets would also be valuable. The authors also hint at the potential for this method to improve inference latency, which could be a focus for future research.
Summary updated