循环神经网络在FPGA上的硬件实现
Recurrent Neural Networks Hardware Implementation on FPGA
摘要:
循环神经网络(RNN)具有保持记忆和学习数据序列的能力。由于RNN的递归性质,有时很难在传统硬件上并行化其所有计算。CPU目前不提供大的并行性,而GPU由于RNN模型的顺序组件而提供有限的并行性。在本文中,我们提出了一个硬件实现的长短期记忆(LSTM)递归网络的可编程逻辑Zynq 7020 FPGA从Xilinx。我们在硬件中实现了一个带有$2$层和$128$隐藏单元的RNN,并使用字符级语言模型对其进行了测试。该实现比Zynq 7020 FPGA上嵌入的ARM CPU快$21\times$以上。这项工作可能会发展为未来移动设备的RNN协处理器。
英文摘要:
Recurrent Neural Networks (RNNs) have the ability to retain memory and learn data sequences. Due to the recurrent nature of RNNs, it is sometimes hard to parallelize all its computations on conventional hardware. CPUs do not currently offer large parallelism, while GPUs offer limited parallelism due to sequential components of RNN models. In this paper we present a hardware implementation of Long-Short Term Memory (LSTM) recurrent network on the programmable logic Zynq 7020 FPGA from Xilinx. We implemented a RNN with $2$ layers and $128$ hidden units in hardware and it has been tested using a character level language model. The implementation is more than $21\times$ faster than the ARM CPU embedded on the Zynq 7020 FPGA. This work can potentially evolve to a RNN co-processor for future mobile devices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。