Abstract
Federated Learning (FL) is a rising approach towards collaborative and privacy-preserving machine learning where large-scale medical datasets remain localized to each client. However, the issue of data heterogeneity among clients often compels local models to diverge, leading to suboptimal global models. To mitigate the impact of data heterogeneity on FL performance, we start with analyzing how FL training influence FL performance by decomposing the global loss into three terms: local loss, distribution shift loss and aggregation loss. Remarkably, our loss decomposition reveals that existing local training-based FL methods attempt to reduce the distribution shift loss, while the global aggregation-based FL methods propose better aggregation strategies to reduce the aggregation loss. Nevertheless, a comprehensive joint effort to minimize all three terms is currently limited in the literature, leading to subpar performance when dealing with data heterogeneity challenges. To fill this gap, we propose a novel FL method based on global loss decomposition, called FedLD, to jointly reduce these three loss terms. Our FedLD involves a margin control regularization in local training to reduce the distribution shift loss, and a principal gradient-based server aggregation strategy to reduce the aggregation loss. Notably, under different levels of data heterogeneity, our strategies achieve better and more robust performance on retinal and chest X-ray classification compared to other FL algorithms.
Introduction
Federated Learning (FL) offers a promising path for multi-institutional collaboration in healthcare by training shared models without moving sensitive patient data. However, the "non-IID" (not independent and identically distributed) nature of real-world medical data—where different hospitals may have varying patient demographics or imaging protocols—presents a significant challenge. This data heterogeneity causes local models to drift toward institution-specific "shortcuts," making simple model averaging at the central server ineffective.
While previous research has attempted to address this through either client-side regularization or server-side aggregation improvements, few frameworks address the problem holistically. This paper introduces FedLD (Federated Learning via Loss Decomposition), a method that treats data heterogeneity as a multi-faceted optimization problem.
Methodology: The FedLD Framework
The core of FedLD is a mathematical decomposition of the global loss into three distinct components:
- Local Loss: The error of the model on the client's own data.
- Distribution Shift Loss: The error caused by the model's inability to generalize to other clients' data distributions.
- Aggregation Loss: The penalty incurred when the server combines conflicting gradients from diverse clients.
Local Strategy: Margin Control Regularization
To minimize distribution shift loss, FedLD implements a "margin control" technique. Local models often overfit to unstable correlations (shortcuts) unique to their specific dataset. By penalizing the $l_2$-norm of the output logits, FedLD discourages the model from relying on these high-confidence but non-generalizable features, forcing it to learn more robust, stable representations.
Server Strategy: Principal Gradient Aggregation
To address aggregation loss, the server moves beyond simple averaging. It employs Singular Value Decomposition (SVD) to identify "principal gradients"—the directions of update that represent the strongest consensus among all clients. By filtering out the "noise" of conflicting local updates, the server ensures the global model moves in a direction that benefits the collective network.
Experimental Results
The researchers evaluated FedLD against several state-of-the-art baselines, including FedAvg, FedProx, FedBN, and FedPAC, using two primary medical imaging datasets:
- Retina Dataset: Simulating varying levels of label shift (heterogeneity) across 5 clients.
- COVID-FL Dataset: A real-world federated dataset with 12 clients exhibiting both label and feature shifts.
As shown in the results, FedLD consistently outperforms existing methods. On the Retina dataset with high heterogeneity (Split-3), FedLD achieved an accuracy of 82.30%, compared to 81.13% for FedAvg. In the real-world COVID-FL scenario, FedLD reached 83.87% accuracy, demonstrating superior robustness to both feature and label shifts.
Conclusion
FedLD provides a comprehensive solution to the data heterogeneity problem in Federated Learning by simultaneously targeting local distribution shifts and server-side aggregation conflicts. By grounding the framework in a formal loss decomposition, the authors provide both a theoretical foundation and a practical, high-performing algorithm for collaborative medical AI. Future work may focus on optimizing the computational overhead of the SVD process and exploring hyperparameter sensitivity across more diverse data modalities.
Summary updated