Skip to main content

11. Newton and Quasi-Newton Methods — Using Curvature while Controlling Cost

// CORE 5/7 — Newton, quasi-Newton, DFP, BFGS

Gradient descent looks only at first-order information. The Newton family uses second-order curvature to construct more intelligent steps, but calculating the Hessian and solving linear systems is costly.

Newton

Newton's method minimizes the second-order Taylor model:

mk(p)=f(xk)+f(xk)p+12p2f(xk)p.m_k(p)=f(x_k)+\nabla f(x_k)^\top p+\frac{1}{2}p^\top \nabla^2 f(x_k)p.

Minimizing this quadratic model with respect to pp gives the Newton equation:

2f(xk)pk=f(xk).\nabla^2 f(x_k)p_k=-\nabla f(x_k).

The update is

xk+1=xk+pk.x_{k+1}=x_k+p_k.

Under good conditions it converges extremely quickly, but if the Hessian is not positive definite, pkp_k may not be a descent direction.

Damped Newton

In practice, line search is usually added:

xk+1=xk+αkpk.x_{k+1}=x_k+\alpha_k p_k.

This combines the fast local convergence of the Newton direction with the stability of line search.

Quasi-Newton

Quasi-Newton methods do not calculate the Hessian or inverse Hessian directly; they approximate it during iteration.

Define the changes in position and gradient:

sk=xk+1xk,s_k=x_{k+1}-x_k, yk=f(xk+1)f(xk).y_k=\nabla f(x_{k+1})-\nabla f(x_k).

A good Hessian approximation should satisfy the secant equation:

Bk+1sk=yk.B_{k+1}s_k=y_k.

DFP

DFP is a classical quasi-Newton method that updates an inverse-Hessian approximation Hk(2f(xk))1H_k\approx (\nabla^2 f(x_k))^{-1}. It obtains the direction as

pk=Hkf(xk).p_k=-H_k\nabla f(x_k).

DFP is historically important, but BFGS is generally used more often in practice because it is more stable.

BFGS

BFGS is a quasi-Newton update that preserves positive definiteness well. If skyk>0s_k^\top y_k>0 and BkB_k is positive definite, then Bk+1B_{k+1} also remains positive definite.

This property makes a BFGS direction likely to be a descent direction and works well with Wolfe line search.

Large-scale problems frequently use L-BFGS, which does not store the full matrix.

Comparison

MethodInformationAdvantageCost
Gradient descentGradientCheap and simpleMany iterations
NewtonGradient + HessianExtremely fast locallyExpensive Hessian/linear solve
DFPGradient historyApproximates inverse HessianRequires matrix storage
BFGSGradient historyStable and strong in practiceRequires matrix storage
L-BFGSRecent historySupports large scaleApproximation quality depends on history

Next: Coordinate Descent and Conjugate Gradient