Skip to main content
QUICK REVIEW

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

Zechun Liu, Baoyuan Wu|arXiv (Cornell University)|Aug 1, 2018
Advanced Neural Network ApplicationsComputer Science27 references24 citations
TL;DR

This paper proposes Bi-Real Net, a 1-bit convolutional neural network that enhances representational capability by introducing a residual shortcut connecting real-valued activations (post-1-bit convolution, pre-sign function) to the next block. Combined with a novel training algorithm featuring a tighter derivative approximation for the sign function, magnitude-aware weight gradients, and clip-based pre-training, Bi-Real Net achieves 62.2% top-1 accuracy on ImageNet with a 34-layer network—surpassing state-of-the-art 1-bit models by up to 10% while maintaining minimal computational overhead and significant memory savings.

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

Motivation & Objective

  • To address the severe accuracy degradation of 1-bit CNNs on large-scale datasets like ImageNet, where standard binarized models underperform real-valued networks.
  • To enhance the representational capability of 1-bit CNNs without introducing significant computational or memory overhead.
  • To develop a specialized training algorithm tailored for 1-bit networks, overcoming challenges from non-differentiable operations like the sign function.
  • To achieve state-of-the-art performance in 1-bit CNNs while preserving the efficiency benefits of binary inference.
  • To demonstrate that real-valued intermediate features—often discarded in standard 1-bit networks—can significantly improve model accuracy when properly preserved through residual connections.

Proposed method

  • Introduces a residual shortcut that connects real-valued activations (after 1-bit convolution and BatchNorm, before the sign function) directly to the input of the next block, preserving richer feature representations.
  • Proposes a piecewise polynomial approximation to the sign function for more accurate gradient backpropagation, replacing the less accurate step-function derivative used in prior work.
  • Designs a magnitude-aware gradient for weight updates by incorporating the magnitude of the real-valued activations into the gradient computation, improving optimization stability.
  • Employs a clip function (instead of ReLU) during pre-training of the full-precision model to better initialize the Bi-Real Net, enabling better convergence in the binarized setting.
  • Uses a hybrid network design where only the first and last layers, and 1x1 shortcuts, remain real-valued, minimizing memory and computation cost while preserving critical information.
  • Applies a two-stage training process: pre-train the full-precision network with clip activation, then fine-tune the binarized network using the proposed gradient and approximation techniques.

Experimental results

Research questions

  • RQ1Can the representational capability of 1-bit CNNs be significantly improved without increasing computational or memory cost?
  • RQ2How can the non-differentiable sign function be approximated in backpropagation to enable effective training of 1-bit networks?
  • RQ3What is the impact of incorporating activation magnitude into weight gradient computation for 1-bit CNN optimization?
  • RQ4Can pre-training with a clip function instead of ReLU lead to better initialization and performance in 1-bit networks?
  • RQ5How does the proposed Bi-Real Net architecture compare to state-of-the-art 1-bit models in terms of accuracy, memory usage, and computational efficiency on ImageNet?

Key findings

  • The 18-layer Bi-Real Net achieves 56.4% top-1 accuracy on ImageNet, outperforming prior 1-bit models by up to 10% in relative improvement.
  • The 34-layer Bi-Real Net achieves 62.2% top-1 accuracy, demonstrating strong scalability and performance gains over existing 1-bit networks.
  • Bi-Real Net reduces memory usage by 11.1× (18-layer) and 15.97× (34-layer) compared to full-precision ResNet, with negligible additional cost.
  • The model achieves a 11.06× speedup (18-layer) and 18.99× speedup (34-layer) over full-precision ResNet, due to efficient XNOR and bit-counting operations.
  • The proposed derivative approximation for the sign function leads to more stable and effective backpropagation than prior methods using step-function derivatives.
  • The magnitude-aware gradient and clip-based pre-training contribute significantly to convergence and final accuracy, as validated by ablation studies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.