具有DAG架构的神经网络的层间Hessian分析
Inter-Layer Hessian Analysis of Neural Networks with DAG Architectures
AI总结:
本文提出了一种分析框架,将神经网络的Hessian分解为DAG结构的块,区分Gauss-Newton和张量部分,针对ReLU激活函数推导出输入Hessian的张量部分为零,引入诊断指标揭示层间曲率交互。
摘要:
现代自动微分框架(如JAX、PyTorch)返回损失函数的Hessian作为单一大张量,不暴露层间交互的内部结构。本文提出一种分析形式,将完整Hessian分解为由任意架构DAG索引的块。标准分解H=H^{GN}+H^T将Gauss-Newton部分(凸部分)与张量部分(残差曲率负责鞍点)分离。对于分段线性激活函数(ReLU),输入Hessian的张量部分(H^{T}_{v,w}≡0)几乎处处为零,而完整参数Hessian包含残差项,不减少到GGN。基于此分解,我们引入诊断指标(层间共振R,几何耦合C,稳定秩D,GN-Gap),这些指标在O(P)时间内随机估计,揭示层间曲率交互。理论分析解释了普通网络中共振的指数衰减及其在跳跃连接下的保持;实证验证覆盖全连接MLP(实验1-5)和卷积架构(ResNet-18,约1100万参数,实验6)。当架构缩减为单个节点时,所有定义坍缩为标准Hessian ∇²_θL(θ)∈R^{p×p}。
英文摘要:
Automatic differentiation computes loss Hessians, while interpreting inter-layer interactions requires an explicit choice of graph-indexed blocks. This paper presents an analytical formalism that decomposes the full Hessian into blocks indexed by the DAG of an architecture. The standard decomposition $H = H^{GN} + H^T$ separates the Gauss-Newton component (positive semidefinite for a convex output loss) from the tensor component (residual curvature). If every node map is locally affine in its parent activations, the tensor component of the input Hessian vanishes on each smooth cell ($H^{T}_{v,w}=0$, $H^f_{v,w}=H^{GN}_{v,w}$); ReLU activations alone do not suffice. The full parametric Hessian contains residual terms that do not reduce to the GGN. Building on this decomposition, we use diagnostic metrics (inter-layer resonance $\mathcal{R}$, geometric coupling $\mathcal{C}$, stable rank $\mathcal{D}$, GN-Gap) with stochastic HVP-based estimates whose cost depends on graph evaluation and the number of probes. The theoretical analysis gives conditional bounds on curvature decay and residual-chain transport; empirical examples span fully connected MLPs (Exp. 1-5) and convolutional architectures (ResNet-18, ${\sim}11$M parameters, Exp. 6). When the architecture reduces to a single node, all definitions collapse to the standard Hessian $\nabla^2_θ\mathcal{L}(θ)\in\mathbb{R}^{p\times p}$. Archival correction. The original general novelty claims are no longer maintained: general DAG-Hessian calculus has prior precedents. This is a corrected archival version.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。