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

CPU-FPGA异构平台上的低延迟小批量GNN推理

Low-latency Mini-batch GNN Inference on CPU-FPGA Heterogeneous Platform

Bingyi Zhang, Hanqing Zeng, Viktor Prasanna

摘要:

图神经网络的小批量推理是许多实际应用中的关键问题。最近,GNN的设计原则,模型深度-感受野解耦已被提出来解决众所周知的问题的邻域爆炸。解耦的GNN模型比原始模型实现了更高的准确性,并表现出出色的小批量推理可扩展性。我们将解耦的GNN映射到CPU-FPGA异构平台上,以实现低延迟的小批量推理。在FPGA平台上,我们设计了一种新的GNN硬件加速器,具有自适应数据路径,称为自适应计算内核(ACK),可以低延迟执行GNN的各种计算内核:(1)对于表示为矩阵乘法的密集计算内核,ACK作为具有完全局部连接的脉动阵列工作,(2)对于稀疏计算内核,ACK遵循分散-聚集范式,并作为多个并行管道来支持图的不规则连接。所提出的任务调度隐藏了CPU-FPGA数据通信开销,以减少推理延迟。我们开发了一个快速的设计空间探索算法,为多个目标GNN模型生成一个加速器。我们实现了我们的加速器在一个国家的最先进的CPU-FPGA平台,并使用三个代表性的模型(GCN,GraphSAGE,和GAT)的性能进行评估。结果表明,我们的CPU-FPGA实现了$21.4-50.8\times$,$2.9-21.6\times$,$4.7\times$延迟减少相比,最先进的实现在CPU的唯一,CPU-GPU和CPU-FPGA平台。

英文摘要:

Mini-batch inference of Graph Neural Networks (GNNs) is a key problem in many real-world applications. Recently, a GNN design principle of model depth-receptive field decoupling has been proposed to address the well-known issue of neighborhood explosion. Decoupled GNN models achieve higher accuracy than original models and demonstrate excellent scalability for mini-batch inference. We map Decoupled GNNs onto CPU-FPGA heterogeneous platforms to achieve low-latency mini-batch inference. On the FPGA platform, we design a novel GNN hardware accelerator with an adaptive datapath denoted Adaptive Computation Kernel (ACK) that can execute various computation kernels of GNNs with low-latency: (1) for dense computation kernels expressed as matrix multiplication, ACK works as a systolic array with fully localized connections, (2) for sparse computation kernels, ACK follows the scatter-gather paradigm and works as multiple parallel pipelines to support the irregular connectivity of graphs. The proposed task scheduling hides the CPU-FPGA data communication overhead to reduce the inference latency. We develop a fast design space exploration algorithm to generate a single accelerator for multiple target GNN models. We implement our accelerator on a state-of-the-art CPU-FPGA platform and evaluate the performance using three representative models (GCN, GraphSAGE, and GAT). Results show that our CPU-FPGA implementation achieves $21.4-50.8\times$, $2.9-21.6\times$, $4.7\times$ latency reduction compared with state-of-the-art implementations on CPU-only, CPU-GPU and CPU-FPGA platforms.

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

↑