Skip to main content
QUICK REVIEW

[Paper Review] Neural Networks with Few Multiplications

Zhouhan Lin, Matthieu Courbariaux|arXiv (Cornell University)|Oct 11, 2015
Advanced Neural Network ApplicationsComputer Science15 references155 citations
TL;DR

This paper proposes a method to drastically reduce floating-point multiplications during deep neural network training by stochastically binarizing weights and quantizing activations during backpropagation. The approach replaces most multiplications with bit shifts and sign changes, achieving faster training with minimal accuracy loss—surprisingly even improving generalization on MNIST, CIFAR10, and SVHN.

ABSTRACT

For most deep learning algorithms training is notoriously time consuming. Since most of the computation in training neural networks is typically spent on floating point multiplications, we investigate an approach to training that eliminates the need for most of these. Our method consists of two parts: First we stochastically binarize weights to convert multiplications involved in computing hidden states to sign changes. Second, while back-propagating error derivatives, in addition to binarizing the weights, we quantize the representations at each layer to convert the remaining multiplications into binary shifts. Experimental results across 3 popular datasets (MNIST, CIFAR10, SVHN) show that this approach not only does not hurt classification performance but can result in even better performance than standard stochastic gradient descent training, paving the way to fast, hardware-friendly training of neural networks.

Motivation & Objective

  • Address the high computational cost of deep learning training, primarily due to floating-point multiplications.
  • Reduce training time and memory usage by eliminating most multiplications in both forward and backward passes.
  • Develop a hardware-friendly training method that maintains or improves model accuracy despite low-precision computations.
  • Investigate the regularization effects of stochastic weight binarization and quantized backpropagation on generalization performance.

Proposed method

  • Stochastically binarize full-precision weights into ±1 values during the forward pass using a differentiable sampling mechanism.
  • Apply binary connect or ternary connect to convert matrix multiplications into sign changes and bit shifts.
  • Quantize activations and error gradients during backpropagation to convert remaining multiplications into bit shifts.
  • Use a bit-clipping mechanism to limit the dynamic range of quantized values, reducing memory and computational load.
  • Maintain full-precision reference weights for optimization, updating them via standard backpropagation with quantized gradients.
  • Introduce a flexible quantization scheme allowing asymmetric bit shifts to the left and right, improving representation efficiency.

Experimental results

Research questions

  • RQ1Can deep neural networks be trained effectively with minimal floating-point multiplications by binarizing weights and quantizing activations?
  • RQ2Does the proposed quantization and binarization approach preserve or improve model generalization compared to standard SGD?
  • RQ3How sensitive is model performance to the number of bits used in quantized backpropagation?
  • RQ4What is the impact of stochastic weight binarization on optimization dynamics and generalization?
  • RQ5Can this method be implemented efficiently on specialized hardware, enabling faster training of deep networks?

Key findings

  • The proposed method eliminates most floating-point multiplications in both forward and backward passes, replacing them with bit shifts and sign changes.
  • On MNIST, CIFAR10, and SVHN, the method achieves test error rates comparable to or better than standard SGD, with ternary connect and quantized backpropagation yielding the best performance.
  • Model accuracy remains robust across different bit-width settings for quantization, with minimal performance degradation even at just 2 bits of shift precision.
  • The method exhibits a regularization effect due to stochastic weight sampling, which helps the optimizer find broader minima and improves generalization.
  • Quantized backpropagation with ternary weights consistently outperforms standard binary connect and full-precision training in terms of final test accuracy.
  • The distribution of activations across layers is asymmetric, justifying the use of different maximum bit shifts for left and right shifts, which improves efficiency without sacrificing performance.

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.