arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.12437cs.ARcs.NE
收藏

稀疏激活卷积脉冲神经网络的高效硬件加速

Efficient Hardware Acceleration of Sparsely Active Convolutional Spiking Neural Networks

Jan Sommer, M. Akif Özkan, Oliver Keszocze, Jürgen Teich

AI总结:

针对卷积脉冲神经网络的高激活稀疏性导致传统PE阵列利用率低的问题,提出一种基于少量高利用率PE、运行时特征图压缩队列和内存交错机制的FPGA硬件加速架构,实现了显著加速、更低资源占用与能耗。

摘要:

脉冲神经网络(SNNs)以事件驱动的方式进行计算,以实现比标准神经网络更高效的计算。在SNNs中,神经元输出(即激活值)不使用实值激活进行编码,而是使用二值脉冲序列进行编码。相较于传统神经网络使用SNNs的动机根植于SNNs的特殊计算特性,尤其是神经元输出激活极高的稀疏度。传统卷积神经网络(CNNs)的成熟架构采用大型处理单元(PEs)空间阵列,但在面对激活稀疏性时,这些阵列的利用率极低。我们提出了一种新型架构,专门针对具有高激活稀疏度的卷积SNNs(CSNNs)处理进行了优化。在我们的架构中,主要策略是使用数量更少但利用率极高的PEs。用于执行卷积的PE阵列仅与卷积核大小相当,只要有脉冲需要处理,所有PEs就能保持活跃。通过将特征图(即激活值)压缩到队列中,随后逐个脉冲进行处理,从而确保了这种持续的脉冲流。这种压缩在运行时使用专用电路完成,进而实现自定时调度。这使得处理时间能够与脉冲数量直接成正比地缩放。我们采用了一种名为内存交错的新型内存组织方案,利用多个小型并行片上RAM来高效存储和检索单个神经元的膜电位。每个RAM与其对应的PE硬连线,减少了开关电路,并允许RAM紧邻各自的PE放置。我们在FPGA上实现了所提出的架构,与其他实现相比实现了显著的加速,同时所需硬件资源更少且维持了更低的能耗。

英文摘要:

Spiking Neural Networks (SNNs) compute in an event-based matter to achieve a more efficient computation than standard Neural Networks. In SNNs, neuronal outputs (i.e. activations) are not encoded with real-valued activations but with sequences of binary spikes. The motivation of using SNNs over conventional neural networks is rooted in the special computational aspects of SNNs, especially the very high degree of sparsity of neural output activations. Well established architectures for conventional Convolutional Neural Networks (CNNs) feature large spatial arrays of Processing Elements (PEs) that remain highly underutilized in the face of activation sparsity. We propose a novel architecture that is optimized for the processing of Convolutional SNNs (CSNNs) that feature a high degree of activation sparsity. In our architecture, the main strategy is to use less but highly utilized PEs. The PE array used to perform the convolution is only as large as the kernel size, allowing all PEs to be active as long as there are spikes to process. This constant flow of spikes is ensured by compressing the feature maps (i.e. the activations) into queues that can then be processed spike by spike. This compression is performed in run-time using dedicated circuitry, leading to a self-timed scheduling. This allows the processing time to scale directly with the number of spikes. A novel memory organization scheme called memory interlacing is used to efficiently store and retrieve the membrane potentials of the individual neurons using multiple small parallel on-chip RAMs. Each RAM is hardwired to its PE, reducing switching circuitry and allowing RAMs to be located in close proximity to the respective PE. We implemented the proposed architecture on an FPGA and achieved a significant speedup compared to other implementations while needing less hardware resources and maintaining a lower energy consumption.

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

↑