[Paper Review] Practical Quasi-Newton Methods for Training Deep Neural Networks
This paper develops practical stochastic quasi-Newton methods for training deep neural networks by using Kronecker-factored block-diagonal BFGS/L-BFGS updates and a double-damping scheme, achieving competitive or superior performance to KFAC and first-order methods.
We consider the development of practical stochastic quasi-Newton, and in particular Kronecker-factored block-diagonal BFGS and L-BFGS methods, for training deep neural networks (DNNs). In DNN training, the number of variables and components of the gradient $n$ is often of the order of tens of millions and the Hessian has $n^2$ elements. Consequently, computing and storing a full $n imes n$ BFGS approximation or storing a modest number of (step, change in gradient) vector pairs for use in an L-BFGS implementation is out of the question. In our proposed methods, we approximate the Hessian by a block-diagonal matrix and use the structure of the gradient and Hessian to further approximate these blocks, each of which corresponds to a layer, as the Kronecker product of two much smaller matrices. This is analogous to the approach in KFAC, which computes a Kronecker-factored block-diagonal approximation to the Fisher matrix in a stochastic natural gradient method. Because the indefinite and highly variable nature of the Hessian in a DNN, we also propose a new damping approach to keep the upper as well as the lower bounds of the BFGS and L-BFGS approximations bounded. In tests on autoencoder feed-forward neural network models with either nine or thirteen layers applied to three datasets, our methods outperformed or performed comparably to KFAC and state-of-the-art first-order stochastic methods.
Motivation & Objective
- Motivate the use of second-order information in training deep neural networks (DNNs) given high dimensionality.
- Propose scalable Kronecker-factored block-diagonal BFGS/L-BFGS updates that approximate the Hessian.
- Develop a damping strategy to maintain positive definiteness and bound eigenvalue changes in nonconvex DNNs.
- Introduce Hessian-action BFGS for layer-wise Hessian approximation and LM damping to handle singularities.
- Provide convergence guarantees for the proposed stochastic quasi-Newton method and demonstrate empirical performance on DNNs.
Proposed method
- Represent the Hessian as a block-diagonal matrix with each block corresponding to a layer, and approximate each block as a Kronecker product of two smaller matrices (A_l and G_l).
- Update the inverse Hessian blocks H_g^l via damped BFGS or L-BFGS on the gradient with respect to h_l, ensuring positive definiteness.
- Update the A_l block using Hessian-action BFGS with an LM damping term to handle potential singularities, i.e., A_l^{LM} = A_l + λ_A I.
- Combine updates to form a step W_l^+ by vec(W_l^+) − vec(W_l) = −α (H_g^l ⊗ H_a^l) vec(Ẽ∇f_l) and apply a Hessenberg-structured (Kronecker) preconditioning.
- Introduce a double-damping (DD) scheme to bound both the y^T H y / s^T y and s^T s / s^T y ratios, preserving stability of BFGS updates in stochastic settings.
- Provide a convergence analysis within the stochastic quasi-Newton framework and discuss a non-loop L-BFGS implementation for efficiency on GPUs.
Experimental results
Research questions
- RQ1Can stochastic quasi-Newton methods be made practical for training large-scale DNNs by exploiting layer-wise Kronecker structure?
- RQ2Does a double-damping scheme ensure positive definiteness and bounded eigenvalue changes in nonconvex, stochastic training settings?
- RQ3How do K-BFGS and K-BFGS(L) compare to KFAC and first-order methods in training efficiency and generalization on standard autoencoder benchmarks?
- RQ4What is the convergence behavior of Kronecker-factored stochastic quasi-Newton methods under standard stochastic optimization assumptions?
Key findings
- K-BFGS and K-BFGS(L) have storage and per-iteration cost comparable to first-order methods while providing second-order information, thanks to layer-wise Kronecker factorizations.
- K-BFGS/L show favorable training and testing performance compared to first-order methods and are competitive with or surpass KFAC in many cases.
- The Hessian-action BFGS for the A_l blocks combined with LM damping yields stable updates even when A_l is singular or ill-conditioned.
- A double-damping procedure maintains positive definiteness and bounds on eigenvalues, improving robustness in stochastic nonconvex optimization.
- Experiments on MNIST, FACES, and CURVES indicate superior or comparable performance to KFAC and first-order methods across training loss and test errors, with good generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.