Training wide residual networks for deployment using a single bit for each weight

Mark D. McDonnell
2/23/2018
75 citations
cs.LGcs.CVcs.NE

Official code: McDonnell-Research-Lab/1-bit-per-weight (36 stars, Jupyter Notebook, MIT, last commit 2020-05-27).

Abstract

For fast and energy-efficient deployment of trained deep neural networks on resource-constrained embedded hardware, each learned weight parameter should ideally be represented and stored using a single bit. Error-rates usually increase when this requirement is imposed.

Show full abstract

Here, we report large improvements in error rates on multiple datasets, for deep convolutional neural networks deployed with 1-bit-per-weight. Using wide residual networks as our main baseline, our approach simplifies existing methods that binarize weights by applying the sign function in training; we apply scaling factors for each layer with constant unlearned values equal to the layer-specific standard deviations used for initialization. For CIFAR-10, CIFAR-100 and ImageNet, and models with 1-bit-per-weight requiring less than 10 MB of parameter memory, we achieve error rates of 3.9%, 18.5% and 26.0% / 8.5% (Top-1 / Top-5) respectively. We also considered MNIST, SVHN and ImageNet32, achieving 1-bit-per-weight test results of 0.27%, 1.9%, and 41.3% / 19.1% respectively. For CIFAR, our error rates halve previously reported values, and are within about 1% of our error-rates for the same network with full-precision weights. For networks that overfit, we also show significant improvements in error rate by not learning batch normalization scale and offset parameters. This applies to both full precision and 1-bit-per-weight networks. Using a warm-restart learning-rate schedule, we found that training for 1-bit-per-weight is just as fast as full-precision networks, with better accuracy than standard schedules, and achieved about 98%-99% of peak performance in just 62 training epochs for CIFAR-10/100. For full training code and trained models in MATLAB, Keras and PyTorch see https://github.com/McDonnell-Lab/1-bit-per-weight/ .

View on arXivView PDF

Code Implementations(1)

MIT

Training wide residual networks for deployment using a single bit for each weight - Official Code Repository for ICLR 2018 Published Paper

369Jupyter Notebook, MATLABFeb 23, 20186 years agoMIT
image-classificationquantized-neural-networksresidual-networks

Similar Papers

Cite this paper

@article{mcdonnell2018training,
  title  = {Training wide residual networks for deployment using a single bit for each weight},
  author = {Mark D. McDonnell},
  year   = {2018},
  eprint = {1802.08530},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.08530}
}

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/1802.08530.svg)](https://codeofpaper.com/paper/1802.08530)

Discussion