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

一种基于FPGA的可重构加速器,用于卷积-Transformer混合架构EfficientViT

An FPGA-Based Reconfigurable Accelerator for Convolution-Transformer Hybrid EfficientViT

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

Haikuo Shao, Huihong Shi, Wendong Mao, Zhongfeng Wang

AI总结:

本文针对EfficientViT混合架构提出FPGA可重构加速器,通过可重构计算架构和时分复用流水线数据流实现层内与层间融合,在ZCU102上取得780.2 GOPS吞吐量和105.1 GOPS/W能效,显著超越现有工作。

摘要:

视觉Transformer(ViTs)在计算机视觉领域取得了显著成功。然而,其密集的计算量和巨大的内存占用对ViTs在嵌入式设备上的部署提出了挑战,因此需要高效的ViTs。其中,最先进的EfficientViT采用卷积-Transformer混合架构,同时提升了精度和硬件效率。遗憾的是,由于EfficientViT独特的架构,现有加速器无法充分发挥其硬件优势。本文提出了一种基于FPGA的EfficientViT加速器,以推进ViTs的硬件效率前沿。具体而言,我们设计了一种可重构架构,以高效支持各种运算类型,包括轻量级卷积和注意力机制,从而提升硬件利用率。此外,我们提出了一种时分复用且流水线化的数据流,以促进层内和层间融合,降低片外数据访问成本。实验结果表明,在Xilinx ZCU102 FPGA上以200MHz运行时,我们的加速器实现了高达780.2 GOPS的吞吐量和105.1 GOPS/W的能效,显著优于先前的工作。

英文摘要:

Vision Transformers (ViTs) have achieved significant success in computer vision. However, their intensive computations and massive memory footprint challenge ViTs' deployment on embedded devices, calling for efficient ViTs. Among them, EfficientViT, the state-of-the-art one, features a Convolution-Transformer hybrid architecture, enhancing both accuracy and hardware efficiency. Unfortunately, existing accelerators cannot fully exploit the hardware benefits of EfficientViT due to its unique architecture. In this paper, we propose an FPGA-based accelerator for EfficientViT to advance the hardware efficiency frontier of ViTs. Specifically, we design a reconfigurable architecture to efficiently support various operation types, including lightweight convolutions and attention, boosting hardware utilization. Additionally, we present a time-multiplexed and pipelined dataflow to facilitate both intra- and inter-layer fusions, reducing off-chip data access costs. Experimental results show that our accelerator achieves up to 780.2 GOPS in throughput and 105.1 GOPS/W in energy efficiency at 200MHz on the Xilinx ZCU102 FPGA, which significantly outperforms prior works.

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

↑