Towards Stabilizing Batch Statistics in Backward Propagation of Batch Normalization

Junjie Yan, Ruosi Wan, Xiangyu Zhang, Wei Zhang, Yichen Wei +1 more
1/19/2020
cs.CVcs.LGstat.ML

Official code: megvii-model/MABN (180 stars, Python, MIT, last commit 2023-03-03).

Abstract

Batch Normalization (BN) is one of the most widely used techniques in Deep Learning field. But its performance can awfully degrade with insufficient batch size.

Show full abstract

This weakness limits the usage of BN on many computer vision tasks like detection or segmentation, where batch size is usually small due to the constraint of memory consumption. Therefore many modified normalization techniques have been proposed, which either fail to restore the performance of BN completely, or have to introduce additional nonlinear operations in inference procedure and increase huge consumption. In this paper, we reveal that there are two extra batch statistics involved in backward propagation of BN, on which has never been well discussed before. The extra batch statistics associated with gradients also can severely affect the training of deep neural network. Based on our analysis, we propose a novel normalization method, named Moving Average Batch Normalization (MABN). MABN can completely restore the performance of vanilla BN in small batch cases, without introducing any additional nonlinear operations in inference procedure. We prove the benefits of MABN by both theoretical analysis and experiments. Our experiments demonstrate the effectiveness of MABN in multiple computer vision tasks including ImageNet and COCO. The code has been released in https://github.com/megvii-model/MABN.

View on arXivView PDF

Code Implementations(1)

megvii-model/MABNOfficial100%
MIT
18027Python, CudaJan 17, 20203 years agoMIT

Similar Papers

Cite this paper

@article{yan2020towards,
  title  = {Towards Stabilizing Batch Statistics in Backward Propagation of Batch Normalization},
  author = {Junjie Yan and Ruosi Wan and Xiangyu Zhang and Wei Zhang and Yichen Wei and Jian Sun},
  year   = {2020},
  eprint = {2001.06838},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.06838}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.06838.svg)](https://codeofpaper.com/paper/2001.06838)

Discussion