This post summarizes the paper "Experimenting with Normalization Layers in Federated Learning on non-IID scenarios" by Casella et al.
TL;DR
Federated Learning (FL) often breaks when client data is non-IID (not independently and identically distributed). This paper demonstrates that replacing the industry-standard Batch Normalization with Group or Layer Normalization significantly improves model accuracy and stability, while tuning the frequency of model aggregation can further boost performance.
What Problem Does This Paper Address?
Federated Learning allows multiple institutions to train a shared model without exchanging raw data, preserving privacy. However, a major hurdle is statistical heterogeneity: the data at one institution (e.g., a hospital in Italy) might look very different from data at another (e.g., a hospital in Japan). This is known as the non-IID problem.
The authors identify a specific culprit: Batch Normalization (BN). BN is the "gold standard" for centralized deep learning because it stabilizes training by normalizing activations using mini-batch statistics. In FL, however, local batch statistics are often unrepresentative of the global data distribution. When these locally trained models are averaged, the resulting global model can diverge or perform poorly.
Methods
The researchers conducted an extensive benchmark using the FedAvg algorithm to investigate two primary levers for optimization:
- Normalization Layers: They compared five different methods:
- Batch Normalization (BN): The baseline.
- Group Normalization (GN): Normalizes across groups of channels.
- Layer Normalization (LN): Normalizes across all channels in a layer.
- Instance Normalization (IN): Normalizes each channel individually.
- Batch Renormalization (BRN): An extension of BN designed to reduce batch dependence.
- Collaboration Frequency: They varied the number of local training epochs ($E$) performed by clients before aggregating their models at the central server.
The experiments were implemented using Intel’s OpenFL framework, testing two popular architectures: ResNet-18 and EfficientNet-B0.
Datasets
The authors evaluated their models on two classic image classification benchmarks:
- MNIST: Handwritten digits.
- CIFAR-10: 60,000 color images in 10 classes.
To simulate real-world challenges, they partitioned these datasets into three scenarios:
- Uniform (IID): Data is distributed equally and randomly among clients.
- Labels Quantity Skew (non-IID): Each client only sees a subset of classes (e.g., only digits '1' and '2').
- Feature Distribution Skew (non-IID): Clients see the same classes but with different styles (simulated via PCA-based partitioning).
Key Insights and Ideas
- BN is a Liability in FL: Because BN relies on moving averages of batch statistics, it struggles when those statistics vary wildly between clients. The averaged global model ends up with "confused" statistics that don't fit any specific client well.
- GN and LN are Robust: Unlike BN, Group and Layer Normalization do not depend on batch size or cross-sample statistics. This makes them inherently more stable when data is heterogeneous.
- The "Local Optimization" Paradox: Counter-intuitively, aggregating models at every single epoch is often worse for both accuracy and communication efficiency. Performing multiple local epochs allows clients to reach better local minima that, when averaged, provide a better approximation of the global optimum.
- Large Batches Degrade Generalization: In FL, increasing the batch size too much leads to a significant drop in performance, likely because clients have limited local data, causing the model to converge to "sharp" minimizers that generalize poorly.
Key Results
The performance gap between normalization methods is most striking in the Labels Quantity Skew scenario (the most difficult non-IID case):
- CIFAR-10 Accuracy: BN achieved only 38.02%, while GN reached 58.91% and LN reached 57.98%.
- Convergence Speed: As shown in the learning curves below, while BN, GN, and LN all converge quickly in IID settings, GN and LN are far more stable and reach higher final accuracies in non-IID scenarios.

- Aggregation Frequency: For ResNet-GN on CIFAR-10, training for 2 local epochs per round ($E=2$) achieved higher accuracy than aggregating every single epoch ($E=1$), even when the total number of training epochs was the same.
Limitations and Future Work
The authors acknowledge a few limitations:
- Dataset Complexity: The study is limited to MNIST and CIFAR-10. While these are standard benchmarks, they are simpler than real-world medical or industrial image datasets.
- Algorithm Scope: The focus was primarily on the standard FedAvg algorithm. Future work could investigate how these normalization layers interact with more advanced FL algorithms like FedProx or SCAFFOLD.
- Task Variety: The research focused on image classification; exploring these effects in Natural Language Processing (NLP) or tabular data remains an open area.
Reference: Casella, B., Esposito, R., Sciarappa, A., Cavazzoni, C., & Aldinucci, M. (2023). Experimenting with Normalization Layers in Federated Learning on non-IID scenarios. IEEE Transactions on Neural Networks and Learning Systems.
Summary updated