Skip to main content
QUICK REVIEW

[论文解读] The implementation of a Deep Recurrent Neural Network Language Model on a Xilinx FPGA

Yufeng Hao, Steven F. Quigley|arXiv (Cornell University)|Oct 26, 2017
Neural Networks and ApplicationsComputer Science参考文献 12被引用 18
一句话总结

本文提出了一种基于硬件加速的深度循环神经网络(DRNN)语言模型,部署于单个Xilinx ZYNQ SoC FPGA上,采用PYNQ平台。该设计实现了一款基于AXI Stream接口的叠加加速器,达到20 GOPS的吞吐量,相较于CPU基线实现70.5倍的加速,较先前工作提升2.75倍,展示了FPGA在嵌入式自然语言处理应用中高效部署的潜力。

ABSTRACT

Recently, FPGA has been increasingly applied to problems such as speech recognition, machine learning, and cloud computation such as the Bing search engine used by Microsoft. This is due to FPGAs great parallel computation capacity as well as low power consumption compared to general purpose processors. However, these applications mainly focus on large scale FPGA clusters which have an extreme processing power for executing massive matrix or convolution operations but are unsuitable for portable or mobile applications. This paper describes research on single-FPGA platform to explore the applications of FPGAs in these fields. In this project, we design a Deep Recurrent Neural Network (DRNN) Language Model (LM) and implement a hardware accelerator with AXI Stream interface on a PYNQ board which is equipped with a XILINX ZYNQ SOC XC7Z020 1CLG400C. The PYNQ has not only abundant programmable logic resources but also a flexible embedded operation system, which makes it suitable to be applied in the natural language processing field. We design the DRNN language model with Python and Theano, train the model on a CPU platform, and deploy the model on a PYNQ board to validate the model with Jupyter notebook. Meanwhile, we design the hardware accelerator with Overlay, which is a kind of hardware library on PYNQ, and verify the acceleration effect on the PYNQ board. Finally, we have found that the DRNN language model can be deployed on the embedded system smoothly and the Overlay accelerator with AXI Stream interface performs at 20 GOPS processing throughput, which constitutes a 70.5X and 2.75X speed up compared to the work in Ref.30 and Ref.31 respectively.

研究动机与目标

  • 探索在单个低功耗FPGA平台上部署深度循环神经网络(DRNN)语言模型用于嵌入式和移动端自然语言处理应用的可行性。
  • 设计并集成一种基于AXI Stream接口的硬件加速器,用于PYNQ开发板,以加速DRNN推理。
  • 评估基于FPGA的DRNN实现相较于CPU执行方式以及先前FPGA工作的性能与效率。
  • 展示通过Jupyter笔记本在PYNQ平台上实现从Python/Theano训练好的DRNN模型到硬件的无缝部署。

提出的方法

  • DRNN语言模型使用Python和Theano在CPU平台上训练完成,随后部署至PYNQ开发板。
  • 采用PYNQ Overlay框架实现硬件加速器,该框架为可编程逻辑提供硬件库抽象。
  • 加速器使用AXI Stream接口,实现处理系统与可编程逻辑之间的高速数据流传输。
  • 系统在搭载Xilinx ZYNQ SoC(XC7Z020)的PYNQ开发板上进行验证,该芯片集成双核ARM Cortex-A9处理器与可编程逻辑。
  • 使用运行在PYNQ操作系统的Jupyter笔记本进行模型部署与性能评估。
  • 硬件设计针对FPGA上的循环网络层实现低延迟、高吞吐量推理进行了优化。

实验结果

研究问题

  • RQ1复杂的DRNN语言模型是否能够成功部署并加速于类似PYNQ开发板的单个低功耗FPGA平台上?
  • RQ2与CPU执行相比,通过采用具有AXI Stream接口的FPGA加速器来卸载DRNN推理,能够获得多大的性能提升?
  • RQ3与先前工作相比,所提出的FPGA加速器在吞吐量与效率方面表现如何?
  • RQ4PYNQ平台在多大程度上实现了软件训练模型与嵌入式自然语言处理系统中硬件加速的无缝集成?

主要发现

  • DRNN语言模型已成功部署于PYNQ开发板,证明其与嵌入式系统兼容,并支持实时推理。
  • 硬件加速器实现了20 GOPS的峰值吞吐量,显著优于基于CPU的推理性能。
  • 与引用文献30中所述的基线工作相比,实现了70.5倍的加速。
  • 相较于引用文献31的工作,实现了2.75倍的加速,证实了更高的效率与性能。
  • 采用PYNQ Overlay框架实现了高效的软硬件协同设计,并通过Jupyter笔记本实现了简化的部署流程。
  • 该系统展示了基于FPGA加速在轻量化、便携式自然语言处理应用中的可行性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。