Abstract
The practice of applying several local updates before aggregation across clients has been empirically shown to be a successful approach to overcoming the communication bottleneck in Federated Learning (FL). Such methods are usually implemented by having clients perform one or more epochs of local training per round while randomly reshuffling their finite dataset in each epoch. Data imbalance, where clients have different numbers of local training samples, is ubiquitous in FL applications, resulting in different clients performing different numbers of local updates in each round. In this work, we propose a general recipe, FedShuffle, that better utilizes the local updates in FL, especially in this regime encompassing random reshuffling and heterogeneity. FedShuffle is the first local update method with theoretical convergence guarantees that incorporates random reshuffling, data imbalance, and client sampling — features that are essential in large-scale cross-device FL. We present a comprehensive theoretical analysis of FedShuffle and show, both theoretically and empirically, that it does not suffer from the objective function mismatch that is present in FL methods that assume homogeneous updates in heterogeneous FL setups, such as FedAvg (McMahan et al., 2017). In addition, by combining the ingredients above, FedShuffle improves upon FedNova (Wang et al., 2020), which was previously proposed to solve this mismatch. Similar to Mime (Karimireddy et al., 2020), we show that FedShuffle with momentum variance reduction (Cutkosky & Orabona, 2019) improves upon non-local methods under a Hessian similarity assumption.
Introduction: The Challenge of Local Updates
In Federated Learning (FL), communication between the central server and distributed clients is the primary bottleneck. To mitigate this, "local update" methods like FedAvg are used, where clients perform multiple local training steps—often full epochs—before aggregating results.
However, a significant gap exists between theoretical analysis and practical implementation. Real-world FL involves Random Reshuffling (RR), where clients iterate through their local data without replacement, and Data Imbalance, where clients possess varying dataset sizes. This imbalance often leads to "objective inconsistency," where the global model converges to a solution biased toward clients with more data, effectively optimizing the wrong global objective. While methods like FedNova attempted to address this via update re-weighting, they often remain sub-optimal.
The FedShuffle Framework
FedShuffle introduces a general recipe to optimize local work by addressing the root causes of objective inconsistency. The framework relies on two primary innovations:
- Local Step Size Scaling: Instead of a uniform learning rate, FedShuffle scales the local step size $\eta_l$ inversely to the amount of local work performed (e.g., $\eta_l \propto 1/|D_i|$). This prevents clients with large datasets from drifting too far from the global model.
- Unbiased Aggregation: Standard "Sum-One" aggregation (normalizing weights to sum to 1.0 each round) introduces bias during client sampling. FedShuffle employs weight scaling based on sampling probability ($w_i/p_i$), ensuring the global update is an unbiased estimator of the true gradient.
As shown in the comparison above, FedShuffle (and specifically FedShuffleMVR) is the first framework to provide theoretical guarantees while simultaneously supporting random reshuffling, client sampling, and data heterogeneity.
Experimental Evaluation
The researchers evaluated FedShuffle across three distinct environments to verify its theoretical advantages:
- Synthetic Quadratic Functions: Used to demonstrate that FedShuffle converges to the true optimum ($10^{-6}$ loss), whereas FedAvg saturates at a higher error ($10^{-2}$) due to objective mismatch.
- Shakespeare Dataset: A heterogeneous next-character prediction task using an LSTM. FedShuffle achieved 59.57% accuracy, significantly outperforming FedAvg (48.61%) and FedNova (43.29%).
- CIFAR-100: An image classification task using ResNet-18 with non-IID data clusters. When combined with global momentum, FedShuffle reached 67.63% accuracy, maintaining a clear lead over baselines.
Key Insights and Future Directions
A central takeaway of this work is that fixing inconsistency at the source—the local learning rate—is more effective than attempting to correct it during aggregation. Furthermore, the analysis confirms that Random Reshuffling acts as a natural variance reducer in FL, mirroring its benefits in centralized training.
While FedShuffle shows significant gains, its most advanced theoretical benefits (beating non-local methods) rely on a Hessian Similarity assumption, which may vary in extremely non-IID settings. Future work will explore extending this framework to asynchronous execution and integrating communication compression techniques like quantization to further alleviate the FL bottleneck.
Summary updated