Binarized Neural Networks

Itay Hubara, Daniel Soudry, Ran El Yaniv
2/8/2016
cs.LGcs.NE

Official code: itayhubara/BinaryNet (311 stars, last commit 2021-11-10).

Abstract

We introduce a method to train Binarized Neural Networks (BNNs) - neural networks with binary weights and activations at run-time and when computing the parameters' gradient at train-time. We conduct two sets of experiments, each based on a different framework, namely Torch7 and Theano, where we train BNNs on MNIST, CIFAR-10 and SVHN, and achieve nearly state-of-the-art results. During the forward pass, BNNs drastically reduce memory size and accesses, and replace most arithmetic operations with bit-wise operations, which might lead to a great increase in power-efficiency. Last but not least, we wrote a binary matrix multiplication GPU kernel with which it is possible to run our MNIST BNN 7 times faster than with an unoptimized GPU kernel, without suffering any loss in classification accuracy. The code for training and running our BNNs is available.

View on arXivView PDF

Code Implementations(1)

Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1

31196LuaMar 6, 20164 years ago

Cite this paper

@article{hubara2016binarized,
  title  = {Binarized Neural Networks},
  author = {Itay Hubara and Daniel Soudry and Ran El Yaniv},
  year   = {2016},
  eprint = {1602.02505},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1602.02505}
}

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

Discussion