Introduction
Federated Learning (FL) enables multiple decentralized clients, such as mobile devices or medical institutions, to collaboratively train a shared model without exposing their private raw data. However, a significant challenge in FL is data heterogeneity, particularly feature skew or domain shift. In these scenarios, different clients may possess data for the same labels that vary significantly in visual style—for example, one client might have handwritten digits while another has street-view house numbers.
Standard FL algorithms often struggle with domain shift because they attempt to force diverse local features into a single, global representation. While recent "prototype-based" methods attempt to mitigate this by sharing representative feature clusters, they frequently treat all clusters as equally important, regardless of sample size or relevance. This often leads to "forced alignment" with dissimilar domains, resulting in poor generalization and unstable convergence.
Methodology: FedPLCC
To address these limitations, we propose FedPLCC (Federated Prototype Learning with Convergent Clusters). This method introduces two primary innovations designed to handle domain-heterogeneous data more effectively.
1. Weighted Prototype Clustering
Unlike previous methods that treat every local cluster equally, FedPLCC records the number of samples each prototype represents. During server-side aggregation, prototypes are weighted by their respective sample counts. This ensures that small clusters of outliers do not exert disproportionate influence on the global model, leading to more robust global prototypes. The framework utilizes the FINCH clustering algorithm to generate these local prototypes organically.
2. Top-k Selection Mechanism
A core issue in existing prototype methods is that clients attempt to align their local features with every global prototype of the same class. FedPLCC argues that if a global prototype from a different domain is too dissimilar, forcing alignment is counterproductive. We implement a top-k selection mechanism using a hyper-parameter ($\phi$) to align local features only with the most similar subset of global prototypes. This allows features to converge naturally into distinct, label-specific sub-clusters rather than a single, noisy aggregate. Additionally, $\alpha$-sparsity is utilized in similarity calculations to sharpen focus and reduce noise from irrelevant prototypes.
3. Convergent Loss Function
The total objective function combines standard Cross-Entropy for local classification with a contrastive loss to separate different classes and a specialized "convergent" loss. This convergent loss pulls similar domains of the same class together while avoiding the pitfalls of over-alignment.
Experimental Evaluation
We evaluated FedPLCC against several state-of-the-art (SOTA) methods, including FedAvg, FedProx, and FedPLVM, across three benchmark datasets:
- Digit-5: Five distinct digit datasets (MNIST, USPS, SVHN, etc.).
- Office-10: Four domains of office objects (Amazon, DSLR, Webcam, Caltech).
- DomainNet: A large-scale dataset featuring six domains (Clipart, Painting, Real, etc.).
Performance Results
FedPLCC consistently outperformed existing methods across all benchmarks. On the Digit-5 dataset, it achieved an average accuracy of 80.09%, a substantial improvement over FedAvg (60.39%) and the previous leader, FedPLVM (75.52%). Similar gains were observed in Office-10 (78.34%) and DomainNet (49.61%).
Beyond raw accuracy, t-SNE visualizations indicated that FedPLCC produces tighter, more distinct clusters for each class. This suggests that the top-k selection and weighted aggregation successfully mitigate the "smearing" effect often seen in other federated learning approaches under domain shift.
Conclusion
FedPLCC offers a significant advancement in federated learning for heterogeneous environments. By prioritizing organic convergence over forced alignment and weighting prototypes by sample density, the method achieves higher accuracy and better stability. Future work will focus on improving local feature extraction for complex datasets like DomainNet and further refining hyper-parameter tuning for unseen domains.
Summary updated