Skip to main content
QUICK REVIEW

[Paper Review] Efficient Subsampled Gauss-Newton and Natural Gradient Methods for Training Neural Networks

Yi Ren, Donald Goldfarb|arXiv (Cornell University)|Jun 5, 2019
Neural Networks and ApplicationsComputer Science21 references12 citations
TL;DR

This paper proposes efficient subsampled Gauss-Newton (SMW-GN) and natural gradient (SMW-NG) methods for training deep neural networks using Levenberg-Marquardt damping and the Sherman-Morrison-Woodbury formula with automatic differentiation. The approach enables fast, second-order-informed optimization with computational cost comparable to first-order methods, achieving convergence to a stationary point in semi-stochastic variants and outperforming SGD, Hessian-free, and KFAC methods in training speed and generalization without hyperparameter tuning.

ABSTRACT

We present practical Levenberg-Marquardt variants of Gauss-Newton and natural gradient methods for solving non-convex optimization problems that arise in training deep neural networks involving enormous numbers of variables and huge data sets. Our methods use subsampled Gauss-Newton or Fisher information matrices and either subsampled gradient estimates (fully stochastic) or full gradients (semi-stochastic), which, in the latter case, we prove convergent to a stationary point. By using the Sherman-Morrison-Woodbury formula with automatic differentiation (backpropagation) we show how our methods can be implemented to perform efficiently. Finally, numerical results are presented to demonstrate the effectiveness of our proposed methods.

Motivation & Objective

  • To develop second-order optimization methods for deep neural networks that incorporate partial Hessian information while maintaining computational efficiency.
  • To address the high computational cost of full Hessian inversion in large-scale deep learning by using subsampled Gauss-Newton and Fisher information matrices.
  • To design algorithms that combine the curvature-aware advantages of second-order methods with the scalability of stochastic optimization.
  • To prove convergence of semi-stochastic variants using full gradients and mini-batch Hessian approximations.
  • To demonstrate competitive performance against SGD, Hessian-free, and KFAC methods in training speed and generalization without learning rate tuning.

Proposed method

  • The method uses a Levenberg-Marquardt damping term added to subsampled Gauss-Newton or Fisher information matrices to stabilize optimization.
  • It applies the Sherman-Morrison-Woodbury formula to efficiently invert the damped Hessian approximations using automatic differentiation (backpropagation).
  • The approach exploits Kronecker factored structure in the Gauss-Newton and Fisher matrices to achieve O(n) time complexity for matrix formation and inversion.
  • Semi-stochastic variants combine full gradients with mini-batch Hessian approximations, which are proven to converge to a stationary point.
  • Fully stochastic versions use only subsampled gradients and Hessian approximations, enabling fast, adaptive updates without parameter tuning.
  • The algorithm is implemented efficiently by parallelizing the computation of terms involving the diagonal matrix $ D_t $, making second-order costs comparable to gradient evaluation.

Experimental results

Research questions

  • RQ1Can subsampled Gauss-Newton and natural gradient methods achieve fast convergence in deep learning with computational cost comparable to first-order methods?
  • RQ2How can second-order curvature information be incorporated efficiently in large-scale neural network training without inverting full Hessian matrices?
  • RQ3What convergence guarantees can be established for semi-stochastic variants that use full gradients with mini-batch Hessian approximations?
  • RQ4How do these methods compare in practice to SGD, Hessian-free, and KFAC in terms of training speed, loss reduction, and generalization?
  • RQ5Can the proposed methods eliminate the need for manual learning rate tuning while maintaining or improving performance?

Key findings

  • The SMW-GN method consistently outperforms Hessian-free (HF) methods in both training epochs and clock time across all tested datasets.
  • SMW-GN achieves faster convergence than SGD, especially when learning rates are set conservatively, and performs competitively without any hyperparameter tuning.
  • On the CIFAR-10 dataset, KFAC slows down significantly in wide-layer networks, while SMW-GN maintains stable performance.
  • On MNIST, SMW-GN reaches lower training loss faster than SGD even with a fixed learning rate of 0.1, demonstrating robustness.
  • After careful learning rate tuning, SGD can match second-order methods on MNIST, but SMW-GN achieves similar or better results without tuning.
  • The semi-stochastic variants of SMW-GN and SMW-NG are proven to converge to a stationary point, providing theoretical guarantees for practical use.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.