arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2106.06048cs.LG
收藏

基于FPGA加速器的贝叶斯循环神经网络优化

Optimizing Bayesian Recurrent Neural Networks on an FPGA-based Accelerator

University College London(伦敦大学学院);Imperial College London(帝国理工学院)

Martin Ferianc, Zhiqiang Que, Hongxiang Fan, Wayne Luk, Miguel Rodrigues

摘要:

神经网络已经在广泛的任务中展示了其出色的性能。特别是基于长短期记忆(LSTM)单元的递归架构已经表现出对真实世界数据中的时间依赖性建模的出色能力。然而,标准的递归架构不能估计它们的不确定性,这对于安全关键应用(如医学)至关重要。相比之下,贝叶斯循环神经网络(RNN)能够提供具有改进的准确性的不确定性估计。尽管如此,贝叶斯RNN在计算和内存方面都有很高的要求,这限制了它们的实用性。为了解决这个问题,我们提出了一种基于FPGA的硬件设计来加速基于贝叶斯LSTM的RNN。为了进一步提高整体算法硬件性能,提出了一个协同设计框架,以探索最适合贝叶斯RNN的算法硬件配置。我们在医疗应用程序上进行了广泛的实验,以证明我们的设计和我们的框架的有效性的改进。与GPU实现相比,我们基于FPGA的设计可以实现高达10倍的加速比和近106倍的能效。据我们所知,这是第一个针对FPGA上贝叶斯RNN加速的工作。

英文摘要:

Neural networks have demonstrated their outstanding performance in a wide range of tasks. Specifically recurrent architectures based on long-short term memory (LSTM) cells have manifested excellent capability to model time dependencies in real-world data. However, standard recurrent architectures cannot estimate their uncertainty which is essential for safety-critical applications such as in medicine. In contrast, Bayesian recurrent neural networks (RNNs) are able to provide uncertainty estimation with improved accuracy. Nonetheless, Bayesian RNNs are computationally and memory demanding, which limits their practicality despite their advantages. To address this issue, we propose an FPGA-based hardware design to accelerate Bayesian LSTM-based RNNs. To further improve the overall algorithmic-hardware performance, a co-design framework is proposed to explore the most fitting algorithmic-hardware configurations for Bayesian RNNs. We conduct extensive experiments on healthcare applications to demonstrate the improvement of our design and the effectiveness of our framework. Compared with GPU implementation, our FPGA-based design can achieve up to 10 times speedup with nearly 106 times higher energy efficiency. To the best of our knowledge, this is the first work targeting acceleration of Bayesian RNNs on FPGAs.

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

↑