arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1911.00822cs.NEcs.LGeess.SP
收藏

使用ADMM优化和活动正则化的综合SNN压缩

Comprehensive SNN Compression Using ADMM Optimization and Activity Regularization

Tsinghua University(清华大学);University of California, Santa Barbara(加州大学圣塔芭芭拉分校);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Lei Deng, Yujie Wu, Yifan Hu, Ling Liang, Guoqi Li, Xing Hu, Yufei Ding, Peng Li, Yuan Xie

摘要:

众所周知,人工神经网络(ANN)和脉冲神经网络(SNN)的巨大存储器和计算成本极大地阻碍了它们在边缘设备上的高效部署。模型压缩是一种通过减少模型参数和运算量来提高模型运行效率的方法。然而,这种技术主要在ANN而不是SNN中实践。回答SNN模型可以被压缩多少而不损害其功能是有趣的,其中应该解决两个挑战:i)SNN的准确性通常对模型压缩敏感,这需要精确的压缩方法; ii)SNN的计算是事件驱动的而不是静态的,这在动态尖峰上产生额外的压缩维度。为此,我们通过三个步骤实现了全面的SNN压缩。首先,我们制定的连接修剪和权重量化作为一个约束优化问题。其次,我们结合时空反向传播(STBP)和交替方向乘法器(ADMM)的方法来解决这个问题,以最小的精度损失。第三,我们进一步提出活动正则化,以减少尖峰事件较少的活动操作。这些方法可以以单一方式用于中度压缩或以联合方式用于积极压缩。我们定义了几个量化指标来评估SNN的压缩性能。我们的方法在MNIST,N-MNIST,CIFAR 10和CIFAR 100数据集上的模式识别任务中得到了验证,其中提供了广泛的比较,分析和见解。据我们所知,这是第一个工作,研究SNN压缩在一个全面的方式,利用所有的可压缩组件,并取得了更好的结果。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑