arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.09209cs.ARcs.LG
收藏

H2PIPE: 基于高带宽存储器的FPGA高吞吐量CNN推理

H2PIPE: High throughput CNN Inference on FPGAs with High-Bandwidth Memory

University of Toronto(多伦多大学);Microsoft(微软公司);Vector Institute(向量研究所)

Mario Doumet, Marius Stan, Mathew Hall, Vaughn Betz

AI总结:

本研究针对大型CNN层流水线加速的高带宽需求,对HPIPE加速器扩展以结合HBM与片上存储,通过算法优化权重缓冲区布局与FIFO深度减少停顿,实现了显著的推理加速。

摘要:

卷积神经网络(CNN)兼具大量可并行计算与频繁内存访问的特点。现场可编程门阵列(FPGA)可通过实现数据流加速器来达成低延迟、高吞吐量的CNN推理,这类加速器将层专属硬件流水线化,以实现完整网络。这类层流水线加速器通过为每个CNN层实现不同的处理单元,可实现高计算密度,但所有层并行处理需要高内存带宽。传统上这一需求通过将所有权重存储在片上来满足,但这对于最大型的CNN而言并不可行,而这类大型网络往往正是最需要加速的。在本研究中,我们对最先进的数据流加速器HPIPE进行扩展,使其同时利用高带宽存储器(HBM)和片上存储,从而实现大型CNN的高性能层流水线数据流加速。基于HBM在预期地址模式下的延迟与吞吐量的剖析结果,我们开发了一种算法,用于选择哪些权重缓冲区应移至片外,以及片上通往HBM的FIFO(先进先出队列)深度应为多少,以最大限度减少计算单元停顿。我们将这一全新硬件生成模块集成到HPIPE领域专用CNN编译器中,并验证其带宽效率接近理论极限。与现有最优工作相比,我们在ResNet-18、ResNet-50和VGG-16上分别获得了至少19.4倍、5.1倍和10.5倍的加速比。

英文摘要:

Convolutional Neural Networks (CNNs) combine large amounts of parallelizable computation with frequent memory access. Field Programmable Gate Arrays (FPGAs) can achieve low latency and high throughput CNN inference by implementing dataflow accelerators that pipeline layer-specific hardware to implement an entire network. By implementing a different processing element for each CNN layer, these layer-pipelined accelerators can achieve high compute density, but having all layers processing in parallel requires high memory bandwidth. Traditionally this has been satisfied by storing all weights on chip, but this is infeasible for the largest CNNs, which are often those most in need of acceleration. In this work we augment a state-of-the-art dataflow accelerator (HPIPE) to leverage both High-Bandwidth Memory (HBM) and on-chip storage, enabling high performance layer-pipelined dataflow acceleration of large CNNs. Based on profiling results of HBM's latency and throughput against expected address patterns, we develop an algorithm to choose which weight buffers should be moved off chip and how deep the on-chip FIFOs to HBM should be to minimize compute unit stalling. We integrate the new hardware generation within the HPIPE domain-specific CNN compiler and demonstrate good bandwidth efficiency against theoretical limits. Compared to the best prior work we obtain speed-ups of at least 19.4x, 5.1x and 10.5x on ResNet-18, ResNet-50 and VGG-16 respectively.

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

↑