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

Distributed Random Reshuffling Over Networks

Kun Huang, Xiao Li, Andre Milzarek, Shi Pu, Junwen QiuIEEE TSP 2021

Introduction

In large-scale machine learning, optimization problems are frequently solved across decentralized networks of agents—such as mobile devices or distributed data centers—without a central coordinator. The standard approach in these settings is Distributed Stochastic Gradient Descent (DSGD), which typically employs sampling with replacement. However, in centralized optimization, Random Reshuffling (RR)—sampling without replacement in each epoch—has demonstrated superior convergence speed and stability. This paper introduces Distributed Random Reshuffling (D-RR), bridging the gap between decentralized communication and the high-performance "without-replacement" strategy.

The D-RR Algorithm

The proposed D-RR algorithm adapts the centralized random reshuffling logic to a networked environment. In a centralized RR setting, data is shuffled at the start of each epoch and processed sequentially.

Algorithm 2: Centralized Random Reshuffling (C-RR), the baseline for the proposed distributed method.

D-RR extends this logic by incorporating two nested loops:

  1. Outer Loop (Epochs): Each agent independently shuffles its local dataset at the beginning of an epoch.
  2. Inner Loop (Iterations): Agents iterate through their local shuffled data. In each step, an agent computes a local gradient, updates its model, and performs a consensus step by averaging its model with its immediate neighbors.

While frequent communication (at every inner iteration) is required to control consensus error, the authors demonstrate that this design is the "secret sauce" required to achieve the same fast convergence rates as a centralized system.

Theoretical Convergence and Key Results

The primary contribution of this work is the theoretical proof that D-RR matches the asymptotic convergence rates of centralized RR. Specifically, for strongly convex problems, D-RR achieves a rate of $O(1/T^2)$, significantly outperforming the $O(1/T)$ rate of standard DSGD. For nonconvex problems, D-RR achieves $O(1/T^{2/3})$, surpassing the $O(1/\sqrt{T})$ typical of stochastic methods.

Comparison of convergence rates for SGD/DSGD, Centralized RR (CRR), and Distributed RR (D-RR).

These results highlight that once the number of epochs $T$ is sufficiently large, the "without-replacement" advantage of D-RR overcomes the initial overhead and consensus errors inherent in decentralized networks.

Empirical Evaluation

The researchers validated D-RR on MNIST (binary logistic regression) and CIFAR-10 (nonconvex logistic regression) across various network topologies, including Grid, Exponential, and Erdős-Rényi graphs.

  • Performance: D-RR consistently reached lower error levels than both DSGD and centralized SGD.
  • Network Connectivity: The algorithm's performance improves as the network becomes better connected (e.g., moving from a Grid to an Erdős-Rényi graph), converging closer to the centralized RR benchmark.

Limitations and Future Directions

Despite its theoretical and empirical success, D-RR faces certain challenges:

  • Communication Overhead: The requirement for consensus at every inner iteration may be a bottleneck in high-latency networks.
  • Generalization: Future research should investigate the generalization error of D-RR on large-scale deep learning models beyond optimization loss.
  • Directed Graphs: Current theoretical guarantees are limited to undirected, symmetric networks; extending these to directed graphs remains an open challenge.

Summary updated

BibTeX
@article{huang2021distributed,
  author = {Kun Huang and Xiao Li and Andre Milzarek and Shi Pu and Junwen Qiu},
  title = {{Distributed Random Reshuffling Over Networks}},
  journal = {IEEE Trans. Signal Process.},
  year = {2021},
  doi = {10.1109/tsp.2023.3262181},
}
Figure