Abstract Federated Learning (FL) often struggles with data heterogeneity across decentralized clients, where standard objective functions like those used in FedAvg can lead to models that perform poorly on minority groups or "outlier" distributions. Group Distributionally Robust Optimization (GDRO) offers a solution by minimizing the worst-case group loss, but its application in FL is hindered by high communication overhead and sample inefficiency. This paper introduces a suite of communication-efficient algorithms—FGDRO-CVaR and FGDRO-KL—that reformulate the robust optimization problem into a constraint-free compositional form. By utilizing moving average estimators and adaptive local updates, these methods achieve significant theoretical improvements in communication complexity (up to $10^8$) and superior empirical performance across diverse NLP and computer vision tasks.
1. Introduction
In Federated Learning, data is distributed across thousands of devices, often exhibiting significant distribution shifts. A model trained on urban hospital data, for instance, may fail when deployed in a rural clinic. Standard FL algorithms typically optimize for average performance, which can marginalize specific groups or clients with unique data distributions.
Group Distributionally Robust Optimization (GDRO) addresses this by focusing on the "worst-performing" group. However, implementing GDRO in a federated setting presents two major challenges:
- Communication Overhead: Traditional primal-dual GDRO requires frequent synchronization of high-dimensional group weights.
- Sample Inefficiency: Existing robust FL algorithms often require large batches to obtain accurate gradient estimates, which is impractical for many edge devices.
2. Methodology
The core innovation of this work is the shift from the standard primal-dual approach to equivalent compositional reformulations. By removing the simplex constraint (the requirement that client weights sum to one), the authors simplify the optimization landscape, allowing for more aggressive local updates.
2.1 FGDRO-CVaR
This variant targets the "Conditional Value at Risk" (CVaR), optimizing for the average of the top-$K$ worst-performing clients. The authors reformulate this as a two-level compositional problem using a single auxiliary scalar variable ($s$) that acts as a threshold. In this setup, only clients with losses exceeding $s$ contribute to the model update.
2.2 FGDRO-KL
FGDRO-KL utilizes Kullback-Leibler (KL) divergence as a regularizer to prevent the model from over-focusing on a single outlier. This is reformulated into a smooth three-level compositional function. To handle the inherent bias in compositional functions, the authors employ moving average estimators ($u, v, m$) to track local and global statistics, enabling the use of small, practical batch sizes.
2.3 FGDRO-KL-Adam
To further enhance performance, the authors integrated Adam-type adaptive local updates into the KL variant. This marks a significant advancement, as it is the first instance of robust compositional FL utilizing adaptive step sizes for each parameter based on historical gradients.
3. Experimental Evaluation
The researchers evaluated the proposed methods on several naturally heterogeneous datasets:
- NLP: The Pile (17 domains) and CivilComments (toxicity classification across demographics).
- Computer Vision: Camelyon17 (tumor detection), iWildCam2020 (wildlife monitoring), and PovertyMap (satellite imagery).
- Benchmarks: Cifar10 with artificial Dirichlet distributions to simulate extreme imbalance.
4. Key Results and Insights
4.1 Theoretical and Communication Efficiency
The theoretical gains are substantial. For the CVaR variant, the authors improved communication complexity from $O(1/\epsilon^{12})$ to $O(1/\epsilon^{4})$. This means that as the demand for precision ($\epsilon$) increases, the cost of the new method remains manageable compared to the exponential explosion of previous state-of-the-art methods. Furthermore, ablation studies demonstrated that these algorithms can tolerate communication intervals of up to 1024 local steps without significant performance degradation.
4.2 Empirical Performance
- NLP: On The Pile, FGDRO-KL-Adam achieved a worst-case log-perplexity of 3.608, nearly halving the error rate of standard FedAdam (7.242).
- Vision: On iWildCam2020, the method achieved a Macro F1 score of 0.5201, significantly outperforming FedAvg (0.4964) and previous robust methods like DRFA (0.4200).
Across all tasks, the FGDRO methods improved the performance of the "unlucky" clients without sacrificing the average performance of the entire network.
5. Conclusion and Future Work
This research demonstrates that reformulating GDRO into a compositional framework significantly reduces the communication and sample complexity required for robust Federated Learning. While the authors successfully developed an Adam version for the smooth KL variant, extending this to the non-smooth CVaR variant remains a challenge due to the difficulty of proving gradient accuracy with moving averages in non-smooth settings. Future work may also explore the trade-offs between robust optimization and formal Differential Privacy (DP), as well as extending the analysis to more complex, biased client sampling patterns.
Summary updated