Rethinking Architecture Design for Tackling Data Heterogeneity in Federated Learning

Liangqiong Qu, Yuyin Zhou, Paul Pu Liang, Yingda Xia, Feifei Wang, Li Fei-Fei, Ehsan Adeli, Daniel L. Rubin

Introduction

Federated Learning (FL) enables collaborative model training across decentralized institutions without direct data sharing. However, the inherent heterogeneity of real-world data—where local distributions vary significantly (non-IID)—presents a major challenge. This data shift typically leads to weight divergence and "catastrophic forgetting," where models lose performance on previously seen distributions. While existing research primarily focuses on optimization-based solutions, this study investigates whether the choice of neural architecture itself can mitigate these issues.

Methodology: Serial vs. Parallel Paradigms

The authors evaluate two primary FL paradigms: FedAVG (Parallel), where client updates are averaged by a central server, and Cyclic Weight Transfer (CWT/Serial), where a single model is trained sequentially across clients.

Comparison of Serial (CWT) and Parallel (FedAVG) Federated Learning paradigms, illustrating label distribution shifts and feature embedding separation.

The study compares traditional Convolutional Neural Networks (CNNs), such as ResNet and EfficientNet, against Vision Transformers (ViT) and Swin Transformers. These architectures are tested across diverse datasets, including CIFAR-10, medical imaging (Retina), and large-scale real-world data (OpenImage).

Key Insights: Why Transformers Excel

The superior performance of Transformers in heterogeneous FL environments stems from two main factors:

  1. Reduced Local Bias: CNNs rely on local convolutions that are sensitive to high-frequency local patterns (e.g., specific lighting). In contrast, Transformers use self-attention to capture global interactions, making them more robust to local distribution shifts.
  2. Mitigating Catastrophic Forgetting: In serial training (CWT), CNNs often suffer a total collapse in performance on earlier clients' data. Transformers demonstrate a remarkable ability to retain knowledge across the training chain.

Visualizations using UMAP reveal that Transformers learn feature embeddings with significantly clearer class separation than CNNs, even when training data is highly skewed.

Results and Performance

Empirical results consistently show that Transformers outperform CNNs across all tested scenarios. On the highly heterogeneous CIFAR-10 "Split-3," ViT-FedAVG achieved a 37.34% accuracy boost over ResNet-FedAVG.

Performance comparison of CNNs vs. Transformers across CWT and FedAVG paradigms, showing the robustness of Transformers to serial training.

As shown in the figures, Transformers maintain high accuracy regardless of the FL paradigm, whereas CNN performance drops precipitously in the serial (CWT) setting. Furthermore, Transformers exhibit superior communication efficiency, reaching target accuracy in a fraction of the rounds required by CNNs. In extreme edge cases with only one sample per client, ViTs maintained ~80% accuracy on the Retina dataset, while ResNet models struggled at ~50%.

Conclusion

This research highlights that architecture design is a critical, yet often overlooked, component in building robust Federated Learning systems. By adopting Vision Transformers, practitioners can achieve better accuracy, faster convergence, and greater resilience to data heterogeneity. Future work will explore self-supervised pretraining for ViTs in FL and techniques for weight compression to further enhance communication efficiency.

Summary updated

BibTeX
@inproceedings{qu2022rethinking,
  author = {Liangqiong Qu and Yuyin Zhou and Paul Pu Liang and Yingda Xia and Feifei Wang and Li Fei-Fei and Ehsan Adeli and Daniel L. Rubin},
  title = {{Rethinking Architecture Design for Tackling Data Heterogeneity in Federated Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=Nq2_Q70ia_},
}
Figure