[Paper Review] Convergence Analysis of Distributed Stochastic Gradient Descent with Shuffling
This paper provides the first convergence analysis of distributed stochastic gradient descent (SGD) with global and local shuffling in large-scale machine learning. It proves that global shuffling—equivalent to without-replacement sampling—ensures convergence in both convex and non-convex settings, with faster convergence in deep learning than in convex problems, and establishes theoretical bounds even under insufficient shuffling, validating its practicality for distributed training systems.
When using stochastic gradient descent to solve large-scale machine learning problems, a common practice of data processing is to shuffle the training data, partition the data across multiple machines if needed, and then perform several epochs of training on the re-shuffled (either locally or globally) data. The above procedure makes the instances used to compute the gradients no longer independently sampled from the training data set. Then does the distributed SGD method have desirable convergence properties in this practical situation? In this paper, we give answers to this question. First, we give a mathematical formulation for the practical data processing procedure in distributed machine learning, which we call data partition with global/local shuffling. We observe that global shuffling is equivalent to without-replacement sampling if the shuffling operations are independent. We prove that SGD with global shuffling has convergence guarantee in both convex and non-convex cases. An interesting finding is that, the non-convex tasks like deep learning are more suitable to apply shuffling comparing to the convex tasks. Second, we conduct the convergence analysis for SGD with local shuffling. The convergence rate for local shuffling is slower than that for global shuffling, since it will lose some information if there's no communication between partitioned data. Finally, we consider the situation when the permutation after shuffling is not uniformly distributed (insufficient shuffling), and discuss the condition under which this insufficiency will not influence the convergence rate. Our theoretical results provide important insights to large-scale machine learning, especially in the selection of data processing methods in order to achieve faster convergence and good speedup. Our theoretical findings are verified by extensive experiments on logistic regression and deep neural networks.
Motivation & Objective
- To address the lack of theoretical convergence guarantees for distributed SGD when training data is shuffled across workers, a common practical practice.
- To formally model and analyze the impact of global and local shuffling on convergence in distributed machine learning.
- To determine whether shuffling—especially without-replacement sampling—improves convergence over i.i.d. sampling in distributed settings.
- To investigate the effect of insufficient shuffling (non-uniform permutations) on convergence rates and identify conditions under which it remains effective.
Proposed method
- Proposes a mathematical formulation for data partitioning with global and local shuffling, modeling the shuffling process as a random permutation of training instances.
- Establishes that global shuffling is equivalent to without-replacement sampling when shuffles are independent, enabling convergence analysis under this model.
- Uses concentration inequalities and coupling arguments to bound the difference between shuffling and i.i.d. sampling, particularly in the presence of insufficient shuffling.
- Derives convergence rates for convex, strongly convex, and non-convex settings under global and local shuffling, using learning rate schedules tailored to each case.
- Introduces a measure of shuffling quality, ε(A,n), to quantify the deviation from uniform permutation and incorporates it into convergence bounds.
- Employs standard SGD convergence techniques, including smoothness and Lipschitz assumptions, while replacing i.i.d. gradient independence with shuffling-induced dependence.
Experimental results
Research questions
- RQ1Does distributed SGD with global shuffling maintain convergence guarantees despite violating the i.i.d. sampling assumption?
- RQ2How does the convergence rate of global shuffling compare to i.i.d. sampling in convex and non-convex optimization?
- RQ3What is the impact of local shuffling (per-worker shuffling without communication) on convergence compared to global shuffling?
- RQ4Under what conditions does insufficient shuffling—non-uniform permutations—still allow convergence with acceptable rates?
- RQ5Can theoretical convergence bounds be derived for distributed SGD under practical data shuffling procedures used in real-world deep learning systems?
Key findings
- Global shuffling, equivalent to without-replacement sampling under independent shuffles, ensures convergence in both convex and non-convex settings, with faster convergence in non-convex problems like deep learning.
- The convergence rate for distributed SGD with global shuffling is bounded by O(1/√(Sn) + bM/(Sn) + √(1/n) + ε(A,n)ln n), showing improved dependence on data size and shuffling quality.
- In the strongly convex and smooth case, the convergence rate is O(log n / n + nε(A,n)²/(bM)) + O(min{bM/(Sn), κ²(bM)²log(Sn)/(Sn)² + ...}), demonstrating robustness to imperfect shuffling.
- For non-convex problems, the expected squared gradient norm converges at O(√(1/(Sn)) + log n / n + nε(A,n)²/(bM)), indicating favorable behavior under practical shuffling.
- Local shuffling leads to a slower convergence rate than global shuffling due to loss of global data diversity, highlighting the importance of global coordination.
- Theoretical results are validated by extensive experiments on logistic regression and deep neural networks, confirming faster convergence with shuffling compared to i.i.d. sampling.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.