Abstract
The Hessian matrix is fundamental to understanding neural network optimization, yet its characteristic near-block-diagonal structure has lacked a rigorous theoretical explanation. This paper provides a mathematical foundation for this phenomenon using Random Matrix Theory (RMT). We demonstrate that the Hessian's structure is governed by two distinct forces: a "static force" related to the network architecture—specifically the number of output classes $C$—and a "dynamic force" that manifests during training. Our analysis reveals that the block-diagonal structure is an inherent property of large-scale models, emerging even under Mean-Squared Error (MSE) loss as the number of classes grows. These results provide theoretical justification for modern optimizers that utilize diagonal approximations.
Introduction
The Hessian matrix, containing second-order derivatives of the loss function, plays a critical role in determining gradient flow and the efficiency of optimization algorithms. Empirical studies have long noted that the Hessian of neural networks is "near-block-diagonal," with energy concentrated in diagonal blocks corresponding to individual layers or neurons. However, since the early 2000s, this structure was largely attributed primarily to the specific properties of Cross-Entropy (CE) loss. This work seeks to formalize the mathematical drivers behind this structure and re-evaluate the role of the loss function versus architectural scale.
Theoretical Framework and Methods
The study utilizes Random Matrix Theory to analyze the Hessian at random initialization. The authors focus on linear models and 1-hidden-layer networks, examining both MSE and CE losses. Key techniques include the Lindeberg Interpolation Principle to decouple weight-data dependencies and the application of the generalized Marcenko-Pastur theorem. The primary metric for analysis is the ratio of Frobenius norms between off-diagonal and diagonal blocks as dimensions approach infinity.
The Two-Force Theory
The authors propose a "Two-Force Theory" to explain the Hessian's evolution and shape:
- Static Force: This architectural force compresses "cross-neuron" components within a single layer. It is heavily influenced by the number of output classes $C$. As $C$ increases, the off-diagonal blocks vanish relative to the diagonal blocks, suggesting that the block-diagonal nature of Large Language Models (LLMs) is a consequence of their massive vocabulary scale.
- Dynamic Force: This force arises during the training process, gradually erasing "cross-layer" components and further refining the block-diagonal structure as the model converges.
Key Results and Empirical Validation
Theoretical proofs show that for linear models with CE loss, the off-diagonal to diagonal ratio decays at a rate of $O(1/C^2)$. In 1-hidden-layer networks, decay rates of $O(1/\sqrt{C})$ or $O(1/C)$ are observed depending on the loss type. Numerical experiments confirm these findings: while networks with few classes exhibit "messy" Hessians, those with 1000 classes show a sharp block-diagonal pattern even at initialization.
These findings provide a theoretical "blessing" for optimizers like Adam and Adam-mini. By proving that the Hessian is naturally near-block-diagonal at scale, the paper justifies the use of diagonal or block-diagonal approximations, which are essential for memory-efficient training of large-scale models.
Limitations and Future Work
While the current proofs are limited to 1-hidden-layer models, the authors suggest that recursive decoupling could extend these results to deeper architectures. Future work will also focus on a more rigorous mathematical characterization of the "dynamic force" and exploring the block-wise spectral distribution to further refine optimizer design.
Summary updated