arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.04270cs.LGcs.AR
收藏

在边缘端实现二值神经网络训练

Enabling Binary Neural Network Training on the Edge

Imperial College London(帝国理工学院);Google(谷歌);iSize;Advantest(爱德万测试)

Erwei Wang, James J. Davis, Daniele Moro, Piotr Zielinski, Jia Jie Lim, Claudionor Coelho, Satrajit Chatterjee, Peter Y. K. Cheung, George A. Constantinides

AI总结:

针对二值神经网络训练需保存全精度激活导致边缘设备内存不足的问题,提出仅保留二值激活的量化反向传播训练策略,在相近准确率和时间下降低 3–5 倍内存。

摘要:

日益复杂的机器学习模型对计算的需求不断增长,其训练往往需要使用强大的云基础设施。二值神经网络因相对高精度替代方案具有极高的计算和内存节省,被认为是设备端推理的有前景候选。然而,其现有训练方法需要同时存储所有层的高精度激活值,通常使内存受限设备上的学习不可行。本文证明,二值神经网络训练所需的反向传播操作对量化具有很强的鲁棒性,从而使现代模型的边缘学习成为现实可行的方案。我们提出一种低成本二值神经网络训练策略,可显著降低内存占用,同时相对 Courbariaux 与 Bengio 的标准方法几乎不造成准确率损失。这些降低主要通过仅以二值格式保留激活值实现。相对于后一算法,我们的即插即用替代方案将内存需求降低 3–5 倍,并在针对常用数据集分类训练的一系列小规模模型上,以相近时间达到相似测试准确率。我们还演示了二值化 ResNet-18 的 ImageNet 从零训练,实现 3.78 倍内存降低。本工作已开源,并包含面向 Raspberry Pi 的原型,用于验证我们建模的内存降低并捕获相关能耗下降。此类节省将避免不必要的云端卸载,降低延迟、提高能效并保护终端用户隐私。

英文摘要:

The ever-growing computational demands of increasingly complex machine learning models frequently necessitate the use of powerful cloud-based infrastructure for their training. Binary neural networks are known to be promising candidates for on-device inference due to their extreme compute and memory savings over higher-precision alternatives. However, their existing training methods require the concurrent storage of high-precision activations for all layers, generally making learning on memory-constrained devices infeasible. In this article, we demonstrate that the backward propagation operations needed for binary neural network training are strongly robust to quantization, thereby making on-the-edge learning with modern models a practical proposition. We introduce a low-cost binary neural network training strategy exhibiting sizable memory footprint reductions while inducing little to no accuracy loss vs Courbariaux & Bengio's standard approach. These decreases are primarily enabled through the retention of activations exclusively in binary format. Against the latter algorithm, our drop-in replacement sees memory requirement reductions of 3--5$\times$, while reaching similar test accuracy in comparable time, across a range of small-scale models trained to classify popular datasets. We also demonstrate from-scratch ImageNet training of binarized ResNet-18, achieving a 3.78$\times$ memory reduction. Our work is open-source, and includes the Raspberry Pi-targeted prototype we used to verify our modeled memory decreases and capture the associated energy drops. Such savings will allow for unnecessary cloud offloading to be avoided, reducing latency, increasing energy efficiency, and safeguarding end-user privacy.

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

↑