Skip to main content
QUICK REVIEW

[Paper Review] Training wide residual networks for deployment using a single bit for each weight

Mark D. McDonnell|arXiv (Cornell University)|Feb 23, 2018
Advanced Neural Network ApplicationsComputer Science42 citations
TL;DR

The paper trains wide residual networks with 1-bit-per-weight during deployment by applying a fixed per-layer weight scaling during training, achieving strong accuracy on CIFAR-10/100, SVHN, ImageNet32, and ImageNet, with competitive full-precision baselines.

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. 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/ .

Motivation & Objective

  • Aim to drastically reduce memory and energy costs for deployment by using 1-bit-per-weight networks without substantial loss in accuracy.
  • Develop a training strategy that preserves training efficiency while enabling 1-bit weights at inference.
  • Explore simple scaling per layer to maintain proper gradient and activation scaling during training.
  • Investigate the impact of not learning batch-norm scale/offset parameters on overfitting datasets.
  • Provide practical training and architectural tweaks to achieve competitive results with 1-bit weights.

Proposed method

  • Use wide residual networks as baseline and apply a simple fixed scaling per convolutional layer to the sign of weights during training.
  • Train with full-precision weight updates using SGD while forward/backward passes use the sign of weights scaled by a layer-specific constant equal to the He initialization standard deviation.
  • Replace the final weight layer with a 1x1 convolution following batch norm and global average pooling, enabling 1-bit storage for deployment.
  • Employ a warm-restart learning-rate schedule to accelerate convergence for 1-bit-per-weight models.
  • Do not learn batch-norm scale/offset on CIFAR-10/100 and SVHN to reduce overfitting on these datasets.
  • Optionally apply cutout data augmentation on CIFAR-10/100 to improve accuracy.

Experimental results

Research questions

  • RQ1How close can 1-bit-per-weight networks get to full-precision residual networks on standard vision benchmarks?
  • RQ2Does a simple per-layer weight scaling enable effective 1-bit training and inference with minimal hardware complexity?
  • RQ3What is the impact of not learning batch-normalization scale and offset parameters on model performance and overfitting?
  • RQ4Can warm-restart learning-rate schedules accelerate training for 1-bit-per-weight networks to near full-precision performance?

Key findings

  • On CIFAR-10/100, the 1-bit-per-weight Wide ResNets achieve substantially lower error rates than prior 1-bit methods, halving previous gaps.
  • For CIFAR, 1-bit networks with 20-10 width attain 4.72% (CIFAR-10) and 19.35% (CIFAR-100) errors, compared to full-precision 4.22% and 18.76% respectively.
  • With cutout augmentation and 1-bit weights, CIFAR-10/100 results improve to 3.92% and 18.51% respectively for 20-10 width.
  • For ImageNet32 and full ImageNet, 1-bit-per-weight models reach 41.26%/19.08% (Top-1/Top-5) on ImageNet32 and 26.04/8.48 (Top-1/Top-5) with multi-crop testing on full ImageNet, illustrating competitive performance given memory constraints.
  • The gap between full-precision and 1-bit-per-weight accuracies tends to widen as the full-precision error rate increases, but is reduced when starting from a stronger full-precision baseline and using the proposed scaling method.
  • Not learning batch-norm scale/offset parameters provides notable improvements on overfitting-prone datasets like CIFAR-10/100 and SVHN, especially when combined with warm restarts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.