arXiv:2504.17618cs.LGcs.CV2025-04被引 1

揭示神经网络赫森矩阵谱密度类型对泛化评估有效性的影响

The effects of Hessian eigenvalue spectral density type on the applicability of Hessian analysis to generalization capability assessment of neural networks

  • 通过实验发现训练中多数为正谱密度(MP-HESD),负谱密度源于外部梯度操纵
  • 提出判断赫森类型的标准,统一了泛化能力评估方法
  • 指出训练过程中的准奇异状态会干扰传统曲率假设

神经网络的赫森矩阵包含损失曲面曲率的关键信息,可用于估计泛化能力。先前研究提出基于赫森特征值谱密度(HESD)行为相似性的泛化判据。本文进一步探究影响HESD类型的因素,实验表明:在不同优化器、数据集及预处理/增强条件下,训练与微调中的HESD主要呈现正特征值分布(MP-HESD)。而主要负特征值分布(MN-HESD)则源于外部梯度操纵,表明此前赫森分析方法在此类情形下不适用。本文提出判断HESD类型的准则与条件,结合已有判据构建统一的赫森分析框架。最后讨论训练过程中HESD的变化,揭示准奇异(QS)HESD的存在及其对方法与传统曲率关系假设的影响。

原文摘要 · Abstract (English)

Hessians of neural network (NN) contain essential information about the curvature of NN loss landscapes which can be used to estimate NN generalization capabilities. We have previously proposed generalization criteria that rely on the observation that Hessian eigenvalue spectral density (HESD) behaves similarly for a wide class of NNs. This paper further studies their applicability by investigating factors that can result in different types of HESD. We conduct a wide range of experiments showing that HESD mainly has positive eigenvalues (MP-HESD) for NN training and fine-tuning with various optimizers on different datasets with different preprocessing and augmentation procedures. We also show that mainly negative HESD (MN-HESD) is a consequence of external gradient manipulation, indicating that the previously proposed Hessian analysis methodology cannot be applied in such cases. We also propose criteria and corresponding conditions to determine HESD type and estimate NN generalization potential. These HESD types and previously proposed generalization criteria are combined into a unified HESD analysis methodology. Finally, we discuss how HESD changes during training, and show the occurrence of quasi-singular (QS) HESD and its influence on the proposed methodology and on the conventional assumptions about the relation between Hessian eigenvalues and NN loss landscape curvature.

赫森分析泛化能力神经网络谱密度

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。