Abstract
Federated Learning (FL) typically assumes the availability of labeled data at the client side. However, in many real-world applications, data is abundant but unlabeled, and privacy constraints prevent access to the original source data used for pre-training. This paper presents FedWCA (Federated Weighted Cluster Aggregation), a novel framework for Federated Source-Free Domain Adaptation (FFREEDA). FedWCA employs parameter-free client clustering and a weighted model aggregation strategy to adapt models to diverse, unlabeled target domains. Experimental results on Digit-Five, PACS, and Office-Home benchmarks demonstrate that FedWCA significantly outperforms existing federated learning methods.
Introduction
Machine learning deployment faces two significant bottlenecks: data privacy and the prohibitive cost of manual labeling. While Federated Learning (FL) addresses privacy by keeping data on local devices, most existing algorithms rely on labeled datasets. In domains like medical imaging or surveillance, clients often possess vast amounts of unlabeled data across varying environments—a phenomenon known as domain shift.
The authors address the Federated Source-Free Domain Adaptation (FFREEDA) problem, where a server distributes a pre-trained source model to clients who only have unlabeled data from different domains. The objective is to personalize models for each client by leveraging collective knowledge without compromising privacy.
Methodology: The FedWCA Framework
FedWCA is built upon three core components designed to handle domain heterogeneity and lack of supervision:
1. Private, Parameter-free Client Clustering
To manage domain shifts, the server must identify similar clients. FedWCA clusters clients based on the weights of the first layer of their local feature extractors. The authors observed that shallow layers capture domain-specific "style" (e.g., lighting, texture), while deeper layers capture semantic content. By using the FINCH algorithm, the clustering process remains parameter-free, avoiding the need to pre-specify the number of clusters.
2. Weighted Cluster Aggregation (WCA)
Unlike standard Federated Averaging, which treats all client updates equally, WCA creates "soft" cluster models. Each client computes personalized weights to aggregate these cluster models based on how well their local data aligns with the cluster's features. This alignment is measured using Soft Neighborhood Density (SND), ensuring that the resulting global knowledge is relevant to the client's specific unlabeled data.
3. Enhanced Local Adaptation
Clients fine-tune their received models using an improved pseudo-labeling strategy. To prevent the model from overfitting to noisy labels or forgetting global knowledge, pseudo-labels are held constant for the duration of a communication round ("round-fixed" labels). Furthermore, a Mixup strategy is employed to interpolate between high-confidence and low-confidence samples, enhancing the robustness of the local training process.
Experimental Evaluation
The performance of FedWCA was evaluated on three multi-domain benchmarks: Digit-Five, PACS, and Office-Home. These datasets represent a wide range of domain shifts, from digit styles to artistic renderings and real-world object categories.
As shown in the results, FedWCA consistently outperforms baselines such as FedAvg and LADD. For instance, on the Digit-Five dataset, FedWCA achieved an average accuracy of 77.86%, compared to 70.76% for FedAvg. On the PACS dataset, it reached 78.38%, a nearly 5% improvement over the next best method.
Conclusion and Future Work
FedWCA demonstrates that effective domain adaptation in a federated, source-free, and unsupervised setting is achievable through intelligent clustering and weighted aggregation. Key insights include the importance of shallow layers for domain identification and the stability provided by round-fixed pseudo-labeling. Future research may explore scaling this approach to more complex tasks like object detection and reducing the communication overhead associated with distributing multiple cluster models.
Summary updated