Demystifying SGD with Doubly Stochastic Gradients

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Kim, Kyurae, Ko, Joohwan, Ma, Yi-An, Gardner, Jacob R.
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910935347625984
author Kim, Kyurae
Ko, Joohwan
Ma, Yi-An
Gardner, Jacob R.
author_facet Kim, Kyurae
Ko, Joohwan
Ma, Yi-An
Gardner, Jacob R.
contents Optimization objectives in the form of a sum of intractable expectations are rising in importance (e.g., diffusion models, variational autoencoders, and many more), a setting also known as "finite sum with infinite data." For these problems, a popular strategy is to employ SGD with doubly stochastic gradients (doubly SGD): the expectations are estimated using the gradient estimator of each component, while the sum is estimated by subsampling over these estimators. Despite its popularity, little is known about the convergence properties of doubly SGD, except under strong assumptions such as bounded variance. In this work, we establish the convergence of doubly SGD with independent minibatching and random reshuffling under general conditions, which encompasses dependent component gradient estimators. In particular, for dependent estimators, our analysis allows fined-grained analysis of the effect correlations. As a result, under a per-iteration computational budget of $b \times m$, where $b$ is the minibatch size and $m$ is the number of Monte Carlo samples, our analysis suggests where one should invest most of the budget in general. Furthermore, we prove that random reshuffling (RR) improves the complexity dependence on the subsampling noise.
format Preprint
id arxiv_https___arxiv_org_abs_2406_00920
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Demystifying SGD with Doubly Stochastic Gradients
Kim, Kyurae
Ko, Joohwan
Ma, Yi-An
Gardner, Jacob R.
Machine Learning
Optimization and Control
Optimization objectives in the form of a sum of intractable expectations are rising in importance (e.g., diffusion models, variational autoencoders, and many more), a setting also known as "finite sum with infinite data." For these problems, a popular strategy is to employ SGD with doubly stochastic gradients (doubly SGD): the expectations are estimated using the gradient estimator of each component, while the sum is estimated by subsampling over these estimators. Despite its popularity, little is known about the convergence properties of doubly SGD, except under strong assumptions such as bounded variance. In this work, we establish the convergence of doubly SGD with independent minibatching and random reshuffling under general conditions, which encompasses dependent component gradient estimators. In particular, for dependent estimators, our analysis allows fined-grained analysis of the effect correlations. As a result, under a per-iteration computational budget of $b \times m$, where $b$ is the minibatch size and $m$ is the number of Monte Carlo samples, our analysis suggests where one should invest most of the budget in general. Furthermore, we prove that random reshuffling (RR) improves the complexity dependence on the subsampling noise.
title Demystifying SGD with Doubly Stochastic Gradients
topic Machine Learning
Optimization and Control
url https://arxiv.org/abs/2406.00920