NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cross-Iteration Batch Normalization

Zhuliang Yao, Yue Cao, Shuxin Zheng, Gao Huang, Stephen Lin

Abstract

Batch Normalization (BN) is a fundamental component of modern deep learning but suffers from a significant performance drop when mini-batch sizes are small. Cross-Iteration Batch Normalization (CBN) addresses this by aggregating activation statistics across multiple training iterations. To account for the shift in network weights between iterations, CBN employs a low-order Taylor polynomial compensation. This approach enables high-performance training even when memory constraints limit batch sizes to just one or two images per GPU, matching or exceeding the performance of more computationally expensive alternatives like Synchronized BN.

Introduction: The Small Batch Challenge

Batch Normalization (BN) is essential for stabilizing training and accelerating convergence by normalizing layer activations. However, BN relies on calculating the mean and variance within a mini-batch. When the batch size is large (e.g., 32), these statistics are reliable. In memory-intensive tasks like object detection or video recognition, researchers are often forced to use tiny batches (1 or 2 images), causing these statistics to become "noisy" and leading to a dramatic drop in model accuracy.

While alternatives like Group Normalization (GN) exist, they do not always match BN's performance at scale. Synchronized BN offers a solution but requires expensive communication across multiple GPUs. CBN provides a way to gain the benefits of large-batch statistics without the associated memory or communication overhead.

Methodology: Bridging Iterations with Taylor Compensation

The core innovation of CBN is "borrowing" examples from previous training iterations to create a larger, more stable pool for statistics. However, because network weights change at every iteration, an activation from iteration $t-1$ is not directly comparable to one at iteration $t$.

Overview of the CBN architecture compared to standard BN.

CBN solves this using two key techniques:

  1. Cross-Iteration Statistics: Instead of looking only at the current mini-batch, CBN aggregates statistics from the current iteration and the $k-1$ most recent ones.
  2. Taylor Polynomial Compensation: This is the "secret sauce." CBN uses a low-order Taylor expansion to estimate how the mean and variance from previous iterations would look if they were calculated using the current weights. By using the gradients of the statistics with respect to the weights, they "update" old data to the present state.

To maintain stability during the early stages of training when weights change rapidly, the method includes a burn-in period. The model starts with standard BN before gradually increasing the window of iterations ($k$) it considers.

Key Results and Benchmarks

The authors evaluated CBN on the ImageNet classification and COCO object detection benchmarks, specifically targeting scenarios with small batch sizes.

Performance comparison of normalization methods across varying batch sizes.

ImageNet Classification

On ImageNet with a batch size of 2, standard BN accuracy drops to 55.9%. CBN maintains a much higher 69.6% accuracy, even outperforming Group Norm (69.1%). At the extreme case of a batch size of 1, CBN achieves 69.3% accuracy, while standard BN fails to produce usable results.

COCO Object Detection

On the COCO dataset, CBN-equipped models consistently outperformed those using standard BN or Batch Renormalization (BRN). It matched the performance of Synchronized BN without the need for multi-GPU synchronization overhead, making it highly efficient for distributed training.

Efficiency

While CBN adds approximately 11% more FLOPs and 7% more memory usage during training, the inference speed is identical to standard BN. This is because the statistics are pre-computed and frozen after training, allowing the layer to behave like a standard BN layer during deployment.

Discussion and Limitations

CBN's effectiveness stems from the observation that weights change gradually, allowing first-order Taylor approximations to remain accurate over short temporal windows. However, the method introduces a new hyperparameter, $k$ (window size), which may require tuning for specific architectures. Additionally, the implementation is more complex than standard normalization layers due to the requirement for gradients of statistics. Despite these factors, CBN offers a robust solution for training high-performance models in memory-constrained environments.

Summary updated

BibTeX
@inproceedings{yao2021cross,
  author = {Zhuliang Yao and Yue Cao and Shuxin Zheng and Gao Huang and Stephen Lin},
  title = {{Cross-Iteration Batch Normalization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01215},
}
Figure