Newton, Quasi-Newton and Conjugate Gradient
Local quadratic convergence, the BFGS update, L-BFGS memory, and why second-order methods are rare in deep learning.
Newton's method
Equivalently: minimise the second-order Taylor model of at exactly, rather than the quadratic upper bound of the descent lemma.
Let be twice differentiable with being -Lipschitz, and let satisfy and with . Then there is such that whenever ,
Key idea
Quadratic convergence means the number of correct digits doubles each step: , , , . In the local regime Newton's method essentially terminates in five or six iterations regardless of conditioning. The hypotheses are what cost: the theorem is local, requires a nondegenerate Hessian, and says nothing about how to reach the neighbourhood.
Let be invertible and . If then the Newton iterates of from satisfy for all . No such statement holds for gradient descent.
This is why no condition number appears in the Newton rate and no step size needs tuning: the method does not see the coordinate system. Everything a rescaling could break, it is immune to.
Quasi-Newton: BFGS and L-BFGS
Newton's method needs ( memory) and a solve ( time). Quasi-Newton methods build an approximation from gradient differences alone.
Let and . A curvature approximation should satisfy the secant condition , which is the exact relation for a quadratic.
The BFGS update to the inverse approximation is
It satisfies (the secant condition in inverse form), preserves positive definiteness when , and is the solution of subject to and for a particular weighted Frobenius norm.
The variational characterisation is proved in Nocedal–Wright and is quoted here. Two consequences matter:
- is a curvature condition; it holds automatically for strongly convex and must be enforced by a line search otherwise. If it fails, the update is skipped — a detail that matters in practice.
- Each update is a rank-two modification, so applying costs rather than .
- State. The last pairs , typically . Never form .
- First loop (newest to oldest): ; for each , set with , then .
- Scale. with .
- Second loop (oldest to newest): , then .
- Return as the search direction; take a line search along it.
Cost per iteration: time and memory. That is the whole reason L-BFGS is the default general-purpose optimiser for smooth deterministic problems of moderate size.
Conjugate gradient
For with , the conjugate gradient iterates satisfy
and consequently
with exact termination at in exact arithmetic, and at (number of distinct eigenvalues) in general.
Quoted from Nocedal–Wright / Trefethen–Bau. Note the rate is the same as acceleration — and for good reason: CG solves the optimal-polynomial problem exactly, adaptively, and acceleration solves it with a fixed schedule. CG is the accelerated method for quadratics; Nesterov's contribution was extending the rate to general convex functions.
Why these are rare in deep learning
Empirical observation — a regularity seen in experiments. No theorem on this page establishes it in general.
Adam and SGD with momentum dominate deep learning; L-BFGS and Newton-type methods do not, despite their superior rates on the problems where those rates apply.
What this does not say
The reasons are specific, and none of them is "second-order methods do not work":
- Cost. makes memory impossible. L-BFGS's is affordable, so cost alone is not decisive.
- Stochasticity. L-BFGS's curvature pairs are built from gradient differences. With mini-batch gradients, the difference of two noisy gradients is dominated by noise unless the batch is large, and the secant condition becomes meaningless. This is the binding obstacle.
- The local regime never arrives. Newton's quadratic convergence is a statement about a neighbourhood of a nondegenerate minimiser. Deep networks are trained for a fixed budget and stopped far from any such point; the Hessian at the stopping point is typically singular, with a large number of near-zero eigenvalues.
- Non-convexity. Where the Hessian is indefinite the Newton step can point uphill. Trust-region and cubic-regularised variants fix this in theory and are the subject of active research; they are not yet competitive at scale.
Hessian-free and Kronecker-factored (K-FAC) methods are serious attempts to get second-order information cheaply, and they do help on some problems. The honest summary is that the question is open in practice and the theory does not currently favour either side.
Problems
Local quadratic convergence of Newton's methodProof · Advanced · 1 hour Newton's method is affine invariantProof · Intermediate · 30 min Conjugate gradient and Krylov optimalityProof · Advanced · 1 hour The BFGS update satisfies the secant conditionProof · Advanced · 30 minReferences
- BookJorge Nocedal and Stephen J. Wright (2006). Numerical OptimizationThe standard reference for everything on this page, with full proofs of the quasi-Newton and trust-region theory.
- BookStephen Boyd and Lieven Vandenberghe (2004). Convex OptimizationChapters 9–11 for Newton's method, self-concordance and interior-point methods.
- PaperJames Martens (2010). Deep learning via Hessian-free optimization
These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.
Results stated on this page
- TheoremLocal quadratic convergence of Newton's methodproof includedNear a nondegenerate minimiser, Newton's method squares the error at each step.
- PropositionNewton's method is affine invariantproof includedThe Newton iterates commute with invertible linear reparameterisation, so no step size tuning is needed and no condition number appears.
- PropositionThe secant condition and the BFGS updateBFGS is the minimum-change symmetric positive definite update satisfying the secant equation.
- TheoremConjugate gradient minimises over Krylov subspacesThe t-th CG iterate is optimal over the Krylov subspace, giving the Chebyshev rate and exact termination in d steps.
- Empirical observationSecond-order methods are rarely used at scaleThe reasons are cost per step, stochastic curvature estimates and the absence of the local regime the theorems require.