Introduction
Federated Learning (FL) has emerged as a critical paradigm for training machine learning models on decentralized data while preserving privacy. However, most FL frameworks rely on labeled data, which is often scarce or expensive to obtain in real-world distributed settings. Unsupervised Federated Learning (UFL) addresses this "label desert" but faces significant hurdles: data heterogeneity (non-IID data) and privacy risks associated with sharing data features.
FedX is a novel UFL framework that enables decentralized devices to learn high-quality representations without labels or feature sharing. By employing a "two-sided knowledge distillation" approach, FedX mitigates biases from heterogeneous local data and outperforms existing unsupervised methods.
Methodology: Two-Sided Knowledge Distillation
The core of FedX is its two-sided knowledge distillation framework, which can be integrated into existing unsupervised algorithms like SimCLR, MoCo, or BYOL.
Local Knowledge Distillation
Local distillation focuses on learning robust features from a client's own data. It utilizes two components:
- Contrastive Loss: Ensures that different augmentations (views) of the same image result in similar embeddings.
- Relational Loss: This acts as the framework's "secret sauce." Instead of just looking at one image at a time, the model analyzes how an image relates to a random batch of other images. It ensures these relationships remain consistent across different views, helping the model learn the underlying data structure more quickly.
Global Knowledge Distillation
To counteract local bias, FedX uses the aggregated Global Model as a teacher. The local model treats the Global Model’s output as a "third view" of the data. By distilling knowledge from the global model back into the local one, the local model is regularized—it learns to align its local "perspective" with the broader global distribution without ever seeing another client's data.
Experimental Evaluation
FedX was evaluated on standard benchmarks (CIFAR-10, SVHN, F-MNIST) under non-IID conditions simulated via a Dirichlet distribution to ensure each client received a unique, biased mix of data classes.
Key Results
- Performance Gains: FedX improved top-1 accuracy by 1.58 to 5.52 percentage points across all datasets compared to vanilla UFL baselines.
- Efficiency: The relational loss component led to faster convergence, reaching higher accuracy levels earlier in training compared to standard federated versions of SimCLR or BYOL.
- Robust Representations: In semi-supervised tests with only 1% labeled data, FedX-trained models significantly outperformed baselines, demonstrating that the unsupervised representations it learns are highly practical for downstream tasks.
Conclusion and Future Work
FedX provides a robust, "plug-and-play" solution for unsupervised federated learning. While it introduces some computational overhead due to the dual-model distillation process, its ability to learn unbiased representations from private, unlabeled data is a significant step forward. Future research will explore its scalability to larger datasets like ImageNet and its application in complex domains such as IoT networks or multi-hospital medical imaging collaborations.
Summary updated