Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithm
arXiv:1808.00278
Abstract
In this work, we study the 1-bit convolutional neural networks (CNNs), of which both the weights and activations are binary. While being efficient, the classification accuracy of the current 1-bit CNNs is much worse compared to their counterpart real-valued CNN models on the large-scale dataset, like ImageNet. To minimize the performance gap between the 1-bit and real-valued CNN models, we propose a novel model, dubbed Bi-Real net, which connects the real activations (after the 1-bit convolution and/or BatchNorm layer, before the sign function) to activations of the consecutive block, through an identity shortcut. Consequently, compared to the standard 1-bit CNN, the representational capability of the Bi-Real net is significantly enhanced and the additional cost on computation is negligible. Moreover, we develop a specific training algorithm including three technical novelties for 1- bit CNNs. Firstly, we derive a tight approximation to the derivative of the non-differentiable sign function with respect to activation. Secondly, we propose a magnitude-aware gradient with respect to the weight for updating the weight parameters. Thirdly, we pre-train the real-valued CNN model with a clip function, rather than the ReLU function, to better initialize the Bi-Real net. Experiments on ImageNet show that the Bi-Real net with the proposed training algorithm achieves 56.4% and 62.2% top-1 accuracy with 18 layers and 34 layers, respectively. Compared to the state-of-the-arts (e.g., XNOR Net), Bi-Real net achieves up to 10% higher top-1 accuracy with more memory saving and lower computational cost. Keywords: binary neural network, 1-bit CNNs, 1-layer-per-block
Accepted to European Conference on Computer Vision (ECCV) 2018. Code is available on: https://github.com/liuzechun/Bi-Real-net
References in corpus (10)
- Very Deep Convolutional Networks for Large-Scale Image Recognition
- FitNets: Hints for Thin Deep Nets
- DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients
- Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activations
- Binarized Neural Networks
- Incremental Network Quantization: Towards Lossless CNNs with Low-Precision Weights
- Towards Accurate Binary Convolutional Neural Network
- Deep Convolutional Neural Network Inference with Floating-point Weights and Fixed-point Activations
- End-to-end Active Object Tracking via Reinforcement Learning
- PPR-FCN: Weakly Supervised Visual Relation Detection via Parallel Pairwise R-FCN
Cited by in corpus (11)
- Bringing AI To Edge: From Deep Learning's Perspective
- Training Competitive Binary Neural Networks from Scratch
- Regularizing Activation Distribution for Training Binarized Deep Networks
- Projection Convolutional Neural Networks for 1-bit CNNs via Discrete Back Propagation
- Structured Binary Neural Networks for Accurate Image Classification and Semantic Segmentation
- Precision Highway for Ultra Low-Precision Quantization
- Learning Versatile Convolution Filters for Efficient Visual Recognition
- Nonuniform-to-Uniform Quantization: Towards Accurate Quantization via Generalized Straight-Through Estimation
- GBCNs: Genetic Binary Convolutional Networks for Enhancing the Performance of 1-bit DCNNs
- FATNN: Fast and Accurate Ternary Neural Networks
- Bayesian Optimized 1-Bit CNNs