An Evaluation of Fisher Approximations Beyond Kronecker Factorization

César Laurent, Thomas George, Xavier Bouthillier, Nicolas Ballas, Pascal VincentWorkshops @ ICLR 2018

Second-order optimization methods like Natural Gradient Descent promise faster convergence by accounting for the "curvature" of the loss landscape. However, the math involves inverting the Fisher Information Matrix—a gargantuan task for modern deep networks. This paper introduces two clever approximations that simplify this matrix further, making second-order optimization practical even for deep and wide Convolutional Neural Networks (CNNs).

TL;DR

The authors propose two new approximations for the Fisher Information Matrix—Spatially Uncorrelated Actuations (SUA) and Channel Grouping—to drastically reduce the computational overhead of Natural Gradient Descent. These methods allow 50-layer ResNets to train faster in wall-clock time than standard SGD, achieving similar or better generalization without needing a massive distributed computing setup.

What Problem Does This Paper Address?

While standard Stochastic Gradient Descent (SGD) is the workhorse of deep learning, it often struggles with "imbalanced curvature," where the loss surface is much steeper in some directions than others. Second-order methods (like Natural Gradient) fix this by rescaling the gradient using the Fisher Information Matrix ($G$).

The problem is the size of $G$. For a network with millions of parameters, $G$ is a square matrix with trillions of entries, making it impossible to store, let alone invert. Previous work like K-FAC (Kronecker-Factored Approximate Curvature) broke $G$ down into smaller blocks, but even these blocks remain computationally expensive for wide layers or large convolutional kernels. The authors aim to bridge the gap between the theoretical speed of second-order methods and the actual wall-clock time required to run them.

Methods

The authors build on top of K-FAC, which approximates layer-wise Fisher blocks as a Kronecker product of two smaller matrices ($G_b \approx B \otimes A$). They introduce two "coarser" levels of approximation:

  1. Spatially Uncorrelated Actuations (SUA): This assumes that features at different spatial positions within a convolutional receptive field are uncorrelated. Mathematically, this replaces a large matrix related to the kernel size with a simple identity matrix. This reduces the complexity of the inversion from $O((k_w k_h m)^3)$ to just $O(m^3)$, where $k$ is the kernel size and $m$ is the number of channels.
  2. Channel Grouping: The authors further segment the channels into independent groups. By assuming no correlation between parameters in different groups, the Fisher block becomes a block-diagonal matrix. Instead of inverting one large $m \times m$ matrix, they invert several much smaller matrices. This is highly efficient because these small inversions can be performed in parallel on a GPU.

Key Insights and Ideas

  • The "Good Enough" Approximation: The most surprising insight is that you don't need a perfect estimate of the Fisher matrix to get the benefits of Natural Gradient. Even though SUA is a "coarse" approximation that ignores spatial correlations, it optimizes nearly as well as the full K-FAC per epoch while being significantly faster per second.
  • Hardware-Aware Optimization: Channel Grouping isn't just a mathematical trick; it's a hardware-friendly one. By breaking the problem into small, independent blocks, the authors leverage the parallel nature of GPUs, turning a sequential bottleneck into a batched operation.
  • Wall-Clock is King: Many papers show faster convergence in terms of epochs, but the extra computation makes them slower in real time. This paper focuses on the wall-clock time, proving that second-order methods can actually beat highly optimized SGD+Batch Normalization baselines in a fair race.
Training loss per epoch and validation misclassification rate per minute, comparing K-FAC variants to the baseline.

Key Results

The researchers evaluated their methods on standard image classification benchmarks (CIFAR10 and CIFAR100) to verify scaling properties and speedups on complex classification tasks.

  • VGG11 on CIFAR10: Using the SUA approximation, the authors reduced the size of the largest matrix to be inverted from 4608 × 4608 down to 512 × 512. This led to a massive reduction in computational overhead while maintaining similar validation accuracy.
  • ResNet50 Scaling: On a 50-layer ResNet, the K-FAC SUA variant (with groups of 64) consistently outperformed the SGD baseline. It reached lower training loss and better validation error in less wall-clock time.
  • Generalization: Unlike some optimization "accelerators" that speed up training but hurt final accuracy, these approximations yielded generalization performance that was equal to or slightly better than the baselines.
Misclassification rate over wall-clock time, demonstrating the speedup of K-FAC SUA (g=64) over the baseline.

Limitations and Future Work

  • Dataset Scale: The experiments were limited to CIFAR-sized images. While the ResNet50 results are promising, testing on ImageNet would be the ultimate trial for these approximations.
  • SUA Specificity: The SUA approximation is specifically designed for convolutional layers. While the authors mention that Channel Grouping can work for fully-connected layers, the primary speedups are tailored for CNN architectures.
  • Hyperparameter Sensitivity: Like K-FAC, these methods introduce new hyperparameters (like the Tikhonov damping factor $\gamma$ and the frequency of inverse updates), which may require tuning for different architectures.

Summary updated

BibTeX
@inproceedings{laurent2018evaluation,
  author = {César Laurent and Thomas George and Xavier Bouthillier and Nicolas Ballas and Pascal Vincent},
  title = {{An Evaluation of Fisher Approximations Beyond Kronecker Factorization}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure