Local properties of neural networks through the lens of layer-wise Hessians
Maxim Bolshim, Alexander Kugaevskikh
TL;DR
This paper introduces local layer-wise Hessians as a principled tool to study the geometry of neural network parameter spaces. By defining S_i(θ_i) for each functional block and computing LH_i = ∇^2_{θ_i} S_i(θ_i), the authors connect layer-wise curvature to expressivity and generalization. Through 111 experiments on 37 datasets, they show that LH_i spectra reveal architecture-specific patterns, correlate with generalization, and exhibit phase-transition-like behavior between under- and overparameterized regimes. The work provides practical guidelines for architecture optimization and motivates future integration of local geometric analysis into architecture search and training stability methods, with potential extensions to diverse architectures and geometric frameworks.
Abstract
We introduce a methodology for analyzing neural networks through the lens of layer-wise Hessian matrices. The local Hessian of each functional block (layer) is defined as the matrix of second derivatives of a scalar function with respect to the parameters of that layer. This concept provides a formal tool for characterizing the local geometry of the parameter space. We show that the spectral properties of local Hessians, such as the distribution of eigenvalues, reveal quantitative patterns associated with overfitting, underparameterization, and expressivity in neural network architectures. We conduct an extensive empirical study involving 111 experiments across 37 datasets. The results demonstrate consistent structural regularities in the evolution of local Hessians during training and highlight correlations between their spectra and generalization performance. These findings establish a foundation for using local geometric analysis to guide the diagnosis and design of deep neural networks. The proposed framework connects optimization geometry with functional behavior and offers practical insight for improving network architectures and training stability.
