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

嵌入式二值化神经网络

Embedded Binarized Neural Networks

Harvard University(哈佛大学)

Bradley McDanel, Surat Teerapittayanon, H. T. Kung

摘要:

我们研究嵌入式二进制神经网络(eBNNs)的目的是让目前的二进制神经网络(BNNs)在文献中执行前馈推理有效地小型嵌入式设备。考虑到这些设备的内存通常只有几十KB,我们将重点放在最小化所需的内存占用上。除了最小化存储权重所需的内存,如在BNN中,我们表明,它是必要的,以尽量减少用于临时持有层之间的中间结果在前馈推理的内存。为了实现这一点,eBNN在保留原始BNN结构的同时重新排序推理的计算,并且仅对整个神经网络使用单个浮点临时。层的所有中间结果都存储为二进制值,而不是当前BNN实现中使用的浮点数,从而将所需的临时空间减少了32倍。我们提供的经验证据表明,我们提出的eBNN方法允许在内存严重有限(10s KB)的设备上进行有效的推理(10s ms)。例如,eBNN在只有15 KB可用内存的Intel Curie上运行的MNIST数据集上实现了95%的准确性,每个样本的推理运行时间低于50 ms。为了简化在嵌入式环境中的应用程序的开发,我们使我们的源代码,允许用户训练和发现eBNN模型的学习任务在手,适合目标设备的内存约束。

英文摘要:

We study embedded Binarized Neural Networks (eBNNs) with the aim of allowing current binarized neural networks (BNNs) in the literature to perform feedforward inference efficiently on small embedded devices. We focus on minimizing the required memory footprint, given that these devices often have memory as small as tens of kilobytes (KB). Beyond minimizing the memory required to store weights, as in a BNN, we show that it is essential to minimize the memory used for temporaries which hold intermediate results between layers in feedforward inference. To accomplish this, eBNN reorders the computation of inference while preserving the original BNN structure, and uses just a single floating-point temporary for the entire neural network. All intermediate results from a layer are stored as binary values, as opposed to floating-points used in current BNN implementations, leading to a 32x reduction in required temporary space. We provide empirical evidence that our proposed eBNN approach allows efficient inference (10s of ms) on devices with severely limited memory (10s of KB). For example, eBNN achieves 95\% accuracy on the MNIST dataset running on an Intel Curie with only 15 KB of usable memory with an inference runtime of under 50 ms per sample. To ease the development of applications in embedded contexts, we make our source code available that allows users to train and discover eBNN models for a learning task at hand, which fit within the memory constraint of the target device.

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

↑