arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.06738math.OCcs.LGstat.ML
收藏

(加速的)噪声自适应随机重球动量

(Accelerated) Noise-adaptive Stochastic Heavy-Ball Momentum

Simon Fraser University(西蒙弗雷泽大学);Samsung AI, Montreal(三星人工智能,蒙特利尔)

Anh Dang, Reza Babanezhad, Sharan Vaswani

AI总结:

本文研究了SHB在强凸二次问题中的加速收敛条件,提出噪声自适应多阶段算法和一般强凸设置下的变体,确保收敛到极小化点并验证其有效性。

摘要:

随机重球动量(SHB)通常用于训练机器学习模型,并且通常比随机梯度下降(SGD)提供经验上的改进。通过主要关注强凸二次问题,我们旨在更好地理解SHB的理论优势,并随后改进该方法。对于强凸二次问题,Kidambi等人(2018)表明SHB(使用大小为$1$的小批量)无法实现加速收敛,因此在理论上没有优于SGD的益处。他们推测SHB的实际增益是使用更大小批量的副产品。我们首先通过证明当小批量大小大于依赖于条件数$κ$的阈值$b^*$时,SHB可以实现加速收敛来证实这一说法。具体来说,我们证明,在具有与确定性设置相同的步长和动量参数的情况下,当小批量大小足够大时,SHB在以$\ell_2$范数衡量到最优解的距离时,会产生$O\left(\exp(-\frac{T}{\sqrtκ}) + σ\right)$的收敛性,其中$T$是迭代次数,$σ^2$是随机梯度中的方差。我们证明了一个下界,表明$b^*$中对$κ$的依赖是必要的。为确保收敛到极小化点,我们设计了一种噪声自适应多阶段算法,当在$\ell_2$范数中衡量到最优解的距离时,该算法产生$O\left(\exp\left(-\frac{T}{\sqrtκ}\right) + \fracσ{\sqrt{T}}\right)$的收敛速率。我们还考虑了一般平滑的强凸设置,并提出了首个噪声自适应SHB变体,当在平方$\ell_2$范数中衡量到最优解的距离时,该变体以$O(\exp(-\frac{T}κ) + \frac{σ^2}{T})$的速率收敛到极小化点。我们通过实验验证了所提出算法的有效性。

英文摘要:

Stochastic heavy ball momentum (SHB) is commonly used to train machine learning models, and often provides empirical improvements over stochastic gradient descent. By primarily focusing on strongly-convex quadratics, we aim to better understand the theoretical advantage of SHB and subsequently improve the method. For strongly-convex quadratics, Kidambi et al. (2018) show that SHB (with a mini-batch of size $1$) cannot attain accelerated convergence, and hence has no theoretical benefit over SGD. They conjecture that the practical gain of SHB is a by-product of using larger mini-batches. We first substantiate this claim by showing that SHB can attain an accelerated rate when the mini-batch size is larger than a threshold $b^*$ that depends on the condition number $κ$. Specifically, we prove that with the same step-size and momentum parameters as in the deterministic setting, SHB with a sufficiently large mini-batch size results in an $O\left(\exp(-\frac{T}{\sqrtκ}) + σ\right)$ convergence when measuring the distance to the optimal solution in the $\ell_2$ norm, where $T$ is the number of iterations and $σ^2$ is the variance in the stochastic gradients. We prove a lower-bound which demonstrates that a $κ$ dependence in $b^*$ is necessary. To ensure convergence to the minimizer, we design a noise-adaptive multi-stage algorithm that results in an $O\left(\exp\left(-\frac{T}{\sqrtκ}\right) + \fracσ{\sqrt{T}}\right)$ rate when measuring the distance to the optimal solution in the $\ell_2$ norm. We also consider the general smooth, strongly-convex setting and propose the first noise-adaptive SHB variant that converges to the minimizer at an $O(\exp(-\frac{T}κ) + \frac{σ^2}{T})$ rate when measuring the distance to the optimal solution in the squared $\ell_2$ norm. We empirically demonstrate the effectiveness of the proposed algorithms.

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

↑