arXiv:2412.17613cs.LGstat.ML2024-12

大学习率引发的不稳定性反而能提升模型泛化能力

Can Stability be Detrimental? Better Generalization through Gradient Descent Instabilities

  • 通过大学习率诱导参数不稳定性,推动模型向损失曲面更平坦区域移动
  • 网络深度导致海森矩阵主成分旋转,促进参数空间探索
  • 实验证明该机制在主流数据集上带来优异泛化性能

传统梯度下降分析认为,当损失函数海森矩阵最大特征值(即尖锐度)低于临界学习率阈值时,训练是‘稳定’的,损失单调下降。然而近期研究表明,现代深度神经网络大多在该稳定域外运行却仍表现良好。本文揭示,大学习率引发的不稳定性会促使模型参数移向损失曲面更平坦的区域。关键洞察在于:在这些不稳定状态下,海森矩阵特征向量的方向发生旋转。我们推测,这使模型得以探索具有更优几何特性(如平坦性)的参数空间区域。这种旋转源于网络深度,我们证明对于深度大于1的网络,参数的不稳定性增长会导致海森矩阵主成分旋转,从而引导模型远离不稳定的参数方向。实验显示,大学习率下的梯度下降存在隐式正则化效应,在现代基准数据集上实现卓越泛化性能。

原文摘要 · Abstract (English)

Traditional analyses of gradient descent optimization show that, when the largest eigenvalue of the loss Hessian - often referred to as the sharpness - is below a critical learning-rate threshold, then training is 'stable' and training loss decreases monotonically. Recent studies, however, have suggested that the majority of modern deep neural networks achieve good performance despite operating outside this stable regime. In this work, we demonstrate that such instabilities, induced by large learning rates, move model parameters toward flatter regions of the loss landscape. Our crucial insight lies in noting that, during these instabilities, the orientation of the Hessian eigenvectors rotate. This, we conjecture, allows the model to explore regions of the loss landscape that display more desirable geometrical properties for generalization, such as flatness. These rotations are a consequence of network depth, and we prove that for any network with depth > 1, unstable growth in parameters cause rotations in the principal components of the Hessian, which promote exploration of the parameter space away from unstable directions. Our empirical studies reveal an implicit regularization effect in gradient descent with large learning rates operating beyond the stability threshold. We find these lead to excellent generalization performance on modern benchmark datasets.

优化器泛化深度学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。