Source: Lecture PDF · Review roadmap

Notation: , ; approximates the Hessian and its inverse.

Conditioning and rescaling

For a positive definite quadratic Hessian , the condition number is . A large ratio gives elongated contours and can make steepest descent zigzag slowly.

For invertible , set and :

Choosing makes the transformed Hessian . GD in the new coordinates maps back to

This is a scaled Newton step. For a general function, use and recompute the local transformation each iteration. GD trajectories depend on coordinates; equivalent objectives need not be equally easy to optimise.

Quasi-Newton and the secant equation

Use curvature learned from steps and gradient changes instead of computing an exact Hessian:

The gradient change suggests . Enforce the secant equation:

Symmetry and the secant equation do not uniquely determine the matrix. Quasi-Newton methods also choose an update close to the previous approximation; BFGS uses a weighted Frobenius-norm criterion.

BFGS inverse-Hessian update

Start with , choose , select using Wolfe, then update:

If and , the update preserves positive definiteness. Thus for .

Wolfe supplies the positive curvature condition for descent directions; Armijo alone does not. The denominator is the dot product , not . A small final objective does not prove the update is correct.

L-BFGS

Full BFGS stores a dense matrix: storage and update/direction cost. L-BFGS stores only the latest pairs : storage and direction cost.

Two-loop recursion computes implicitly. For retained indices , let :

  1. Set . From newest to oldest: , then .
  2. Set , with a cheap positive definite base such as .
  3. From oldest to newest: , then .
  4. Use .

Limited history controls cost but discards older curvature information. Compare runtime, storage and achieved accuracy separately from iteration count.

Connections

  • L1 + L4: coordinate changes explain curvature scaling.
  • L3: Wolfe links step selection to BFGS positive definiteness.
  • L2: stopping at a small gradient establishes approximate stationarity, not global optimality.
  • TUT3 / HW1 P3–5: BFGS implementation, curvature audit and limited-memory comparison.

For derivations/examples: rescaling, pp. 5–11 · BFGS, pp. 12–18 · L-BFGS, pp. 19–21.