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

BEANNA:一种支持二进制的神经网络加速架构

BEANNA: A Binary-Enabled Architecture for Neural Network Acceleration

University of California, Los Angeles(加州大学洛杉矶分校)

Caleb Terrill, Fred Chu

摘要:

现代硬件设计趋势已经转向专门的硬件加速,用于机器学习和计算机视觉等计算密集型任务。虽然这些复杂的工作负载可以通过商用GPU来加速,但在需要满足移动和嵌入式设备严格的内存、吞吐量和功耗限制时,特定于领域的硬件要理想得多。本文提出并评估了二进制使能架构的神经网络加速(BEANNA),一个神经网络硬件加速器能够处理浮点和二进制网络层。通过使用一种新型的16 × 16脉动阵列矩阵乘法器,其处理元件可以计算浮点和二进制乘加,BEANNA可以在高精度浮点和二进制神经网络层之间无缝切换。BEANNA以100 MHz的时钟速度运行,在高精度模式下工作时,峰值吞吐量为52.8 GigaOps/秒,在二进制模式下工作时,峰值吞吐量为820 GigaOps/秒。BEANNA的评估是通过比较一个混合网络与浮点外层和二进制隐藏层的网络,只有浮点层。使用BEANNA加速的混合网络实现了194%的吞吐量增加,68%的内存使用量减少,每个推理的能耗减少66%,所有这些都是以MNIST数据集上仅0.23%的分类准确性降低为代价的。

英文摘要:

Modern hardware design trends have shifted towards specialized hardware acceleration for computationally intensive tasks like machine learning and computer vision. While these complex workloads can be accelerated by commercial GPUs, domain-specific hardware is far more optimal when needing to meet the stringent memory, throughput, and power constraints of mobile and embedded devices. This paper proposes and evaluates a Binary-Enabled Architecture for Neural Network Acceleration (BEANNA), a neural network hardware accelerator capable of processing both floating point and binary network layers. Through the use of a novel 16x16 systolic array based matrix multiplier with processing elements that compute both floating point and binary multiply-adds, BEANNA seamlessly switches between high precision floating point and binary neural network layers. Running at a clock speed of 100MHz, BEANNA achieves a peak throughput of 52.8 GigaOps/second when operating in high precision mode, and 820 GigaOps/second when operating in binary mode. Evaluation of BEANNA was performed by comparing a hybrid network with floating point outer layers and binary hidden layers to a network with only floating point layers. The hybrid network accelerated using BEANNA achieved a 194% throughput increase, a 68% memory usage decrease, and a 66% energy consumption decrease per inference, all this at the cost of a mere 0.23% classification accuracy decrease on the MNIST dataset.

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

↑