NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FedShuffle: Recipes for Better Use of Local Work in Federated Learning

Samuel Horváth, Maziar Sanjabi, Lin Xiao, Peter Richtárik, Michael G. Rabbat · DOI

Introduction

Federated Learning (FL) enables a central server to train a global model across numerous edge devices without directly accessing their private data. To minimize communication overhead—often the primary bottleneck in FL—practitioners typically employ "local updates," where clients perform multiple training iterations (epochs) locally before communicating back to the server. While effective in homogeneous settings, this approach encounters significant hurdles when faced with real-world data imbalance.

The Challenge: Objective Inconsistency and Data Imbalance

In many FL deployments, the amount of data per client varies drastically. For instance, in a text prediction task, one user might have thousands of messages while another has only a handful. If both are instructed to perform a fixed number of local epochs, the data-heavy client performs significantly more gradient steps than the data-light client.

Standard algorithms like FedAvg often fail to account for this discrepancy, leading to "objective inconsistency." In this state, the global model's optimization trajectory drifts toward a mathematical objective that does not represent the true global distribution. Furthermore, while most theoretical analyses of FL assume data is "sampled with replacement," actual implementations almost exclusively use "Random Reshuffling" (shuffling the local dataset once per epoch). This gap between theory and practice has left the convergence properties of imbalanced FL poorly understood.

The FedShuffle Framework

To address these issues, the authors introduce FedShuffle, an algorithm designed to provide rigorous convergence guarantees under realistic conditions, including data imbalance, client sampling, and random reshuffling. FedShuffle relies on two primary "recipes":

1. Local Step Size Scaling

Unlike traditional methods that apply a uniform learning rate across all clients, FedShuffle scales each client $i$'s local step size by $1/|D_i|$, where $|D_i|$ represents the number of local samples. This scaling ensures that clients with massive datasets do not "drift" disproportionately far from the global model compared to those with smaller datasets, effectively normalizing the "work" done per communication round.

2. Unbiased Aggregation

A common practice in FL frameworks is to normalize client weights so they sum to one in every round. However, the authors demonstrate that this normalization introduces bias when only a subset of clients is sampled. FedShuffle utilizes a weighting scheme ($w_i/p_i$) that ensures the server’s update remains an unbiased estimator of the global gradient, even under partial client participation.

Momentum and Variance Reduction

For more complex optimization landscapes, the authors propose FedShuffleMVR (Momentum Variance Reduction). This variant leverages "Hessian similarity"—the observation that while client data distributions differ, the local loss functions often share similar geometric curvatures. By incorporating momentum-based variance reduction, FedShuffleMVR can outperform "non-local" methods (which communicate after every single step) while maintaining the communication efficiency of local updates.

Experimental Evaluation

The researchers evaluated FedShuffle across three distinct environments: synthetic quadratic functions, the Shakespeare dataset (a highly imbalanced next-character prediction task using an LSTM), and CIFAR-100 (image classification using ResNet-18 with LDA-partitioned data).

Key Results

  • Accuracy Gains: On the Shakespeare dataset, FedShuffle achieved 59.57% accuracy, a substantial improvement over FedAvg (48.61%) and FedNova (43.29%).
  • Impact of Momentum: With the addition of global momentum, FedShuffle reached 67.63% accuracy, maintaining its performance lead over baseline methods.
  • Convergence Stability: In synthetic tests, FedShuffle was the only method to consistently converge to the true global optimum, whereas FedAvg with reshuffling reached an error floor due to objective inconsistency.

Key Insights

  • The "Sum One" Trap: Normalizing weights to sum to one in each round is a common but mathematically flawed practice in heterogeneous FL that introduces persistent bias.
  • Random Reshuffling (RR) Superiority: The paper provides rigorous proof that RR is not merely a practical convenience but is theoretically superior to sampling with replacement for variance reduction in FL.
  • Scaling Rates vs. Scaling Updates: While previous methods like FedNova attempted to correct imbalance by scaling the final update at the server, FedShuffle argues that scaling the local learning rate is more effective. This approach allows for larger theoretical step sizes and faster overall convergence.

Conclusion and Future Directions

FedShuffle provides a robust theoretical and practical foundation for handling data imbalance in Federated Learning. By aligning local work with global objectives through step-size scaling and unbiased aggregation, it bridges the gap between FL theory and real-world implementation.

Future research directions include extending FedShuffle to asynchronous execution to handle "straggler" clients, integrating communication compression techniques (like quantization), and addressing system heterogeneity where hardware capabilities vary as much as the data itself.

Summary updated

BibTeX
@article{horvath2022fedshuffle,
  author = {Samuel Horváth and Maziar Sanjabi and Lin Xiao and Peter Richtárik and Michael G. Rabbat},
  title = {{FedShuffle: Recipes for Better Use of Local Work in Federated Learning}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=Lgs5pQ1v30},
}
Figure