arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.03716cs.CV
收藏

二进制神经网络作为设备上计算机视觉的通用计算范例

Binary Neural Networks as a general-propose compute paradigm for on-device computer vision

DJI Innovations Inc(大疆创新科技有限公司);School of Electronic Science and Engineering, Nanjing University(南京大学电子科学与工程学院)

Guhong Nie, Lirui Xiao, Menglong Zhu, Dongliang Chu, Yue Shen, Peng Li, Kang Yang, Li Du, Bo Chen

摘要:

为了使二进制神经网络(BNN)成为主流的设备上计算机视觉算法,它们必须实现比8位量化更好的速度与精度权衡,并在视觉任务中建立类似程度的普遍适用性。为此,我们提出了一个BNN框架,包括1)一个最小化的推理方案,硬件友好,2)一个过参数化的训练方案,高精度,和3)一个简单的程序,以适应不同的视觉任务。由此产生的框架在分类、检测、分割、超分辨率和匹配的速度与准确度之间的权衡中超越了8位量化:我们的BNN不仅保留了其8位基线的准确度水平,而且在移动CPU上展示了1.3-2.4 $\times$更快的FPS。对于基于原型收缩阵列的AI加速器也可以得出类似的结论,其中我们的BNN承诺比8位少2.8-7 $\times$的执行周期,比替代BNN设计少2.1-2.7 $\times$的周期。这些结果表明,大规模采用BNN的时间可能就在我们身边。

英文摘要:

For binary neural networks (BNNs) to become the mainstream on-device computer vision algorithm, they must achieve a superior speed-vs-accuracy tradeoff than 8-bit quantization and establish a similar degree of general applicability in vision tasks. To this end, we propose a BNN framework comprising 1) a minimalistic inference scheme for hardware-friendliness, 2) an over-parameterized training scheme for high accuracy, and 3) a simple procedure to adapt to different vision tasks. The resultant framework overtakes 8-bit quantization in the speed-vs-accuracy tradeoff for classification, detection, segmentation, super-resolution and matching: our BNNs not only retain the accuracy levels of their 8-bit baselines but also showcase 1.3-2.4$\times$ faster FPS on mobile CPUs. Similar conclusions can be drawn for prototypical systolic-array-based AI accelerators, where our BNNs promise 2.8-7$\times$ fewer execution cycles than 8-bit and 2.1-2.7$\times$ fewer cycles than alternative BNN designs. These results suggest that the time for large-scale BNN adoption could be upon us.

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

↑