TL;DR
SASSHA is a novel optimizer that combines the convergence speed of second-order methods with the superior generalization of Sharpness-Aware Minimization (SAM). By stabilizing approximate Hessian computations with a "square-root" trick and utilizing lazy updates, it consistently outperforms both first-order (SGD, AdamW) and second-order (Sophia, AdaHessian) baselines across vision and language tasks.
Introduction: The Generalization Gap in Second-Order Methods
In the world of deep learning optimization, there is a classic trade-off. First-order methods like SGD and Adam are the industry standard because they generalize well to unseen data. Second-order methods, which use information about the curvature of the loss landscape (the Hessian), promise faster convergence but often suffer from a "generalization gap"—they tend to find "sharp" minima.
A sharp minimum is like a narrow, steep-walled canyon in the loss landscape. While the training error is low at the bottom, a tiny shift in the data (like moving from training to testing) can land you high up on a canyon wall, leading to poor performance. This paper investigates why second-order methods favor these sharp regions and proposes a way to force them into "flat" minima—wide, shallow valleys that are much more robust to data shifts.
Methods: The SASSHA Optimizer
The authors introduce SASSHA (Sharpness-aware Adaptive Second-order optimization with Stable Hessian Approximation). Its design rests on three core pillars:
- Sharpness-Aware Objective: Like the SAM optimizer, SASSHA doesn't just look at the current point; it looks at the "worst-case" loss in a small neighborhood around the current weights. It then performs a second-order update based on this perturbed point, actively seeking out flatter regions.
- Stable Hessian Approximation: Naively combining sharpness minimization with second-order updates is numerically explosive. When an optimizer finds a flat region, the curvature (Hessian) becomes very small. Since second-order methods divide by the Hessian, the update steps can become infinitely large, causing the model to diverge. SASSHA fixes this by:
- Square-rooting the Hessian ($|H|^{1/2}$): This smoothly increases the magnitude of near-zero entries, preventing step-size explosions.
- Absolute Value: Using the absolute value of the diagonal Hessian ensures the optimizer always moves in a descent direction, avoiding saddle points.
- Efficiency via Lazy Updates: Computing the Hessian is computationally expensive. SASSHA only updates its Hessian estimate every $k$ steps (default $k=10$). Because SASSHA biases the path toward flat regions where curvature changes slowly, these "lazy" updates remain remarkably accurate without sacrificing performance.
Key Insights and Ideas
The Second-Order "Sharpness" Tax
The paper empirically confirms that popular second-order optimizers like AdaHessian and Sophia converge to solutions with Hessian eigenvalues orders of magnitude larger than those of SGD. This provides a clear geometric explanation for their poor generalization.
The Stability Paradox
Usually, finding a flat minimum is highly desirable. But for standard second-order methods, flatness is a "numerical hazard" that causes unstable, massive update steps. The authors' insight that square-rooting the preconditioner acts as a geometric interpolation between the identity matrix and the Hessian is a clever way to balance bias and variance, allowing the optimizer to safely navigate flat valleys.
Curvature Consistency
One of the most surprising findings is that SASSHA is more robust to "lazy" updates than other methods. Because it actively seeks out flat regions, the Hessian doesn't change as rapidly. This allows the optimizer to reuse old curvature information for longer periods without losing performance, drastically cutting computational overhead.
Experimental Results
The authors validated SASSHA across a diverse range of benchmarks, demonstrating its versatility and power:
- Superior Generalization in Vision: On ImageNet-1k with a Vision Transformer (ViT-s-32), SASSHA achieved 69.20% accuracy, significantly outperforming AdamW (66.46%) and even the first-order SAM (68.31%).
- Language Modeling: In GPT1-mini pretraining on Wikitext-2, SASSHA reached a perplexity of 122.40, whereas the previous state-of-the-art second-order method for language, Sophia-H, trailed at 157.60.
- Noise Robustness: Under extreme conditions like 60% synthetic label noise on CIFAR-100, SASSHA maintained 53.98% accuracy, while standard SGD plummeted to 45.53%.
- Computational Cost: Despite the second-order machinery, SASSHA's theoretical cost is only 2.3x that of a standard gradient computation (GC). A further optimized variant, M-SASSHA, brings this down to 1.3x GC while still outperforming SGD and AdamW.
Limitations and Future Work
While the results are impressive, the authors note several areas for further exploration. The experiments, while comprehensive, do not yet cover "frontier" model scales (e.g., 7B+ parameter LLMs). Additionally, while the paper provides a convergence analysis and linear stability proofs, deeper theoretical work on the implicit bias of SASSHA compared to standard SAM could yield more insights. Finally, the interaction between the perturbation radius ($\rho$) and the Hessian update interval ($k$) across different architectures warrants further study to fully automate hyperparameter tuning.
Summary updated