arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.15631cs.AReess.SP
收藏

使用高级综合的低功耗 FPGA 残差神经网络加速器设计与优化

Design and Optimization of Residual Neural Network Accelerators for Low-Power FPGAs Using High-Level Synthesis

Filippo Minnella, Teodoro Urso, Mihai T. Lazarescu, Luciano Lavagno

AI总结:

提出面向低功耗 FPGA 的 HLS ResNet 加速器设计流程,通过减少残差缓冲及量化等优化,在 CIFAR-10 上实现更高准确率、吞吐量与能效。

摘要:

残差神经网络广泛应用于计算机视觉任务。它们通过缓解梯度消失问题,使构建更深、更准确的模型成为可能。其主要创新是残差块,它允许某一层的输出绕过一个或多个中间层,并与后续某一层的输出相加。残差神经网络的复杂结构以及残差块所需的缓冲,使其难以在资源受限平台上实现。我们提出了一种新颖的设计流程,用于在现场可编程门阵列上实现针对 ResNet 优化的深度学习模型,该流程采用一种降低其缓冲开销的策略,以获得资源高效的残差层实现。我们基于高级综合(HLS)的流程包含一整套详尽的设计原则和优化策略,以新颖的方式利用时间复用和循环合并等标准技术,将 ResNet 模型以及可能的其他基于跳跃连接的神经网络架构高效映射到 FPGA。模型被量化为权重和激活均使用 8 位整数,偏置使用 16 位,累加使用 32 位。实验结果是在 CIFAR-10 数据集上获得的,使用 ResNet8 和 ResNet20,并通过 HLS 在 Ultra96-V2 和 Kria KV260 开发板上采用 Xilinx FPGA 实现。与 Kria KV260 开发板上的最先进方案相比,我们的 ResNet20 实现取得了 2.88 倍加速,准确率提高 0.5%,达到 91.3%;而 ResNet8 的准确率提高 2.8%,达到 88.7%。ResNet8 和 ResNet20 在 Ultra96 开发板上的吞吐量分别为 12971 FPS 和 3254 FPS,在 Kria KV260 上分别为 30153 FPS 和 7601 FPS。就准确率、吞吐量和能耗而言,它们在 Pareto 意义上优于最先进解决方案。

英文摘要:

Residual neural networks are widely used in computer vision tasks. They enable the construction of deeper and more accurate models by mitigating the vanishing gradient problem. Their main innovation is the residual block which allows the output of one layer to bypass one or more intermediate layers and be added to the output of a later layer. Their complex structure and the buffering required by the residual block make them difficult to implement on resource-constrained platforms. We present a novel design flow for implementing deep learning models for field programmable gate arrays optimized for ResNets, using a strategy to reduce their buffering overhead to obtain a resource-efficient implementation of the residual layer. Our high-level synthesis (HLS)-based flow encompasses a thorough set of design principles and optimization strategies, exploiting in novel ways standard techniques such as temporal reuse and loop merging to efficiently map ResNet models, and potentially other skip connection-based NN architectures, into FPGA. The models are quantized to 8-bit integers for both weights and activations, 16-bit for biases, and 32-bit for accumulations. The experimental results are obtained on the CIFAR-10 dataset using ResNet8 and ResNet20 implemented with Xilinx FPGAs using HLS on the Ultra96-V2 and Kria KV260 boards. Compared to the state-of-the-art on the Kria KV260 board, our ResNet20 implementation achieves 2.88X speedup with 0.5% higher accuracy of 91.3%, while ResNet8 accuracy improves by 2.8% to 88.7%. The throughputs of ResNet8 and ResNet20 are 12971 FPS and 3254 FPS on the Ultra96 board, and 30153 FPS and 7601 FPS on the Kria KV26, respectively. They Pareto-dominate state-of-the-art solutions concerning accuracy, throughput, and energy.

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

↑