An Improved Empirical Fisher Approximation for Natural Gradient Descent

Xiaodong Wu, Wenyi Yu, Chao Zhang, Philip Woodland
6/10/2024
cs.LG

No official code found. Best implementation: HANDSOMEJACKANDY/improved-empirical-fisher (0 stars, last commit 2024-12-10).

Abstract

Approximate Natural Gradient Descent (NGD) methods are an important family of optimisers for deep learning models, which use approximate Fisher information matrices to pre-condition gradients during training. The empirical Fisher (EF) method approximates the Fisher information matrix empirically by reusing the per-sample gradients collected during back-propagation. Despite its ease of implementation, the EF approximation has its theoretical and practical limitations. This paper investigates the inversely-scaled projection issue of EF, which is shown to be a major cause of its poor empirical approximation quality. An improved empirical Fisher (iEF) method is proposed to address this issue, which is motivated as a generalised NGD method from a loss reduction perspective, meanwhile retaining the practical convenience of EF. The exact iEF and EF methods are experimentally evaluated using practical deep learning setups. Optimisation experiments show that applying exact iEF directly as an optimiser provides strong convergence and generalisation. Additionally, under a novel empirical evaluation framework, the proposed iEF method shows consistently better approximation quality to exact Natural Gradient updates than both the EF and the more expensive sampled Fisher methods, meanwhile demonstrating the superior property of being robust to the choice of damping across tasks and training stages. Improving existing approximate NGD optimisers with iEF is expected to lead to better convergence and robustness. Furthermore, the iEF method also serves as a better approximation method to the Fisher information matrix itself, which enables the improvement of a variety of Fisher-based methods, not limited to the scope of optimisation.

View on arXivView PDF

Code Implementations(1)

Code base for paper "An Improved Empirical Fisher Approximation for Natural Gradient Descent"

00Shell, PythonDec 10, 20241 years ago

Similar Papers

Cite this paper

@article{wu2024improved,
  title  = {An Improved Empirical Fisher Approximation for Natural Gradient Descent},
  author = {Xiaodong Wu and Wenyi Yu and Chao Zhang and Philip Woodland},
  year   = {2024},
  eprint = {2406.06420},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.06420},
  url    = {http://arxiv.org/abs/2406.06420v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06420.svg)](https://codeofpaper.com/paper/2406.06420)

Discussion