Abstract
Federated Learning (FL) often struggles with domain discrepancy, where data distributions vary significantly between a central server and its clients. While Knowledge Distillation (KD) offers a path toward supporting heterogeneous client models, existing KD-based FL methods frequently fail when server-side unlabeled data differs from client-side private data. This paper introduces FedD3A (Domain Discrepancy Aware Distillation), a novel framework that employs an adaptive weighting mechanism based on privacy-preserving subspace projections. By identifying the most relevant "teacher" models for specific unlabeled samples, FedD3A significantly enhances model aggregation performance in cross-domain environments.
Introduction
Standard Federated Learning algorithms, such as FedAvg, typically require all clients to share a uniform model architecture and assume independent and identically distributed (IID) data. In practice, however, clients often possess heterogeneous hardware and diverse data distributions. Knowledge Distillation has emerged as a solution, allowing a server to aggregate knowledge from diverse client models into a single student model using an unlabeled public dataset.
Despite its promise, KD-based FL faces two major hurdles: Server-to-Client (S2C) discrepancy, where server data is too distinct for client models to provide useful labels, and Client-to-Client (C2C) discrepancy, where conflicting knowledge from different domains confuses the student model. FedD3A addresses these issues by intelligently weighting client contributions at the sample level.
Methodology: FedD3A
The core of FedD3A is a five-step process designed to mitigate domain discrepancy through adaptive distillation.
Subspace Projection and Teacher Screening
To maintain privacy, clients do not share raw data. Instead, each client $k$ computes a lightweight subspace projection matrix $\mathbf{P}_k$ based on their local features. When the server receives an unlabeled image $\mathbf{x}_i$, it uses these matrices to calculate a similarity score $\alpha_i$ for each client. This score identifies which client models are most likely to provide accurate "pseudo-labels" for that specific sample.
Adaptive Weighting and Distillation
Rather than simple averaging, FedD3A assigns higher weights to teacher models from domains similar to the current server sample. For instance, if a server image is a "sketch," the model trained on sketch data receives higher priority. The global student model is then updated using a Kullback-Leibler (KL) divergence loss ($\mathcal{L}_{KD}$), learning from this optimized ensemble.
Experimental Evaluation
The researchers evaluated FedD3A using multi-domain benchmarks including Digit-5 (MNIST, SVHN, etc.) and DomainNet (Clip Art, Painting, Real, etc.).
Key Results
FedD3A demonstrates superior performance across various settings:
- Accuracy Gains: On the challenging DomainNet dataset, FedD3A outperformed the state-of-the-art FedDF method by nearly 10% in cross-silo settings.
- Robustness to Non-IID Data: The method maintained a significant lead over FedAvg and FedProx in cross-device scenarios with heavily fragmented data.
- Model Heterogeneity: FedD3A successfully aggregated knowledge from diverse architectures, including VGG16, ResNet, and MobileNetV3.
As shown in the results, FedD3A not only achieves higher final accuracy but also exhibits faster convergence compared to traditional aggregation methods. The projection matrix used for this performance gain is highly efficient, adding only about 1.2% to the total communication cost for a ResNet-34 model.
Conclusion
FedD3A effectively addresses the challenge of domain discrepancy in Federated Learning. By utilizing privacy-preserving subspace projections for sample-level adaptive weighting, it enables robust knowledge distillation even when server and client data distributions differ significantly. Future work may explore data-free distillation techniques to eliminate the requirement for a public server dataset entirely.
Summary updated