Skip to main content
QUICK REVIEW

[Paper Review] Join the High Accuracy Club on ImageNet with A Binary Neural Network Ticket

Nianhui Guo, Joseph Bethge|arXiv (Cornell University)|Nov 23, 2022
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

This paper introduces BNext, the first binary neural network to achieve 80.57% top-1 accuracy on ImageNet, by designing a novel binary architecture with Info-RCP and ELM-Attention modules, enhancing optimization via improved knowledge distillation and modernized data augmentation. The method achieves a smoother loss landscape and overcomes the typical accuracy gap of binary networks.

ABSTRACT

Binary neural networks are the extreme case of network quantization, which has long been thought of as a potential edge machine learning solution. However, the significant accuracy gap to the full-precision counterparts restricts their creative potential for mobile applications. In this work, we revisit the potential of binary neural networks and focus on a compelling but unanswered problem: how can a binary neural network achieve the crucial accuracy level (e.g., 80%) on ILSVRC-2012 ImageNet? We achieve this goal by enhancing the optimization process from three complementary perspectives: (1) We design a novel binary architecture BNext based on a comprehensive study of binary architectures and their optimization process. (2) We propose a novel knowledge-distillation technique to alleviate the counter-intuitive overfitting problem observed when attempting to train extremely accurate binary models. (3) We analyze the data augmentation pipeline for binary networks and modernize it with up-to-date techniques from full-precision models. The evaluation results on ImageNet show that BNext, for the first time, pushes the binary model accuracy boundary to 80.57% and significantly outperforms all the existing binary networks. Code and trained models are available at: https://github.com/hpi-xnor/BNext.git.

Motivation & Objective

  • To close the persistent accuracy gap between binary neural networks (BNNs) and full-precision models on ImageNet.
  • To enable BNNs to reach the crucial 80% top-1 accuracy threshold on ILSVRC-2012 ImageNet.
  • To address the optimization challenges in BNNs, including rugged loss landscapes and overfitting during training.
  • To modernize data augmentation and knowledge distillation techniques specifically for binary networks.
  • To demonstrate that BNNs can serve as strong feature extractors for representation learning.

Proposed method

  • Proposes a novel binary processing unit called Info-RCP, which uses BatchNorm and PReLU to reduce distribution gaps before and after binarization, followed by a lightweight attention branch for information re-coupling.
  • Introduces the ELM-Attention module, a learnable element-wise bypass using multiplication to dynamically calibrate outputs within each basic block.
  • Designs the BNext architecture family by stacking Info-RCP and ELM-Attention blocks with stage-wise depth and width scheduling.
  • Develops a diversified consecutive knowledge distillation (KD) strategy using a KC(x)-based teacher selection and a gap-sensitive ensemble of EfficientNet-B0 and B2 to improve student performance.
  • Adopts Rand Augmentation as the primary data augmentation strategy, showing superior generalization over Mixup and Cutmix in BNNs.
  • Applies post-training quantization to evaluate robustness, maintaining 80.37% top-1 accuracy even with 4-bit weights in SE branches.

Experimental results

Research questions

  • RQ1Can a binary neural network achieve 80%+ top-1 accuracy on ImageNet, a milestone previously unmet by existing BNNs?
  • RQ2How can the optimization process of BNNs be improved to reduce the ruggedness of the loss landscape and avoid sub-optimal convergence?
  • RQ3What role does knowledge distillation play in enhancing BNN accuracy, and how can it be optimized for binary networks?
  • RQ4Which data augmentation techniques are most effective for training highly accurate BNNs, and do standard techniques like Mixup or Cutmix generalize well?
  • RQ5To what extent can post-training quantization preserve accuracy in BNNs without degrading performance?

Key findings

  • BNext-L achieves 80.57% top-1 accuracy on ImageNet, the first BNN to exceed the 80% threshold.
  • The BNext-18 model exhibits a significantly smoother loss landscape, closely resembling that of a full-precision ResNet-18.
  • Using a KC(x)-based teacher selection improves accuracy by 0.57% over standard KD with ResNet-101.
  • Applying gap-sensitive ensemble KD and Rand Augmentation increases accuracy by 0.05% and 0.08%, respectively, with further gains from extended training to 512 epochs (72.40% top-1).
  • Rand Augmentation alone improves accuracy by 2.49% over baseline, while Mixup and Cutmix show mixed or negative effects.
  • Post-training quantization to 8-bit weights and activations reduces accuracy by only 0.10%, and further reducing SE branch weights to 4-bit maintains 80.37% top-1 accuracy, still above 80%.

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.