Comprehensive SNN Compression Using ADMM Optimization and Activity Regularization

Lei Deng, Yujie Wu, Yifan Hu, Ling Liang, Guoqi Li +4 more
11/3/2019
cs.NEcs.LGeess.SP
quantization-pruning

Official code: yjwu17/ADMM-Compression-for-SNNs (7 stars, Python, MIT, last commit 2022-01-10).

Abstract

As well known, the huge memory and compute costs of both artificial neural networks (ANNs) and spiking neural networks (SNNs) greatly hinder their deployment on edge devices with high efficiency. Model compression has been proposed as a promising technique to improve the running efficiency via parameter and operation reduction.

Show full abstract

Whereas, this technique is mainly practiced in ANNs rather than SNNs. It is interesting to answer how much an SNN model can be compressed without compromising its functionality, where two challenges should be addressed: i) the accuracy of SNNs is usually sensitive to model compression, which requires an accurate compression methodology; ii) the computation of SNNs is event-driven rather than static, which produces an extra compression dimension on dynamic spikes. To this end, we realize a comprehensive SNN compression through three steps. First, we formulate the connection pruning and weight quantization as a constrained optimization problem. Second, we combine spatio-temporal backpropagation (STBP) and alternating direction method of multipliers (ADMM) to solve the problem with minimum accuracy loss. Third, we further propose activity regularization to reduce the spike events for fewer active operations. These methods can be applied in either a single way for moderate compression or a joint way for aggressive compression. We define several quantitative metrics to evaluation the compression performance for SNNs. Our methodology is validated in pattern recognition tasks over MNIST, N-MNIST, CIFAR10, and CIFAR100 datasets, where extensive comparisons, analyses, and insights are provided. To our best knowledge, this is the first work that studies SNN compression in a comprehensive manner by exploiting all compressible components and achieves better results.

View on arXivView PDF

Code Implementations(1)

MIT

A comprehensive compression method incorporating prune synapses, quantize weight and activity sparcity for SNNs.

70PythonJan 10, 20224 years agoMIT

Similar Papers

Cite this paper

@article{deng2019comprehensive,
  title  = {Comprehensive SNN Compression Using ADMM Optimization and Activity Regularization},
  author = {Lei Deng and Yujie Wu and Yifan Hu and Ling Liang and Guoqi Li and Xing Hu and Yufei Ding and Peng Li and Yuan Xie},
  year   = {2019},
  eprint = {1911.00822},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.00822}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.00822.svg)](https://codeofpaper.com/paper/1911.00822)

Discussion