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

ShortcutFusion:从Tensorflow到基于FPGA的加速器,具有针对快捷方式数据的重用感知内存分配

ShortcutFusion: From Tensorflow to FPGA-based accelerator with reuse-aware memory allocation for shortcut data

Duy Thanh Nguyen, Hyeonseung Je, Tuan Nghia Nguyen, Soojung Ryu, Kyujoong Lee, Hyuk-Jae Lee

摘要:

残差块是最近最先进的CNN(如EfficientNet或EfficientDet)中非常常见的组件。在ResNet 152中,XML数据占特征地图访问的近40%[8]。以前的DNN编译器、加速器大多忽略了快捷方式的数据优化。本文介绍了ShortcutFusion,基于FPGA的加速器的优化工具,具有重用意识的静态内存分配的快捷数据,最大限度地提高片上数据重用给定的资源约束。从TensorFlow DNN模型中,所提出的设计为一组节点生成指令集,这些节点为每个残留块使用优化的数据重用。在Xilinx KCU 1500 FPGA卡上实现的加速器设计比NVIDIA RTX 2080 Ti快2.8倍,能效高9.9倍,输入尺寸为256 x256。.与基线的结果相比,在基线中,权重、输入和输出每层都从片外存储器访问一次,ShortcutFusion将RetinaNet、Yolov 3、ResNet 152和EfficientNet的DRAM访问减少了47.8-84.8%。考虑到与ShortcutMining [8]类似的缓冲区大小,它也在硬件中挖掘快捷方式数据,所提出的工作将特征映射的片外访问减少了5.27倍,同时从片外存储器访问权重仅一次。

英文摘要:

Residual block is a very common component in recent state-of-the art CNNs such as EfficientNet or EfficientDet. Shortcut data accounts for nearly 40% of feature-maps access in ResNet152 [8]. Most of the previous DNN compilers, accelerators ignore the shortcut data optimization. This paper presents ShortcutFusion, an optimization tool for FPGA-based accelerator with a reuse-aware static memory allocation for shortcut data, to maximize on-chip data reuse given resource constraints. From TensorFlow DNN models, the proposed design generates instruction sets for a group of nodes which uses an optimized data reuse for each residual block. The accelerator design implemented on the Xilinx KCU1500 FPGA card 2.8x faster and 9.9x more power efficient than NVIDIA RTX 2080 Ti for 256x256 input size. . Compared to the result from baseline, in which the weights, inputs, and outputs are accessed from the off-chip memory exactly once per each layer, ShortcutFusion reduces the DRAM access by 47.8-84.8% for RetinaNet, Yolov3, ResNet152, and EfficientNet. Given a similar buffer size to ShortcutMining [8], which also mine the shortcut data in hardware, the proposed work reduces off-chip access for feature-maps 5.27x while accessing weight from off-chip memory exactly once.

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

↑