English

Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC

Machine Learning 2024-07-24 v4 Machine Learning

Abstract

Second-order methods such as KFAC can be useful for neural net training. However, they are often memory-inefficient since their preconditioning Kronecker factors are dense, and numerically unstable in low precision as they require matrix inversion or decomposition. These limitations render such methods unpopular for modern mixed-precision training. We address them by (i) formulating an inverse-free KFAC update and (ii) imposing structures in the Kronecker factors, resulting in structured inverse-free natural gradient descent (SINGD). On modern neural networks, we show that SINGD is memory-efficient and numerically robust, in contrast to KFAC, and often outperforms AdamW even in half precision. Our work closes a gap between first- and second-order methods in modern low-precision training.

Keywords

Cite

@article{arxiv.2312.05705,
  title  = {Structured Inverse-Free Natural Gradient: Memory-Efficient & Numerically-Stable KFAC},
  author = {Wu Lin and Felix Dangel and Runa Eschenhagen and Kirill Neklyudov and Agustinus Kristiadi and Richard E. Turner and Alireza Makhzani},
  journal= {arXiv preprint arXiv:2312.05705},
  year   = {2024}
}

Comments

A long version of the ICML 2024 paper, updated the text about a related work

R2 v1 2026-06-28T13:46:04.681Z