Skip to main content
QUICK REVIEW

[Paper Review] Understanding the Disharmony between Dropout and Batch Normalization by Variance Shift

Xiang Li, Shuo Chen|arXiv (Cornell University)|Jan 16, 2018
Advanced Neural Network ApplicationsComputer Science17 references39 citations
TL;DR

This paper identifies 'variance shift'—a mismatch in activation variance between training and inference—as the core cause of performance degradation when combining Dropout and Batch Normalization (BN). It proposes two solutions: applying Dropout after BN layers and introducing 'Uout', a variance-stable Dropout variant using uniform noise, both of which significantly reduce instability and improve accuracy on CIFAR and ImageNet benchmarks.

ABSTRACT

This paper first answers the question "why do the two most powerful techniques Dropout and Batch Normalization (BN) often lead to a worse performance when they are combined together?" in both theoretical and statistical aspects. Theoretically, we find that Dropout would shift the variance of a specific neural unit when we transfer the state of that network from train to test. However, BN would maintain its statistical variance, which is accumulated from the entire learning procedure, in the test phase. The inconsistency of that variance (we name this scheme as "variance shift") causes the unstable numerical behavior in inference that leads to more erroneous predictions finally, when applying Dropout before BN. Thorough experiments on DenseNet, ResNet, ResNeXt and Wide ResNet confirm our findings. According to the uncovered mechanism, we next explore several strategies that modifies Dropout and try to overcome the limitations of their combination by avoiding the variance shift risks.

Motivation & Objective

  • To investigate the root cause of performance degradation when combining Dropout and Batch Normalization in deep neural networks.
  • To analyze the discrepancy in activation variance between training and inference phases under different network states.
  • To resolve the instability caused by variance shift through modified training and inference strategies.
  • To propose and validate two practical solutions that maintain or improve model accuracy while preserving regularization benefits.

Proposed method

  • Theoretical analysis shows that Dropout scales activation variance during inference by the retention ratio p, while BN maintains a fixed moving variance accumulated during training, causing a mismatch.
  • The authors introduce 'variance shift' as the term for this inconsistent variance behavior across training and inference modes.
  • They propose placing Dropout after BN layers to avoid early-stage variance disruption in the network's forward pass.
  • They design 'Uout', a modified Dropout using uniform noise (r ~ U[-β, β]) instead of Bernoulli, reducing variance shift from p to approximately 3/(3+β²).
  • Theoretical derivation confirms that Uout's variance shift rate is much closer to 1.0 than standard Dropout’s, minimizing numerical instability.
  • Extensive experiments on ResNet, DenseNet, ResNeXt, and Wide ResNet across CIFAR10/100 and ImageNet validate the proposed methods.

Experimental results

Research questions

  • RQ1Why does combining Dropout and Batch Normalization often lead to worse performance in deep networks?
  • RQ2What specific statistical inconsistency causes instability during inference when Dropout is applied before BN?
  • RQ3Can the performance degradation be mitigated by reordering the layers or modifying the Dropout mechanism?
  • RQ4Does a variance-stable form of Dropout reduce the impact of variance shift and improve generalization?

Key findings

  • Applying Dropout after all BN layers consistently improves top-1 accuracy on ImageNet, with ResNet-200 improving from 21.70% to 21.48% and ResNeXt-101 from 20.40% to 20.17%.
  • The 'Uout' variant of Dropout reduces variance shift from 0.9 (standard Dropout) to approximately 0.9967 when β=0.1, significantly stabilizing inference.
  • On CIFAR100, Uout with β=0.2 achieves a 0.3% accuracy gain over standard Dropout in DenseNet and WRN, with consistent improvements across multiple runs.
  • Experiments confirm that variance shift is the primary cause of instability, as real activation variance during inference diverges from BN’s moving variance when Dropout is applied before BN.
  • The proposed solutions—post-BN Dropout and Uout—achieve consistent performance gains with negligible computational overhead.

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.