arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.14307cs.ARcs.LG
收藏

一种基于FPGA的加速器,可高效支持任意卷积核大小的CNN

An FPGA-Based Accelerator Enabling Efficient Support for CNNs with Arbitrary Kernel Sizes

School of Electronic Science and Engineering, Nanjing University(南京大学电子科学与工程学院);School of Integrated Circuits, Sun Yat-sen University(中山大学集成电路学院)

Miaoxin Wang, Xiao Wu, Jun Lin, Zhongfeng Wang

AI总结:

本文提出一种基于FPGA的CNN推理加速器,通过Z-flow数据流、核分割及垂直/水平融合方法高效支持任意卷积核大小,并在Intel Arria 10 FPGA上实现最高3.91倍DSP效率提升,首次在硬件上部署RepLKNet-31和PyConvResNet-50。

摘要:

受视觉Transformer(ViTs)关键运算启发而采用大卷积核的卷积神经网络(CNNs),已在多种视觉应用中展现出卓越性能。为解决现有设计在支持大核卷积时计算效率下降的问题,本文提出了一种基于FPGA的推理加速器,用于高效部署具有任意卷积核大小的CNN。首先,提出了一种Z-flow方法,通过最大化数据复用机会来优化计算数据流。此外,所提出的设计结合了核分割(Kseg)方案,能够扩展对大核卷积的支持,显著降低重叠数据的存储需求。进一步,基于对新兴CNN中典型块结构的分析,开发了垂直融合(VF)和水平融合(HF)方法,从计算和传输两个角度优化CNN部署。所提出的硬件加速器在Intel Arria 10 FPGA上进行了评估,在同一网络上实现了比现有技术最高高3.91倍的DSP效率。特别是,该加速器展示了对大核CNN的高效支持,在RepLKNet-31和PyConvResNet-50上分别实现了169.68 GOPS和244.55 GOPS的吞吐量,这两个网络均为首次在硬件上实现。

英文摘要:

Convolutional neural networks (CNNs) with large kernels, drawing inspiration from the key operations of vision transformers (ViTs), have demonstrated impressive performance in various vision-based applications. To address the issue of computational efficiency degradation in existing designs for supporting large-kernel convolutions, an FPGA-based inference accelerator is proposed for the efficient deployment of CNNs with arbitrary kernel sizes. Firstly, a Z-flow method is presented to optimize the computing data flow by maximizing data reuse opportunity. Besides, the proposed design, incorporating the kernel-segmentation (Kseg) scheme, enables extended support for large-kernel convolutions, significantly reducing the storage requirements for overlapped data. Moreover, based on the analysis of typical block structures in emerging CNNs, vertical-fused (VF) and horizontal-fused (HF) methods are developed to optimize CNN deployments from both computation and transmission perspectives. The proposed hardware accelerator, evaluated on Intel Arria 10 FPGA, achieves up to 3.91 times better DSP efficiency than prior art on the same network. Particularly, it demonstrates efficient support for large-kernel CNNs, achieving throughputs of 169.68 GOPS and 244.55 GOPS for RepLKNet-31 and PyConvResNet-50, respectively, both of which are implemented on hardware for the first time.

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

↑