XNOR-Net++: Improved Binary Neural Networks

Adrian Bulat, Georgios Tzimiropoulos
9/30/2019
cs.CVcs.LGeess.IV

Official code: 1adrianb/binary-networks-pytorch (150 stars, Python, BSD-3-Clause, PyTorch, last commit 2022-04-26).

Abstract

This paper proposes an improved training algorithm for binary neural networks in which both weights and activations are binary numbers. A key but fairly overlooked feature of the current state-of-the-art method of XNOR-Net is the use of analytically calculated real-valued scaling factors for re-weighting the output of binary convolutions.

Show full abstract

We argue that analytic calculation of these factors is sub-optimal. Instead, in this work, we make the following contributions: (a) we propose to fuse the activation and weight scaling factors into a single one that is learned discriminatively via backpropagation. (b) More importantly, we explore several ways of constructing the shape of the scale factors while keeping the computational budget fixed. (c) We empirically measure the accuracy of our approximations and show that they are significantly more accurate than the analytically calculated one. (d) We show that our approach significantly outperforms XNOR-Net within the same computational budget when tested on the challenging task of ImageNet classification, offering up to 6\% accuracy gain.

View on arXivView PDF

Code Implementations(1)

PyTorchBSD-3-Clause

Binarize convolutional neural networks using pytorch :fire:

15015PythonSep 13, 20204 years agoBSD-3-Clause
convolutional-neural-networksnetwork-binarizationnetwork-quantizationpytorch

Similar Papers

Cite this paper

@article{bulat2019xnornet,
  title  = {XNOR-Net++: Improved Binary Neural Networks},
  author = {Adrian Bulat and Georgios Tzimiropoulos},
  year   = {2019},
  eprint = {1909.13863},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.13863}
}

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

Discussion