Enabling Binary Neural Network Training on the Edge
Authors:
Open Access
- 9 November 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Embedded Computing Systems
- Vol. 22 (6) , 1-19
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.Keywords
All Related Versions
Funding Information
- United Kingdom EPSRC (EP/P010040/1, EP/S030069/1)
This publication has 15 references indexed in Scilit:
- Understanding deep learning (still) requires rethinking generalizationCommunications of the ACM, 2021
- ProxyBNN: Learning Binarized Neural Networks via Proxy Matrices2020
- Binary neural networks: A surveyPattern Recognition, 2020
- LogicNets: Co-Designed Neural Networks and Circuits for Extreme-Throughput Applications2020
- LUTNet: Learning FPGA Configurations for Highly Efficient Neural Network InferenceIEEE Transactions on Computers, 2020
- Searching for Accurate Binary Neural Architectures2019
- Deep Neural Network Approximation for Custom HardwareACM Computing Surveys, 2019
- $L1$ -Norm Batch Normalization for Efficient Training of Deep Neural NetworksIEEE Transactions on Neural Networks and Learning Systems, 2018
- Bi-Real Net: Enhancing the Performance of 1-Bit CNNs with Improved Representational Capability and Advanced Training Algorithm2018
- An updated set of basic linear algebra subprograms (BLAS)ACM Transactions on Mathematical Software, 2002