arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.00822cs.LGcs.ARstat.ML
收藏

VIBNN:贝叶斯神经网络的硬件加速

VIBNN: Hardware Acceleration of Bayesian Neural Networks

Syracuse University(雪城大学);University of Southern California(南加利福尼亚大学)

Ruizhe Cai, Ao Ren, Ning Liu, Caiwen Ding, Luhao Wang, Xuehai Qian, Massoud Pedram, Yanzhi Wang

摘要:

贝叶斯神经网络(BNN)已经被提出来解决训练和推理中的模型不确定性问题。通过引入与条件概率分布相关联的权重,BNN能够解决传统神经网络中常见的过拟合问题,并允许通过变分推理过程进行小数据训练。在这个过程中频繁使用高斯随机变量需要适当优化的高斯随机数发生器(GRNG)。传统GRNG的高硬件成本使得BNN的硬件实现具有挑战性。在本文中,我们提出了VIBNN,基于FPGA的硬件加速器设计变分推理BNN。我们探索了BNN中大量高斯变量采样任务的设计空间。具体来说,我们介绍了两个高性能的高斯(伪)随机数发生器:基于RAM的线性反馈高斯随机数发生器(RLF-GRNG),这是由二项式分布和线性反馈逻辑的性质的启发;和贝叶斯神经网络面向华莱士高斯随机数发生器。为了实现高的可扩展性和高效的内存访问,我们提出了一个深度流水线加速器架构,具有快速执行和良好的硬件利用率。实验结果表明,所提出的VIBNN在FPGA上的实现可以实现321,543.4 Images/s的吞吐量和高达52,694.8 Images/J的能量效率,同时保持与其软件对应物相似的精度。

英文摘要:

Bayesian Neural Networks (BNNs) have been proposed to address the problem of model uncertainty in training and inference. By introducing weights associated with conditioned probability distributions, BNNs are capable of resolving the overfitting issue commonly seen in conventional neural networks and allow for small-data training, through the variational inference process. Frequent usage of Gaussian random variables in this process requires a properly optimized Gaussian Random Number Generator (GRNG). The high hardware cost of conventional GRNG makes the hardware implementation of BNNs challenging. In this paper, we propose VIBNN, an FPGA-based hardware accelerator design for variational inference on BNNs. We explore the design space for massive amount of Gaussian variable sampling tasks in BNNs. Specifically, we introduce two high performance Gaussian (pseudo) random number generators: the RAM-based Linear Feedback Gaussian Random Number Generator (RLF-GRNG), which is inspired by the properties of binomial distribution and linear feedback logics; and the Bayesian Neural Network-oriented Wallace Gaussian Random Number Generator. To achieve high scalability and efficient memory access, we propose a deep pipelined accelerator architecture with fast execution and good hardware utilization. Experimental results demonstrate that the proposed VIBNN implementations on an FPGA can achieve throughput of 321,543.4 Images/s and energy efficiency upto 52,694.8 Images/J while maintaining similar accuracy as its software counterpart.

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

↑