Making Batch Normalization Great in Federated Deep Learning
Jike Zhong, Hong-You Chen, Wei-Lun Chao
TL;DR
This work reexamines the common belief that BN harms federated learning by empirically showing BN often beats GN except in extreme non-IID or high-frequency communication regimes. It identifies BN-specific issues—gradient bias from mismatched minibatch statistics and training-testing statistic misalignment—and introduces FixBN, a simple two-stage approach that preserves BN benefits while eliminating the detrimental effects without extra cost. FixBN transitions from standard BN during an initial exploration phase to using fixed global BN statistics in a calibration phase, effectively aligning training and testing normalization and enabling FedAvg to approximate centralized gradients even with frequent communication. The approach is validated across CIFAR-10, Tiny-ImageNet, ImageNet, and Cityscapes, and is complemented by maintaining SGD momentum, yielding robust improvements over BN and GN in diverse FL settings. The results provide a practical, scalable path to leverage BN in FL and motivate further theoretical analysis of BN dynamics under data heterogeneity and distributed optimization.
Abstract
Batch Normalization (BN) is widely used in {centralized} deep learning to improve convergence and generalization. However, in {federated} learning (FL) with decentralized data, prior work has observed that training with BN could hinder performance and suggested replacing it with Group Normalization (GN). In this paper, we revisit this substitution by expanding the empirical study conducted in prior work. Surprisingly, we find that BN outperforms GN in many FL settings. The exceptions are high-frequency communication and extreme non-IID regimes. We reinvestigate factors that are believed to cause this problem, including the mismatch of BN statistics across clients and the deviation of gradients during local training. We empirically identify a simple practice that could reduce the impacts of these factors while maintaining the strength of BN. Our approach, which we named FIXBN, is fairly easy to implement, without any additional training or communication costs, and performs favorably across a wide range of FL settings. We hope that our study could serve as a valuable reference for future practical usage and theoretical analysis in FL.
