arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.14937math.OCcs.LGcs.NAmath.NA
收藏

NAG-GS:半隐式、加速且鲁棒的随机优化器

NAG-GS: A Semi-Implicit Stochastic Optimizer with Large-Step Stability

Skolkovo Institute of Science and Technology(斯科尔科沃科学技术研究院);Moscow Institute of Physics and Technology(莫斯科物理技术学院);AIRI;Sber AI Lab(Sber AI实验室)

Valentin Leplat, Daniil Merkulov, Aleksandr Katrutsa, Daniel Bershatsky, Olga Tsymboi, Ivan Oseledets

AI总结:

该研究提出基于类Nesterov加速SDE与半隐式高斯-赛德尔离散化的NAG-GS随机优化器,推导了二次函数下的最优稳定学习率,且在多类模型训练任务中性能对标主流最优优化器。

摘要:

深度神经网络等经典机器学习模型通常采用基于随机梯度下降(SGD)的算法进行训练,经典SGD可被解释为随机梯度流的离散化形式。本文提出了一种新颖、鲁棒且具备加速性能的随机优化器,其核心依托两大要素:一是类Nesterov加速随机微分方程(SDE),二是该方程的半隐式高斯-赛德尔(Gauss-Seidel)型离散化方案。研究首先针对二次函数最小化场景,对所得的NAG-GS方法的收敛性与稳定性开展了深入分析;通过细致探究迭代矩阵的谱半径以及平稳态下协方差矩阵与方法所有超参数的关联,推导出了在保证NAG-GS稳定性的前提下、收敛速率最优的学习率设置。此外实验表明,在逻辑回归模型、标准计算机视觉数据集上的残差网络模型、GLUE基准下的Transformer以及最新的Vision Transformer等机器学习模型的训练任务中,NAG-GS的性能与带动量权重衰减的SGD、AdamW等当前最优方法具有竞争力。

英文摘要:

Stochastic first-order methods are widely used for large-scale optimization and machine learning, where their performance often depends on the learning rate. We study NAG-GS, a stochastic momentum method based on a semi-implicit Gauss--Seidel discretization of a Nesterov-type flow. For strongly convex quadratics, we determine the exact range of stable step sizes for fixed damping and the step size that minimizes the worst-case spectral radius. When the damping equals the strong-convexity parameter, the method recovers the accelerated asymptotic factor $(\sqrtκ-1)/(\sqrtκ+1)$, where $κ$ is the condition number. We also prove that the quadratic iteration converges linearly with dynamic damping when its limiting fixed-damping iteration is stable. For general strongly convex, possibly nonsmooth objectives, we establish an $O(1/k)$ bound on the expected objective gap of the last iterate, using a conditionally unbiased stochastic first-order oracle with bounded second moment. The result holds with dynamic damping from any $γ_0>0$. We show that NAG-GS can also be written as a Heavy-Ball iteration with explicitly determined step sizes and momentum coefficients. We test the stochastic result on nonsmooth hinge-loss classification problems, and further evaluate NAG-GS on quadratic problems, logistic regression, convolutional neural networks, RoBERTa, and Vision Transformers. The experiments show that NAG-GS can remain effective at learning rates where standard optimizers become unstable or lose accuracy.

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

↑