English

Random Shuffling Beats SGD after Finite Epochs

Optimization and Control 2019-10-09 v2 Machine Learning

Abstract

A long-standing problem in the theory of stochastic gradient descent (SGD) is to prove that its without-replacement version RandomShuffle converges faster than the usual with-replacement version. We present the first (to our knowledge) non-asymptotic solution to this problem, which shows that after a "reasonable" number of epochs RandomShuffle indeed converges faster than SGD. Specifically, we prove that under strong convexity and second-order smoothness, the sequence generated by RandomShuffle converges to the optimal solution at the rate O(1/T^2 + n^3/T^3), where n is the number of components in the objective, and T is the total number of iterations. This result shows that after a reasonable number of epochs RandomShuffle is strictly better than SGD (which converges as O(1/T)). The key step toward showing this better dependence on T is the introduction of n into the bound; and as our analysis will show, in general a dependence on n is unavoidable without further changes to the algorithm. We show that for sparse data RandomShuffle has the rate O(1/T^2), again strictly better than SGD. Furthermore, we discuss extensions to nonconvex gradient dominated functions, as well as non-strongly convex settings.

Keywords

Cite

@article{arxiv.1806.10077,
  title  = {Random Shuffling Beats SGD after Finite Epochs},
  author = {Jeff Z. HaoChen and Suvrit Sra},
  journal= {arXiv preprint arXiv:1806.10077},
  year   = {2019}
}
R2 v1 2026-06-23T02:42:29.836Z