DLA:用于神经网络推理加速的嵌入器和FPGA覆盖
DLA: Compiler and FPGA Overlay for Neural Network Inference Acceleration
摘要:
叠加技术在现场可编程门阵列(FPGA)中显示出了巨大的潜力,因为它们允许快速的开发周期,并消除了传统FPGA硬件设计流程的许多挑战。然而,这通常伴随着显著的性能负担,导致在实际应用中很少采用覆盖。在本文中,我们量身定制的覆盖到一个特定的应用领域,我们展示了我们如何保持其完整的可编程性,而不支付传统上与覆盖的性能开销。具体来说,我们引入了一个覆盖的深度神经网络推理只有~1%的开销,以支持控制和重编程逻辑使用轻量级超长指令字(VLIW)网络。此外,我们还实现了一个复杂的特定于领域的图形编译器,该编译器编译了Caffe或Tensorflow等深度学习语言,以轻松定位我们的覆盖。我们展示了我们的图编译器如何执行架构驱动的软件优化,以显着提高卷积神经网络和递归神经网络(CNN/RNN)的性能-与朴素的实现相比,我们展示了ResNet-101的3倍改进和长短期记忆(LSTM)单元的12倍改进。最后,我们描述了如何定制我们的硬件覆盖,并使用我们的图形编译器在英特尔Arria 10 1150上实现GoogLeNet上的约900 fps-这是同类FPGA上有史以来最快的速度。
英文摘要:
Overlays have shown significant promise for field-programmable gate-arrays (FPGAs) as they allow for fast development cycles and remove many of the challenges of the traditional FPGA hardware design flow. However, this often comes with a significant performance burden resulting in very little adoption of overlays for practical applications. In this paper, we tailor an overlay to a specific application domain, and we show how we maintain its full programmability without paying for the performance overhead traditionally associated with overlays. Specifically, we introduce an overlay targeted for deep neural network inference with only ~1% overhead to support the control and reprogramming logic using a lightweight very-long instruction word (VLIW) network. Additionally, we implement a sophisticated domain specific graph compiler that compiles deep learning languages such as Caffe or Tensorflow to easily target our overlay. We show how our graph compiler performs architecture-driven software optimizations to significantly boost performance of both convolutional and recurrent neural networks (CNNs/RNNs) - we demonstrate a 3x improvement on ResNet-101 and a 12x improvement for long short-term memory (LSTM) cells, compared to naive implementations. Finally, we describe how we can tailor our hardware overlay, and use our graph compiler to achieve ~900 fps on GoogLeNet on an Intel Arria 10 1150 - the fastest ever reported on comparable FPGAs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。