Towards Quantifying the Hessian Structure of Neural Networks

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dong, Zhaorui, Zhang, Yushun, Yao, Jianfeng, Sun, Ruoyu
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915505400446976
author Dong, Zhaorui
Zhang, Yushun
Yao, Jianfeng
Sun, Ruoyu
author_facet Dong, Zhaorui
Zhang, Yushun
Yao, Jianfeng
Sun, Ruoyu
contents Empirical studies reported that the Hessian matrix of neural networks (NNs) exhibits a near-block-diagonal structure, yet its theoretical foundation remains unclear. In this work, we reveal that the reported Hessian structure comes from a mixture of two forces: a ``static force'' rooted in the architecture design, and a ''dynamic force'' arisen from training. We then provide a rigorous theoretical analysis of ''static force'' at random initialization. We study linear models and 1-hidden-layer networks for classification tasks with $C$ classes. By leveraging random matrix theory, we compare the limit distributions of the diagonal and off-diagonal Hessian blocks and find that the block-diagonal structure arises as $C$ becomes large. Our findings reveal that $C$ is one primary driver of the near-block-diagonal structure. These results may shed new light on the Hessian structure of large language models (LLMs), which typically operate with a large $C$ exceeding $10^4$.
format Preprint
id arxiv_https___arxiv_org_abs_2505_02809
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards Quantifying the Hessian Structure of Neural Networks
Dong, Zhaorui
Zhang, Yushun
Yao, Jianfeng
Sun, Ruoyu
Machine Learning
Optimization and Control
Empirical studies reported that the Hessian matrix of neural networks (NNs) exhibits a near-block-diagonal structure, yet its theoretical foundation remains unclear. In this work, we reveal that the reported Hessian structure comes from a mixture of two forces: a ``static force'' rooted in the architecture design, and a ''dynamic force'' arisen from training. We then provide a rigorous theoretical analysis of ''static force'' at random initialization. We study linear models and 1-hidden-layer networks for classification tasks with $C$ classes. By leveraging random matrix theory, we compare the limit distributions of the diagonal and off-diagonal Hessian blocks and find that the block-diagonal structure arises as $C$ becomes large. Our findings reveal that $C$ is one primary driver of the near-block-diagonal structure. These results may shed new light on the Hessian structure of large language models (LLMs), which typically operate with a large $C$ exceeding $10^4$.
title Towards Quantifying the Hessian Structure of Neural Networks
topic Machine Learning
Optimization and Control
url https://arxiv.org/abs/2505.02809