提出归一化SGD,解决重尾噪声下优化收敛难题
From Gradient Clipping to Normalization for Heavy Tailed SGD
- 用归一化梯度替代裁剪,无需依赖问题参数
- 理论证明样本复杂度达最优阶,优于现有裁剪方法
- 适合重尾噪声场景的高概率收敛,实用性强
近期实证表明,许多机器学习任务存在重尾梯度噪声,挑战了随机优化中方差有界的经典假设。梯度裁剪虽在理论上和实践中表现良好,但现有非凸优化理论存在三大缺陷:首先,理论依赖递增的大裁剪阈值,与实际中使用的固定小阈值矛盾;其次,裁剪阈值需已知问题相关参数才能保证收敛;最后,即使已知参数,当前采样复杂度上界在几乎所有参数上均非最优。为此,本文研究归一化SGD(NSGD)的收敛性。首先,建立无需参数的样本复杂度为 $\mathcal{O}\left(\varepsilon^{-\frac{2p}{p-1}}\right)$,以找到 $\varepsilon$-驻点。进一步证明该结果紧致,给出匹配的算法特定下界。当所有问题参数已知时,复杂度提升至 $\mathcal{O}\left(\varepsilon^{-\frac{3p-2}{p-1}}\right)$,在所有问题依赖参数上达到此前已知的一阶方法下界。最后,建立NSGD的高概率收敛性,失败概率仅对数依赖。本工作完善了重尾噪声下梯度裁剪的研究,提升了现有算法的采样复杂度,并提供了一种实现高概率收敛的替代机制。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。