Introduction
Federated Learning (FL) aims to train a global model across decentralized devices while maintaining data privacy. However, real-world applications face significant challenges due to data and model heterogeneity. Clients often possess non-IID (Independent and Identically Distributed) data and utilize diverse model architectures, such as MobileNet or ResNet. This heterogeneity prevents simple weight averaging, a staple of traditional FL algorithms like FedAvg.
To address this, researchers have turned to prototype-based learning, where clients share class-wise feature centroids (prototypes) instead of model weights. While promising, this approach suffers from a critical issue: prototype margin shrinkage.
The Prototype Margin Shrinkage Problem
In heterogeneous FL, averaging prototypes from diverse models and data distributions often blurs the boundaries between classes. This phenomenon, termed "Prototype Margin Shrinkage," results in a global model with reduced discriminative power. As illustrated in the radar chart below, standard aggregation methods lead to a significant reduction in the margins between class representatives compared to local maximums.
FedProtoKD is designed to recover and even expand these margins, ensuring that the global knowledge remains highly separable and effective for all participating clients.
The FedProtoKD Framework
The FedProtoKD framework introduces a dual-distillation mechanism combined with adaptive prototype generation to overcome the limitations of static prototype averaging.
The system architecture consists of three primary innovations:
- Adaptive Class-Wise Margin-Based Trainable Prototype (ACTP): Instead of simple averaging, the server employs a contrastive learning-based generator to synthesize global prototypes. ACTP applies an adaptive margin for each class—tighter for naturally similar classes and wider for distinct ones—preventing over-regularization and maintaining class separability.
- Dual Knowledge Distillation: The framework utilizes unlabeled public data to share both high-level class relationships (via logits) and fine-grained feature representations (via prototypes). This dual-branch approach ensures robust knowledge transfer across heterogeneous architectures.
- Quality-Aware Sample Prioritization: To optimize the distillation process, FedProtoKD weights public data samples based on their quality, determined by prediction confidence and geometric proximity to class prototypes.
Additionally, learnable projection layers are used to map features from diverse architectures into a unified space, facilitating seamless aggregation.
Experimental Evaluation and Results
The authors evaluated FedProtoKD on CIFAR-10, CIFAR-100, and Tiny-ImageNet benchmarks under varying degrees of data heterogeneity. The results demonstrate significant improvements over state-of-the-art methods:
- Accuracy: FedProtoKD achieved up to a 34.13% improvement in accuracy in extreme heterogeneity scenarios, with an average gain of 1.13% across all tests.
- Convergence: The method exhibits superior convergence speed. On CIFAR-10, FedProtoKD reached 60% accuracy in just 13 rounds, whereas competing methods like FedPKD required 45 rounds.
- Robustness: The framework maintained stable performance even with low client participation rates (e.g., 20%).
Qualitative analysis using t-SNE visualizations confirms that FedProtoKD maintains distinct, well-separated class clusters, whereas other methods often result in overlapping or "collapsed" clusters.
Conclusion
FedProtoKD effectively addresses the prototype margin shrinkage problem in heterogeneous federated learning. By combining adaptive margin-based prototype generation with dual knowledge distillation, it enables diverse models to collaborate effectively without sacrificing discriminative performance. While it relies on a small set of public proxy data, its significant gains in accuracy and convergence speed make it a powerful solution for real-world, heterogeneous FL environments.
Summary updated