Skip to main content
QUICK REVIEW

[Paper Review] Krylov Subspace Descent for Deep Learning

Oriol Vinyals, Daniel Povey|arXiv (Cornell University)|Nov 18, 2011
Neural Networks and ApplicationsComputer Science15 references78 citations
TL;DR

This paper proposes Krylov Subspace Descent (KSD), a second-order optimization method for deep learning that constructs a Krylov subspace from the gradient and Hessian-vector products, then optimizes within this low-dimensional subspace using BFGS on a data subset. KSD achieves faster convergence and better generalization than Hessian Free (HF), L-BFGS, and SGD, without requiring a positive semi-definite Hessian approximation or tuning of damping parameters.

ABSTRACT

In this paper, we propose a second order optimization method to learn models where both the dimensionality of the parameter space and the number of training samples is high. In our method, we construct on each iteration a Krylov subspace formed by the gradient and an approximation to the Hessian matrix, and then use a subset of the training data samples to optimize over this subspace. As with the Hessian Free (HF) method of [7], the Hessian matrix is never explicitly constructed, and is computed using a subset of data. In practice, as in HF, we typically use a positive definite substitute for the Hessian matrix such as the Gauss-Newton matrix. We investigate the effectiveness of our proposed method on deep neural networks, and compare its performance to widely used methods such as stochastic gradient descent, conjugate gradient descent and L-BFGS, and also to HF. Our method leads to faster convergence than either L-BFGS or HF, and generally performs better than either of them in cross-validation accuracy. It is also simpler and more general than HF, as it does not require a positive semi-definite approximation of the Hessian matrix to work well nor the setting of a damping parameter. The chief drawback versus HF is the need for memory to store a basis for the Krylov subspace.

Motivation & Objective

  • To develop a more robust and general second-order optimization method for high-dimensional, non-convex deep learning problems with large training data.
  • To eliminate the need for heuristic damping parameter tuning and positive semi-definite Hessian approximations required in Hessian Free (HF) optimization.
  • To improve convergence speed and generalization performance over existing methods like SGD, L-BFGS, and HF in deep neural network training.
  • To investigate whether advanced second-order methods like KSD can eliminate the need for pre-training in deep networks.
  • To evaluate the effectiveness of KSD using both Hessian and Gauss-Newton approximations on diverse deep learning tasks.

Proposed method

  • KSD constructs a Krylov subspace spanned by the gradient and successive Hessian-vector products: $\text{span}(\mathbf{g}_m, \mathbf{H}_m\mathbf{g}_m, \dots, \mathbf{H}_m^{K-1}\mathbf{g}_m)$, where $K$ is fixed (e.g., 20 or 80).
  • On each iteration, the method performs BFGS optimization over the Krylov subspace using a subset of training data to compute the objective and its derivatives.
  • Hessian-vector products are computed efficiently using the Pearlmutter trick, avoiding explicit Hessian matrix formation.
  • The method uses a Gauss-Newton matrix as a positive definite substitute for the Hessian when needed, enabling stable optimization even with indefinite Hessians.
  • The algorithm avoids the need for Levenberg-Marquardt damping by implicitly selecting an optimal regularization path through the Krylov subspace.
  • All computations, including gradients and Hessian-vector products, are computed on a GPU using mini-batches of data to reduce memory and computational overhead.

Experimental results

Research questions

  • RQ1Can a second-order optimization method that avoids explicit Hessian inversion and damping parameter tuning outperform Hessian Free (HF) and L-BFGS in deep learning training?
  • RQ2Does Krylov Subspace Descent achieve faster convergence and better generalization than HF and L-BFGS on standard deep learning benchmarks?
  • RQ3Is pre-training necessary when using advanced second-order optimization methods like KSD, particularly in cases where overfitting is not a dominant issue?
  • RQ4How does KSD perform with the Gauss-Newton matrix versus the actual Hessian, especially when the Hessian is not positive semi-definite?
  • RQ5Can KSD be effectively applied to recursive neural networks without requiring structural damping, as needed in HF?

Key findings

  • KSD converges faster than both Hessian Free (HF) and L-BFGS across all evaluated datasets, including CURVES, MNIST, Aurora, and Starcraft.
  • On the MNIST classification task, KSD achieved a cross-validation error of 1.70% compared to HF’s 2.01%, with zero training error in both cases.
  • On the Aurora speech recognition task, KSD reduced cross-validation error from 8.7% (HF) to 8.1%, while completing training 3.3x faster.
  • KSD outperformed HF on the CURVES dataset, reducing cross-validation error from 0.25 to 0.19 and completing in 20% of the time.
  • The method showed no degradation in performance when using the Gauss-Newton matrix instead of the Hessian, and worked robustly even when the Hessian was not positive semi-definite.
  • Pre-training was found to be unnecessary for KSD on all tasks except MNIST, where it slightly improved performance, suggesting that KSD may eliminate the need for pre-training in many deep learning scenarios.

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.