Introduction
Federated Learning (FL) faces a significant challenge in real-world deployments: data heterogeneity, or Non-IID (Non-Independent and Identically Distributed) data. In practical scenarios, data across different devices is often highly skewed. For instance, the image content on a smartphone in one geographic region may differ drastically from another.
When clients train on such diverse local datasets, their models tend to "drift" toward local optima. Standard aggregation methods like FedAvg often fail to reconcile these divergent models, resulting in a global model with poor generalizability. While existing solutions like FedProx or MOON attempt to mitigate this drift, they often struggle to maintain the delicate balance between local personalization and global consistency.
The FedSiam-DA Framework
To address these challenges, the authors propose FedSiam-DA, a dual-aggregated approach that optimizes learning at both the client and server levels.
Client-Side: Siamese Contrastive Learning
On the client side, FedSiam-DA utilizes a Siamese Network architecture. During local training, the client compares the current local model against two references: the historical local model from the previous round and the current global model.
- Contrastive Loss: The training objective encourages the local model to move closer to the global model to improve generalization, while simultaneously pushing it away from its previous local state. This "push-pull" dynamic prevents the model from stagnating in local ruts and mitigates the impact of biased local features.
- Stop-Gradient Mechanism: To prevent "model collapse"—a common issue in Siamese networks where the model stops learning meaningful features—a stop-gradient operation is employed. This ensures the model continues to extract robust, personalized features even under high data skew.
Server-Side: Dual-Aggregation Mechanism
Rather than relying on a simple weighted average, the server performs a two-step aggregation:
- Baseline Aggregation: A standard weighted average (similar to FedAvg) creates an initial baseline global model.
- Similarity-Based Re-weighting: The server calculates the cosine similarity between each client's uploaded model and the new baseline. Models that align better with the global direction are assigned higher weights in a second aggregation step. This dynamic weighting helps the global model converge faster and reduces the influence of outlier clients.
Experimental Evaluation
The researchers evaluated FedSiam-DA using the CIFAR-10 and CIFAR-100 benchmarks. To simulate real-world heterogeneity, they used a Dirichlet distribution ($Dir(\beta)$) to partition data, testing with $\beta=0.3$ and $\beta=0.5$. A smaller $\beta$ indicates higher data imbalance and greater heterogeneity.
Key Results
FedSiam-DA demonstrated significant improvements over state-of-the-art baselines, including FedAvg, FedProx, and MOON.
- Superior Accuracy: FedSiam-DA consistently outperformed competitors on CIFAR-100, showing a widening lead as communication rounds progressed.
- Stable Convergence: Experimental results indicate that the global model loss for FedSiam-DA is significantly less volatile, suggesting a more stable training process.
- Effective Drift Mitigation: The results confirm that the combination of Siamese contrastive learning and dual-aggregation effectively handles the long-term challenges of client drift.
Conclusion and Future Work
FedSiam-DA offers a robust solution for Federated Learning under Non-IID conditions by leveraging similarity as a proxy for model quality and employing adversarial-like local training.
While promising, the approach introduces some computational complexity due to the additional projection heads and forward passes required by the Siamese architecture. Future research may focus on optimizing these computational requirements for edge devices and exploring the application of dual-aggregation to other architectures, such as Transformers. Additionally, finding automated ways to tune the contrastive loss hyperparameter ($\mu$) in "blind" federated settings remains an open challenge.
Summary updated