Skip to main content
QUICK REVIEW

[Paper Review] How Does Batch Normalization Help Binary Training?

Eyyüb Sari, Mouloud Belbahri|arXiv (Cornell University)|Sep 18, 2019
Advanced Neural Network ApplicationsComputer Science11 references26 citations
TL;DR

This paper demonstrates that Batch Normalization (BatchNorm) is essential for binary neural network (BNN) training primarily by preventing gradient explosion, not by stabilizing activations or reducing covariate shift. It shows that traditional Glorot initialization is ineffective for BNNs, and that only batch-wise mean centering with a fixed scaling factor of $1/\sqrt{K_{l-1}}$ is necessary for convergence, enabling efficient deployment on edge devices.

ABSTRACT

Binary Neural Networks (BNNs) are difficult to train, and suffer from drop of accuracy. It appears in practice that BNNs fail to train in the absence of Batch Normalization (BatchNorm) layer. We find the main role of BatchNorm is to avoid exploding gradients in the case of BNNs. This finding suggests that the common initialization methods developed for full-precision networks are irrelevant to BNNs. We build a theoretical study on the role of BatchNorm in binary training, backed up by numerical experiments.

Motivation & Objective

  • To investigate why BatchNorm is indispensable for successful binary neural network (BNN) training.
  • To challenge the assumption that Glorot-style weight initialization is effective for BNNs.
  • To determine which components of BatchNorm are essential for BNN convergence.
  • To propose a lightweight alternative to BatchNorm for edge-device training of BNNs.
  • To validate that gradient explosion is the primary cause of training failure in BNNs without BatchNorm.

Proposed method

  • Theoretical analysis of gradient flow in BNNs under i.i.d. weight and activation assumptions, showing that variance in latent weights does not control gradient variance.
  • Derivation of the gradient update rule for BatchNorm, isolating the role of scaling ($\gamma_k$) and shifting ($\beta_k$) parameters in gradient stability.
  • Ablation study replacing BatchNorm with: (1) only batch mean centering, (2) fixed scaling $1/\sqrt{K_{l-1}}$, (3) no normalization.
  • Empirical evaluation on CIFAR-10 using VGG, ResNet-56, and MobileNet-v1 with varying initialization variances and BatchNorm configurations.
  • Use of the clipped straight-through estimator for backpropagation through the sign function in BNNs.
  • Systematic comparison of accuracy across different initialization variances and BatchNorm component ablations.

Experimental results

Research questions

  • RQ1Why is BatchNorm necessary for training binary neural networks despite its absence in many full-precision models?
  • RQ2Does Glorot initialization remain effective for BNNs, given their discrete weight and activation constraints?
  • RQ3Which components of BatchNorm—scaling, shifting, or centering—are essential for preventing gradient explosion in BNNs?
  • RQ4Can a fixed, learnable scaling factor replace BatchNorm in BNNs without significant accuracy loss?
  • RQ5What is the impact of weight initialization variance on BNN training dynamics and final accuracy?

Key findings

  • BatchNorm prevents gradient explosion in BNNs, which is the primary reason it is essential for training; this role is distinct from its function in full-precision networks.
  • Glorot initialization is ineffective for BNNs, as the variance of latent weights does not influence gradient variance, rendering initialization schemes based on variance control irrelevant.
  • Only batch-wise mean centering is required for stable training; the learnable scaling parameter $\gamma_k$ can be fixed to $1/\sqrt{K_{l-1}}$ without significant accuracy loss.
  • Replacing BatchNorm with fixed centering and scaling $1/\sqrt{K_{l-1}}$ achieves 87.9% top-1 accuracy on ResNet-56, close to BatchNorm’s 88.8%, while removing both components leads to only 31.7% accuracy.
  • The ablation study confirms that networks without BatchNorm or proper scaling fail to converge due to exploding gradients, validating the theoretical analysis.
  • The accuracy gap between fixed scaling and full BatchNorm can be closed by tuning the scale factor (e.g., $1/\sqrt{3K_{l-1}}$), suggesting a practical replacement for edge devices.

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.