Abstract
The speed at which one can minimize an expected loss using stochastic methods depends on two properties: the curvature of the loss and the variance of the gradients. While most previous works focus on one or the other of these properties, we explore how their interaction affects optimization speed. Further, as the ultimate goal is good generalization performance, we clarify how both curvature and noise are relevant to properly estimate the generalization gap. Realizing that the limitations of some existing works stems from a confusion between these matrices, we also clarify the distinction between the Fisher matrix, the Hessian, and the covariance matrix of the gradients.
Introduction
In stochastic optimization, two primary factors dictate the trajectory toward a minimum: the "curviness" of the loss landscape (curvature) and the "jitter" of gradient estimates (noise). Despite their importance, machine learning literature frequently conflates three distinct matrices: the Hessian ($H$), which measures loss curvature; the Fisher Information Matrix ($F$), related to the model's probability distribution; and the Gradient Covariance ($C$), which quantifies gradient variance.
A common pitfall is using $C$ as a proxy for $F$ (the "empirical Fisher"). This paper argues that these matrices are fundamentally different, and failing to distinguish them leads to sub-optimal optimizer design and a flawed understanding of the generalization gap—the performance difference between training and unseen test data.
The Geometry of Noise and Curvature
To understand the interplay between these matrices, the authors tracked their evolution during the training of deep neural networks on downsampled datasets (MNIST, CIFAR-10, SVHN). They employed two metrics: "scale similarity" (ratio of traces) and "angle similarity" (cosine similarity of flattened matrices).
The empirical results reveal a striking phenomenon: as training progresses, $H$, $F$, and $C$ become remarkably aligned in their eigenvectors, as evidenced by high cosine similarity. However, their eigenvalues—and thus their overall scales—remain significantly different. This alignment explains why some second-order methods appear to work even when using the "wrong" matrix, but the scale discrepancy highlights why they often fail to achieve true curvature adaptation.
The Takeuchi Information Criterion (TIC)
The authors propose the Takeuchi Information Criterion (TIC), defined as $\text{Tr}(H^{-1}C)$, as a robust estimator for the generalization gap. Unlike metrics that focus solely on flatness ($H$), the TIC explicitly accounts for both the model's sensitivity to parameters and the gradient's sensitivity to the data distribution.
The TIC demonstrates a near-perfect correlation with the actual generalization gap. Notably, when training on random labels—where the generalization gap is 100%—the TIC correctly predicts a massive gap, whereas curvature-only metrics like "Sensitivity" or "AIC" fail to capture this discrepancy.
Key Insights
- The "Empirical Fisher" Fallacy: $C$ does not converge to $F$, even with infinite data. Optimizers like Adam or K-FAC using $C$ may be performing variance reduction rather than curvature adaptation.
- Noise as a Bottleneck: Newton's method can fail if noise is high in "flat" directions, as it aggressively amplifies that noise.
- Flatness is Insufficient: Curvature ($H$) alone is a poor predictor of generalization. The interaction with noise ($C$) via the TIC is the critical missing link.
- Effective Approximations: The approximation $\text{Tr}(F^{-1}C)$ was found to be nearly as accurate as the full TIC, offering a more computationally feasible path for large-scale models.
Conclusion
By clarifying the distinctions between the Hessian, Fisher, and Gradient Covariance matrices, this work provides a unified framework for understanding optimization and generalization. While computing full matrices remains a challenge for modern large-scale models, the success of trace-ratio approximations suggests promising directions for future optimizer design and generalization monitoring.
Summary updated