Skip to main content
QUICK REVIEW

[Paper Review] Accurate and Compact Convolutional Neural Networks with Trained Binarization

Zhe Xu, Ray C. C. Cheung|arXiv (Cornell University)|Sep 25, 2019
Neural Networks and ApplicationsComputer Science37 references31 citations
TL;DR

This paper proposes a trainable binarization method for convolutional neural networks that improves accuracy and compactness by introducing learnable scaling factors for weights and activations, using higher-order and long-tailed derivative approximations, and applying L2 regularization directly to scaling factors. The approach achieves 92.3% top-1 accuracy on CIFAR-10 and 54.2% on ImageNet with ResNet-18, surpassing prior binary networks.

ABSTRACT

Although convolutional neural networks (CNNs) are now widely used in various computer vision applications, its huge resource demanding on parameter storage and computation makes the deployment on mobile and embedded devices difficult. Recently, binary convolutional neural networks are explored to help alleviate this issue by quantizing both weights and activations with only 1 single bit. However, there may exist a noticeable accuracy degradation when compared with full-precision models. In this paper, we propose an improved training approach towards compact binary CNNs with higher accuracy. Trainable scaling factors for both weights and activations are introduced to increase the value range. These scaling factors will be trained jointly with other parameters via backpropagation. Besides, a specific training algorithm is developed including tight approximation for derivative of discontinuous binarization function and $L_2$ regularization acting on weight scaling factors. With these improvements, the binary CNN achieves 92.3% accuracy on CIFAR-10 with VGG-Small network. On ImageNet, our method also obtains 46.1% top-1 accuracy with AlexNet and 54.2% with Resnet-18 surpassing previous works.

Motivation & Objective

  • Address the accuracy degradation in binary convolutional neural networks (BNNs) caused by extreme 1-bit quantization of weights and activations.
  • Improve model compactness and inference speed by enabling hardware-friendly binary operations while maintaining high performance.
  • Overcome limitations of fixed scaling factors in prior works like XNOR-Net by introducing learnable scaling factors for both weights and activations.
  • Enhance training stability and generalization through a modified L2 regularization applied directly to weight scaling factors.
  • Develop a practical training algorithm that enables effective backpropagation through the discontinuous binarization function.

Proposed method

  • Introduce trainable scaling factors for both network weights and activations to expand the effective value range of binary filters beyond fixed mean-based scaling.
  • Propose a higher-order approximation for the derivative of the weight binarization function and a long-tailed approximation for the activation binarization function to balance tightness and smooth backpropagation.
  • Apply L2 regularization directly to the weight scaling factors instead of the original weights to improve generalization and reduce overfitting.
  • Train the scaling factors jointly with network parameters via standard backpropagation, enabling end-to-end optimization.
  • Exclude the first and last layers from binarization and retain batch normalization and scaling factors in full precision to preserve representational capacity.
  • Use a tight approximation strategy that maintains high accuracy while allowing stable gradient flow during training.

Experimental results

Research questions

  • RQ1Can learnable scaling factors for both weights and activations improve the accuracy of binary CNNs compared to fixed mean-based scaling?
  • RQ2How can the gradient of the discontinuous binarization function be approximated effectively to enable stable backpropagation in binary networks?
  • RQ3Does applying L2 regularization directly to the weight scaling factors lead to better generalization and improved test accuracy?
  • RQ4To what extent can binary CNNs trained with the proposed method close the accuracy gap with full-precision models on large-scale benchmarks like ImageNet?
  • RQ5Can the proposed method achieve high model compression while maintaining competitive inference accuracy on standard vision datasets?

Key findings

  • The proposed method achieves 92.3% top-1 accuracy on CIFAR-10 using a VGG-Small architecture, outperforming previous binary networks.
  • On ImageNet, the method achieves 46.1% top-1 accuracy with AlexNet and 54.2% top-1 accuracy with ResNet-18, surpassing all prior binary network methods by up to 12.0 percentage points.
  • The validation accuracy curve is more stable than that of standard BNNs due to the introduced L2 regularization on scaling factors, which improves generalization.
  • The model compression ratio reaches 10.5× for AlexNet and 14.2× for ResNet-18, approaching the theoretical 32× limit despite excluding first/last layers and normalization layers from binarization.
  • The method reduces the accuracy gap between full-precision and binary networks to approximately 10% on ImageNet, demonstrating strong performance relative to full-precision baselines.
  • The training convergence is faster and more stable than standard BNNs, attributed to improved gradient approximation and regularization.

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.