Abstract
Federated Learning (FL) enables collaborative model training without raw data sharing, yet it faces significant challenges from non-IID data distributions. While label shift is well-studied, domain heterogeneity—where the same class appears differently across clients—remains a major hurdle. We introduce FedCCL (Federated Dual-Clustered Feature Contrast), a framework that utilizes a dual-layer clustering strategy at the client and server levels. By replacing simple feature averaging with high-granularity clustered representations, FedCCL generates unbiased global signals, leading to superior generalization and enhanced adversarial robustness.
The Challenge of Domain Heterogeneity
Standard Federated Learning methods often assume that data is independently and identically distributed (IID). In practice, however, data is non-IID. This paper specifically addresses Domain Heterogeneity, which manifests in two primary forms:
- Intra-domain heterogeneity: Variations within a single class, such as different styles or sub-types of the same object.
- Inter-domain heterogeneity: Fundamental differences in data appearance across clients, such as comparing handwritten digits to street-view numbers.
Existing "prototype-based" methods typically average all features of a class into a single vector. This approach often loses fine-grained details and allows clients with larger datasets to disproportionately bias the global model, leading to poor performance on minority domains.
Methodology: FedCCL
FedCCL moves beyond simple averaging by implementing a dual-clustered contrastive approach designed to capture the complex "modes" of data distributions.
Dual-Clustering Workflow
The framework operates through a five-step process involving local training and server-side aggregation:
- Local Training: Clients train models using a combination of standard cross-entropy and dual-clustered contrastive losses.
- Local Clustering: Instead of one average vector, clients use the parameter-free FINCH algorithm to identify multiple clusters within each class, capturing high-granularity local information.
- Local Signal Aggregation: These cluster centers (prototypes) are communicated to the server, preserving privacy by avoiding raw data or gradient sharing.
- Global Clustering: The server performs a second round of clustering on the received local clusters. This "cluster-of-clusters" approach prevents any single dominant client from skewing the global signal.
- Model Parameter Averaging: Standard weight aggregation is performed alongside the distribution of these refined global signals.
Contrastive Loss Functions
FedCCL employs two main contrastive components to refine the feature space:
- Local Contrast: Encourages local representations to align with semantically similar clusters shared by other clients.
- Global Contrast: Aligns local features with the unbiased global clusters formed at the server level, ensuring consistency across the federation.
Experimental Evaluation
The authors evaluated FedCCL across six benchmarks, including large-scale datasets like DomainNet and multi-source digit datasets like Digit-5.
Performance and Efficiency
FedCCL consistently outperformed traditional baselines such as FedAvg, FedProx, and FedProto:
- Digit-5: Achieved 58.55% accuracy, an 8.47% improvement over FedAvg.
- DomainNet: Reached 49.95% accuracy, significantly higher than FedAvg's 37.68%.
- Efficiency: The method demonstrates faster convergence, reaching higher accuracy in fewer communication rounds than most baselines.
Adversarial Robustness
A notable finding is that the feature-contrast approach enhances robustness against adversarial attacks. In testing using FGSM attacks on MNIST, a robust variant (FedCCL+) maintained 69.90% accuracy, compared to 58.98% for the FedAvg+ baseline.
Conclusion
FedCCL addresses the limitations of simple feature averaging in heterogeneous federated environments. By leveraging dual-layer clustering, it preserves fine-grained information and ensures a fair, unbiased global model. Future work may focus on reducing the computational overhead of local clustering for low-power edge devices and exploring scalability in massive cross-device federated networks.
Summary updated