arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.17490stat.MLcs.LG
收藏

随机梯度下降中动力学稳定性的隐式正则化

The Implicit Regularization of Dynamical Stability in Stochastic Gradient Descent

Peking University(北京大学);University of Pennsylvania(宾夕法尼亚大学)

Lei Wu, Weijie J. Su

AI总结:

本文从动力学稳定性视角分析 SGD 的隐式正则化,证明稳定最小值约束 Hessian 迹并等价于参数范数,从而解释大学习率 SGD 优于 GD 的泛化表现。

摘要:

本文通过动力学稳定性(Wu et al., 2018)的视角研究随机梯度下降(SGD)的隐式正则化。我们首先修正现有的 SGD 稳定性分析,展示 Hessian 矩阵的 Frobenius 范数和迹如何与不同的稳定性概念相关联。值得注意的是,如果一个全局最小值对 SGD 而言是线性稳定的,那么 Hessian 的迹必须小于或等于 $2/η$,其中 $η$ 表示学习率。相比之下,对于梯度下降(GD),稳定性施加了类似约束,但仅针对 Hessian 的最大特征值。随后,我们转而分析这些稳定最小值的泛化性质,特别聚焦于两层 ReLU 网络和对角线性网络。值得注意的是,我们建立了这些锐度度量与两种模型的某些参数范数之间的等价性,从而能够证明 SGD 的稳定最小值具有良好的泛化能力。相比之下,GD 由稳定性诱导的正则化被证明过弱,无法保证令人满意的泛化。这种差异解释了为什么 SGD 通常比 GD 泛化得更好。需要注意的是,学习率(LR)在稳定性诱导正则化的强度中起关键作用。随着 LR 增大,正则化效应变得更加显著,这阐明了为什么具有较大 LR 的 SGD 始终表现出更优的泛化能力。此外,本文提供了数值实验以支持我们的理论发现。

英文摘要:

In this paper, we study the implicit regularization of stochastic gradient descent (SGD) through the lens of {\em dynamical stability} (Wu et al., 2018). We start by revising existing stability analyses of SGD, showing how the Frobenius norm and trace of Hessian relate to different notions of stability. Notably, if a global minimum is linearly stable for SGD, then the trace of Hessian must be less than or equal to $2/η$, where $η$ denotes the learning rate. By contrast, for gradient descent (GD), the stability imposes a similar constraint but only on the largest eigenvalue of Hessian. We then turn to analyze the generalization properties of these stable minima, focusing specifically on two-layer ReLU networks and diagonal linear networks. Notably, we establish the {\em equivalence} between these metrics of sharpness and certain parameter norms for the two models, which allows us to show that the stable minima of SGD provably generalize well. By contrast, the stability-induced regularization of GD is provably too weak to ensure satisfactory generalization. This discrepancy provides an explanation of why SGD often generalizes better than GD. Note that the learning rate (LR) plays a pivotal role in the strength of stability-induced regularization. As the LR increases, the regularization effect becomes more pronounced, elucidating why SGD with a larger LR consistently demonstrates superior generalization capabilities. Additionally, numerical experiments are provided to support our theoretical findings.

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

↑