Skip to main content
QUICK REVIEW

[Paper Review] Rethinking Architecture Design for Tackling Data Heterogeneity in Federated Learning

Liangqiong Qu, Yuyin Zhou|arXiv (Cornell University)|Jun 10, 2021
Privacy-Preserving Technologies in DataComputer Science61 references12 citations
TL;DR

This paper proposes Vision Transformers (ViTs) as a robust architectural alternative to convolutional neural networks (CNNs) in federated learning, demonstrating that ViTs significantly reduce catastrophic forgetting and accelerate convergence on heterogeneous data. The key contribution is empirical evidence that ViT-FL outperforms CNN-based FL across multiple benchmarks and data splits, especially under high data heterogeneity.

ABSTRACT

Federated learning is an emerging research paradigm enabling collaborative training of machine learning models among different organizations while keeping data private at each institution. Despite recent progress, there remain fundamental challenges such as the lack of convergence and the potential for catastrophic forgetting across real-world heterogeneous devices. In this paper, we demonstrate that self-attention-based architectures (e.g., Transformers) are more robust to distribution shifts and hence improve federated learning over heterogeneous data. Concretely, we conduct the first rigorous empirical investigation of different neural architectures across a range of federated algorithms, real-world benchmarks, and heterogeneous data splits. Our experiments show that simply replacing convolutional networks with Transformers can greatly reduce catastrophic forgetting of previous devices, accelerate convergence, and reach a better global model, especially when dealing with heterogeneous data. We release our code and pretrained models at https://github.com/Liangqiong/ViT-FL-main to encourage future exploration in robust architectures as an alternative to current research efforts on the optimization front.

Motivation & Objective

  • Address the persistent challenges of non-convergence and catastrophic forgetting in federated learning due to data heterogeneity across devices.
  • Investigate whether architectural choices—specifically Vision Transformers—can inherently improve robustness to distribution shifts in FL.
  • Provide a systematic empirical benchmark comparing ViTs and CNNs across federated algorithms, real-world datasets, and heterogeneous data splits.
  • Demonstrate that architectural improvements can offer immediate gains without requiring additional optimization heuristics or hyperparameter tuning.
  • Position Vision Transformers as a natural starting point for future federated learning research, orthogonal to existing optimization-based methods.

Proposed method

  • Conduct large-scale empirical benchmarking of Vision Transformers (ViTs) and CNNs (ResNets, EfficientNets) across multiple federated learning algorithms: FedAVG (parallel) and CWT (serial).
  • Use standard ViT implementations on image classification tasks, including CIFAR-10 and Retina, with consistent data augmentation and regularization strategies.
  • Evaluate performance across three data split strategies (Split-1 to Split-3) with increasing label distribution skewness to simulate real-world heterogeneity.
  • Apply UMAP visualization to compare feature embeddings learned by ViT and CNN models, analyzing cluster separation and representation robustness.
  • Combine ViTs with existing optimization-based FL methods (FedProx, FedAVG-Share) to test compatibility and performance gains.
  • Investigate the impact of pretraining and training hyperparameters (e.g., learning rate, gradient clipping, local epochs) on ViT-FL performance.

Experimental results

Research questions

  • RQ1Can Vision Transformers mitigate catastrophic forgetting in federated learning under high data heterogeneity compared to CNNs?
  • RQ2How does the performance of ViT-FL compare to CNN-based FL across different federated algorithms (FedAVG vs. CWT) and data split strategies?
  • RQ3To what extent does architectural choice (ViT vs. CNN) influence convergence speed and final model accuracy in non-IID settings?
  • RQ4Does pretraining significantly improve ViT-FL performance, especially when large-scale datasets are unavailable?
  • RQ5Can ViT-FL be effectively combined with existing optimization-based FL methods to further enhance performance on heterogeneous data?

Key findings

  • Vision Transformers (ViTs) significantly outperform ResNets in terms of test accuracy on highly heterogeneous data partitions (Split-3) of CIFAR-10, achieving 96.40% with pretraining versus 59.68% for ResNet(50)-FedAVG.
  • ViT-FL reduces catastrophic forgetting: features learned by ViT(S)-FedAVG show clearer class separation in UMAP visualizations compared to ResNet(50)-FedAVG.
  • ViT-FL accelerates convergence and reaches a better global model, especially under severe data heterogeneity, with performance gains increasing as data skewness grows.
  • Pretraining is crucial for ViT-FL: when trained from scratch, Swin(T)-FedAVG achieves 64.50% accuracy on Split-3, outperforming ResNet(50)-FedAVG (59.68%) despite lacking large-scale pretraining.
  • ViT-FL is orthogonal to optimization-based methods: combining ViTs with FedProx or FedAVG-Share further boosts performance on heterogeneous clients.
  • For optimal performance, use small local epochs (E ≤ 5 for ViT-FedAVG, E = 1 for ViT-CWT) in highly heterogeneous settings, while larger E can be used in homogeneous cases to reduce communication.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.