arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.07188cs.DCcs.CVeess.IV
收藏

GCV-Turbo:在 FPGA 上端到端加速基于 GNN 的计算机视觉任务

GCV-Turbo: End-to-end Acceleration of GNN-based Computer Vision Tasks on FPGA

University of Southern California(南加州大学);DEVCOM Army Research Office(DEVCOM陆军研究办公室)

Bingyi Zhang, Rajgopal Kannan, Carl Busart, Viktor Prasanna

AI总结:

提出 FPGA 加速器 GCV-Turbo,通过统一 CNN/GNN 硬件架构与 PyTorch 兼容编译器端到端优化,在六类任务上显著降低延迟并保持专用加速器性能。

摘要:

图神经网络(GNN)近来已赋能多种新型计算机视觉(CV)任务。在基于 GNN 的 CV 任务中,会采用 CNN 层与 GNN 层的组合,或仅采用 GNN 层。本文介绍 GCV-Turbo,这是一个面向 FPGA 的领域专用加速器,用于端到端加速基于 GNN 的 CV 任务。GCV-Turbo 由两个关键组件组成:(1)一种新颖的硬件架构,使用同一组计算资源,对 CNN 和 GNN 中的计算内核进行优化。(2)一个兼容 PyTorch 的编译器,它以用户定义的模型作为输入,对给定基于 GNN 的 CV 任务的计算图执行端到端优化,并生成用于硬件执行的优化代码。硬件架构与编译器协同工作,以支持多种基于 GNN 的 CV 任务。我们在一款最先进的 FPGA 上实现 GCV-Turbo,并在六个具有不同输入数据模态(例如图像、人体骨架、点云)的代表性基于 GNN 的 CV 任务上评估其性能。与最先进的 CPU(GPU)实现相比,GCV-Turbo 在这六个基于 GNN 的 CV 任务上实现平均 $68.4\ imes$($4.1\ imes$)的延迟降低。此外,GCV-Turbo 支持独立 CNN 或 GNN 的执行,对于广泛使用的仅 CNN(仅 GNN)模型,其性能可与最先进的 CNN(GNN)加速器相媲美。

英文摘要:

Graph neural networks (GNNs) have recently empowered various novel computer vision (CV) tasks. In GNN-based CV tasks, a combination of CNN layers and GNN layers or only GNN layers are employed. This paper introduces GCV-Turbo, a domain-specific accelerator on FPGA for end-to-end acceleration of GNN-based CV tasks. GCV-Turbo consists of two key components: (1) a \emph{novel} hardware architecture optimized for the computation kernels in both CNNs and GNNs using the same set of computation resources. (2) a PyTorch-compatible compiler that takes a user-defined model as input, performs end-to-end optimization for the computation graph of a given GNN-based CV task, and produces optimized code for hardware execution. The hardware architecture and the compiler work synergistically to support a variety of GNN-based CV tasks. We implement GCV-Turbo on a state-of-the-art FPGA and evaluate its performance across six representative GNN-based CV tasks with diverse input data modalities (e.g., image, human skeleton, point cloud). Compared with state-of-the-art CPU (GPU) implementations, GCV-Turbo achieves an average latency reduction of $68.4\times$ ($4.1\times$) on these six GNN-based CV tasks. Moreover, GCV-Turbo supports the execution of the standalone CNNs or GNNs, achieving performance comparable to that of state-of-the-art CNN (GNN) accelerators for widely used CNN-only (GNN-only) models.

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

↑