Abstract
Federated Learning (FL) often faces challenges with compositional optimization (CO) problems, particularly in Distributionally Robust Optimization (DRO) settings. Existing methods suffer from bias amplification, data heterogeneity, and impractical batch size requirements. We present FedDRO, a novel FL framework that addresses these issues through embedding sharing and a hybrid momentum estimator. FedDRO achieves a linear speedup with the number of clients and maintains optimal convergence rates with small, constant batch sizes, making it highly practical for edge computing.
Introduction
Many modern machine learning goals, such as training fair models or handling imbalanced data, are formulated as Distributionally Robust Optimization (DRO) problems. Mathematically, these often take the form of Compositional Optimization (CO): $\min f(g(x))$, where $g(x)$ represents a vector of losses across different groups and $f$ is a function ensuring robust performance across those groups.
In a Federated Learning setting, solving CO is notoriously difficult due to three primary factors:
- Bias Amplification: Stochastic gradients for compositional functions are naturally biased. Local updates in algorithms like FedAvg compound this bias, often leading to model divergence.
- Data Heterogeneity: Client-specific versions of the inner function $g(x)$ differ due to local data distributions, causing significant "client drift."
- Batch Size Bottleneck: State-of-the-art methods often require batch sizes that scale with desired accuracy ($O(\epsilon^{-2})$), which is impractical for memory-constrained edge devices.
Methodology
FedDRO addresses these challenges through three primary innovations:
- Embedding Sharing: In DRO, the inner function $g(x)$ typically outputs a low-dimensional vector (an "embedding"). FedDRO requires clients to share these small embeddings with the server frequently, while high-dimensional model weights are shared intermittently. This "anchors" local updates and controls gradient bias without excessive communication costs.
- Hybrid Momentum Estimator: Instead of massive batches, FedDRO utilizes a hybrid of SARAH (a recursive gradient method) and SGD. This tracks the moving target of the inner function $g(x)$ efficiently using $O(1)$ batch sizes.
- Communication Strategy: By balancing the frequency of weight vs. embedding updates, the algorithm maintains a "linear speedup" property—the time to reach a solution scales inversely with the number of clients.
Comparative Analysis
The theoretical advantages of FedDRO are best understood in comparison to existing baselines. As shown in Table 1, FedDRO is the only algorithm that supports both CO and non-CO settings while maintaining a constant batch size and achieving a linear speedup in convergence.
Specifically, FedDRO achieves a sample complexity of $O(\epsilon^{-2})$ and a communication complexity of $O(\epsilon^{-3/2})$. The $K^{-1}$ factor in its convergence rate (where $K$ is the number of clients) confirms the linear speedup relative to the system size, matching the optimal rate for standard non-compositional SGD.
Experimental Evaluation
The researchers evaluated FedDRO on two main tasks:
- Imbalanced Image Classification: Using CIFAR10-ST and CIFAR100-ST (step-unbalanced versions), FedDRO consistently outperformed centralized baselines like FastDRO and PDSGD in both training and testing accuracy.
- Fairness in Tabular Data: On the Adult dataset, FedDRO successfully enforced "equality of opportunity" across protected groups while maintaining high overall classification accuracy.
The experiments confirmed that FedDRO remains stable across a wide range of local update frequencies ($I$), whereas previous methods like GCIVR require more complex double-loop structures to maintain stability. Crucially, FedDRO achieved these results with a batch size of only 16 per client, proving its feasibility for real-world hardware.
Conclusion
FedDRO demonstrates that the added complexity of compositional objectives does not inherently destroy the efficiency of federated systems. By syncing low-dimensional group losses more frequently than model parameters, FedDRO effectively manages bias and client drift. While future work should address potential privacy implications of embedding sharing and hyperparameter sensitivity, FedDRO represents a significant step toward practical, robust federated learning.
Summary updated