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

用乘子交替方向法和LSMR训练前馈神经网络的FPGA加速方法

An FPGA Accelerated Method for Training Feed-forward Neural Networks Using Alternating Direction Method of Multipliers and LSMR

Imperial College London(帝国理工学院)

Seyedeh Niusha Alavi Foumani, Ce Guo, Wayne Luk

摘要:

在这个项目中,我们成功地设计,实现,部署和测试了一种新的FPGA加速算法的神经网络训练。该算法本身是在一个独立的研究选项中开发的。该训练方法基于交替方向乘法算法,具有较强的并行性,采用最小二乘最小二乘估计,避免了硬件设计中矩阵求逆等问题。作为中间阶段,我们完全实现了ADMM-LSMR方法在C语言的前馈神经网络具有灵活的层数和隐藏的大小。我们证明,该方法可以操作与定点运算,而不影响精度。接下来,我们使用英特尔FPGA SDK for OpenCL设计了该算法的FPGA加速版本,并进行了广泛的优化阶段,随后在英特尔Arria 10 GX FPGA上成功部署了该程序。FPGA加速程序与同等CPU实现相比,速度提高了6倍,同时实现了有希望的精度。

英文摘要:

In this project, we have successfully designed, implemented, deployed and tested a novel FPGA accelerated algorithm for neural network training. The algorithm itself was developed in an independent study option. This training method is based on Alternating Direction Method of Multipliers algorithm, which has strong parallel characteristics and avoids procedures such as matrix inversion that are problematic in hardware designs by employing LSMR. As an intermediate stage, we fully implemented the ADMM-LSMR method in C language for feed-forward neural networks with a flexible number of layers and hidden size. We demonstrated that the method can operate with fixed-point arithmetic without compromising the accuracy. Next, we devised an FPGA accelerated version of the algorithm using Intel FPGA SDK for OpenCL and performed extensive optimisation stages followed by successful deployment of the program on an Intel Arria 10 GX FPGA. The FPGA accelerated program showed up to 6 times speed up comparing to equivalent CPU implementation while achieving promising accuracy.

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

↑