Skip to main content
QUICK REVIEW

[Paper Review] Learning to Train a Binary Neural Network

Joseph Bethge, Haojin Yang|arXiv (Cornell University)|Sep 27, 2018
Neural Networks and ApplicationsComputer Science12 references16 citations
TL;DR

This paper presents a systematic study of training binary neural networks (BNNs) using the open-source BMXNet framework, demonstrating that increasing connectivity via dense shortcut connections significantly improves accuracy. The authors provide empirical evidence on hyperparameter choices, release code and models, and show that BNNs with enhanced information flow can achieve competitive performance on MNIST, CIFAR10, and ImageNet while enabling efficient deployment on mobile and embedded devices.

ABSTRACT

Convolutional neural networks have achieved astonishing results in different application areas. Various methods which allow us to use these models on mobile and embedded devices have been proposed. Especially binary neural networks seem to be a promising approach for these devices with low computational power. However, understanding binary neural networks and training accurate models for practical applications remains a challenge. In our work, we focus on increasing our understanding of the training process and making it accessible to everyone. We publish our code and models based on BMXNet for everyone to use. Within this framework, we systematically evaluated different network architectures and hyperparameters to provide useful insights on how to train a binary neural network. Further, we present how we improved accuracy by increasing the number of connections in the network.

Motivation & Objective

  • To close the gap in understanding and reproducibility of binary neural network (BNN) training by providing systematic empirical evaluation.
  • To improve BNN accuracy through architectural innovations, particularly increasing connectivity via dense shortcut connections.
  • To release open-source code and trained models via the BMXNet framework for broader research and industrial adoption.
  • To evaluate the impact of hyperparameters and training techniques such as gradient clipping and scaling factors on BNN performance.

Proposed method

  • The authors use the BMXNet framework to systematically evaluate various network architectures, including ResNet and DenseNet variants, with binary weights.
  • They implement and test different training strategies, including gradient clipping and scaling factors, to stabilize BNN optimization.
  • Dense shortcut connections are introduced to enhance feature reuse and information flow across layers in binary networks.
  • Visual analysis techniques such as DeepDream and VisualBackprop are used to compare feature learning between full-precision and binary models.
  • Experiments are conducted on MNIST, CIFAR10, and ImageNet to evaluate accuracy and robustness across datasets.
  • The study evaluates the effect of architectural depth and connectivity on BNN performance, particularly in the context of limited computational resources.

Experimental results

Research questions

  • RQ1How do different network architectures, such as ResNet and DenseNet, perform when converted to binary weights in terms of accuracy and feature learning?
  • RQ2What is the impact of increasing connectivity through dense shortcut connections on the accuracy of binary neural networks?
  • RQ3How do hyperparameters like gradient clipping and scaling factors affect the training stability and performance of BNNs?
  • RQ4To what extent do visualizations of feature maps reveal differences in representational capacity between full-precision and binary neural networks?
  • RQ5Can BNNs with enhanced connectivity achieve performance comparable to full-precision models on standard benchmarks like ImageNet?

Key findings

  • Dense shortcut connections significantly improve BNN accuracy, with the binary DenseNet-21 model producing more coherent and object-like features in DeepDream visualizations compared to ResNet.
  • The binary DenseNet-21 model highlights more relevant image features in VisualBackprop visualizations, indicating better feature learning than binary ResNet-18.
  • ResNet-18 with binary weights produces noisy and less coherent visualizations, with large gray regions indicating poor information flow due to binarization.
  • Scaling factors did not improve accuracy on ResNet-18, so they were not used in subsequent experiments, suggesting limited benefit in this configuration.
  • The full-precision DenseNet model successfully captures high-level concepts like animal faces in DeepDream, while binary versions fail to reproduce such coherent structures.
  • The study confirms that increasing connectivity in BNNs is more effective for accuracy improvement than simply increasing network depth or parameter count.

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.