Adaptive heterogeneous federated learning

Wenke Huang, Mang Ye, Bo DuJournal of Image and Graphics 2024

Abstract

Model-heterogeneous federated learning (FL) allows participants to maintain independent model architectures, but existing approaches often require shared global models or specific public datasets. This paper introduces Adaptive Heterogeneous Federated Learning (AHF), a framework that enables collaborative learning across diverse architectures and non-IID data distributions. AHF utilizes random noise as a communication medium to align model logits and employs adaptive weighting at both participant and sample levels to distill diverse knowledge. Experimental results on Digits and Office-Caltech benchmarks show that AHF outperforms state-of-the-art methods in both intra-domain accuracy and cross-domain generalization.

Introduction

Standard Federated Learning (FL) algorithms, such as FedAvg, typically necessitate a uniform model architecture across all participating clients. This requirement is often impractical due to hardware constraints and the desire to protect proprietary model designs. Furthermore, real-world data is frequently non-IID, leading to significant domain gaps between participants.

Challenges of model and data heterogeneity in Federated Learning.

Existing solutions for model heterogeneity often rely on a shared global model or a "related" public dataset to align different models. However, finding a suitable public dataset is often impossible. AHF addresses these challenges by enabling communication through unrelated data (e.g., random noise) while managing discrepancies caused by diverse data distributions.

Methods

The AHF framework facilitates communication by aligning the logits (raw output distributions) of heterogeneous models.

Communication via Unrelated Data

Instead of sharing model parameters, participants share predictions on a set of unrelated "bridge" data. The authors demonstrate that even random noise can serve as an effective medium for models to exchange internal logic.

Adaptive Weighting Strategies

To handle data heterogeneity, AHF implements two levels of adaptive weighting:

  1. Participant-Level: Dissimilarity between participants is measured using cosine similarity of logit outputs. Participants with unique knowledge (higher dissimilarity) are assigned higher weights.
  2. Sample-Level: The system calculates the variance of model outputs for each sample. Samples that provoke high variance are considered "meaningful" and prioritized, while low-variance samples are filtered out.
The AHF framework: workflow for bridging heterogeneous models using random noise and adaptive weighting.

Local Knowledge Distillation

To prevent "catastrophic forgetting" of local data while learning from the ensemble, AHF uses local knowledge distillation to balance global knowledge acquisition with local expertise.

Results and Discussion

AHF was evaluated on the Digits (MNIST, USPS, SVHN, SYN) and Office-Caltech benchmarks.

  • Performance: In the Digits scenario using random noise, AHF achieved an average accuracy of 87.39%, outperforming FedMD (81.31%).
  • Generalization: For Office-Caltech, AHF reached a generalization accuracy of 26.56% on unseen data, nearly double the performance of older baseline methods.
  • Robustness: The method proved stable even when the public bridge data was biased or limited.

Conclusion

AHF provides a robust and flexible baseline for heterogeneous federated learning. By using random noise as a communication bridge and employing adaptive weighting, it effectively manages both model and data heterogeneity without the need for curated public datasets. Future work will explore extending this collaboration to intermediate feature layers for deeper knowledge exchange.

Summary updated

BibTeX
@article{huang2024adaptive,
  author = {Wenke Huang and Mang Ye and Bo Du},
  title = {{Adaptive heterogeneous federated learning}},
  journal = {Journal of Image and Graphics},
  year = {2024},
  doi = {10.11834/jig.230239},
}
Figure