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

SGD寻求平坦还是尖锐?一个可精确求解的模型

Does SGD Seek Flatness or Sharpness? An Exactly Solvable Model

École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);Massachusetts Institute of Technology(麻省理工学院);NTT Research(NTT研究所)

Yizhou Xu, Pierfrancesco Beneventano, Isaac Chuang, Liu Ziyin

AI总结:

本文通过可精确求解的模型揭示SGD在训练中偏好平坦或尖锐解的机制,发现数据分布和标签噪声各向异性决定最终解的尖锐性。

摘要:

大量理论和实证工作假设神经网络损失景观在训练期间的平坦性与其性能之间存在联系。然而,关于SGD在训练期间更偏好平坦或尖锐解决方案存在概念上相反的证据。在本工作中,我们部分但因果地澄清了SGD的平坦性寻求行为,通过识别并精确求解一个可解析求解的模型,该模型在训练期间表现出平坦和尖锐行为。在此模型中,SGD训练在事前没有对平坦性的偏好,但仅对最小梯度波动有偏好。这导致了洞察,至少在该模型中,数据分布唯一决定了收敛时的尖锐性,且只有当标签噪声在所有输出维度上各向同性时,才会偏好平坦的最小值。当标签噪声是各向异性时,模型反而偏好尖锐性,并可根据标签噪声谱的不平衡程度收敛到任意尖锐的解。我们在不同模型架构(如MLP、RNN和Transformer)的受控设置中重现了这一关键洞察。

英文摘要:

A large body of theory and empirical work hypothesizes a connection between the flatness of a neural network's loss landscape during training and its performance. However, there have been conceptually opposite pieces of evidence regarding when SGD prefers flatter or sharper solutions during training. In this work, we partially but causally clarify the flatness-seeking behavior of SGD by identifying and exactly solving an analytically solvable model that exhibits both flattening and sharpening behavior during training. In this model, the SGD training has no \textit{a priori} preference for flatness, but only a preference for minimal gradient fluctuations. This leads to the insight that, at least within this model, it is data distribution that uniquely determines the sharpness at convergence, and that a flat minimum is preferred if and only if the noise in the labels is isotropic across all output dimensions. When the noise in the labels is anisotropic, the model instead prefers sharpness and can converge to an arbitrarily sharp solution, depending on the imbalance in the noise in the labels spectrum. We reproduce this key insight in controlled settings with different model architectures such as MLP, RNN, and transformers.

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

↑