arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.13849math.OCcs.LGstat.ML
收藏

从梯度裁剪到归一化:重尾随机梯度下降

From Gradient Clipping to Normalization for Heavy Tailed SGD

ETH Zurich(苏黎世联邦理工学院)

Florian Hübler, Ilyas Fatkhullin, Niao He

AI总结:

针对重尾梯度噪声下梯度裁剪理论的缺陷,提出归一化SGD(NSGD),给出参数无关的采样复杂度并证明其最优性,同时实现高概率收敛。

摘要:

近期经验证据表明,许多机器学习应用涉及重尾梯度噪声,这挑战了随机优化中方差有界的标准假设。梯度裁剪已成为处理这种重尾噪声的流行工具,因为在此设置下它在理论和实践上均取得了良好性能。然而,我们目前对非凸梯度裁剪的理论理解存在三个主要缺陷。首先,该理论依赖于较大且递增的裁剪阈值,这与实践中采用的小常数裁剪阈值形成鲜明对比。其次,裁剪阈值需要了解问题相关参数才能保证收敛。最后,即使具备这些知识,当前该方法的采样复杂度上界在几乎所有参数上均非最优。为解决这些问题,我们研究了归一化随机梯度下降(NSGD)的收敛性。首先,我们建立了NSGD的参数无关采样复杂度为$\mathcal{O}\left(\varepsilon^{-\frac{2p}{p-1}}\right)$,以找到$\varepsilon$-稳定点。此外,我们通过提供匹配的算法特定下界证明了该结果的紧致性。在所有问题参数已知的情况下,我们证明该复杂度可改进为$\mathcal{O}\left(\varepsilon^{-\frac{3p-2}{p-1}}\right)$,与所有一阶方法在所有问题相关参数上的已知下界相匹配。最后,我们建立了NSGD的高概率收敛性,其对失败概率具有温和的对数依赖性。我们的工作补充了重尾噪声下梯度裁剪的研究,提高了现有算法的采样复杂度,并提供了一种实现高概率收敛的替代机制。

英文摘要:

Recent empirical evidence indicates that many machine learning applications involve heavy-tailed gradient noise, which challenges the standard assumptions of bounded variance in stochastic optimization. Gradient clipping has emerged as a popular tool to handle this heavy-tailed noise, as it achieves good performance in this setting both theoretically and practically. However, our current theoretical understanding of non-convex gradient clipping has three main shortcomings. First, the theory hinges on large, increasing clipping thresholds, which are in stark contrast to the small constant clipping thresholds employed in practice. Second, clipping thresholds require knowledge of problem-dependent parameters to guarantee convergence. Lastly, even with this knowledge, current sampling complexity upper bounds for the method are sub-optimal in nearly all parameters. To address these issues, we study convergence of Normalized SGD (NSGD). First, we establish a parameter-free sample complexity for NSGD of $\mathcal{O}\left(\varepsilon^{-\frac{2p}{p-1}}\right)$ to find an $\varepsilon$-stationary point. Furthermore, we prove tightness of this result, by providing a matching algorithm-specific lower bound. In the setting where all problem parameters are known, we show this complexity is improved to $\mathcal{O}\left(\varepsilon^{-\frac{3p-2}{p-1}}\right)$, matching the previously known lower bound for all first-order methods in all problem dependent parameters. Finally, we establish high-probability convergence of NSGD with a mild logarithmic dependence on the failure probability. Our work complements the studies of gradient clipping under heavy tailed noise improving the sample complexities of existing algorithms and offering an alternative mechanism to achieve high probability convergence.

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

↑