arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.00920stat.MLcs.LGmath.OC
收藏

揭秘具有双重随机梯度的 SGD

Demystifying SGD with Doubly Stochastic Gradients

Department of Computer and Information Sciences, University of Pennsylvania, Philadelphia, PA, U.S.A.(宾夕法尼亚大学计算机与信息科学系);Hal c o g lu Data Science Institute, University of California San Diego, San Diego, CA, U.S.A.(加州大学圣地亚哥分校Hal c o g lu数据科学研究所)

Kyurae Kim, Joohwan Ko, Yi-An Ma, Jacob R. Gardner

AI总结:

本文研究“无限数据有限和”优化中的 doubly SGD,在一般条件下证明独立小批量与随机重排的收敛性,并分析相关性、计算预算分配及 RR 对子采样噪声复杂度的改善。

摘要:

以难以处理的期望之和形式出现的优化目标正变得日益重要(例如扩散模型、变分自编码器等),这一设置也被称为“具有无限数据的有限和”。对于这些问题,一种流行的策略是采用具有双重随机梯度的 SGD(doubly SGD):使用每个分量的梯度估计量来估计期望,同时通过对这些估计量进行子采样来估计和。尽管它很流行,但除了在有界方差等强假设下,人们对 doubly SGD 的收敛性质知之甚少。在本工作中,我们在一般条件下建立了具有独立小批量处理和随机重排的 doubly SGD 的收敛性,这些条件涵盖了相关的分量梯度估计量。特别是,对于相关估计量,我们的分析允许对相关性影响进行细粒度分析。因此,在每次迭代计算预算为 $b \ imes m$(其中 $b$ 是小批量大小,$m$ 是 Monte Carlo 样本数量)的情况下,我们的分析表明总体上应当将预算主要投入何处。此外,我们证明随机重排(RR)改善了复杂度对子采样噪声的依赖。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑