[Paper Review] Dissecting Hessian: Understanding Common Structure of Hessian in Neural Networks
This paper proposes a decoupling conjecture that approximates the layer-wise Hessian of neural networks as a Kronecker product of an input autocorrelation matrix and an output Hessian matrix, explaining the observed low-rank structure in the top eigenspace. The authors prove this structure in over-parametrized 2-layer networks and empirically verify it in deeper models, showing high eigenspace overlap across different networks and low-rank reshaped eigenvectors, leading to improved PAC-Bayes generalization bounds.
Hessian captures important properties of the deep neural network loss landscape. Previous works have observed low rank structure in the Hessians of neural networks. In this paper, we propose a decoupling conjecture that decomposes the layer-wise Hessians of a network as the Kronecker product of two smaller matrices. We can analyze the properties of these smaller matrices and prove the structure of top eigenspace random 2-layer networks. The decoupling conjecture has several other interesting implications - top eigenspaces for different models have surprisingly high overlap, and top eigenvectors form low rank matrices when they are reshaped into the same shape as the corresponding weight matrix. All of these can be verified empirically for deeper networks. Finally, we use the structure of layer-wise Hessian to get better explicit generalization bounds for neural networks.
Motivation & Objective
- To understand the origin of the low-rank structure in the top eigenspace of neural network Hessians.
- To explain why the top eigenspaces of Hessians from different models exhibit high overlap despite differing weights and initializations.
- To develop a method for efficiently computing and analyzing the top eigenspace of layer-wise Hessians in deep networks.
- To apply insights from Hessian structure to improve explicit generalization bounds, particularly in the PAC-Bayes framework.
- To verify the validity of the decoupling conjecture across diverse architectures and data distributions.
Proposed method
- Propose a decoupling conjecture that approximates the layer-wise Hessian as the Kronecker product of an input autocorrelation matrix and an output Hessian matrix.
- Analyze the input autocorrelation matrix, showing it is approximately rank 1 when inputs have nonzero mean, which induces low-rank structure in the full Hessian.
- Prove that in over-parametrized 2-layer networks with random data, the output Hessian is approximately rank $c-1$, where $c$ is the number of classes.
- Use the Kronecker structure to derive a heuristic for efficiently computing the top eigenspace of the layer-wise Hessian from the weight matrices.
- Empirically validate the conjecture and its implications on deeper networks, including eigenspace overlap and low-rank reshaped eigenvectors.
- Apply the Hessian structure to refine PAC-Bayes bounds by incorporating Hessian-based posterior variance optimization.
Experimental results
Research questions
- RQ1Why do the Hessians of deep neural networks exhibit a low-rank structure in their top eigenspace?
- RQ2What causes the high overlap between the top eigenspaces of Hessians from different trained models, even with orthogonal weights?
- RQ3How does the input distribution (e.g., mean-zero vs. nonzero mean) affect the rank structure of the layer-wise Hessian?
- RQ4Can the Kronecker product decomposition of the Hessian be used to derive tighter generalization bounds?
- RQ5To what extent does the decoupling conjecture hold in deeper and more complex architectures beyond 2-layer networks?
Key findings
- The top eigenspace of the layer-wise Hessian is highly similar to that of the output Hessian when the input autocorrelation matrix is approximately rank 1, which occurs when inputs have nonzero mean.
- Empirically, the top eigenspaces of Hessians from different models (e.g., LeNet5 and ResNet18) show high overlap, peaking at the output dimension of the layer.
- When reshaped into the weight matrix shape, the top eigenvectors of the Hessian form low-rank matrices, consistent with the Kronecker product structure.
- For over-parametrized 2-layer networks on random data, the output Hessian is approximately rank $c-1$, where $c$ is the number of classes, and its top eigenspace can be computed directly from the weight matrices.
- The iterative Hessian optimization method with Hessian structure leads to tighter PAC-Bayes bounds, reducing the bound from 0.161 to 0.1198 on T-600 and from 0.179 to 0.1417 on T-1200.
- Posterior variance optimization aligns with Hessian eigenvectors, showing smaller variance in directions of larger eigenvalues, confirming that sharp directions are penalized more in the posterior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.