ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 1908.00045
9
80

How Good is SGD with Random Shuffling?

31 July 2019
Itay Safran
Ohad Shamir
ArXivPDFHTML
Abstract

We study the performance of stochastic gradient descent (SGD) on smooth and strongly-convex finite-sum optimization problems. In contrast to the majority of existing theoretical works, which assume that individual functions are sampled with replacement, we focus here on popular but poorly-understood heuristics, which involve going over random permutations of the individual functions. This setting has been investigated in several recent works, but the optimal error rates remain unclear. In this paper, we provide lower bounds on the expected optimization error with these heuristics (using SGD with any constant step size), which elucidate their advantages and disadvantages. In particular, we prove that after kkk passes over nnn individual functions, if the functions are re-shuffled after every pass, the best possible optimization error for SGD is at least Ω(1/(nk)2+1/nk3)\Omega\left(1/(nk)^2+1/nk^3\right)Ω(1/(nk)2+1/nk3), which partially corresponds to recently derived upper bounds. Moreover, if the functions are only shuffled once, then the lower bound increases to Ω(1/nk2)\Omega(1/nk^2)Ω(1/nk2). Since there are strictly smaller upper bounds for repeated reshuffling, this proves an inherent performance gap between SGD with single shuffling and repeated shuffling. As a more minor contribution, we also provide a non-asymptotic Ω(1/k2)\Omega(1/k^2)Ω(1/k2) lower bound (independent of nnn) for the incremental gradient method, when no random shuffling takes place. Finally, we provide an indication that our lower bounds are tight, by proving matching upper bounds for univariate quadratic functions.

View on arXiv
Comments on this paper