Batch Kalman Normalization: Towards Training Deep Neural Networks with Micro-Batches

Guangrun Wang, Jiefeng Peng, Ping Luo, Xinjiang Wang, Liang LinarXiv 2018

Abstract

Batch Normalization (BN) is a critical component for training deep neural networks, yet its performance degrades significantly when using small batch sizes (micro-batches) due to noisy statistical estimates. This paper introduces Batch Kalman Normalization (BKN), a novel approach that treats the network as a sequential system and applies Kalman Filtering principles across its layers. By leveraging distribution information from preceding layers to predict and update current statistics, BKN provides stable and accurate normalization even with batch sizes as small as a single image. Experimental results on ImageNet and CIFAR benchmarks demonstrate that BKN consistently outperforms BN and its variants in micro-batch settings with minimal computational overhead.

Introduction

Batch Normalization (BN) has revolutionized deep learning by enabling faster training and better convergence through input normalization at each layer. However, BN's reliance on mini-batch statistics makes it vulnerable to small sample sizes. In "micro-batch" scenarios—common in memory-intensive applications like high-resolution medical imaging or video processing—the calculated mean and variance often fail to represent the true data distribution. This leads to training instability and poor model performance, creating a bottleneck for researchers with limited hardware resources.

Methodology: Batch Kalman Normalization

To address the micro-batch problem, we propose Batch Kalman Normalization (BKN). The fundamental insight behind BKN is that internal representations of sequential layers are not independent. By treating the network as a sequential system, BKN can recover accurate statistics that are lost in standard BN when samples are scarce.

BKN implements a framework inspired by Kalman Filtering, consisting of two main phases:

  1. Prediction: The model estimates the statistics (mean and covariance) of the current layer $k$ based on the statistics of the preceding layer $k-1$ using a learned state transition matrix ($A^k$).
  2. Update: This prediction is "corrected" by combining it with the observed statistics of the current micro-batch. A learned Kalman Gain ($q^k$) determines the relative trust placed in the prior prediction versus the noisy current observation.
The BKN process involves a sequential prediction and update cycle across network layers to maintain stable distribution estimates.

This recursive estimation allows the network to maintain a stable "running estimate" of data distributions as information flows deeper into the architecture, effectively mitigating the noise inherent in micro-batches.

Experimental Results

The effectiveness of BKN was evaluated using industry-standard benchmarks, including ImageNet 2012, CIFAR-10, and CIFAR-100, across architectures like InceptionV2 and ResNet101.

Performance in Micro-Batch Settings

BKN demonstrates superior robustness compared to standard BN and Batch Renormalization (BRN). In micro-batch settings (e.g., batch size of 4), BKN improved top-1 accuracy by 3.7% on InceptionV2 and over 10% on ResNet101. Notably, BKN remains functional even with a batch size of one, a scenario where traditional BN variants often fail to converge.

Accuracy comparison between BN and BKN on Inceptionv2 and ResNet architectures, demonstrating BKN's superior convergence and final performance.

Efficiency and Convergence

Beyond accuracy, BKN offers significant training speedups. On ImageNet, BKN reached the baseline accuracy of BN in approximately 40% fewer training steps. Despite the added mathematical complexity, the implementation is highly efficient, adding only about 1.5% to the total computation time compared to standard BN.

Conclusion

Batch Kalman Normalization provides a powerful solution for training deep networks under severe memory constraints. By integrating Kalman Filtering to exploit inter-layer correlations, BKN stabilizes training and improves accuracy in micro-batch scenarios. Future research will focus on the theoretical properties of this approach and its application to increasingly complex and memory-intensive deep learning tasks.

Summary updated

BibTeX
@misc{wang2018batch,
  author = {Guangrun Wang and Jiefeng Peng and Ping Luo and Xinjiang Wang and Liang Lin},
  title = {{Batch Kalman Normalization: Towards Training Deep Neural Networks with Micro-Batches}},
  year = {2018},
  eprint = {1802.03133},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.03133},
}
Figure