[Paper Review] Making Batch Normalization Great in Federated Deep Learning
This paper proposes FixBN, a simple yet effective method to restore the performance of Batch Normalization (BN) in federated learning (FL) by addressing gradient deviation and statistical mismatch caused by non-IID data and high communication frequency. FixBN maintains BN's benefits without extra training or communication costs, outperforming both BN and Group Normalization (GN) across diverse FL settings, especially in low-communication and moderate non-IID regimes.
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.
Motivation & Objective
- To re-evaluate the use of Batch Normalization (BN) in federated learning, challenging the common replacement of BN with Group Normalization (GN) due to perceived instability.
- To identify and address the root causes of BN's performance degradation in FL, particularly in high-communication-frequency and extreme non-IID settings.
- To propose a practical, lightweight solution that preserves BN's advantages in convergence and generalization while eliminating its drawbacks in FL.
- To bridge the gap between centralized and federated deep learning by enabling BN to be used reliably in FL without architectural or training cost changes.
Proposed method
- FixBN modifies the running statistics update rule in BN layers during local training by using a client-specific moving average that is synchronized with the global model at each communication round.
- It ensures that the running mean and variance in BN layers are updated consistently across clients, reducing statistical mismatch between local and global data distributions.
- The method applies a delayed update strategy: local running statistics are updated only after the global model is aggregated, preventing divergence due to non-IID mini-batch statistics.
- FixBN does not alter the forward pass or require additional parameters, making it compatible with existing FL frameworks and training pipelines.
- The approach is lightweight and incurs no additional communication or computational overhead beyond standard FedAvg.
- It is designed to be backward-compatible with pre-trained models and widely used BN-based architectures (e.g., ResNet), enabling seamless integration.
Experimental results
Research questions
- RQ1Under what FL settings does Batch Normalization (BN) outperform Group Normalization (GN), and when does it fail?
- RQ2What are the primary causes of BN's performance degradation in FL, particularly in high-communication and extreme non-IID scenarios?
- RQ3Can the gradient deviation and statistical mismatch issues in BN be mitigated without altering the model architecture or training process?
- RQ4Does a simple modification to BN's running statistics update rule restore its performance in FL while preserving its convergence benefits?
Key findings
- FixBN significantly improves BN performance in high-communication-frequency FL settings, recovering centralized learning accuracy even with E=1 local steps.
- On CIFAR-10 with non-IID shards and E=100, FixBN achieves 76.56% test accuracy, outperforming GN (59.69%) and standard BN (53.97%).
- In low-communication regimes (e.g., 10K rounds), FixBN maintains strong performance (87.71% on non-IID CIFAR-10), surpassing FedAvg+BN (45.96%) and FedAvg+GN (82.66%).
- FixBN enables BN to benefit from increased local steps (E), showing improved accuracy with larger E, unlike GN, which degrades under the same conditions.
- FixBN outperforms alternative normalization methods like Fixup (70.66%) and GN with weight normalization (66.90%), demonstrating its robustness and effectiveness.
- The method resolves the gradient deviation and statistical mismatch issues without additional communication or training costs, making it practical for real-world FL deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.