Training Binary Neural Networks with Real-to-Binary Convolutions

03/25/2020
by   Brais Martinez, et al.
9

This paper shows how to train binary networks to within a few percent points (∼ 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. 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 reduces the gap to its real-valued counterpart to less than 3 accuracy on CIFAR-100 and ImageNet respectively when using a ResNet-18 architecture. Code available at https://github.com/brais-martinez/real2binary.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/05/2019

Latent Weights Do Not Exist: Rethinking Binarized Neural Network Optimization

Optimization of Binarized Neural Networks (BNNs) currently relies on rea...
research
08/01/2018

Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithm

In this work, we study the 1-bit convolutional neural networks (CNNs), o...
research
10/12/2021

Improving Binary Neural Networks through Fully Utilizing Latent Weights

Binary Neural Networks (BNNs) rely on a real-valued auxiliary variable W...
research
02/02/2023

Resilient Binary Neural Network

Binary neural networks (BNNs) have received ever-increasing popularity f...
research
12/04/2022

Label Encoding for Regression Networks

Deep neural networks are used for a wide range of regression problems. H...
research
03/07/2020

ReActNet: Towards Precise Binary Neural Network with Generalized Activation Functions

In this paper, we propose several ideas for enhancing a binary network t...
research
09/30/2019

XNOR-Net++: Improved Binary Neural Networks

This paper proposes an improved training algorithm for binary neural net...

Please sign up or login with your details

Forgot password? Click here to reset