Abstract
This paper investigates the roles of the "Dominant" (sharp) and "Bulk" (flat) subspaces of the neural network Hessian in optimization. We identify a fundamental trade-off: while updating exclusively along flat directions (Bulk-SGD) can significantly accelerate training and reach lower minima, the sharp directions are critical for maintaining stability and ensuring generalization. Our findings suggest that the Dominant subspace acts as a stabilizer, preventing a "sharpness explosion" that would otherwise lead to divergence.
Introduction
Training deep neural networks involves navigating a complex loss landscape where the curvature, represented by the Hessian matrix, is highly non-uniform. A few directions exhibit extreme sharpness (high curvature), while the vast majority are relatively flat. Interestingly, gradients tend to align with these sharp directions—the Dominant subspace. However, recent research suggests that the actual reduction of training loss primarily occurs in the flatter "Bulk" directions. This paper seeks to resolve this paradox: if sharp directions do not drive learning, why do they exist, and can we accelerate training by ignoring them?
Methodology
To explore these dynamics, we evaluate three optimization strategies:
- Bulk-SGD: Gradients are projected to remove components aligned with the top-$k$ eigenvectors of the Hessian, forcing updates along flat directions.
- Dom-SGD: Updates occur only along the sharpest directions.
- Interpolated Steps: A hybrid approach using separate learning rates for sharp and flat gradient components.
Experiments were conducted on MNIST-5k and CIFAR10-5k datasets using 3-layer Multi-Layer Perceptrons (MLP) and Convolutional Neural Networks (CNN). We also decomposed the Hessian into the Generalized Gauss-Newton (GGN) term and the Functional Hessian to isolate the sources of curvature.
The Role of Hessian Subspaces
Our analysis reveals that the Dominant subspace acts as a "Stability Anchor." When this subspace is removed (as in Bulk-SGD), we observe a "sharpness explosion" where the loss landscape becomes increasingly jagged until training diverges. This suggests that sharp directions are necessary to maintain a smooth optimization path.
Furthermore, we identify a tension between optimization and generalization. Bulk updates reduce training loss faster, but updates in the Dominant subspace are what drive higher test accuracy. Curvature analysis shows that sharp curvature is almost entirely driven by the GGN term, while the Functional Hessian aligns with the Bulk signal, suggesting that gradient alignment with sharp directions may be a byproduct of stochastic noise.
Experimental Results
In controlled experiments, switching to Bulk-SGD with an appropriately higher learning rate led to an immediate and sharper drop in training loss compared to standard SGD. However, Bulk-SGD is highly sensitive to the dimension of the subspace ($k$) and the learning rate; excessive values for either lead to rapid instability.
Heatmaps generated using Interpolated Steps confirm that the lowest training losses occur when the Bulk component is prioritized, whereas the highest test accuracies occur when the Dominant component is given more weight.
Conclusion and Future Work
While Bulk-SGD offers a significant speed boost, its inherent instability makes it difficult to use as a general-purpose replacement for SGD. Future research should focus on adaptive scheduling—using Bulk updates for early-stage acceleration and Dominant updates for late-stage stabilization—and exploring regularization techniques to dampen the sharpness explosion. Testing these subspace methods on larger architectures like Transformers remains a critical next step.
Summary updated