arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.10902cs.AReess.SP
收藏

重用核还是激活?一种用于低延迟谱域CNN加速的灵活数据流

Reuse Kernels or Activations? A Flexible Dataflow for Low-latency Spectral CNN Acceleration

Yue Niu, Rajgopal Kannan, Ajitesh Srivastava, Viktor Prasanna

AI总结:

本文针对谱域CNN的核爆炸问题,提出灵活数据流与调度算法,在FPGA上实现低延迟加速,减少42%数据传输,VGG16推理延迟降至9毫秒。

摘要:

谱域卷积神经网络已被证明在降低计算复杂度方面比传统空间域卷积神经网络更高效。然而,它们存在“核爆炸”问题,即使在压缩(剪枝)之后,也会给核访问带来高内存负担和片外带宽需求。这造成了压缩所提供的潜在加速与实际FPGA实现性能之间的差距,尤其是在低延迟CNN推理中。在本文中,我们开发了一种原则性方法来克服这一性能差距,并在FPGA上设计低延迟、低带宽的谱域稀疏CNN加速器。首先,我们分析了稀疏卷积层的带宽-存储权衡,并定位通信瓶颈。然后,我们开发了一种数据流,用于灵活优化不同层中的数据重用,以最小化片外通信。最后,我们提出了一种新颖的调度算法,以最优方式调度多个稀疏核的片上内存访问,并最小化读取冲突。在最先进的FPGA平台上,我们的设计将数据传输减少了42%,DSP利用率高达90%,并且对于VGG16实现了9毫秒的推理延迟,而基线最先进延迟为68毫秒。

英文摘要:

Spectral-domain CNNs have been shown to be more efficient than traditional spatial CNNs in terms of reducing computation complexity. However they come with a `kernel explosion' problem that, even after compression (pruning), imposes a high memory burden and off-chip bandwidth requirement for kernel access. This creates a performance gap between the potential acceleration offered by compression and actual FPGA implementation performance, especially for low-latency CNN inference. In this paper, we develop a principled approach to overcoming this performance gap and designing a low-latency, low-bandwidth, spectral sparse CNN accelerator on FPGAs. First, we analyze the bandwidth-storage tradeoff of sparse convolutional layers and locate communication bottlenecks. We then develop a dataflow for flexibly optimizing data reuse in different layers to minimize off-chip communication. Finally, we propose a novel scheduling algorithm to optimally schedule the on-chip memory access of multiple sparse kernels and minimize read conflicts. On a state-of-the-art FPGA platform, our design reduces data transfers by 42\% with DSP utilization up to 90\% and achieves inference latency of 9 ms for VGG16, compared to the baseline state-of-the-art latency of 68 ms.

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

↑