Abstract
Federated Learning (FL) is a distributed machine learning paradigm that enables training on decentralized data while preserving privacy. However, its efficiency is often hampered by data heterogeneity (non-IID) and the limitations of random model initialization. This paper introduces CyclicFL, a two-phase framework that incorporates a cyclic pre-training stage. By sequentially training a model across a subset of actual client devices before commencing standard parallel FL, CyclicFL establishes a superior initialization that reflects the target data distribution. Our evaluation shows that CyclicFL not only accelerates convergence but also enhances final model accuracy by up to 14.11%, demonstrating broad compatibility with existing FL algorithms like FedAvg, FedProx, and SCAFFOLD.
Introduction
Federated Learning (FL) aims to train models across distributed devices, such as smartphones or IoT sensors, without centralizing raw data. Despite its promise, FL faces two primary challenges:
- Data Heterogeneity (Non-IID): Variations in data distribution across devices cause local models to diverge, hindering global consensus.
- Initialization Sensitivity: Randomly initialized models often start on "sharp" loss landscapes, leading to unstable gradients and slow convergence.
While centralized pre-training can mitigate these issues, it requires large, representative "proxy" datasets that are often unavailable in real-world AIoT scenarios. CyclicFL addresses this by using the actual client data for a "warm-up" phase.
Methodology: The CyclicFL Framework
CyclicFL operates in two distinct phases:
Phase 1: Cyclic Pre-training (P1)
Instead of immediate parallel training, the server selects a subset of devices for a sequential "relay race." The model is dispatched to the first device, undergoes local SGD updates, and is then passed to the next device in the subset. This cycle repeats for a set number of rounds ($T$). This sequential approach allows the model to capture a "transferable consensus" of the feature space directly from the target data distribution.
Phase 2: Standard Federated Learning (P2)
The well-initialized model from Phase 1 serves as the starting point for standard parallel FL algorithms. Because the model has already "learned" the general characteristics of the task, the subsequent parallel updates are more stable and converge significantly faster.
Key Insights: The Flatness Factor
Theoretical analysis suggests that CyclicFL ensures "data consistency" and limits the Lipschitzness of the loss function. Visually, this translates to a flatter loss landscape compared to random initialization. In a flatter landscape, small weight updates do not cause drastic swings in loss, making the parallel aggregation in Phase 2 more robust against the noise introduced by non-IID data.
Experimental Results
The researchers evaluated CyclicFL on benchmarks including FEMNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100.
Accuracy and Convergence
CyclicFL demonstrated substantial improvements in both final accuracy and convergence speed. For instance, on CIFAR-100 (Coarse), it outperformed standard FedAvg by 14.11%. In terms of speed, CyclicFL reached target accuracies on FEMNIST in roughly 1/8th the rounds required by standard baselines.
Plug-and-Play Compatibility
A significant advantage of CyclicFL is its compatibility with various FL optimization algorithms. As shown in the performance curves, integrating the cyclic pre-training phase consistently boosts the performance of FedAvg, FedProx, SCAFFOLD, and Moon.
Conclusion
CyclicFL provides a practical and effective solution for initializing Federated Learning models in data-heterogeneous environments. By leveraging a small amount of sequential pre-training on actual client data, it "flattens" the optimization landscape, leading to faster convergence and higher final accuracy. Future work will explore adaptive client selection for the cyclic phase and applications in Natural Language Processing.
Summary updated