Spatio-Temporal Pruning and Quantization for Low-latency Spiking Neural Networks

Sayeed Shafayet Chowdhury, Isha Garg, Kaushik Roy

Abstract

Spiking Neural Networks (SNNs) offer a promising path toward energy-efficient artificial intelligence by mimicking the discrete, spike-based communication of the human brain. However, their practical application is often hindered by high inference latency, requiring hundreds or thousands of timesteps to achieve competitive accuracy. This paper presents a comprehensive compression pipeline that integrates PCA-based spatial pruning, gradual temporal pruning, and weight quantization. By optimizing across both spatial and temporal dimensions, the proposed method achieves up to a 30X reduction in latency and 14X improvement in energy efficiency over traditional artificial neural networks (ANNs) while maintaining high accuracy on complex benchmarks like CIFAR100.

Introduction

Spiking Neural Networks are frequently characterized as the "third generation" of neural networks. Unlike standard Artificial Neural Networks (ANNs) that utilize continuous activation values, SNNs process information through binary spikes over time. This temporal dimension allows for extreme energy efficiency on specialized neuromorphic hardware.

Despite these advantages, SNNs face a significant bottleneck: latency. To reach high accuracy, these networks typically require a large number of timesteps (often 100–2000) to process a single input. This delay makes them unsuitable for real-time edge applications such as autonomous navigation or high-speed robotics. While spatial pruning—the removal of redundant neurons or filters—is a well-established technique in deep learning, SNNs provide a unique opportunity to prune the temporal axis. This research explores a unified approach to compress SNNs in both space and time to bridge the gap between theoretical efficiency and practical performance.

Methodology

The researchers developed a three-stage compression pipeline designed to minimize the computational footprint of SNNs without sacrificing representational power.

1. PCA-based Spatial Pruning

Traditional pruning often focuses on removing individual weights with small magnitudes. However, this "unstructured" pruning is difficult to accelerate on standard hardware. Instead, the authors employ a structured approach using Principal Component Analysis (PCA) on the "membrane potential"—the internal state of the spiking neurons. By analyzing the variance in these potentials, the method identifies and removes entire redundant filters. This ensures that the resulting architecture is physically smaller and more efficient for hardware execution.

2. Gradual Temporal Pruning

The most significant contribution of this work is the method for reducing the time axis. Training a low-latency SNN from scratch often results in poor convergence. To solve this, the authors implement a gradual reduction strategy:

  • The network begins training with a high number of timesteps.
  • As training progresses, the number of timesteps is incrementally reduced.
  • The network is retrained at each step to recover accuracy.

This process functions similarly to knowledge distillation, where the initial high-latency configuration "teaches" the network how to maintain performance as the temporal window narrows.

3. Weight Quantization

To further reduce the model's memory footprint, post-training quantization is applied. Using K-means clustering, the precision of the weights is reduced from 32-bit floating-point to as low as 5-bit. This step significantly shrinks the model size with minimal impact on final accuracy.

Experimental Results

The methodology was evaluated using VGG9 and VGG11 architectures on the CIFAR10 and CIFAR100 datasets. These datasets represent a significant increase in complexity compared to the MNIST benchmarks typically used in SNN literature.

Latency and Efficiency

The spatio-temporal pruning approach yielded dramatic improvements in operational speed:

  • Inference Speed: The models achieved high-accuracy inference in just 25 timesteps for CIFAR10 and 30 timesteps for CIFAR100, representing a 3-30X improvement over previous state-of-the-art SNNs.
  • Energy Consumption: The compressed SNNs were found to be 8-14X more energy-efficient than their unpruned ANN counterparts.
  • Model Size: Spatial pruning alone resulted in a 10-14X reduction in total parameters.

Robustness and Accuracy

Despite the aggressive compression, the models maintained competitive performance, reaching 89.04% accuracy on CIFAR10 and 66.4% on CIFAR100. Interestingly, the pruning process appeared to act as a "denoiser." When tested against inputs with Gaussian noise, the pruned networks actually outperformed unpruned versions by 1-4%, suggesting that removing redundant connections helps the network ignore stochastic noise and focus on essential features.

Discussion and Insights

A key finding of this research is the intrinsic link between spatial depth and temporal latency. The authors observed that spatial pruning often leads to a reduction in effective depth; by shortening the path spikes must travel through the network, the system can converge on a classification decision in fewer timesteps.

However, the approach is not without trade-offs. The gradual temporal pruning method introduces additional training overhead due to the multiple retraining cycles required. Furthermore, while the accuracy loss is minimal (0.1% to 1%), it may be a consideration for high-stakes applications.

Conclusion

This work demonstrates that SNNs can overcome their inherent latency challenges through strategic spatio-temporal pruning. By reducing the number of timesteps required for inference while simultaneously shrinking the model size, SNNs become viable candidates for low-power, real-time applications. Future work will focus on testing these optimized models on neuromorphic hardware like Intel's Loihi to validate these energy savings in real-world environments.

Summary updated

BibTeX
@inproceedings{chowdhury2021spatio,
  author = {Sayeed Shafayet Chowdhury and Isha Garg and Kaushik Roy},
  title = {{Spatio-Temporal Pruning and Quantization for Low-latency Spiking Neural Networks}},
  booktitle = {IJCNN},
  year = {2021},
  doi = {10.1109/ijcnn52387.2021.9534111},
}
Figure