Delving into the Estimation Shift of Batch Normalization in a Network

Lei Huang, Yi Zhou, Tian Wang, Jie Luo, Xianglong Liu
3/21/2022
cs.CVcs.AIcs.LG

Official code: huangleiBuaa/XBNBlock (27 stars, Python, BSD-2-Clause, last commit 2022-07-04).

Abstract

Batch normalization (BN) is a milestone technique in deep learning. It normalizes the activation using mini-batch statistics during training but the estimated population statistics during inference.

Show full abstract

This paper focuses on investigating the estimation of population statistics. We define the estimation shift magnitude of BN to quantitatively measure the difference between its estimated population statistics and expected ones. Our primary observation is that the estimation shift can be accumulated due to the stack of BN in a network, which has detriment effects for the test performance. We further find a batch-free normalization (BFN) can block such an accumulation of estimation shift. These observations motivate our design of XBNBlock that replace one BN with BFN in the bottleneck block of residual-style networks. Experiments on the ImageNet and COCO benchmarks show that XBNBlock consistently improves the performance of different architectures, including ResNet and ResNeXt, by a significant margin and seems to be more robust to distribution shift.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

This project is the PyTorch implementation of our CVPR 2022 paper:

276Python, CudaMar 21, 20224 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{huang2022delving,
  title  = {Delving into the Estimation Shift of Batch Normalization in a Network},
  author = {Lei Huang and Yi Zhou and Tian Wang and Jie Luo and Xianglong Liu},
  year   = {2022},
  eprint = {2203.10778},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.10778}
}

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/2203.10778.svg)](https://codeofpaper.com/paper/2203.10778)

Discussion