Skip to main content
QUICK REVIEW

[Paper Review] Where to Begin? On the Impact of Pre-Training and Initialization in Federated Learning

John Nguyen, Jianyu Wang|arXiv (Cornell University)|Oct 14, 2022
Privacy-Preserving Technologies in DataComputer Science13 citations
TL;DR

This paper investigates the impact of pre-training and model initialization in federated learning, demonstrating that starting from a pre-trained model significantly improves convergence speed, final accuracy (up to 40% higher), and robustness to both data and system heterogeneity. It shows that adaptive server optimizers like FedAdam are more critical than heterogeneity-aware methods when using pre-trained initialization, and recommends evaluating federated optimization methods under both random and pre-trained initialization settings.

ABSTRACT

An oft-cited challenge of federated learning is the presence of heterogeneity. \emph{Data heterogeneity} refers to the fact that data from different clients may follow very different distributions. \emph{System heterogeneity} refers to the fact that client devices have different system capabilities. A considerable number of federated optimization methods address this challenge. In the literature, empirical evaluations usually start federated training from random initialization. However, in many practical applications of federated learning, the server has access to proxy data for the training task that can be used to pre-train a model before starting federated training. We empirically study the impact of starting from a pre-trained model in federated learning using four standard federated learning benchmark datasets. Unsurprisingly, starting from a pre-trained model reduces the training time required to reach a target error rate and enables the training of more accurate models (up to 40\%) than is possible when starting from random initialization. Surprisingly, we also find that starting federated learning from a pre-trained initialization reduces the effect of both data and system heterogeneity. We recommend that future work proposing and evaluating federated optimization methods evaluate the performance when starting from random and pre-trained initializations. We also believe this study raises several questions for further work on understanding the role of heterogeneity in federated optimization.

Motivation & Objective

  • To investigate how model initialization—random vs. pre-trained—affects federated learning performance.
  • To evaluate the impact of pre-training on data and system heterogeneity in cross-device federated learning.
  • To determine whether existing federated optimization methods benefit more from pre-training or from heterogeneity-aware design.
  • To provide empirical and theoretical insights into why pre-training improves convergence and robustness in FL.

Proposed method

  • The authors conduct a comprehensive empirical study across 15 state-of-the-art federated optimization methods on four benchmark datasets: CIFAR-10, CIFAR-100, Stack Overflow (NLP), and Federated EMNIST.
  • They compare training dynamics and final model accuracy when starting from random initialization versus pre-trained weights obtained via supervised pre-training on public proxy data.
  • For each method and dataset, hyperparameters are tuned separately for both initialization types to ensure fair comparison.
  • The study measures convergence speed, final test accuracy, cosine similarity of client updates, and the largest Hessian eigenvalue (smoothness) at initialization.
  • They use the open-source FLSim framework to ensure reproducibility of results across diverse FL settings.
  • Theoretical analysis is supported by examining the local Lipschitz constant (largest Hessian eigenvalue) and update similarity across clients.

Experimental results

Research questions

  • RQ1How does pre-training affect the convergence speed and final accuracy of federated learning models compared to random initialization?
  • RQ2To what extent does pre-training reduce the negative impact of data and system heterogeneity in federated learning?
  • RQ3Does the choice of client optimizer matter more than the server optimizer when using pre-trained initialization?
  • RQ4How does the smoothness of the loss landscape (measured by the largest Hessian eigenvalue) differ between random and pre-trained initialization?
  • RQ5Can simple local SGD with pre-trained weights match or outperform more complex heterogeneity-aware federated optimizers?

Key findings

  • Starting from a pre-trained model reduces the number of training rounds needed to reach a target accuracy and increases final model accuracy by up to 40% compared to random initialization.
  • When initialized with pre-trained weights, the performance gap between adaptive and non-adaptive optimizers diminishes, and FedAdam at the server becomes more critical than heterogeneity-aware client methods.
  • Pre-training significantly reduces the negative impact of both non-IID data and system heterogeneity, making model performance more stable across diverse client configurations.
  • The largest Hessian eigenvalue (a proxy for local smoothness) is consistently smaller at initialization when using pre-trained weights, indicating a better-conditioned loss landscape.
  • Client updates starting from pre-trained weights show higher cosine similarity, which explains faster convergence and improved robustness in heterogeneous settings.
  • Simple local SGD with pre-trained initialization performs as well as or better than more complex local optimizers, suggesting that pre-training reduces the need for sophisticated client-side optimization.

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.