Skip to main content
QUICK REVIEW

[Paper Review] Random Shuffling Beats SGD after Finite Epochs

Jeffery Z. HaoChen, Suvrit Sra|arXiv (Cornell University)|Jun 26, 2018
Stochastic Gradient Optimization TechniquesComputer Science26 references9 citations
TL;DR

This paper establishes the first non-asymptotic convergence rate for Random Shuffle SGD, proving it converges faster than standard SGD after a finite number of epochs under strong convexity and second-order smoothness. It derives a rate of $\mathcal{O}\bigl(\frac{1}{T^{2}} + \frac{n^{3}}{T^{3}}\bigr)$, showing Random Shuffle strictly outperforms SGD's $\mathcal{O}(1/T)$ rate for reasonable $T$, with improved $\mathcal{O}(1/T^2)$ rates in sparse settings.

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.

Motivation & Objective

  • To resolve the long-standing theoretical gap between empirical performance and convergence analysis of Random Shuffle SGD.
  • To prove that Random Shuffle converges strictly faster than standard SGD after a finite, reasonable number of epochs.
  • To establish a non-asymptotic convergence rate that explicitly depends on $n$, the number of components in the finite-sum problem.
  • To show that a dependence on $n$ is unavoidable for achieving faster-than-$\mathcal{O}(1/T)$ convergence.
  • To extend the analysis to nonconvex functions under gradient-dominated conditions and sparse data regimes.

Proposed method

  • Derives a non-asymptotic convergence rate for Random Shuffle SGD under strong convexity and Lipschitz Hessian assumptions.
  • Introduces a novel analysis framework that captures the dependence on $n$ in the convergence bound, which is essential for showing faster convergence than SGD.
  • Uses a recursive inequality based on the squared distance to the optimal solution and applies the AM-GM inequality to compare Random Shuffle with SGD.
  • Establishes that the expected squared error decays as $\mathcal{O}(1/T^2 + n^3/T^3)$, with tighter bounds in sparse settings.
  • Extends results to nonconvex functions satisfying the Polyak-Łojasiewicz condition, showing $\mathcal{O}(1/T)$ convergence with adaptive step size.
  • Analyzes the trade-off between $T$ and $n$, proving that $\mathcal{O}(1/T^{1+\delta})$ rates are impossible in general without $n$-dependence.

Experimental results

Research questions

  • RQ1Does Random Shuffle SGD converge faster than standard SGD after a finite number of epochs?
  • RQ2Can a non-asymptotic convergence rate be established for Random Shuffle that captures the dependence on $n$?
  • RQ3Is the $\mathcal{O}(1/T^2)$ rate achievable in sparse data settings?
  • RQ4What is the minimal dependence on $n$ required to achieve faster-than-$\mathcal{O}(1/T)$ convergence?
  • RQ5How does the convergence behavior of Random Shuffle compare to SGD under nonconvex, gradient-dominated functions?

Key findings

  • Random Shuffle SGD converges at the rate $\mathcal{O}\bigl(\frac{1}{T^{2}} + \frac{n^{3}}{T^{3}}\bigr)$ under strong convexity and second-order smoothness, which is strictly better than SGD's $\mathcal{O}(1/T)$ for finite $T$.
  • The dependence on $n$ in the bound is unavoidable for achieving faster convergence than $\mathcal{O}(1/T)$, precluding $\mathcal{O}(1/T^{1+\delta})$ rates in general.
  • In sparse data regimes with sparsity level $\rho$, the convergence rate improves to $\mathcal{O}(1/T^2)$, which is strictly better than SGD's $\mathcal{O}(1/T)$.
  • For nonconvex functions satisfying the Polyak-Łojasiewicz condition, Random Shuffle achieves $\mathcal{O}(1/T)$ convergence with an adaptive step size $\gamma = \frac{\log T}{\mu T}$.
  • The analysis proves that the expected squared error for Random Shuffle is bounded by a product of terms involving $\mu_{s(t)}$, and this product is minimized under the Random Shuffle sampling scheme.
  • The paper establishes tightness of the bound by showing equality holds for quadratic functions $f_i(x) = \frac{\mu_i}{2}\|x - x^*\|^2$, confirming the rate is sharp.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.