Federated Learning with Projected Trajectory Regularization

Tiejin Chen, Yuanpu Cao, Yujia Wang, Cho-Jui Hsieh, Jinghui ChenarXiv 2023 · DOI

Introduction

Federated Learning (FL) enables multiple clients to collaboratively train a shared global model without exchanging raw data. However, the primary challenge in this decentralized setting is data heterogeneity (non-i.i.d. data). When clients possess diverse local datasets—for instance, one client having only images of cats while another has only frogs—their local updates pull the global model in conflicting directions. This phenomenon, known as "client drift," significantly degrades the performance and convergence of standard algorithms like FedAvg.

Existing solutions like FedProx or SCAFFOLD attempt to mitigate drift by regularizing local updates toward the current global model or using control variates. However, these methods often fail to capture the complex learning dynamics of the global model, especially in highly heterogeneous environments. This paper introduces FedPTR (Federated Learning with Projected Trajectory Regularization), a novel approach that uses the global model's training history to predict its future path, providing a more effective "north star" for local training.

The FedPTR Framework

FedPTR shifts the focus from where the global model is to where it is going. The framework consists of three main components:

  1. Matching Training Trajectories (MTT): FedPTR distills the recent history of global model updates into a small, synthetic auxiliary dataset. This dataset is optimized to ensure that a model trained on it mimics the trajectory of the actual global model.
  2. Projecting the Trajectory: By performing a few steps of gradient descent on this synthetic dataset, the system generates a "projected" model. This projection serves as an estimate of the global model's next state.
  3. Projected Regularization: During local training, clients are regularized to stay close to this projected model rather than the static previous global model. This ensures local updates are better aligned with the anticipated global objective.

To further refine this, the authors implement Layer-Adaptive Regularization, which adjusts the regularization strength ($\lambda$) for different layers of the neural network, acknowledging that different layers learn at varying rates. For resource-constrained environments, a server-side variant (FedPTR-S) is provided, where the server handles the synthetic data optimization to minimize client-side overhead.

Test accuracy over communication rounds for different MTT update frequencies, showing that more frequent updates lead to faster and more stable convergence.

Experimental Evaluation

The authors evaluated FedPTR against state-of-the-art baselines (FedAvg, FedProx, SCAFFOLD, FedDyn, and FedDC) using standard computer vision benchmarks: FashionMNIST, CIFAR-10, and CIFAR-100. Data heterogeneity was simulated using Dirichlet distribution sampling with $\alpha$ values of 0.01 (extreme) and 0.04 (high).

Key Results

FedPTR consistently outperformed all baselines across various participation ratios and levels of heterogeneity. As shown in the results table below, FedPTR achieves significant accuracy gains, particularly in the most challenging scenarios.

Performance comparison (Test Accuracy) across different datasets, participation ratios, and levels of data heterogeneity (Dirichlet alpha). FedPTR consistently achieves the highest accuracy.
  • Superior Accuracy: On CIFAR-10 with extreme heterogeneity ($\alpha=0.01$), FedPTR reached 69.04% accuracy, a 6.75% absolute improvement over the best baseline (FedDyn).
  • Robustness to Heterogeneity: While other methods saw performance drops of up to 16% when moving from moderate to extreme heterogeneity, FedPTR’s performance remained remarkably stable, dropping by only approximately 5%.
  • Partial Participation: In realistic settings where only 30% or 50% of clients participate per round, FedPTR maintained its lead, demonstrating resilience to the unreliability of edge devices.

Conclusion and Future Work

FedPTR demonstrates that the history of model updates contains vital information for overcoming client drift in Federated Learning. By distilling this history into a synthetic dataset and projecting the global trajectory, FedPTR provides a robust regularization target that outperforms existing methods.

Future research directions include extending this trajectory-matching approach to natural language processing tasks and further investigating the privacy implications of using synthetic data to represent global training dynamics. While FedPTR-S addresses computational concerns for clients, optimizing the initial synthetic data generation remains an area for further efficiency improvements.

Summary updated

BibTeX
@misc{chen2023federated,
  author = {Tiejin Chen and Yuanpu Cao and Yujia Wang and Cho-Jui Hsieh and Jinghui Chen},
  title = {{Federated Learning with Projected Trajectory Regularization}},
  year = {2023},
  eprint = {2312.14380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.14380},
}
Figure