Continual Local Training for Better Initialization of Federated Models

Xin Yao, Lifeng Sun

Introduction

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models on decentralized data while preserving privacy. However, the standard optimization algorithm, Federated Averaging (FedAvg), faces significant challenges when data is non-identically and independently distributed (non-IID) across clients. In these heterogeneous environments, local models tend to drift toward local optima, a phenomenon known as weight divergence. This drift results in a global model that performs poorly, particularly in its "initial performance" before any local fine-tuning occurs.

To address this, researchers have introduced FedCL (Federated Continual Learning). This approach reframes the federated optimization problem through the lens of continual learning, treating the global model's knowledge as a prior task that must be preserved during local updates.

The FedCL Framework

FedCL introduces a "local continual training" strategy designed to regularize local updates without the massive communication overhead or privacy risks associated with previous methods like FedCurv.

Importance Estimation via Proxy Data

Unlike methods that require clients to compute parameter importance—which can double communication costs—FedCL utilizes a small proxy dataset (approximately 1% of the total data) stored on the central server. The server uses this data to calculate the importance of each model parameter ($\Omega$) via the diagonal of the Fisher information matrix. This technique is adapted from Elastic Weight Consolidation (EWC), a standard method for preventing catastrophic forgetting in continual learning.

Constrained Local Training

During each communication round, the server transmits these importance weights to the clients. Local training is then guided by a modified loss function:

$$L_k(\theta_k) = L_{local}(\theta_k) + \lambda \sum \Omega_{ij}(\theta_{k,ij} - \theta_{g,ij})^2$$

This penalty term ensures that parameters deemed "important" by the global proxy data remain close to the global model's values ($\theta_g$), while allowing less critical parameters to adapt to local data. To further optimize bandwidth, the server can update and transmit these weights every $N$ rounds (e.g., $N=10$) with minimal impact on performance, as parameter importance tends to be temporally stable.

Experimental Evaluation

FedCL was evaluated on the MNIST and CIFAR-10 datasets. To simulate varying degrees of data heterogeneity, the researchers used a Dirichlet distribution with a concentration parameter $\alpha$. A smaller $\alpha$ indicates a more extreme non-IID setting.

Accuracy vs. communication rounds for MNIST and CIFAR-10 under varying levels of data heterogeneity (α).

Key Results

FedCL demonstrates superior performance over both FedAvg and FedProx across multiple metrics:

  • Faster Convergence: FedCL significantly reduces the number of communication rounds needed to reach target accuracy. On MNIST, it reached 98% accuracy in 56 rounds, compared to 106 for FedAvg. On CIFAR-10, it reached 79% accuracy in 244 rounds, whereas FedAvg required 479.
  • Higher Initial Accuracy: In highly non-IID settings ($\alpha = 1$), FedCL achieved an initial global accuracy of 82.59% on CIFAR-10, outperforming FedAvg's 79.23%.
  • Communication Efficiency: By using the interval update trick ($N=10$), FedCL maintains its performance gains while adding only about 5% extra communication overhead.
Communication rounds required to reach target accuracy thresholds (98% for MNIST, 79% for CIFAR-10).

Discussion and Future Work

The success of FedCL highlights the potential of treating federated learning as a continual learning problem. The use of a tiny proxy dataset proves to be a highly efficient way to guide decentralized optimization.

However, the requirement for a server-side proxy dataset may pose challenges for strictly zero-knowledge privacy applications. Future research could explore how the composition and potential bias of this proxy data affect the global model. Additionally, integrating other continual learning techniques, such as Synaptic Intelligence (SI), could further refine the FedCL framework for even more complex, heterogeneous environments.

Summary updated

BibTeX
@inproceedings{yao2020continual,
  author = {Xin Yao and Lifeng Sun},
  title = {{Continual Local Training for Better Initialization of Federated Models}},
  booktitle = {ICIP},
  year = {2020},
  doi = {10.1109/icip40778.2020.9190968},
}
Figure