Abstract
Modern deep learning training is dominated by first-order optimizers like Adam and SGD due to their computational efficiency. However, these methods are often "curvature-blind," leading to suboptimal convergence in complex loss landscapes. Second-order methods, which utilize the Fisher Information Matrix (FIM) to account for curvature, offer superior convergence properties but are typically computationally prohibitive. This paper introduces AdaFisher, a novel second-order optimizer that bridges this gap. By employing a diagonal Block-Kronecker approximation and removing the standard square-root scaling, AdaFisher achieves state-of-the-art accuracy and faster wall-clock convergence than both first-order baselines and existing second-order approximations like K-FAC.
1. Introduction
The efficiency of deep learning training is largely determined by the choice of optimizer. First-order methods are the industry standard because they only require the gradient of the loss function, making them computationally "cheap." Yet, their inability to perceive the underlying geometry of the loss landscape can result in slow convergence or entrapment in sharp minima that generalize poorly.
Second-order optimizers, such as Natural Gradient Descent, leverage the Hessian or the Fisher Information Matrix (FIM) to navigate curvature. While theoretically superior, calculating and inverting these massive matrices for models with millions or billions of parameters is mathematically intractable for practical use. AdaFisher addresses this "efficiency vs. accuracy" trade-off by introducing a memory-efficient, adaptive framework that retains the benefits of second-order information without the crippling overhead.
2. Methodology
AdaFisher is built upon four primary technical innovations designed to streamline second-order optimization for large-scale neural networks:
2.1 Diagonal Block-Kronecker Approximation
Rather than computing the full FIM, AdaFisher utilizes a Kronecker-factored approach. Through empirical analysis using the Gershgorin circle theorem and FFT-based spectral analysis, it was discovered that the energy of these Kronecker factors is heavily concentrated along the diagonal. By focusing exclusively on these diagonal elements, AdaFisher significantly reduces computational complexity while retaining the most critical curvature information.
2.2 Removal of the Square Root
Standard adaptive optimizers (like Adam) typically apply a square root to the second-moment estimate in their update rule. AdaFisher deviates from this convention. Because the FIM already captures second-order curvature, the square root is theoretically redundant and, in practice, can be detrimental to the stability of second-order updates. Removing it aligns the optimizer more closely with the theoretical foundations of Natural Gradient Descent.
2.3 Normalization Layer Integration
Second-order methods frequently struggle with normalization layers (e.g., BatchNorm, LayerNorm), often ignoring them entirely. AdaFisher introduces specific formulas to compute Fisher information for these layers. This integration is vital for maintaining training stability, particularly in deep architectures where normalization is ubiquitous.
2.4 Adaptive Framework
AdaFisher is implemented within an "Adam-like" framework. This design choice ensures compatibility with standard learning rate schedulers and makes it a drop-in replacement for existing first-order optimizers in most training pipelines.
3. Experimental Results
AdaFisher was validated across diverse benchmarks in Computer Vision (CV) and Natural Language Processing (NLP), focusing on Wall-Clock Time (WCT) as the primary metric of success.
3.1 Image Classification on ImageNet-1k
In a 90-epoch training window of a ResNet-50 on ImageNet-1k, AdaFisher achieved 77.09% Top-1 accuracy. Under the same wall-clock time constraints, Adam achieved only 67.78%, and the second-order K-FAC optimizer reached 70.96%. This demonstrates that AdaFisher provides a significantly better accuracy-per-second ratio than its predecessors.
3.2 Vision Transformers (ViTs)
On CIFAR-100, the weight-decay variant (AdaFisherW) was tested using a Tiny Swin Transformer. It reached 66.47% accuracy, outperforming AdamW, which reached 62.20%. This suggests that the benefits of second-order curvature information extend to attention-based architectures.
3.3 Language Modeling
AdaFisher was evaluated on WikiText-2 and Penn Treebank (PTB) using a scaled-down GPT-1 architecture. The results confirmed that the optimizer is robust across modalities, maintaining stability and performance in NLP tasks.
4. Key Insights
- Diagonal Dominance: The discovery that curvature information is concentrated on the diagonal of Kronecker factors justifies the use of "cheap" approximations without sacrificing significant optimization power.
- Generalization and Flat Minima: Visualization of optimization trajectories indicates that AdaFisher effectively navigates through saddle points to reach "flatter" minima. In deep learning theory, flatter minima are strongly correlated with better generalization on unseen data.
- Hyperparameter Robustness: Unlike many second-order methods that require extensive "heroic" tuning, AdaFisher proved remarkably stable across various batch sizes and learning rates.
5. Conclusion and Future Work
AdaFisher represents a significant step toward making second-order optimization practical for mainstream deep learning. By prioritizing wall-clock time and diagonal approximations, it offers a viable alternative to Adam for large-scale training.
Future research will focus on reducing Python/PyTorch overhead through custom CUDA kernels to further narrow the per-iteration speed gap with Adam. Additionally, the author suggests exploring "band-diagonal" approximations to capture more parameter correlations and scaling the method to Large Language Models (LLMs) with hundreds of billions of parameters, where memory efficiency is paramount.
Summary updated