arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.12528cs.LGeess.IV
收藏

低延迟脉冲神经网络的时空剪枝和Quantization

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

Purdue University(普渡大学)

Sayeed Shafayet Chowdhury, Isha Garg, Kaushik Roy

摘要:

脉冲神经网络(SNN)是传统深度学习方法的一种有前途的替代方法,因为它们执行事件驱动的信息处理。然而,SNN的一个主要缺点是高推理延迟。SNN的效率可以使用诸如修剪和量化的压缩方法来提高。值得注意的是,SNN与其非尖峰对应物不同,由时间维度组成,其压缩可以导致延迟减少。在本文中,我们提出了SNN的空间和时间修剪。首先,结构化的空间修剪是通过使用主成分分析的平均累积膜电位的神经元确定逐层的显着尺寸。该步骤导致10- 14 X模型压缩。此外,它还可以实现延迟较低的推理,并减少每次推理的尖峰计数。为了进一步减少延迟,通过在训练时逐渐减少时间步长来执行时间修剪。使用基于代理梯度下降的反向传播来训练网络,并使用VGG架构在CIFAR 10和CIFAR 100上验证结果。时空修剪的SNN在CIFAR 10和CIFAR 100上分别实现了89.04%和66.4%的准确度,同时与最先进的SNN相比,以3- 30倍的延迟进行推理。此外,与未经修剪的标准深度学习对应物相比,它们需要8- 14倍的计算能量。能量数是通过将操作的数量乘以每个操作的能量来获得的。这些SNN还提供了1-4%的高鲁棒性对高斯噪声损坏的输入。此外,我们进行权重量化,并发现性能保持合理的稳定高达5位量化。

英文摘要:

Spiking Neural Networks (SNNs) are a promising alternative to traditional deep learning methods since they perform event-driven information processing. However, a major drawback of SNNs is high inference latency. The efficiency of SNNs could be enhanced using compression methods such as pruning and quantization. Notably, SNNs, unlike their non-spiking counterparts, consist of a temporal dimension, the compression of which can lead to latency reduction. In this paper, we propose spatial and temporal pruning of SNNs. First, structured spatial pruning is performed by determining the layer-wise significant dimensions using principal component analysis of the average accumulated membrane potential of the neurons. This step leads to 10-14X model compression. Additionally, it enables inference with lower latency and decreases the spike count per inference. To further reduce latency, temporal pruning is performed by gradually reducing the timesteps while training. The networks are trained using surrogate gradient descent based backpropagation and we validate the results on CIFAR10 and CIFAR100, using VGG architectures. The spatiotemporally pruned SNNs achieve 89.04% and 66.4% accuracy on CIFAR10 and CIFAR100, respectively, while performing inference with 3-30X reduced latency compared to state-of-the-art SNNs. Moreover, they require 8-14X lesser compute energy compared to their unpruned standard deep learning counterparts. The energy numbers are obtained by multiplying the number of operations with energy per operation. These SNNs also provide 1-4% higher robustness against Gaussian noise corrupted inputs. Furthermore, we perform weight quantization and find that performance remains reasonably stable up to 5-bit quantization.

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

↑