TL;DR
This paper introduces FedHydra, a novel framework for One-Shot Federated Learning (OSFL) that effectively tackles both data and model heterogeneity, a significant challenge in existing OSFL methods. By employing a two-stage approach of "Model Stratification" and "Heterogeneity-Aware Stratified Aggregation," FedHydra achieves superior performance across various datasets and heterogeneity levels, making OSFL more practical for real-world applications.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple clients to collaboratively train a global model without sharing their private data, offering enhanced privacy and security. However, traditional FL often requires multiple communication rounds, which can be inefficient and increase privacy risks. One-Shot Federated Learning (OSFL) aims to solve this by limiting communication to a single round, significantly reducing costs and privacy concerns.
Despite this improvement, existing OSFL methods struggle with heterogeneity, a common issue in real-world FL scenarios. This heterogeneity can manifest in two main ways:
- Data Heterogeneity: Clients may have different amounts of data (size heterogeneity) or different distributions of classes (label heterogeneity). This can lead to biased global models or poor performance.
- Model Heterogeneity: Clients might use different model architectures.
While some OSFL approaches address one type of heterogeneity, few effectively handle both simultaneously. This paper tackles this gap by proposing FedHydra, a unified framework designed to be robust against both data and model heterogeneity in a single-shot setting.
Methods
FedHydra introduces a novel two-stage learning mechanism:
- Model Stratification (MS): This stage assesses each client model's classification capability across all class labels. It uses an auxiliary generator model to evaluate how well each client can guide the generation of data for specific classes. This process results in two weight matrices: one indicating a client's capability across all classes, and another showing a class's reliance on different clients. This stratification helps understand and quantify the heterogeneity present.
- Heterogeneity-Aware Stratified Aggregation (HASA): This stage builds upon the insights from MS to aggregate client models and train the global model. HASA has two phases:
- Data Generation: A generator is trained to produce synthetic data. This generation is guided by the stratified aggregation (SA) of client predictions, ensuring the synthetic data reflects the aggregated client knowledge.
- Model Distillation: The global model is trained using the generated synthetic data. This involves a combination of KL divergence loss (to distill knowledge from client ensembles) and cross-entropy loss (to ensure consistency between synthetic and real data predictions).
Crucially, FedHydra is data-free, meaning it doesn't require access to the clients' original data for training the global model, further enhancing privacy. The framework aims to mitigate conflicts between data and model heterogeneity by monitoring them from different aspects during learning.
Datasets
The paper evaluates FedHydra on four widely used benchmark datasets:
- MNIST: A dataset of handwritten digits.
- FashionMNIST: A dataset of clothing articles.
- SVHN (Street View House Numbers): A dataset of house numbers.
- CIFAR-10: A dataset of 10 classes of images.
The authors simulate data heterogeneity using the Dirichlet distribution, varying the parameter $\alpha$ to control the level of heterogeneity, from homogeneous ($\alpha=0.5$) to highly heterogeneous ($\alpha=0.01$). For model heterogeneity, they use diverse architectures like GoogleNet, ResNet18, and LeNet for client models.
Key Insights and Ideas
- Unified Heterogeneity Handling: The core insight is that effectively addressing OSFL requires a holistic approach that simultaneously considers both data and model heterogeneity, rather than treating them in isolation.
- Stratification as a Diagnostic Tool: The Model Stratification stage acts as a powerful diagnostic tool, quantifying how well each client model performs on different classes. This insight is crucial for informed aggregation.
- Data-Free Generation for Privacy and Efficiency: Generating synthetic data for distillation is key to achieving data-free OSFL, preserving privacy while enabling effective knowledge transfer.
- Mitigating Conflicts: By monitoring heterogeneity from different angles (client capability and class reliance), FedHydra can minimize inherent conflicts between data and model variations, leading to a more stable and robust learning process.
Key Results
- Superior Performance: FedHydra consistently outperforms five state-of-the-art baselines (FedAvg, OT, FedDF, DENSE, Co-Boosting) across all tested datasets and heterogeneity levels.
- Robustness to Extreme Heterogeneity: FedHydra shows remarkable resilience even under highly heterogeneous settings ($\alpha=0.01$), achieving significantly higher accuracy than baselines. For example, on CIFAR-10 with $\alpha=0.01$, FedHydra reached 40.63%, outperforming Co-Boosting by 5.53%.
- Effective Stratified Aggregation: Experiments specifically designed to test the impact of Stratified Aggregation (SA) demonstrate its superiority over simple averaging ensembles, especially in challenging 2c/c (two classes per client) scenarios.
- Scalability: FedHydra exhibits minimal sensitivity to an increasing number of clients, maintaining strong performance even with up to 100 clients.
- Model Heterogeneity Handling: FedHydra effectively handles scenarios where clients use different model architectures, outperforming baselines like FedDF and DENSE in such settings.
Limitations and Future Work
- Computational Overhead: While FedHydra is designed for efficiency in communication, its two-stage approach (MS and HASA) might introduce some computational overhead on the server compared to simpler OSFL methods. The paper notes that the increase in computational complexity is considered acceptable.
- Hyperparameter Tuning: The framework involves several hyperparameters (e.g., $\lambda_1, \lambda_2$ for loss weighting), which might require careful tuning for optimal performance.
- Future Work: The authors suggest extending FedHydra's adaptability to more complex heterogeneity scenarios and further optimizing its computational efficiency. Investigating its performance in real-world, large-scale federated systems would also be a valuable next step.
Summary updated