深度循环神经网络语言模型在Xilinx FPGA上的实现
The implementation of a Deep Recurrent Neural Network Language Model on a Xilinx FPGA
摘要:
最近,FPGA越来越多地应用于诸如语音识别、机器学习和云计算(如微软使用的Bing搜索引擎)等问题。这是由于FPGA具有强大的并行计算能力以及与通用处理器相比的低功耗。然而,这些应用主要集中在大规模的FPGA集群,具有执行大量矩阵或卷积运算的极端处理能力,但不适合便携式或移动应用。本文以单FPGA平台为研究对象,探索FPGA在这些领域的应用。在本项目中,我们设计了一个深度循环神经网络(DRNN)语言模型(LM),并在一个基于XILINX ZYNQ SOC XC7Z020 1CLG400 C的PYNQ板上实现了一个具有AXI Stream接口的硬件加速器。PYNQ不仅具有丰富的可编程逻辑资源,而且具有灵活的嵌入式操作系统,非常适合应用于自然语言处理领域。我们使用Python和Theano设计了DRNN语言模型,在CPU平台上对模型进行训练,并将模型部署到PYNQ板上,使用Pyroyter Notebook对模型进行验证。同时,利用PYNQ上的硬件库Overlay设计了硬件加速器,并在PYNQ板上验证了加速效果。最后,我们发现DRNN语言模型可以顺利地部署在嵌入式系统上,并且具有AXI流接口的Overlay加速器的处理吞吐量为20 GOPS,与参考文献30和参考文献31中的工作相比,分别构成了70.5倍和2.75倍的速度提升。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。