Enabling Binary Neural Network Training on the Edge

Erwei Wang, James J. Davis, Daniele Moro, Piotr Zielinski, Jia Jie Lim +4 more
2/8/2021
32 citations
cs.LGcs.AR

Official code: awai54st/Enabling-Binary-Neural-Network-Training-on-the-Edge (20 stars, C++, BSD-2-Clause, last commit 2022-03-06).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause
205C++, PythonFeb 2, 20214 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{wang2021enabling,
  title  = {Enabling Binary Neural Network Training on the Edge},
  author = {Erwei Wang and James J. Davis and Daniele Moro and Piotr Zielinski and Jia Jie Lim and Claudionor Coelho and Satrajit Chatterjee and Peter Y. K. Cheung and George A. Constantinides},
  year   = {2021},
  eprint = {2102.04270},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.04270}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.04270.svg)](https://codeofpaper.com/paper/2102.04270)

Discussion