English

Computing the Variance of Shuffling Stochastic Gradient Algorithms via Power Spectral Density Analysis

Optimization and Control 2022-06-02 v1 Machine Learning Machine Learning

Abstract

When solving finite-sum minimization problems, two common alternatives to stochastic gradient descent (SGD) with theoretical benefits are random reshuffling (SGD-RR) and shuffle-once (SGD-SO), in which functions are sampled in cycles without replacement. Under a convenient stochastic noise approximation which holds experimentally, we study the stationary variances of the iterates of SGD, SGD-RR and SGD-SO, whose leading terms decrease in this order, and obtain simple approximations. To obtain our results, we study the power spectral density of the stochastic gradient noise sequences. Our analysis extends beyond SGD to SGD with momentum and to the stochastic Nesterov's accelerated gradient method. We perform experiments on quadratic objective functions to test the validity of our approximation and the correctness of our findings.

Keywords

Cite

@article{arxiv.2206.00632,
  title  = {Computing the Variance of Shuffling Stochastic Gradient Algorithms via Power Spectral Density Analysis},
  author = {Carles Domingo-Enrich},
  journal= {arXiv preprint arXiv:2206.00632},
  year   = {2022}
}

Comments

The code can be found at \url{https://github.com/CDEnrich/sgd_shuffling}

R2 v1 2026-06-24T11:36:15.530Z