Abstract: Deep Neural Networks (DNNs) are currently predominantly trained using first-order methods. While methods like Adam and RMSprop incorporate some curvature information, they often fall short on complex landscapes. This paper introduces the Mini-Block Fisher (MBF) method, a novel second-order optimization algorithm designed to train DNNs more efficiently than standard first-order methods while avoiding the heavy computational toll of traditional second-order approaches like KFAC. By using a highly granular "mini-block" approximation of the Fisher matrix, MBF captures crucial curvature information with minimal computational overhead.
Introduction
Training deep neural networks is a massive optimization challenge. Most practitioners rely on first-order methods like SGD or Adam because they are computationally efficient per iteration. However, these methods use little to no information about the "curvature" of the loss landscape, which can lead to slow convergence on complex, ill-conditioned problems.
Second-order methods, such as KFAC or Shampoo, use curvature information to take more effective steps but are often prohibitively expensive. They typically approximate the Hessian or Fisher matrix using large, layer-wise blocks. Inverting these large matrices at every step is slow and memory-intensive, often negating the benefits of faster convergence in terms of total wall-clock time. MBF aims to find the "sweet spot" between these two extremes.
Methodology
The core innovation of MBF is a fine-grained approximation of the Empirical Fisher Matrix (EFM). Instead of treating an entire layer as one large block, MBF decomposes it into numerous small "mini-blocks":
- Convolutional Layers: Each mini-block corresponds to a single input-output channel pair (a single kernel filter).
- Fully Connected Layers: Each mini-block corresponds to the weights connecting all inputs to a single output neuron.
This granularity allows for massive parallelism on modern GPUs, keeping the per-iteration cost only slightly higher than first-order methods while providing richer curvature information than simple diagonal scaling.
Key Insights
Heatmap visualizations of the inverse Fisher matrix reveal that most of its "weight" is concentrated in these small diagonal mini-blocks. This justifies the MBF approximation: critical curvature information is preserved even when ignoring off-diagonal "cross-talk" between filters or neurons.
MBF can be viewed as a "squared" version of adaptive first-order methods. While Adam scales individual weights, MBF scales small groups of weights, capturing local correlations that Adam misses. Furthermore, the paper provides theoretical grounding, proving that an idealized version of MBF converges linearly to the global optimum for overparameterized networks.
Results
MBF was evaluated across CNNs (ResNet, VGG), Autoencoders, and Graph Convolutional Networks (GCNs). Key findings include:
- Superior Generalization: On CNN tasks like VGG16 on CIFAR-100, MBF consistently achieved lower validation errors than state-of-the-art first-order methods (AdamW, SGD-m) and performed competitively with heavyweight second-order methods like KFAC.
- Wall-Clock Efficiency: Due to its GPU-friendly design, MBF is significantly faster per iteration than KFAC. On ResNet32, MBF was roughly as fast as Adam but reached higher accuracy levels.
- Robustness: MBF showed strong performance on GCNs, which are notoriously difficult to optimize, outperforming Adam and SGD-m in both training speed and final testing accuracy.
Conclusion and Future Work
MBF offers a promising path for efficient second-order optimization in deep learning. While it excels in CNNs and GCNs, its effectiveness on Transformer architectures remains an area for future exploration. Additionally, extending the theoretical proof of linear convergence to the more practical stochastic (mini-batch) setting remains an open challenge.
Summary updated