[Paper Review] Fast Approximate Natural Gradient Descent in a Kronecker-factored Eigenbasis
This paper proposes EKFAC, a novel approximation of the Fisher Information Matrix that tracks diagonal variances in a Kronecker-factored eigenbasis, enabling provably better curvature estimation than KFAC while supporting efficient partial updates. Experiments show EKFAC accelerates optimization and improves generalization on deep networks, outperforming KFAC and SGD in training loss and wall-clock time across multiple architectures.
Optimization algorithms that leverage gradient covariance information, such as variants of natural gradient descent (Amari, 1998), offer the prospect of yielding more effective descent directions. For models with many parameters, the covariance matrix they are based on becomes gigantic, making them inapplicable in their original form. This has motivated research into both simple diagonal approximations and more sophisticated factored approximations such as KFAC (Heskes, 2000; Martens & Grosse, 2015; Grosse & Martens, 2016). In the present work we draw inspiration from both to propose a novel approximation that is provably better than KFAC and amendable to cheap partial updates. It consists in tracking a diagonal variance, not in parameter coordinates, but in a Kronecker-factored eigenbasis, in which the diagonal approximation is likely to be more effective. Experiments show improvements over KFAC in optimization speed for several deep network architectures.
Motivation & Objective
- To address the computational infeasibility of exact natural gradient descent in large deep neural networks due to the massive size of the Fisher Information Matrix.
- To improve upon KFAC by providing a provably more accurate approximation of the Fisher Information Matrix using eigenbasis transformation.
- To enable efficient, partial updates of the curvature estimate by maintaining a fixed eigenbasis while updating only the diagonal variances.
- To demonstrate that curvature estimation in the Kronecker-factored eigenbasis leads to faster convergence and better generalization in practice.
Proposed method
- The method transforms parameter space using a Kronecker-factored eigenbasis (KFE), where the curvature approximation is applied to diagonal variances instead of raw parameters.
- It computes the KFE via eigendecomposition of the Kronecker-factored covariance matrix, amortizing the expensive computation over multiple iterations.
- The algorithm maintains a diagonal variance estimate in the KFE, allowing for low-cost partial updates of the curvature matrix without recomputing the eigenbasis.
- The preconditioning matrix is updated using adaptive diagonal scaling (e.g., RMSProp-like) in the transformed space, improving convergence stability.
- The approach is formally shown to yield a better Frobenius norm approximation of the Fisher Information Matrix than KFAC.
- The method supports both full and partial updates, enabling trade-offs between computational cost and estimation accuracy.
Experimental results
Research questions
- RQ1Can a curvature approximation in a Kronecker-factored eigenbasis yield a better approximation of the Fisher Information Matrix than KFAC in terms of Frobenius norm?
- RQ2Does tracking diagonal variances in the KFE enable more effective and efficient optimization than standard KFAC?
- RQ3Can partial updates of the curvature estimate in the KFE maintain performance while reducing computational cost?
- RQ4Does EKFAC improve optimization speed and generalization compared to KFAC and SGD in deep network training?
Key findings
- EKFAC provides a provably better approximation of the Fisher Information Matrix than KFAC, as measured by the Frobenius norm, due to eigenvalue correction in the KFE.
- EKFAC achieves faster optimization convergence than KFAC and SGD with momentum on fully-connected autoencoders and CIFAR-10 datasets.
- On VGG-11 and ResNet-34, EKFAC-ra (with partial updates) outperforms KFAC and SGD in training loss per epoch and wall-clock time when the KFE computation is amortized.
- EKFAC maintains strong generalization performance, with models achieving lower validation error than KFAC and SGD baselines across different batch sizes.
- Partial updates in EKFAC are computationally efficient and maintain high accuracy, enabling practical deployment in large-scale training.
- The method shows robust performance across different hyperparameter settings, with EKFAC configurations often outperforming the best KFAC configurations when selecting models by epoch or compute budget.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.