Learning Dynamics of Deep Linear Networks Beyond the Edge of Stability
Computational Mathematics Science and Engineering, Michigan State University(密歇根州立大学计算数学科学与工程系);Department of Electrical Engineering & Computer Science, University of Michigan(密歇根大学电气与计算机工程系)
Avrajit Ghosh, Soo Min Kwon, Rongrong Wang, Saiprasad Ravishankar, Qing Qu
使用固定学习率 $η$ 的梯度下降训练的深度神经网络,常常处于“稳定性边缘”(EOS)状态,此时 Hessian 矩阵的最大特征值在稳定性阈值 $2/η$ 附近达到平衡。在本工作中,我们对深度矩阵分解损失中(深度)线性网络(DLN)在 EOS 之外的学习动力学进行了细粒度分析。对于 DLN,EOS 之外的损失振荡遵循倍周期分岔路径走向混沌。我们从理论上分析了 2 周期轨道的状态,并表明损失振荡发生在一个小子空间内,该子空间的维度由学习率精确刻画。我们分析的关键在于证明梯度流的对称性诱导守恒律(定义为各层奇异值之间的平衡差距)在 EOS 处被打破,并单调衰减至零。总体而言,我们的结果有助于解释深度网络中的两个关键现象:(i)浅层模型和简单任务并不总是表现出 EOS;(ii)振荡发生在顶层特征中。我们提供了实验来支持我们的理论,并举例说明了这些现象如何发生在非线性网络中,以及它们与具有良性景观的网络(如 DLN)中的现象有何不同。
英文摘要:
Deep neural networks trained using gradient descent with a fixed learning rate $η$ often operate in the regime of "edge of stability" (EOS), where the largest eigenvalue of the Hessian equilibrates about the stability threshold $2/η$. In this work, we present a fine-grained analysis of the learning dynamics of (deep) linear networks (DLNs) within the deep matrix factorization loss beyond EOS. For DLNs, loss oscillations beyond EOS follow a period-doubling route to chaos. We theoretically analyze the regime of the 2-period orbit and show that the loss oscillations occur within a small subspace, with the dimension of the subspace precisely characterized by the learning rate. The crux of our analysis lies in showing that the symmetry-induced conservation law for gradient flow, defined as the balancing gap among the singular values across layers, breaks at EOS and decays monotonically to zero. Overall, our results contribute to explaining two key phenomena in deep networks: (i) shallow models and simple tasks do not always exhibit EOS; and (ii) oscillations occur within top features. We present experiments to support our theory, along with examples demonstrating how these phenomena occur in nonlinear networks and how they differ from those which have benign landscape such as in DLNs.
Conflicting Biases at the Edge of Stability: Norm versus Sharpness Regularization
Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心);Prusa Research(普拉萨研究公司);Institute for Robotics and Mechatronics, DLR-German Aerospace Center(德国航空航天中心机器人与机电研究所)