arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.05600cs.LG
收藏

关于SGD噪声协方差与损失景观曲率之间的超线性关系

On the Superlinear Relationship between SGD Noise Covariance and Loss Landscape Curvature

School of Physics, Peking University(北京大学物理系);Peking University Chengdu Academy for Advanced Interdisciplinary Biotechnologies(北京大学成都先进交叉生物技术研究院);Flatiron Institute(Flatiron研究所)

Yikuan Zhang, Ning Yang, Yuhai Tu

AI总结:

本文发现SGD噪声协方差与Hessian矩阵之间存在超线性关系,而非简单的正比关系,并通过实验验证了层间幂律标度。

摘要:

随机梯度下降(SGD)引入各向异性噪声,该噪声与损失景观的局部曲率相关,从而将优化偏向平坦最小值。先前的工作通常假设对于负对数似然损失,Fisher信息矩阵与Hessian矩阵等价,从而声称SGD噪声协方差$\mathbf{C}$与Hessian矩阵$\mathbf{H}$成正比。我们证明该假设仅在深度神经网络中通常违反的严格条件下成立。利用最近发现的Activity--Weight对偶性,我们找到了一个更一般的、与具体损失形式无关的关系,表明$\mathbf{C} \propto \mathbb{E}_p[\mathbf{h}_p^2]$,其中$\mathbf{h}_p$表示每个样本的Hessian矩阵,且$\mathbf{H} = \mathbb{E}_p[\mathbf{h}_p]$。因此,$\mathbf{C}$和$\mathbf{H}$近似交换而非精确相等。我们进一步发现,在所分析的全连接层内,它们的对角元素遵循每层经验幂律$C_{ii} \propto H_{ii}^{\gamma}$,其中层依赖的拟合指数满足$1 \leq \gamma \leq 2$。跨数据集、架构和损失函数的实验支持了所得的层间界限,为深度学习中噪声-曲率关系提供了统一的刻画。

英文摘要:

Stochastic Gradient Descent (SGD) introduces anisotropic noise that is correlated with the local curvature of the loss landscape, thereby biasing optimization toward flat minima. Prior work often assumes an equivalence between the Fisher Information Matrix and the Hessian for negative log-likelihood losses, leading to the claim that the SGD noise covariance $\mathbf{C}$ is proportional to the Hessian $\mathbf{H}$. We show that this assumption holds only under restrictive conditions that are typically violated in deep neural networks. Using the recently discovered Activity--Weight Duality, we find a more general relationship agnostic to the specific loss formulation, showing that $\mathbf{C} \propto \mathbb{E}_p[\mathbf{h}_p^2]$, where $\mathbf{h}_p$ denotes the per-sample Hessian with $\mathbf{H} = \mathbb{E}_p[\mathbf{h}_p]$. As a consequence, $\mathbf{C}$ and $\mathbf{H}$ commute approximately rather than coincide exactly. We further find that, within the analyzed fully connected layers, their diagonal elements follow per-layer empirical power laws $C_{ii} \propto H_{ii}^γ$, with layer-dependent fitted exponents bounded by $1 \leq γ\leq 2$. Experiments across datasets, architectures, and loss functions support the resulting layerwise bounds, providing a unified characterization of the noise-curvature relationship in deep learning.

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

↑