arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16002cs.LGmath.OCstat.ML
收藏

SGD 真的发生在极小子空间中吗?

Does SGD really happen in tiny subspaces?

Department of Mathematical Sciences, KAIST(韩国科学技术院数学科学系);Microsoft Research(微软研究院);Kim Jaechul Graduate School of AI, KAIST(韩国科学技术院金哉彻人工智能研究生院)

Minhak Song, Kwangjun Ahn, Chulhee Yun

AI总结:

本文通过实验发现 SGD 梯度与 Hessian 主导子空间的对齐是虚假的,投影掉主导子空间仍能保持训练效果,并分析了该现象的原因与意义。

摘要:

理解深度神经网络的训练动态十分困难,原因在于其高维特性和复杂的损失景观。近期研究揭示,在训练轨迹上,梯度近似地与训练损失 Hessian 的低秩顶部特征空间对齐,该空间被称为主导子空间。鉴于这种对齐现象,本文探讨神经网络是否能够在主导子空间内进行训练,如果可行,则可能带来更高效的训练方法。我们的主要观察是:当 SGD 更新被投影到主导子空间上时,训练损失并不会进一步下降。这表明所观察到的梯度与主导子空间之间的对齐是虚假的。令人惊讶的是,尽管移除了原始更新的大部分分量,将主导子空间投影出去的效果与原始更新同样有效。我们在多种实际设置中观察到类似行为,包括大学习率机制(也称为稳定边缘)、锐度感知最小化、动量以及自适应优化器。我们讨论了这种虚假对齐的主要原因及其影响,从而揭示神经网络训练的动力学。

英文摘要:

Understanding the training dynamics of deep neural networks is challenging due to their high-dimensional nature and intricate loss landscapes. Recent studies have revealed that, along the training trajectory, the gradient approximately aligns with a low-rank top eigenspace of the training loss Hessian, referred to as the dominant subspace. Given this alignment, this paper explores whether neural networks can be trained within the dominant subspace, which, if feasible, could lead to more efficient training methods. Our primary observation is that when the SGD update is projected onto the dominant subspace, the training loss does not decrease further. This suggests that the observed alignment between the gradient and the dominant subspace is spurious. Surprisingly, projecting out the dominant subspace proves to be just as effective as the original update, despite removing the majority of the original update component. We observe similar behavior across practical setups, including the large learning rate regime (also known as Edge of Stability), Sharpness-Aware Minimization, momentum, and adaptive optimizers. We discuss the main causes and implications of this spurious alignment, shedding light on the dynamics of neural network training.

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

↑