Enabling Binary Neural Network Training on the Edge

Author:

Wang Erwei1ORCID,Davis James J.1ORCID,Moro Daniele2ORCID,Zielinski Piotr2ORCID,Lim Jia Jie3ORCID,Coelho Claudionor4ORCID,Chatterjee Satrajit5ORCID,Cheung Peter Y. K.1ORCID,Constantinides George A.1ORCID

Affiliation:

1. Imperial College London, United Kingdom

2. Google, United States

3. iSize, United Kingdom

4. Advantest, United States

5. United States

Abstract

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×, while reaching similar test accuracy (± 2 pp) 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× 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.

Funder

United Kingdom EPSRC

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference51 articles.

1. Naman Agarwal, Ananda Theertha Suresh, Felix Yu, Sanjiv Kumar, and H. Brendan McMahan. 2018. CpSGD: Communication-efficient and differentially-private distributed SGD. In International Conference on Neural Information Processing Systems.

2. Milad Alizadeh, Javier Fernández-Marqués, Nicholas D. Lane, and Yarin Gal. 2018. An empirical study of binary neural networks’ optimisation. In International Conference on Learning Representations.

3. Jeremy Bernstein, Yu-Xiang Wang, Kamyar Azizzadenesheli, and Animashree Anandkumar. 2018. SignSGD: Compressed optimisation for non-convex problems. In International Conference on Machine Learning.

4. Back to simplicity: How to train accurate BNNs from scratch?;Bethge Joseph;arXiv preprint arXiv:1906.08637,2019

5. L. Susan Blackford Antoine Petitet Roldan Pozo Karin Remington R. Clint Whaley James Demmel Jack Dongarra Iain Duff Sven Hammarling Greg Henry Michael Heroux Linda Kaufman and Andrew Lumsdaine. 2002. An updated set of basic linear algebra subprograms (BLAS). ACM Trans. Math. Software 28 2 (2002) 135–151.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3