TL;DR
This paper tackles the challenge of implementing Spiking Neural Networks (SNNs) on energy-efficient hardware by proposing a method to prune less important connections and quantize the weights of the remaining ones. This approach significantly reduces network size and power consumption while maintaining high classification accuracy, making SNNs more practical for real-world applications.
What Problem Does This Paper Address?
Spiking Neural Networks (SNNs) hold immense promise for energy-efficient computation, mimicking the brain's low power consumption. However, their practical implementation, especially on emerging in-memory computing hardware like crossbar arrays, faces significant hurdles. These include:
- Hardware Limitations: Crossbar arrays, crucial for efficient matrix-vector multiplications, have size constraints. Large crossbars suffer from issues like voltage degradation and noise.
- Device Constraints: Non-CMOS devices, often used for synapses, have a limited number of discrete conductance levels, making it difficult to represent the continuous weight values typical of SNNs.
- Computational Cost: SNNs with a large number of weights require extensive computations, impacting speed and energy efficiency.
The authors aim to bridge this gap by developing a method to create smaller, more hardware-friendly SNNs without sacrificing performance.
Methods
The core of the paper's contribution lies in a two-pronged compression strategy applied during the training of SNNs:
- STDP-Based Pruning: The researchers leverage the unsupervised Spike Timing Dependent Plasticity (STDP) learning rule. STDP naturally strengthens connections between neurons that fire in close temporal proximity. The paper uses a power-law dependent STDP model to identify "critical" synapses – those with high spike correlation and thus likely contributing to learning. Synapses with low correlation or uncorrelated activity are deemed "non-critical" and are pruned. This pruning is not a one-time event but occurs iteratively during training. Non-critical synapses have their weights set to zero, effectively removing them from computation, but they are not permanently deleted until the final training stage. This allows the network to potentially re-learn them if they become important for later inputs.
- Weight Quantization and Sharing: After pruning, the weights of the remaining "critical" synapses are quantized. This means their continuous values are mapped to a limited set of discrete conductance levels, matching the capabilities of hardware devices. The paper also employs weight sharing, where multiple critical synapses are assigned the same quantized weight value. This further simplifies the network and reduces the number of unique weight values that need to be stored and managed.
This combined approach is applied to a 2-layer SNN topology with lateral inhibition, where pruning is specifically focused on the input-to-excitatory layer connections.
Datasets
The proposed method was evaluated on two standard datasets:
- MNIST: A dataset of 28x28 pixel grayscale images of handwritten digits (0-9).
- Caltech-101 (subset): A subset of images from 10 categories (e.g., airplanes, motorbikes) of objects, preprocessed to 28x28 grayscale images.
Key Insights and Ideas
- Unsupervised Learning for Hardware: The paper demonstrates how an unsupervised learning rule like STDP can be effectively used not only for learning but also for guiding network compression, making it suitable for scenarios where labeled data is scarce or expensive.
- Pruning as a Feature Selection: By pruning based on STDP, the method implicitly selects connections that are most relevant for capturing temporal patterns and correlations in the input data, acting as a form of automated feature selection.
- Iterative Compression for Robustness: Performing pruning and quantization at regular intervals during training, rather than as a post-processing step, allows the network to adapt and recover from potential performance drops, leading to more robust compression.
- Synergy of Pruning and Quantization: The combination of pruning and quantization is crucial. Pruning reduces the number of connections, while quantization makes the remaining ones compatible with hardware constraints, leading to significant energy and area savings.
Key Results
The compressed SNN topology achieved impressive results:
- Accuracy: The proposed method maintained high classification accuracy, achieving 90.1% on MNIST and 91.6% on Caltech-101, comparable to a baseline fully connected SNN.
- Energy and Area Improvement: The compressed topology demonstrated significant improvements:
- MNIST: 3.1x improvement in energy and 4x improvement in area.
- Caltech-101: 2.2x improvement in energy and 2.6x improvement in area.
- Sparsity: The network became significantly sparser, with connectivity reduced by up to 75% for MNIST and 36% for Caltech-101 compared to the baseline.
- Faster Training: The compressed topology also showed faster training convergence, reducing training time by 3x for MNIST and 2x for Caltech-101.
Limitations and Future Work
- Parameter Tuning: The paper acknowledges that optimal compression parameters (pruning threshold, number of quantization levels) are determined through multiple experiments, suggesting that finding these parameters can be a non-trivial task.
- Hardware Implementation Details: While the paper discusses the benefits for post-CMOS devices, a direct implementation and benchmarking on such hardware is not presented.
- Future Work: The authors suggest that further exploration of optimal compression parameters and their impact on different SNN architectures and tasks would be beneficial. Investigating the benefits of this approach on more complex datasets and for other applications beyond recognition is also a natural next step.
Summary updated