可穿戴设备二值化神经网络推理的分类能量最小化
Minimizing Classification Energy of Binarized Neural Network Inference for Wearable Devices
摘要:
在本文中,我们提出了一种低功耗硬件,用于有效部署已针对生理数据集进行训练的二进制神经网络(BNN)。BNN将权重和特征映射约束为1位,可以打包与存储器条目的宽度提供的一样多的1位权重,并且可以在对齐的打包条目上使用一个融合的逐位xnor和填充计数指令来执行多个乘法累加(MAC)操作。我们提出的硬件是可扩展的处理引擎(PE)的数量和内存的宽度,这两者都是可调的最节能的配置给定的应用程序。我们在我们的平台上实现了两个真实的案例研究,包括身体活动监测和压力检测,对于目标平台上的每个案例研究,我们寻求最佳的PE和内存配置。我们的实施结果表明,一个很好的选择的存储器宽度和PE的数量的配置可以优化到4倍和2.5倍的能耗分别在Artix-7 FPGA和65纳米CMOS ASIC实现。我们还表明,一般来说,更宽的内存使更有效的BNN处理硬件。为了进一步降低能量,我们引入了池跳过技术,该技术可以跳过至少25%的BNN中伴随最大池层的操作,从而在压力检测案例研究中减少了22%的操作。与在相同目标平台上使用相同案例研究并具有相同分类精度的相关工作相比,我们的硬件对于FPGA上的压力检测和ASIC上的身体活动监测分别具有4.5倍和250倍的能效。
英文摘要:
In this paper, we propose a low-power hardware for efficient deployment of binarized neural networks (BNNs) that have been trained for physiological datasets. BNNs constrain weights and feature-map to 1 bit, can pack in as many 1-bit weights as the width of a memory entry provides, and can execute multiple multiply-accumulate (MAC) operations with one fused bit-wise xnor and population-count instruction over aligned packed entries. Our proposed hardware is scalable with the number of processing engines (PEs) and the memory width, both of which adjustable for the most energy efficient configuration given an application. We implement two real case studies including Physical Activity Monitoring and Stress Detection on our platform, and for each case study on the target platform, we seek the optimal PE and memory configurations. Our implementation results indicate that a configuration with a good choice of memory width and number of PEs can be optimized up to 4x and 2.5x in energy consumption respectively on Artix-7 FPGA and on 65nm CMOS ASIC implementation. We also show that, generally, wider memories make more efficient BNN processing hardware. To further reduce the energy, we introduce Pool-Skipping technique that can skip at least 25% of the operations that are accompanied by a Max-Pool layer in BNNs, leading to a total of 22% operation reduction in the Stress Detection case study. Compared to the related works using the same case studies on the same target platform and with the same classification accuracy, our hardware is respectively 4.5x and 250x more energy efficient for the Stress Detection on FPGA and Physical Activity Monitoring on ASIC, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。