NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Zechun Liu, Baoyuan Wu, Wenhan Luo, Xin Yang, Wei Liu, Kwang-Ting Cheng

Introduction

Deep Convolutional Neural Networks (CNNs) have revolutionized computer vision but remain computationally expensive for deployment on edge devices. 1-bit CNNs, where weights and activations are binarized to {-1, +1}, offer a path toward extreme efficiency. However, they traditionally suffer from a significant "accuracy gap" compared to full-precision models. Bi-Real Net addresses this by enhancing representational capability and refining the training process.

The 1-Bit Efficiency Challenge

Standard 1-bit CNNs achieve up to 32× memory savings and 58× speedups. This efficiency stems from replacing floating-point multiplications with bitwise XNOR and population count (bit-counting) operations.

1-bit convolution replaces multiplication with XNOR and bit-counting operations.

Despite these gains, 1-bit networks often fail on complex datasets like ImageNet. The primary reasons are limited representational capability—the number of unique states the network can express—and the difficulty of training through the non-differentiable sign function used for binarization.

The Bi-Real Architecture

The core innovation of Bi-Real Net is the introduction of a simple identity shortcut. In a conventional 1-bit CNN, the real-valued output of a convolution is immediately binarized, discarding high-precision information. Bi-Real Net adds the real-valued activations (post-BatchNorm) back to the output of the subsequent 1-bit convolution.

Comparison between conventional 1-bit CNNs (a) and the proposed Bi-Real Net (b) with identity shortcuts.

This "shortcut" allows real-valued information to propagate through the network, dramatically increasing the number of possible states. For instance, a 14x14 feature map's representational capacity jumps from $2^{6272}$ to $289^{6272}$ states with this change, with negligible computational overhead.

Advanced Training Algorithm

Beyond architecture, the authors propose three training enhancements to stabilize and improve performance:

  • Tighter Derivative Approximation: They use a piecewise polynomial function to approximate the derivative of the sign function, providing a more accurate gradient signal than the standard "clip" function.
  • Magnitude-Aware Gradient: Updates account for the magnitude of real-valued weights, ensuring that the optimization is sensitive to filter importance.
  • Clip-based Initialization: Pre-training with a clip function provides a superior starting point compared to standard ReLU-based initialization, as it more closely mimics the eventual binary behavior.

Results and Impact

Bi-Real Net significantly outperforms previous state-of-the-art binary networks. On the ILSVRC12 ImageNet benchmark:

  • Accuracy: An 18-layer Bi-Real Net achieved 56.4% top-1 accuracy, a 10% improvement over XNOR-Net. A 34-layer version reached 62.2%.
  • Efficiency: It maintains an 11x reduction in memory and an 11x speedup in FLOPs compared to a full-precision ResNet-18.

While a performance gap of 7-13% remains relative to full-precision models, Bi-Real Net demonstrates that 1-bit CNNs can be both highly efficient and sufficiently accurate for complex real-world tasks.

Summary updated

BibTeX
@inproceedings{liu2018bi,
  author = {Zechun Liu and Baoyuan Wu and Wenhan Luo and Xin Yang and Wei Liu and Kwang-Ting Cheng},
  title = {{Bi-Real Net: Enhancing the Performance of 1-Bit CNNs with Improved Representational Capability and Advanced Training Algorithm}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01267-0\_44},
}
Figure