Abstract
Federated Self-Supervised Learning (FedSSL) represents a promising frontier for training robust computer vision models on decentralized, unlabeled data. However, the performance of FedSSL is often hampered by the "non-IID" (non-independent and identically distributed) nature of local data, where local model updates diverge significantly from the global objective. This paper presents FedEMA (Federated Divergence-aware Exponential Moving Average), a novel framework that adaptively balances local and global knowledge. By employing a divergence-aware update mechanism, FedEMA achieves a 3–4% accuracy improvement over state-of-the-art methods, demonstrating superior resilience to data heterogeneity.
Introduction
Self-supervised learning (SSL) has fundamentally changed the landscape of computer vision by enabling models to learn high-quality representations from raw images without the need for manual labels. Traditionally, SSL requires centralized data silos. However, in many real-world scenarios—such as mobile devices or medical imaging—data is distributed across numerous clients and cannot be centralized due to privacy and bandwidth constraints.
Federated Learning (FL) offers a solution to this decentralization, but its application to SSL faces a critical challenge: non-IID data. When local clients possess highly skewed data distributions (e.g., one client seeing only one class of objects), the resulting local models diverge. Standard federated averaging often "washes out" these specialized local features, leading to a global model that performs poorly across the board. FedEMA addresses this by treating local divergence not as an error to be corrected, but as a source of specialized knowledge to be managed adaptively.
Methodology: The FedEMA Framework
Generalized FedSSL
The authors first establish a generalized framework for FedSSL that accommodates popular "Siamese" architectures such as SimCLR, MoCo, BYOL, and SimSiam. These architectures typically involve two branches—an online network and a target network—that learn by predicting different views of the same image.
Divergence-aware Exponential Moving Average (EMA)
The core innovation of this work is the Federated Divergence-aware Exponential Moving Average (FedEMA). In standard FL, the server periodically replaces local model weights with the global average. FedEMA replaces this hard update with a "soft" adaptive update:
- Measuring Divergence: The system calculates the $l_2$ distance between the local client model and the aggregated global model to quantify how far the local training has drifted.
- Adaptive Decay ($\mu$): This distance determines the decay rate for an Exponential Moving Average. If the divergence is high, the system assumes the local model has developed valuable specialized features and retains more of the local weights. If the divergence is low, it incorporates more of the global model to improve generalization.
- The Autoscaler: To eliminate the need for manual hyperparameter tuning, the authors include an "autoscaler" that automatically calibrates the sensitivity of the update mechanism based on the observed distribution of divergence across clients.
Experimental Setup
FedEMA was evaluated using the CIFAR-10 and CIFAR-100 benchmarks. To simulate a realistic decentralized environment, the researchers employed a non-IID partitioning strategy where each client was restricted to seeing only a small subset of classes (e.g., 2 out of 10 classes in CIFAR-10). This setup forces the models to contend with extreme data skewness, providing a rigorous test for the divergence-aware mechanism.
Key Insights and Results
Performance Gains
FedEMA demonstrated significant performance improvements across multiple metrics. On CIFAR-10 with highly skewed data, FedEMA achieved a linear evaluation accuracy of 83.34%, outperforming the baseline FedBYOL (79.44%) and other specialized methods like FedU.
Robustness in Semi-Supervised Settings
The representations learned by FedEMA proved exceptionally robust when fine-tuned with limited labels. In tests using only 1% of labeled data, FedEMA maintained a significant lead over its competitors, suggesting that the divergence-aware approach learns more fundamental and transferable features than standard averaging.
The Role of the Target Encoder
A key finding of the study is that the "target network"—the branch of the Siamese network that does not receive gradient updates—serves as the most effective reservoir for storing and transferring knowledge between the local and global training stages. Furthermore, the authors observed that the act of federated aggregation itself serves as a natural regularizer, making the "stop-gradient" operation (usually essential in centralized SSL) less critical in a federated context.
Conclusion and Future Work
FedEMA provides a robust solution to the non-IID problem in Federated Self-Supervised Learning by adaptively blending local expertise with global generalization. While the results on CIFAR benchmarks are compelling, the authors identify several avenues for future research:
- Scaling: Testing the framework on larger, more complex datasets like ImageNet.
- Efficiency: Integrating FedEMA with communication compression techniques to reduce the bandwidth requirements of frequent model exchanges.
- Systemic Challenges: Adapting the framework for "cross-device" FL, where client availability is intermittent and devices may drop out during training.
By successfully navigating the tension between local specialization and global consensus, FedEMA moves us closer to a practical, privacy-preserving "holy grail" of machine learning: high-performance models trained entirely on decentralized, unlabeled data.
Summary updated