arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.14701cs.LGstat.ML
收藏

使用草图方法在大规模下连接参数幅度与Hessian特征空间

Connecting Parameter Magnitudes and Hessian Eigenspaces at Scale using Sketched Methods

Tübingen AI Center University of Tübingen(图宾根人工智能中心大学)

Andres Fernandez, Frank Schneider, Maren Mahsereci, Philipp Hennig

AI总结:

本研究联合分析深度网络训练中Hessian顶部特征空间与幅度剪枝掩码的稳定性,提出基于草图SVD的无矩阵算法,证明两者存在高于随机水平的重叠,且随网络规模增大而增强。

摘要:

最近观察到,在使用SGD训练深度神经网络时,损失景观的曲率大部分迅速集中在损失Hessian的一个微小的*顶部*特征空间中,此后该空间基本保持稳定。独立地,已有研究表明,深度神经网络的成功幅度剪枝掩码在训练早期出现,并在此后保持稳定。在这项工作中,我们联合研究这两种现象,并表明它们是相互关联的:我们开发了一种方法,通过Grassmann度量来测量任意参数掩码与Hessian特征空间之间的相似性。我们确定*重叠*为最有用的此类度量,因为它具有可解释性和稳定性。为了计算*重叠*,我们开发了一种基于草图SVD的无矩阵算法,使我们能够为参数超过1000万的网络计算超过1000个Hessian特征对——这在规模上比以往高出几个数量级。我们的实验揭示,幅度参数掩码与顶部Hessian特征空间之间的*重叠*始终高于随机水平,并且这种效应在网络规模增大时更加显著。这一结果表明,*顶部Hessian特征向量倾向于集中在较大参数周围*,或者等价地,*较大参数倾向于与较大损失曲率的方向对齐*。我们的工作提供了一种在大规模下近似和分析深度学习Hessian的方法,以及对其特征空间结构的新见解。

英文摘要:

Recently, it has been observed that when training a deep neural net with SGD, the majority of the loss landscape's curvature quickly concentrates in a tiny *top* eigenspace of the loss Hessian, which remains largely stable thereafter. Independently, it has been shown that successful magnitude pruning masks for deep neural nets emerge early in training and remain stable thereafter. In this work, we study these two phenomena jointly and show that they are connected: We develop a methodology to measure the similarity between arbitrary parameter masks and Hessian eigenspaces via Grassmannian metrics. We identify *overlap* as the most useful such metric due to its interpretability and stability. To compute *overlap*, we develop a matrix-free algorithm based on sketched SVDs that allows us to compute over 1000 Hessian eigenpairs for nets with over 10M parameters --an unprecedented scale by several orders of magnitude. Our experiments reveal an *overlap* between magnitude parameter masks and top Hessian eigenspaces consistently higher than chance-level, and that this effect gets accentuated for larger network sizes. This result indicates that *top Hessian eigenvectors tend to be concentrated around larger parameters*, or equivalently, that *larger parameters tend to align with directions of larger loss curvature*. Our work provides a methodology to approximate and analyze deep learning Hessians at scale, as well as a novel insight on the structure of their eigenspace.

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

↑