Abstract
Natural Gradient Descent, a second-degree optimization method motivated by the information geometry, makes use of the Fisher Information Matrix instead of the Hessian which is typically used. However, in many cases, the Fisher Information Matrix is equivalent to the Generalized Gauss-Newton Method, that both approximate the Hessian. It is an appealing method to be used as an alternative to stochastic gradient descent, potentially leading to faster convergence. However, being a second-order method makes it infeasible to be used directly in problems with a huge number of parameters and data. This is evident from the community of deep learning sticking with the stochastic gradient descent method since the beginning. In this paper, we look at the different perspectives on the natural gradient method, study the current developments on its efficient-scalable empirical approximations, and finally examine their performance with extensive experiments.
Introduction
Standard deep learning training relies heavily on first-order methods like Stochastic Gradient Descent (SGD) and Adam. While computationally efficient, these methods only utilize the gradient (slope) of the loss surface, often resulting in slow convergence in complex optimization landscapes. Second-order methods, which utilize the Hessian matrix to account for curvature, offer potentially faster convergence. However, for a model with $p$ parameters, the Hessian requires $O(p^2)$ storage and $O(p^3)$ for inversion, rendering it impractical for modern deep neural networks.
Natural Gradient Descent (NGD) provides a theoretically grounded alternative. By replacing the Hessian with the Fisher Information Matrix (FIM), NGD performs steepest descent in the "distribution space" (measuring how the model's output distribution changes) rather than the "parameter space" (measuring how weights change). This approach makes optimization invariant to model reparameterization.
Efficient Approximations of the Fisher Information Matrix
To overcome the computational bottleneck of the full FIM, several approximations have been developed.
Block-Diagonal and Kronecker Factoring
A common strategy is the Block-Diagonal Approximation, which assumes that weights in different layers do not interact, allowing the FIM to be treated as a series of smaller layer-wise blocks. Kronecker Factoring (KFAC) further simplifies these blocks into Kronecker products of smaller matrices, significantly reducing the computational load.
TENGraD
This work focuses on TENGraD, a method that utilizes the Woodbury Matrix Identity to perform exact inversion of the block-wise FIM. By leveraging intermediate vectors already calculated during the backpropagation pass, TENGraD achieves the benefits of second-order optimization with a computational footprint comparable to SGD.
Experimental Evaluation
The performance of these methods was evaluated across three datasets: Weather (regression), House Price (regression), and Ecoli (classification).
Convergence and Scalability
Experiments on the Weather dataset demonstrate that NGD and TENGraD achieve lower loss levels in significantly fewer iterations than tuned SGD.
As shown in the results, TENGraD scales linearly with the number of hidden layers, mimicking the efficiency of SGD, while "Exact NGD" costs explode. Quantitatively, on the Weather dataset with a [32, 16] layer configuration, TENGraD achieved a log-loss of -3.68, a substantial improvement over SGD’s -1.00.
Discussion and Insights
Several key observations emerged from the analysis:
- Batch Size Sensitivity: NGD methods are highly sensitive to batch size. Since curvature is estimated from data, small batches produce noisy estimates that can lead to divergence.
- Loss Function Performance: TENGraD showed superior performance on least-squares loss (regression) compared to cross-entropy loss (classification).
- Damping: To maintain stability and prevent the inverse FIM from becoming singular, a damping factor ($\beta I$) is essential. This effectively interpolates between a Natural Gradient step and a standard Gradient Descent step.
Conclusion
Natural Gradient methods, particularly through efficient approximations like TENGraD, offer a viable path toward faster-converging second-order optimization in deep learning. While they introduce additional hyperparameters and sensitivity to batch size, their ability to navigate the distribution space provides a significant performance edge in regression tasks. Future work will explore the integration of momentum into NGD to further enhance its stability and convergence speed.
Summary updated