Abstract
Federated Learning (FL) faces a unique challenge termed external covariate shift, where independent local training on heterogeneous data causes feature distributions to diverge across devices. This shift renders standard Batch Normalization (BN) ineffective, often leading to significant accuracy degradation. This paper investigates the theoretical underpinnings of this failure and demonstrates that Layer Normalization (LN) serves as a robust alternative, ensuring weight norm equilibrium and faster convergence in decentralized environments.
The Problem: External Covariate Shift
In centralized learning, "internal covariate shift" refers to the changing distribution of layer inputs during training. Batch Normalization (BN) was introduced to mitigate this by normalizing activations across a batch. However, in Federated Learning, models are trained locally on non-IID data before being aggregated at a central server.
The authors identify external covariate shift as the divergence of internal feature statistics between different devices during local training. When the central server averages these models, the mismatched BN statistics lead to "information loss." Specifically, devices with larger weight norms can dominate the aggregation, effectively "obliterating" the contributions of others—a phenomenon described as the "loudest voice" problem.
Why Layer Normalization Wins
Unlike BN, which relies on batch-wise running statistics that become inaccurate when averaged across heterogeneous devices, Layer Normalization (LN) operates on a per-sample basis across channels. This makes LN immune to the cross-device statistical mismatches inherent in FL. Furthermore, normalization layers possess a "self-tuning" property that keeps weight magnitudes in equilibrium across devices, preventing any single device from dominating the global model during FedAvg aggregation.
Experimental Results
The researchers evaluated various normalization techniques (BN, LN, Group Normalization, and No Normalization) across three architectures: CNN, VGG-11, and ResNet-18, using the CIFAR-10 dataset distributed across 100 devices in a non-IID configuration.
As shown in the results, LN consistently outperforms BN in both convergence speed and final accuracy across most architectures. For instance, in VGG-11, LN achieved 63.52% accuracy compared to BN's 51.56%. In ResNet-18, the gap was even more pronounced, with LN reaching 59.70% while BN struggled at 34.38%. Notably, for ResNet-18, "No Normalization" achieved a slightly higher accuracy (60.73%) than LN, likely due to residual connections naturally stabilizing weight deviations.
Conclusion
The failure of Batch Normalization in Federated Learning is fundamentally tied to external covariate shift. By adopting Layer Normalization, FL systems can achieve more stable training landscapes and significantly higher global model performance, particularly in the presence of high data heterogeneity.
Summary updated