Gradient Descent on Neurons and its Link to Approximate Second-Order Optimization

Frederik Benzing
1/28/2022
cs.LG

Official code: freedbee/Neuron_Descent_and_KFAC (3 stars, Python, last commit 2022-10-17).

Abstract

Second-order optimizers are thought to hold the potential to speed up neural network training, but due to the enormous size of the curvature matrix, they typically require approximations to be computationally tractable. The most successful family of approximations are Kronecker-Factored, block-diagonal curvature estimates (KFAC).

Show full abstract

Here, we combine tools from prior work to evaluate exact second-order updates with careful ablations to establish a surprising result: Due to its approximations, KFAC is not closely related to second-order updates, and in particular, it significantly outperforms true second-order updates. This challenges widely held believes and immediately raises the question why KFAC performs so well. Towards answering this question we present evidence strongly suggesting that KFAC approximates a first-order algorithm, which performs gradient descent on neurons rather than weights. Finally, we show that this optimizer often improves over KFAC in terms of computational cost and data-efficiency.

View on arXivView PDF

Code Implementations(1)

Code accompanying paper "Gradient Descent on Neurons and its Link to Approximate Second-order Optimization"

32Python, Jupyter NotebookDec 1, 20214 years ago

Similar Papers

Cite this paper

@article{benzing2022gradient,
  title  = {Gradient Descent on Neurons and its Link to Approximate Second-Order Optimization},
  author = {Frederik Benzing},
  year   = {2022},
  eprint = {2201.12250},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12250}
}

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/2201.12250.svg)](https://codeofpaper.com/paper/2201.12250)

Discussion