Population Normalization for Federated Learning

Zhuoyao Wang, Fan Yi, Peizhu Gong, Caitou He, Cheng Jin, Weizhong ZhangCVPR 2025

Introduction

Batch Normalization (BN) is a cornerstone of modern deep learning, providing essential training stability and accelerating convergence. However, its effectiveness is severely compromised in Federated Learning (FL) environments. This paper identifies two primary obstacles: statistical heterogeneity (non-IID data) across clients and the prevalence of extremely small local batch sizes. To address these, the authors introduce Population Normalization (PN) and its stochastic variant, Noisy Population Normalization (NPN).

The Challenges of BN in Federated Learning

In Federated Learning, data is distributed across numerous clients, often with significant differences in local distributions. Standard BN relies on calculating mean and variance from local mini-batches, leading to two major issues:

  1. Client Drift: When clients have heterogeneous data, local BN statistics diverge. Aggregating these models becomes difficult as the normalization layers are tuned to specific local distributions rather than a global one.
  2. Small Batch Instability: Edge devices often have limited memory, necessitating small batch sizes (sometimes as low as one). BN's reliance on mini-batch statistics makes it highly unstable and inaccurate in these regimes, severely degrading performance.

Proposed Methods: PN and NPN

The authors propose a shift from calculating statistics on-the-fly to learning them as global parameters.

Population Normalization (PN)

PN treats the mean ($\mu$) and variance ($\sigma^2$) as trainable parameters rather than values derived from the current batch. These parameters are updated during local training via a constrained optimization framework and aggregated by the server. This ensures consistency across the entire federation, regardless of local data distributions. Crucially, PN enables effective training even with a batch size of one, as it does not depend on batch-level statistics.

Noisy Population Normalization (NPN)

While PN solves the consistency and batch size issues, the authors observed that "perfect" learned statistics sometimes lacked the generalization benefits of standard BN. They hypothesized that the inherent noise in BN's mini-batch estimation acts as a beneficial regularizer. NPN mimics this effect by injecting artificial Gaussian noise into the learned statistics during training.

Comparison of test loss for BN, PN, and NPN. NPN achieves the lowest and most stable test loss, demonstrating superior generalization.

Experimental Evaluation

The proposed methods were evaluated on CIFAR-10 and CIFAR-100 datasets distributed across 80 clients with varying degrees of heterogeneity.

Key Results

  • Heterogeneity Robustness: In high-heterogeneity scenarios ($\alpha=0.04$), PN achieved 78.59% accuracy on CIFAR-10, significantly outperforming standard BN (70.22%) and FedBN (71.49%).
  • Extreme Batch Sizes: PN maintained a high accuracy of 64.38% with a batch size of 1, a scenario where standard BN and FedBN are inapplicable.
  • Generalization via Noise: At larger batch sizes ($m=2048$), NPN significantly improved performance over PN. For instance, NPN reduced test loss from 0.41 to 0.32, outperforming standard BN (0.39).
The impact of noise scale on training and test loss. The plot shows that while increasing noise might slightly raise training loss, it significantly lowers test loss, highlighting the regularization effect of NPN.

Conclusion

Population Normalization provides a robust alternative to Batch Normalization for Federated Learning, specifically addressing the dual challenges of data heterogeneity and small batch sizes. By introducing controlled noise through NPN, the authors successfully recapture the generalization benefits of standard BN while maintaining the stability required for decentralized training. This work opens new avenues for designing normalization layers that are decoupled from mini-batch constraints.

Summary updated

BibTeX
@inproceedings{wang2025population,
  author = {Zhuoyao Wang and Fan Yi and Peizhu Gong and Caitou He and Cheng Jin and Weizhong Zhang},
  title = {{Population Normalization for Federated Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00955},
}
Figure