Pruning of Deep Spiking Neural Networks Through Gradient Rewiring
Abstract
Spiking Neural Networks (SNNs) have been attached great importance due to their biological plausibility and high energy-efficiency on neuromorphic chips. As these chips are usually resource-constrained, the compression of SNNs is thus crucial along the road of practical use of SNNs. Most existing methods directly apply pruning approaches in artificial neural networks (ANNs) to SNNs, which ignore the difference between ANNs and SNNs, thus limiting the performance of the pruned SNNs. Besides, these methods are only suitable for shallow SNNs. In this paper, inspired by synaptogenesis and synapse elimination in the neural system, we propose gradient rewiring (Grad R), a joint learning algorithm of connectivity and weight for SNNs, that enables us to seamlessly optimize network structure without retraining. Our key innovation is to redefine the gradient to a new synaptic parameter, allowing better exploration of network structures by taking full advantage of the competition between pruning and regrowth of connections. The experimental results show that the proposed method achieves minimal loss of SNNs' performance on MNIST and CIFAR-10 datasets so far. Moreover, it reaches a ~3.5% accuracy loss under unprecedented 0.73% connectivity, which reveals remarkable structure refining capability in SNNs. Our work suggests that there exists extremely high redundancy in deep SNNs. Our codes are available at https://github.com/Yanqi-Chen/Gradient-Rewiring.
Cite
Text
Chen et al. "Pruning of Deep Spiking Neural Networks Through Gradient Rewiring." International Joint Conference on Artificial Intelligence, 2021. doi:10.24963/IJCAI.2021/236Markdown
[Chen et al. "Pruning of Deep Spiking Neural Networks Through Gradient Rewiring." International Joint Conference on Artificial Intelligence, 2021.](https://mlanthology.org/ijcai/2021/chen2021ijcai-pruning/) doi:10.24963/IJCAI.2021/236BibTeX
@inproceedings{chen2021ijcai-pruning,
title = {{Pruning of Deep Spiking Neural Networks Through Gradient Rewiring}},
author = {Chen, Yanqi and Yu, Zhaofei and Fang, Wei and Huang, Tiejun and Tian, Yonghong},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2021},
pages = {1713-1721},
doi = {10.24963/IJCAI.2021/236},
url = {https://mlanthology.org/ijcai/2021/chen2021ijcai-pruning/}
}