arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.01905cs.NEcs.AR
收藏

FireFly:一款具有高效 DSP 和内存优化的高吞吐量脉冲神经网络硬件加速器

FireFly: A High-Throughput Hardware Accelerator for Spiking Neural Networks with Efficient DSP and Memory Optimization

Jindong Li, Guobin Shen, Dongcheng Zhao, Qian Zhang, Yi Zeng

AI总结:

针对 FPGA 上 SNN 的算术与内存效率瓶颈,本文提出 FireFly 加速器,利用 DSP48E2 优化多路复用—累加运算并设计高效内存系统,在资源受限边缘器件上实现高计算密度。

摘要:

脉冲神经网络(SNN)因其强大的生物可解释性和高能效而得到广泛应用。随着反向传播算法和替代梯度的引入,脉冲神经网络的结构变得更加复杂,其与人工神经网络之间的性能差距也逐渐缩小。然而,大多数面向现场可编程门阵列(FPGA)的 SNN 硬件实现都无法满足算术或内存效率要求,这严重限制了 SNN 的发展。它们没有深入研究二进制脉冲与突触权重之间的算术运算,或者在小型任务上使用过于昂贵的器件,从而假定片上 RAM 资源无限。为提高算术效率,我们分析了脉冲神经元的神经动力学,将 SNN 算术运算推广为多路复用—累加运算,并利用 Xilinx Ultrascale FPGA 中的 DSP48E2 硬模块提出了这种运算的高性能实现。为提高内存效率,我们设计了一个内存系统,以合理的片上 RAM 消耗实现高效的突触权重和膜电压内存访问。结合上述两项改进,我们提出了一种能够即时处理触发神经元所产生脉冲的 FPGA 加速器(FireFly)。FireFly 是首个将 DSP 优化技术纳入 SNN 突触运算的 SNN 加速器。FireFly 在若干资源有限的 FPGA 边缘器件上实现,同时仍保证在 300MHz 下达到 5.53TOP/s 的峰值性能。作为一款轻量级加速器,与使用大型 FPGA 器件的现有研究相比,FireFly 实现了最高的计算密度效率。

英文摘要:

Spiking neural networks (SNNs) have been widely used due to their strong biological interpretability and high energy efficiency. With the introduction of the backpropagation algorithm and surrogate gradient, the structure of spiking neural networks has become more complex, and the performance gap with artificial neural networks has gradually decreased. However, most SNN hardware implementations for field-programmable gate arrays (FPGAs) cannot meet arithmetic or memory efficiency requirements, which significantly restricts the development of SNNs. They do not delve into the arithmetic operations between the binary spikes and synaptic weights or assume unlimited on-chip RAM resources by using overly expensive devices on small tasks. To improve arithmetic efficiency, we analyze the neural dynamics of spiking neurons, generalize the SNN arithmetic operation to the multiplex-accumulate operation, and propose a high-performance implementation of such operation by utilizing the DSP48E2 hard block in Xilinx Ultrascale FPGAs. To improve memory efficiency, we design a memory system to enable efficient synaptic weights and membrane voltage memory access with reasonable on-chip RAM consumption. Combining the above two improvements, we propose an FPGA accelerator that can process spikes generated by the firing neuron on-the-fly (FireFly). FireFly is the first SNN accelerator that incorporates DSP optimization techniques into SNN synaptic operations. FireFly is implemented on several FPGA edge devices with limited resources but still guarantees a peak performance of 5.53TOP/s at 300MHz. As a lightweight accelerator, FireFly achieves the highest computational density efficiency compared with existing research using large FPGA devices.

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

↑