Training Binary Neural Networks with Real-to-Binary Convolutions

Brais Martinez, Jing Yang, Adrian Bulat, Georgios Tzimiropoulos
3/25/2020
cs.CV

Official code: brais-martinez/real2binary (34 stars, last commit 2020-06-16).

Abstract

This paper shows how to train binary networks to within a few percent points ($\sim 3-5 \%$) of the full precision counterpart. We first show how to build a strong baseline, which already achieves state-of-the-art accuracy, by combining recently proposed advances and carefully adjusting the optimization procedure.

Show full abstract

Secondly, we show that by attempting to minimize the discrepancy between the output of the binary and the corresponding real-valued convolution, additional significant accuracy gains can be obtained. We materialize this idea in two complementary ways: (1) with a loss function, during training, by matching the spatial attention maps computed at the output of the binary and real-valued convolutions, and (2) in a data-driven manner, by using the real-valued activations, available during inference prior to the binarization process, for re-scaling the activations right after the binary convolution. Finally, we show that, when putting all of our improvements together, the proposed model beats the current state of the art by more than 5% top-1 accuracy on ImageNet and reduces the gap to its real-valued counterpart to less than 3% and 5% top-1 accuracy on CIFAR-100 and ImageNet respectively when using a ResNet-18 architecture. Code available at https://github.com/brais-martinez/real2binary.

View on arXivView PDF

Code Implementations(1)

Code for the ICLR2020 "Training Binary Neural Networks with Real-to-Binary Convolutions

342Feb 14, 20206 years ago

Similar Papers

Cite this paper

@article{martinez2020training,
  title  = {Training Binary Neural Networks with Real-to-Binary Convolutions},
  author = {Brais Martinez and Jing Yang and Adrian Bulat and Georgios Tzimiropoulos},
  year   = {2020},
  eprint = {2003.11535},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.11535}
}

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

Discussion