Abstract
Federated Self-Supervised Learning (F-SSL) allows multiple clients to collaboratively train visual representation models on unlabeled data without sharing raw information. However, real-world data heterogeneity (Non-IID) causes significant client drift, where local models diverge from the global objective. Standard aggregation methods like FedAvg, which weight clients based on data volume, often fail to mitigate this drift, leading to biased and unstable global models. We propose L-DAWA (Layer-wise Divergence Aware Weight Aggregation), a strategy that utilizes angular divergence to weight client contributions at a granular, layer-wise level. By scaling down divergent layers and prioritizing those aligned with the global model's trajectory, L-DAWA achieves state-of-the-art performance, improving accuracy by up to 6.25% on standard benchmarks while maintaining computational efficiency.
Introduction: The Challenge of Heterogeneity in F-SSL
Training robust visual models typically requires vast amounts of labeled data. Self-Supervised Learning (SSL) circumvents this by learning from unlabeled data through pretext tasks, such as ensuring different augmentations of the same image yield similar features. Federated Learning (FL) extends this by enabling privacy-preserving collaborative training. The intersection, F-SSL, is promising but hampered by Non-IID data distributions. When clients have vastly different data, their local models "drift" into different regions of the parameter space. Existing aggregation methods often treat the entire model as a single unit, ignoring the fact that different layers (e.g., early convolutional layers vs. late-stage projection heads) diverge at different rates.
L-DAWA: A Layer-wise Approach to Aggregation
L-DAWA addresses client drift by calculating the angular divergence (cosine distance) between each layer of a client's local model and the corresponding layer in the previous global model. Instead of relying solely on sample counts, the server assigns weights based on how well a layer's update aligns with the global trajectory.
This layer-wise granularity allows the system to be more selective. If a specific layer in a client's model has drifted significantly due to local data bias, its contribution to the global update is minimized. Conversely, layers that remain well-aligned are given higher priority. Crucially, L-DAWA is privacy-preserving, requiring only model weights and no additional metadata like local loss or sample counts.
Key Insights: Smoothing the Optimization Landscape
A key advantage of L-DAWA is its ability to stabilize the training process. By dampening the "oscillations" caused by outlier clients, L-DAWA guides the global model toward a more stable optimum. Visualizations of the loss landscape demonstrate that L-DAWA helps the model navigate toward wider, flatter minima, which is generally associated with superior generalization.
Performance and Efficiency
The method was evaluated using CIFAR-10, CIFAR-100, and Tiny ImageNet datasets. L-DAWA consistently outperformed existing state-of-the-art aggregation methods. Under linear evaluation protocols, it achieved improvements of 5.21% on CIFAR-10, 6.19% on CIFAR-100, and 6.25% on Tiny ImageNet. Furthermore, L-DAWA proved to be highly efficient. While model-wise divergence calculations can be computationally heavy, the layer-wise approach is approximately 60x to 78x faster, making it suitable for practical federated deployments on edge devices.
Conclusion
L-DAWA provides a robust and efficient solution for the challenges of Non-IID data in Federated Self-Supervised Learning. By moving from coarse model-level aggregation to fine-grained layer-wise weighting based on angular divergence, it effectively mitigates client drift and improves model performance. Future work will explore L-DAWA's effectiveness in even more extreme environments, such as those with varying hardware constraints or highly noisy data.
Summary updated